/* ============================================================
   Jacques & Lara — Wedding Site
   Editorial "Karoo Dusk" railway-ticket. Playfair · Spectral · Courier Prime.
   ============================================================ */

:root {
  --cream:      #F4ECDD;
  --sand:       #E3D2B4;
  --walnut:     #463B2E;
  --terracotta: #C65A35;
  --olive:      #6E7149;
  --mustard:    #D89A2E;
  --rose:       #C97A78;
  --muted:      #6b5f4c;
  --placeholder:#b3a890;
  --hairline:   rgba(70, 59, 46, 0.20);
  --cream-70:   rgba(244, 236, 221, 0.7);
  --cream-55:   rgba(244, 236, 221, 0.55);
  --cream-30:   rgba(244, 236, 221, 0.3);

  --pf: 'Playfair Display', Georgia, serif;
  --sp: 'Spectral', Georgia, serif;
  --mono: 'Courier Prime', 'Courier New', monospace;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --nav-h: 64px;

  --dur: 600ms;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--walnut);
  font-family: var(--sp);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
section[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

.pf { font-family: var(--pf); }
.sp { font-family: var(--sp); }
.mono { font-family: var(--mono); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 760px; }
.wrap--tight  { max-width: 720px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--walnut); color: var(--cream);
  padding: 10px 16px; z-index: 100; font-family: var(--mono); font-size: 13px;
}
.skip-link:focus { left: 12px; top: 12px; }

.label {
  font-family: var(--mono); font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--olive);
}
.section-head { text-align: center; margin-bottom: clamp(36px, 4.5vw, 60px); }
.section-head .label { display: block; }
.h2 {
  font-family: var(--pf); font-weight: 500; line-height: 1.04;
  letter-spacing: -0.5px; margin: 12px 0 0;
  font-size: clamp(34px, 5.6vw, 60px);
}

.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; }
.ornament .rule { height: 1px; width: 52px; background: var(--walnut); }
.ornament .gem { width: 6px; height: 6px; background: var(--terracotta); transform: rotate(45deg); }
.ornament--light .rule { background: var(--cream-30); }

/* buttons */
.btn {
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 14px 32px; text-decoration: none; display: inline-block;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform 150ms var(--ease), background 200ms, color 200ms, border-color 200ms;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--cream); color: var(--olive); }
.btn--primary:hover { background: #fff; }
.btn--terracotta { background: var(--terracotta); color: var(--cream); border-color: var(--terracotta); }
.btn--terracotta:hover { background: #b04e2c; border-color: #b04e2c; }
.btn--ghost { background: transparent; color: var(--cream); border-color: var(--cream-30); }
.btn--ghost:hover { border-color: var(--cream); }

/* ============================ NAV ============================ */
.nav { position: sticky; top: 0; z-index: 50; background: var(--olive); border-bottom: 1px solid rgba(244,236,221,.2); }
.nav__inner { max-width: var(--wrap); margin: 0 auto; padding: 12px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cream); }
.nav__seal { width: 32px; height: 32px; color: var(--cream); flex-shrink: 0; }
.nav__brand-name { font-family: var(--pf); font-size: 20px; font-weight: 500; white-space: nowrap; }
.nav__brand-name em { font-style: italic; opacity: 0.85; }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a:not(.nav__cta) { font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(244,236,221,.85); text-decoration: none; transition: color 160ms; }
.nav__links a:not(.nav__cta):hover { color: var(--cream); }
.nav__cta { font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; background: var(--cream); color: var(--olive); padding: 10px 22px; text-decoration: none; white-space: nowrap; transition: background 160ms; }
.nav__cta:hover { background: #fff; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 22px; height: 2px; background: var(--cream); display: block; }
.nav__mobile { display: none; }

/* ============================ HERO ============================ */
.hero { background: var(--olive); color: var(--cream); overflow: hidden; padding: clamp(32px, 5vw, 56px) 0 clamp(40px, 5vw, 64px); }
.hero__inner { text-align: center; }
.hero__kicker { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(244,236,221,.62); margin: 0; }
.hero__names {
  font-family: var(--pf); font-weight: 700; line-height: 0.88; letter-spacing: -2px;
  font-size: clamp(58px, 13.5vw, 168px); margin: 16px 0 clamp(-46px, -7vw, -82px);
  position: relative; z-index: 2; text-wrap: balance;
}
.hero__names em { font-weight: 400; font-style: italic; opacity: 0.8; }
/* bigger, prominent, no fade */
.hero__photo { position: relative; z-index: 1; max-width: clamp(300px, 60vw, 720px); margin: 0 auto; }
.hero__photo img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
/* light overlay only — keeps it near-B&W but harmonised with the olive field */
.hero__photo::after { content: ""; position: absolute; inset: 0; background: var(--olive); mix-blend-mode: multiply; opacity: 0.12; pointer-events: none; }
.hero__meta { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 4vw, 44px); margin-top: 24px; flex-wrap: wrap; }
.hero__meta span.t { font-family: var(--sp); font-style: italic; font-size: clamp(14px, 1.6vw, 18px); color: rgba(244,236,221,.86); }
.hero__meta .gem { width: 5px; height: 5px; background: var(--terracotta); transform: rotate(45deg); }
.hero__cta-row { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

/* ============================ STATION BAND ============================ */
.band { background: var(--cream); padding: clamp(44px, 5.5vw, 72px) 0 0; text-align: center; overflow: hidden; }
.band__quote { display: flex; align-items: center; justify-content: center; gap: 16px; }
.band__quote .rule { height: 1px; width: 52px; background: var(--walnut); }
.band__quote span.t { font-family: var(--pf); font-style: italic; font-size: clamp(19px, 2.4vw, 27px); }
.band__sketch { max-width: 1180px; margin: clamp(14px, 2vw, 24px) auto -4px; padding: 0 24px; }
.band__sketch img { width: 100%; height: auto; }

/* ============================ DETAILS ============================ */
.details { padding: clamp(60px, 7vw, 100px) 0 clamp(40px, 5vw, 64px); }
.details__grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--hairline); }
/* aligned: every card same top padding; equalised content via grid rows */
.detail-card {
  display: grid; grid-template-rows: auto auto 1fr; align-items: start;
  text-align: center; padding: clamp(34px, 3.4vw, 52px) 26px clamp(28px, 3vw, 40px);
  border-right: 1px solid var(--hairline);
}
.detail-card:last-child { border-right: 0; }
.detail-card__art { width: 116px; height: 150px; margin: 0 auto; object-fit: contain; object-position: center bottom; }
.detail-card__title { font-family: var(--pf); font-style: italic; font-weight: 500; font-size: clamp(24px, 2.8vw, 32px); margin: 22px 0 0; }
.detail-card__body { font-family: var(--sp); font-size: 15.5px; line-height: 1.65; color: var(--muted); margin: 12px auto 0; max-width: 220px; }
.detail-card__body a { color: var(--terracotta); text-decoration: underline; text-underline-offset: 3px; }

