/* Ashley & Relene -- wedding-day guest pages (seat finder + photo upload).
   Phone-first: guests arrive by scanning a QR code at the venue. */
:root {
  --ivory: #faf7f2;
  --paper: #ffffff;
  --ink: #2c2b28;
  --ink-soft: #5f5c55;
  --muted: #8f8a80;
  --line: #e7e0d4;
  --green: #4a5a43;
  --green-deep: #36432f;
  --gold: #b0894f;
  --gold-soft: #efe3cf;
  --ok: #4f7a4a;
  --err: #a6463d;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(54, 67, 47, 0.10);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100svh;
  background: var(--ivory); color: var(--ink);
  font-family: var(--font-sans); font-weight: 300; font-size: 1.0625rem; line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--green); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.1; margin: 0 0 0.5rem; }
p { margin: 0 0 1rem; }

.wrap { width: min(100% - 2.5rem, 34rem); margin-inline: auto; }
.page { padding: 2.25rem 0 3rem; }

.eyebrow { font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 0.6rem; }
.muted { color: var(--muted); }

/* back link */
.back { display: inline-flex; align-items: center; gap: 0.4rem; margin-bottom: 1.75rem; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; color: var(--ink-soft); }

/* ornament: a thin rule with a small diamond */
.ornament { display: flex; align-items: center; gap: 0.9rem; justify-content: center; color: var(--gold); margin: 1.25rem 0 1.75rem; }
.ornament::before, .ornament::after { content: ""; height: 1px; width: 64px; background: currentColor; opacity: 0.5; }
.ornament span { width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid currentColor; }

/* ------------------------------------------------------------------ home */
.home { text-align: center; padding: 3.5rem 0 3rem; }
.names { font-size: clamp(3rem, 14vw, 4.4rem); font-weight: 400; letter-spacing: -0.01em; margin-bottom: 0; }
.names em { display: block; font-style: italic; font-size: 0.5em; color: var(--gold); margin: 0.15em 0; }
.home .lede { color: var(--ink-soft); max-width: 26ch; margin-inline: auto; }

.choices { display: grid; gap: 1rem; margin-top: 2.25rem; text-align: left; }
.choice {
  display: flex; align-items: center; gap: 1.1rem;
  padding: 1.35rem 1.4rem; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow);
  text-decoration: none; color: var(--ink);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.choice:hover, .choice:focus-visible { transform: translateY(-2px); border-color: var(--gold); }
.choice__icon { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--green-deep); }
.choice h2 { font-size: 1.6rem; margin: 0; }
.choice p { margin: 0.1rem 0 0; font-size: 0.92rem; color: var(--ink-soft); }
.choice__arrow { margin-left: auto; color: var(--gold); flex: none; }

/* --------------------------------------------------------------- forms */
.page-title { font-size: clamp(2.4rem, 10vw, 3rem); }
label { display: block; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.5rem; font-weight: 400; }
.input {
  width: 100%; padding: 1rem 1.1rem; font: inherit; font-size: 1.15rem; font-weight: 400; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  -webkit-appearance: none; appearance: none;
}
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 1rem 1.6rem; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--green); color: #fff; text-decoration: none;
  font: inherit; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  transition: background-color 0.2s ease;
}
.btn:hover { background: var(--green-deep); }
.btn--block { width: 100%; padding-block: 1.15rem; }
.btn[disabled] { opacity: 0.6; cursor: default; }

/* --------------------------------------------------------- seat finder */
.results { display: grid; gap: 1rem; margin-top: 1.5rem; }
.results__hint { text-align: center; color: var(--muted); font-size: 0.95rem; margin-top: 1.5rem; }
.seat {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.5rem 1.4rem; text-align: center;
  animation: rise 0.35s ease both;
}
.seat__name { font-family: var(--font-display); font-size: 1.6rem; margin: 0; }
.seat__label { font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin: 0.9rem 0 0; }
.seat__table { font-variant-numeric: lining-nums; font-family: var(--font-display); font-size: 4.5rem; line-height: 1; color: var(--green); margin: 0.1rem 0 0.4rem; }
.seat__with { font-size: 0.92rem; color: var(--ink-soft); margin: 0.6rem 0 0; padding-top: 0.9rem; border-top: 1px dashed var(--line); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .seat { animation: none; } }

/* -------------------------------------------------------------- upload */
.picker { position: relative; display: block; margin-top: 1.5rem; }
.picker input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.picker .btn { pointer-events: none; }
.note { font-size: 0.88rem; color: var(--muted); text-align: center; margin-top: 0.9rem; }

