/* Brand: matches the printed wedding signage. Quattrocento, all lowercase, black on white. */
:root {
  --bg: #ffffff;
  --text: #000000;
  --muted: #555555;
  --line: #e4e4e4;
  --error: #a3261c;
  --font: "Quattrocento", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  text-transform: lowercase;
  -webkit-font-smoothing: antialiased;
}
input { text-transform: none; }

/* Header logo: chally over the date, with a short rule, like the printed pieces. */
.site-header, .admin-head { text-align: center; padding: 32px 16px 0; }
.logo { display: inline-block; color: inherit; text-decoration: none; }
.wordmark { display: block; font-weight: 700; font-size: 1.65rem; line-height: 1; }
.date { display: block; font-size: 0.82rem; margin-top: 4px; letter-spacing: 0.02em; }
.rule { width: 44px; height: 2px; background: currentColor; border: 0; margin: 14px auto 0; }

/* Full-width crossfading slideshow of favorite photos */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 85vh;
  max-height: 85svh;
  overflow: hidden;
  background: #f2f2f2;
}
@media (min-width: 700px) { .hero { aspect-ratio: 3 / 2; } }
.slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(calc(var(--zoom, 1) * 1.03));
  transition: opacity 1.6s ease, transform 7s ease-out;
}
.slides img.on { opacity: 1; transform: scale(var(--zoom, 1)); }
.hero { touch-action: pan-y; user-select: none; }
.hero-btn {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 72px;
  border: 0;
  padding: 0;
  background: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45));
}
.hero-prev { left: 0; }
.hero-next { right: 0; }
.hero:hover .hero-btn, .hero-btn:focus-visible { opacity: 1; }
@media (hover: none) { .hero-btn { display: none; } }
.dots { display: flex; justify-content: center; flex-wrap: wrap; margin: 6px auto 0; padding: 0 16px; }
.dots button { width: 26px; height: 32px; border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.dots button::before { content: ""; width: 18px; height: 2px; background: #c8c8c8; }
.dots button.on::before { background: #000; }

main { padding: 0 0 24px; }

.title {
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 3.25rem);
  line-height: 1;
  text-align: center;
  margin: 32px 16px 28px;
}

.letter, .share { max-width: 600px; margin: 0 auto; padding: 0 20px; }
.letter { max-width: 400px; }
.letter { padding-top: 48px; padding-bottom: 56px; text-align: center; }
h2 { font-weight: 700; font-size: clamp(1.4rem, 5vw, 1.75rem); line-height: 1.25; margin: 0 0 24px; }
.letter p { font-size: 1.15rem; line-height: 1.6; margin: 0 0 18px; }
.letter .signoff { margin-top: 28px; }

.share { padding-top: 8px; padding-bottom: 72px; text-align: center; }
.share h2 { font-size: clamp(1.5rem, 6vw, 1.75rem); }
.share p { font-size: 1.1rem; line-height: 1.5; }

.field { display: block; text-align: left; margin: 0 auto 20px; max-width: 420px; }
.field span { display: block; font-size: 1rem; color: var(--muted); margin-bottom: 6px; }
input[type="text"] {
  width: 100%;
  font: inherit;
  font-size: 1.1rem;
  padding: 14px 16px;
  border: 1px solid #000;
  border-radius: 0;
  background: #fff;
  color: #000;
}
.btn {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  font: inherit;
  font-weight: 700;
  font-size: 1.35rem;
  text-transform: lowercase;
  padding: 20px 24px;
  background: #000;
  color: #fff;
  border: 0;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn-small { width: auto; font-size: 1.1rem; padding: 14px 20px; }
.btn-outline { background: #fff; color: #000; border: 1px solid #000; }
.hint { color: var(--muted); margin-top: 12px; }
.who { margin: 0 auto 20px; font-size: 1.05rem; }
#nameError { margin: -8px auto 16px; }
.dropzone {
  width: 100%;
  max-width: 420px;
  min-height: 190px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1.5px dashed #000;
  background: #faf9f7;
  color: #000;
  font: inherit;
  text-transform: lowercase;
  cursor: pointer;
}
.dropzone:hover, .dropzone.over { background: #f1efeb; }
.dz-title { font-weight: 700; font-size: 1.3rem; }
.dz-sub { font-size: 0.95rem; color: var(--muted); }
.inline-form { display: flex; gap: 8px; max-width: 420px; margin: 0 auto; }
.error { color: var(--error); }
.summary { font-weight: 700; margin-top: 28px; }

.files { list-style: none; padding: 0; margin: 20px auto 0; max-width: 420px; text-align: left; }
.files li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.thumb { width: 48px; height: 48px; object-fit: cover; background: #f2f2f2; display: grid; place-items: center; font-size: 0.8rem; color: var(--muted); }
.fname { font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: none; }
.bar { height: 3px; background: var(--line); margin-top: 6px; }
.bar i { display: block; height: 100%; width: 0; background: #000; transition: width 0.2s; }
.state { font-size: 0.9rem; color: var(--muted); margin-top: 4px; }
.files li.done .state { color: #000; }
.files li.failed .state { color: var(--error); }

footer { text-align: center; padding: 28px 20px 40px; color: var(--muted); font-size: 0.85rem; line-height: 1.7; }

@media (prefers-reduced-motion: reduce) {
  .slides img, .slides img.on { transition: opacity 0.5s; transform: scale(var(--zoom, 1)); }
  html { scroll-behavior: auto; }
}
.linklike { font: inherit; background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; text-transform: lowercase; }