/* ============================ SCENE BREAK (edge-flush line drawings) ============================
   A full-bleed hairline rule spanning the whole viewport, with a line drawing
   standing ON the rule, flush to the far left/right screen edge. */
.scene-break { position: relative; width: 100%; height: clamp(118px, 15vw, 172px); }
.scene-break::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--hairline); }
.scene-break__fig { position: absolute; bottom: 0; height: clamp(106px, 13.5vw, 156px); width: auto; }
.scene-break__fig--left  { left: clamp(0px, 0.5vw, 6px); }
.scene-break__fig--right { right: clamp(0px, 0.5vw, 6px); }
.scene-break--onCream { background: var(--cream); }
.scene-break--onSand  { background: var(--sand); }
.scene-break--onSand::after { background: rgba(70,59,46,.28); }

/* ============================ FULL-BLEED PHOTO BAND ============================ */
.photo-band { position: relative; width: 100%; aspect-ratio: 2.4 / 1; overflow: hidden; }
.photo-band img { width: 100%; height: 100%; object-fit: cover; }
.photo-band__cap {
  position: absolute; left: 0; right: 0; bottom: clamp(14px, 3vw, 28px); text-align: center;
  font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--cream); text-shadow: 0 1px 14px rgba(0,0,0,.4);
}

/* ============================ SCHEDULE ============================ */
.schedule { background: var(--sand); padding: clamp(56px, 7vw, 96px) 0; }
.sched-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--walnut); background: var(--cream); }
.sched-day--first { border-right: 1px solid var(--walnut); }
.sched-day__head { background: var(--sand); border-bottom: 1px solid var(--walnut); padding: 18px 28px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sched-day__head .pf { font-family: var(--pf); font-size: clamp(20px, 2.4vw, 26px); }
.sched-day__head .date { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: var(--olive); }
.sched-item { display: flex; gap: 20px; align-items: baseline; padding: 16px 28px; border-bottom: 1px solid var(--sand); }
.sched-item:last-child { border-bottom: 0; }
.sched-item__time { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--terracotta); min-width: 56px; flex-shrink: 0; }
.sched-item__title { font-family: var(--pf); font-size: 19px; line-height: 1.2; }
.sched-item__sub { font-family: var(--sp); font-size: 13.5px; color: var(--muted); margin-top: 3px; }
/* full-width footnote sitting under the whole two-column schedule grid */
.sched-note { font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; color: var(--muted); text-align: center; margin: 18px 0 0; }