.queue { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.queue li {
  display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 0.85rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 0.55rem 0.85rem 0.55rem 0.55rem;
}
.queue img, .queue .ph { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--gold-soft); }
.queue .meta { min-width: 0; font-size: 0.88rem; }
.queue .meta span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-soft); }
.bar { height: 5px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 0.4rem; }
.bar i { display: block; height: 100%; width: 0; background: var(--gold); transition: width 0.2s linear; }
.state { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; color: var(--muted); }
.is-done .state { color: var(--ok); }
.is-done .bar i { background: var(--ok); }
.is-error .state { color: var(--err); }
.is-error .bar i { background: var(--err); }
.retry { background: none; border: 0; padding: 0; font: inherit; color: var(--err); text-decoration: underline; cursor: pointer; }

.thanks { text-align: center; margin-top: 1.75rem; padding: 1.4rem; border-radius: var(--radius); background: var(--gold-soft); }
.thanks h2 { font-size: 1.7rem; }
.thanks p { margin: 0; color: var(--ink-soft); }

/* --------------------------------------------------------------- story */
/* Follows straight on from the home buttons -- no separate page. */
.story { padding: 1rem 0 3.5rem; border-top: 1px solid var(--line); }
.story-hero { margin: 2.25rem 0 1.5rem; }
.story-hero img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 160px 160px var(--radius) var(--radius); box-shadow: var(--shadow); }

/* Afrikaans (the couple's own words) / English translation */
.lang-toggle { display: flex; justify-content: center; gap: 0.35rem; margin-bottom: 1.75rem; }
.lang-toggle button {
  padding: 0.5rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer;
  font: inherit; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft);
}
.lang-toggle button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }

.story-title { font-size: clamp(2.3rem, 10vw, 2.9rem); text-align: center; margin-bottom: 0.2rem; }
.story-sub { text-align: center; font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--gold); }
.story-intro { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.4; text-align: center; color: var(--ink-soft); margin-top: 1.25rem; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 1.5rem; border-left: 1px solid var(--line); display: grid; gap: 2.25rem; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: calc(-1.5rem - 5px); top: 0.45rem; width: 9px; height: 9px; transform: rotate(45deg); background: var(--ivory); border: 1px solid var(--gold); }
.timeline__when { font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 0.25rem; font-variant-numeric: lining-nums; }
.timeline h3 { font-size: 1.7rem; margin-bottom: 0.5rem; }
.timeline p { color: var(--ink-soft); margin: 0 0 0.75rem; }
.timeline p:last-child { margin-bottom: 0; }
.timeline blockquote { margin: 1rem 0; padding: 0.2rem 0 0.2rem 1rem; border-left: 2px solid var(--gold); font-family: var(--font-display); font-style: italic; font-size: 1.35rem; line-height: 1.35; color: var(--green-deep); }
.timeline__photo { margin: 1rem 0 0; }
.timeline__photo img { width: 100%; height: auto; border-radius: 12px; box-shadow: var(--shadow); }
.timeline__photo figcaption { font-size: 0.72rem; letter-spacing: 0.2em; color: var(--muted); text-align: right; margin-top: 0.4rem; font-variant-numeric: lining-nums; }

.story-closing p { color: var(--ink-soft); }
.story-highlight { font-family: var(--font-display); font-size: 1.45rem; line-height: 1.35; text-align: center; color: var(--green-deep) !important; margin: 1.75rem 0; }
.story-final {
  margin: 2.25rem 0 0; padding: 1.6rem 1.4rem; border-radius: var(--radius); background: var(--gold-soft);
  font-family: var(--font-display); font-size: 1.35rem; line-height: 1.4; text-align: center; color: var(--green-deep);
}
.story-cta { text-align: center; margin-top: 2.5rem; }

footer.small { text-align: center; font-size: 0.8rem; color: var(--muted); padding-bottom: 2rem; }

/* --------------------------------------------------------------- admin */
.admin .wrap { width: min(100% - 2rem, 72rem); }
.admin__head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; justify-content: space-between; padding: 2.5rem 0 1.5rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; }
.admin__head h1 { font-size: 2.6rem; }
.admin__head p { margin: 0; }
.admin__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; padding-bottom: 3rem; }
.admin__grid figure { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.admin__grid img, .admin__nothumb { width: 100%; aspect-ratio: 1; object-fit: cover; }
.admin__grid a { text-decoration: none; }
.admin__nothumb { display: grid; place-content: center; text-align: center; background: var(--gold-soft); color: var(--green-deep); font-weight: 500; letter-spacing: 0.1em; }
.admin__grid figcaption { padding: 0.6rem 0.75rem; font-size: 0.85rem; }
.admin__grid figcaption small { display: block; color: var(--muted); }