/* ============================ FAQ ============================ */
.faq { background: var(--cream); padding: clamp(56px, 7vw, 96px) 0; }
.faq__grid { display: grid; grid-template-columns: 320px 1fr; gap: clamp(40px, 5vw, 72px); align-items: center; }
.faq__list { align-self: center; }
.faq__title { font-family: var(--pf); font-weight: 700; font-size: clamp(38px, 5.5vw, 64px); line-height: 0.96; letter-spacing: -0.5px; margin: 14px 0 28px; }
.faq__photo { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.faq__photo-cap { font-family: var(--sp); font-style: italic; font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.faq__item { display: flex; gap: clamp(16px, 2vw, 26px); align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--walnut); }
.faq__item:first-child { padding-top: 0; }
.faq__num { font-family: var(--pf); font-style: italic; color: var(--terracotta); font-size: clamp(24px, 3.5vw, 36px); line-height: 1; min-width: 40px; flex-shrink: 0; }
.faq__q { font-family: var(--pf); font-weight: 500; font-size: clamp(19px, 2.4vw, 24px); margin: 0; }
.faq__a { font-family: var(--sp); font-size: 15.5px; line-height: 1.72; margin: 10px 0 0; }

/* ============================ GIFTS ============================ */
.gifts { background: var(--walnut); color: var(--cream); padding: clamp(64px, 8vw, 104px) 0; text-align: center; }
.gifts__fig { width: 116px; height: auto; margin: 0 auto 18px; filter: invert(1); mix-blend-mode: screen; opacity: 0.85; }
.gifts__title { font-family: var(--pf); font-weight: 500; font-size: clamp(28px, 4.5vw, 46px); line-height: 1.15; margin: 0; text-wrap: balance; }
.gifts__body { font-family: var(--sp); font-size: 16.5px; line-height: 1.76; color: rgba(244,236,221,.86); margin: 0 auto; max-width: 580px; }
.gifts__registry { margin-top: 30px; }
.gifts__pending { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: rgba(244,236,221,.6); border: 1px solid var(--cream-30); display: inline-block; padding: 14px 26px; margin: 0; }
.gifts__close { font-family: var(--pf); font-style: italic; font-size: clamp(18px, 2.2vw, 23px); margin: 32px 0 0; }

/* ============================ RSVP (centred ticket) ============================ */
.rsvp { background: var(--cream); padding: clamp(64px, 8vw, 104px) 0 clamp(24px, 4vw, 40px); }
.rsvp__ticket { border: 1.5px solid var(--walnut); max-width: 640px; margin: 0 auto; background: var(--cream); }
.rsvp__head { text-align: center; padding: 40px 40px 24px; }
.rsvp__seal { width: 68px; height: 68px; margin: 0 auto 16px; color: var(--terracotta); }
.rsvp__head h2 { font-family: var(--pf); font-weight: 500; font-size: clamp(26px, 4vw, 40px); margin: 10px 0 0; }
.rsvp__deadline { font-family: var(--sp); font-style: italic; font-size: 16px; color: var(--olive); margin: 8px 0 0; }
.rsvp__perf { position: relative; border-top: 2px dashed var(--walnut); }
.rsvp__perf::before, .rsvp__perf::after { content: ""; position: absolute; top: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--cream); }
.rsvp__perf::before { left: -9px; }
.rsvp__perf::after { right: -9px; }
.rsvp__body { padding: 32px clamp(24px, 4vw, 44px) 40px; }

/* form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
/* Labels of differing length (one line vs two) would otherwise start their inputs at
   different heights, so the underlines across a row would not meet. Letting the label
   absorb the slack keeps every input in a row on the same baseline. */
.form-grid > .field { display: flex; flex-direction: column; }
.form-grid > .field > label { flex: 1 0 auto; }
.field { margin-top: 24px; }
.field--first { margin-top: 0; }
.field > label, .field > legend { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--olive); display: block; padding: 0; }
.req { color: var(--terracotta); }
.field input[type="text"], .field input[type="email"], .field input[type="number"], .field textarea {
  width: 100%; border: 0; border-bottom: 1.5px solid var(--walnut); background: transparent;
  font-family: var(--sp); font-size: 15.5px; color: var(--walnut); padding: 8px 2px; margin-top: 8px; border-radius: 0;
}
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); }
.field textarea { resize: vertical; min-height: 64px; }
.field input:focus, .field textarea:focus { outline: 0; border-bottom-color: var(--terracotta); }
fieldset.field { border: 0; margin-inline: 0; padding: 0; }

.attend-row { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.attend-btn { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; padding: 12px 26px; border: 1.5px solid var(--walnut); background: transparent; color: var(--walnut); cursor: pointer; transition: background 160ms, color 160ms; }
.attend-btn[aria-pressed="true"] { background: var(--walnut); color: var(--cream); }
.attend-btn.no[aria-pressed="true"] { background: var(--terracotta); border-color: var(--terracotta); color: var(--cream); }

.check-row { display: flex; gap: 22px; margin-top: 12px; flex-wrap: wrap; }
.check { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-family: var(--sp); font-size: 15px; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check__box { width: 16px; height: 16px; border: 1.5px solid var(--walnut); display: inline-block; flex-shrink: 0; }
.check input:checked + .check__box { background: var(--terracotta); border-color: var(--terracotta); }
.check input:focus-visible + .check__box { outline: 2px solid var(--terracotta); outline-offset: 2px; }

.rsvp__submit-row { margin-top: 28px; text-align: center; }
.field__error { color: var(--terracotta); font-family: var(--sp); font-size: 13.5px; margin: 6px 0 0; }
.rsvp__status { text-align: center; font-family: var(--sp); font-size: 15.5px; margin-top: 16px; min-height: 1.2em; }
.rsvp__status.error { color: var(--terracotta); }
.rsvp__status.ok { color: var(--olive); }

/* ============================ CLOSING PHOTO MOMENT ============================ */
.closing { background: var(--cream); text-align: center; padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); }
.closing__frame { width: clamp(220px, 34vw, 360px); margin: 0 auto; }
.closing__frame img { width: 100%; aspect-ratio: 1.2 / 1; object-fit: cover; }
.closing__line { font-family: var(--pf); font-style: italic; font-size: clamp(20px, 2.6vw, 30px); margin: 26px 0 0; }

/* ============================ FOOTER ============================ */
.footer { background: var(--olive); color: var(--cream); padding: clamp(56px, 7vw, 80px) 0 40px; }
.footer__head { text-align: center; }
.footer__head h2 { font-family: var(--pf); font-weight: 500; font-size: clamp(28px, 4.5vw, 44px); margin: 0; }
.footer__lead { font-family: var(--sp); font-size: 15px; color: rgba(244,236,221,.78); margin: 10px auto 0; max-width: 420px; text-align: center; }
.footer__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 560px; margin: clamp(30px, 4vw, 42px) auto 0; }
.coord { border: 1px solid var(--cream-30); padding: 24px 26px; }
.coord__role { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; color: var(--cream-55); }
.coord__name { font-family: var(--pf); font-size: 22px; margin-top: 8px; }
.coord__contact { font-family: var(--sp); font-size: 14px; color: rgba(244,236,221,.82); margin-top: 8px; line-height: 1.7; }
.coord__contact a { text-decoration: none; }
.coord__contact a:hover { text-decoration: underline; }
.footer__seal-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: clamp(36px, 5vw, 50px); }
.footer__seal { width: 70px; height: 70px; color: var(--cream-70); }
.footer__names { font-family: var(--pf); font-weight: 500; font-size: clamp(24px, 3.5vw, 34px); }
.footer__names em { font-style: italic; }
.footer__credit { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; color: rgba(244,236,221,.65); text-transform: uppercase; }

/* ============================ REVEAL ============================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 860px) {
  .nav__links a:not(.nav__cta) { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav__mobile { display: none; flex-direction: column; gap: 4px; padding: 8px var(--gutter) 18px; background: var(--olive); border-bottom: 1px solid rgba(244,236,221,.2); }
  .nav__mobile.open { display: flex; }
  .nav__mobile a { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--cream); text-decoration: none; padding: 10px 0; }
  .nav__mobile .btn { margin-top: 8px; text-align: center; }

  .hero__photo { max-width: min(86vw, 460px); }

  .details__grid { grid-template-columns: 1fr; }
  .detail-card { border-right: 0; border-bottom: 1px solid var(--hairline); padding: 36px 24px; }
  .detail-card:last-child { border-bottom: 0; }

  .sched-grid { grid-template-columns: 1fr; }
  .sched-day--first { border-right: 0; border-bottom: 1px solid var(--walnut); }

  .faq__grid { grid-template-columns: 1fr; gap: 4px; }
  .faq__aside { position: static; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: end; margin-bottom: 28px; }
  .faq__title { margin-bottom: 0; }
  .faq__photo { width: 132px; aspect-ratio: 3 / 4; }
  .faq__photo-cap { display: none; }

  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .form-grid .field { margin-top: 24px; }
  .footer__cards { grid-template-columns: 1fr; }

  .scene-break { height: clamp(96px, 22vw, 130px); }
  .scene-break__fig { height: clamp(86px, 20vw, 118px); }
  .photo-band { aspect-ratio: 1.7 / 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}
