/* Homepage — bold, scroll-driven. One dark world: warm night, sunset copper,
   cream type. Extra-wide grotesk in two weights (light / heavy) carries the
   voice; an italic serif ampersand is the only soft note. */

.home {
  /* Light, warm palette to match the cards (names kept: --night is the page, --cream the text) */
  --night: #f7f0e5;
  --night-2: #efe5d6;
  --cream: #2a211b;
  --cream-2: #6b5f55;
  --copper: #c4733a;
  --copper-ink: #1a110b;
  --amber: #c2611f;
  --sun: #f2a03d;
  --hair: rgb(42 33 27 / 0.14);
  /* Fonts from the C&N design: Instrument Serif for display, Manrope for text */
  --wide: "Instrument Serif", Georgia, serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --gx: max(20px, env(safe-area-inset-left, 0px), 4vw);
  --gxr: max(20px, env(safe-area-inset-right, 0px), 4vw);
  color-scheme: light;
  background: var(--night);
  color: var(--cream);
  font-family: var(--wide);
  font-stretch: 100%;
  overflow-x: clip;
}
.home ::selection { background: var(--amber); color: var(--night); }
.home a:hover { color: var(--amber); }

/* Wide display voice */
.w-light, .w-bold, .hero-names, .count-days, .band-track, .rows .row-title, .footer-giant, .day-card h3, .intro-names {
  font-family: var(--wide);
  font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.w-light { font-weight: 250; }
.w-bold { font-weight: 800; }
.home h2 { font-size: clamp(2.4rem, 6.5vw, 6.5rem); line-height: 0.92; margin: 0; text-wrap: balance; }
.eyebrow-bold { margin: 0 0 18px; font: 500 0.78rem/1.4 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber); }

/* ── Intro ─────────────────────────────────────────── */
.intro {
  position: fixed; inset: 0; z-index: 100;
  background: var(--night);
  display: grid; place-items: center; align-content: center; gap: 22px;
  padding: 0 var(--gx);
}
.intro-sky { position: relative; width: min(56vw, 360px); height: min(28vw, 180px); overflow: hidden; }
.intro-sun {
  position: absolute; left: 50%; bottom: 0; width: 46%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, 50%);
  background: radial-gradient(circle at 50% 40%, #ffd08a, var(--amber) 45%, var(--copper) 100%);
  box-shadow: 0 0 80px 20px rgb(242 160 61 / 0.35);
}
.intro-horizon { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--cream); opacity: 0.6; }
.intro-names { margin: 0; font-weight: 800; font-size: clamp(1.6rem, 5vw, 3.4rem); text-align: center; }
.intro-names .ch { display: inline-block; }
.intro-date { margin: 0; font: 500 0.85rem/1 var(--mono); letter-spacing: 0.4em; color: var(--cream-2); }

/* ── Top bar ───────────────────────────────────────── */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: calc(16px + env(safe-area-inset-top, 0px)) var(--gxr) 16px var(--gx);
  mix-blend-mode: difference; color: #fff;
}
.bar a { color: #fff; text-decoration: none; }
.bar-mark { font: 800 1.05rem/1 var(--wide); font-stretch: 125%; letter-spacing: 0.02em; }
.bar-nav { display: flex; gap: 22px; align-items: center; }
.bar-nav a { font: 500 0.72rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }
.bar-cta { border: 1px solid #fff; padding: 9px 14px; border-radius: 999px; }
@media (max-width: 720px) { .bar-nav a:not(.bar-cta) { display: none; } }

/* ── Hero ──────────────────────────────────────────── */
.hero { position: relative; height: 230vh; }
.hero-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; }
.hero-photo { position: absolute; inset: 0; margin: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: brightness(0.32) saturate(0.85); transform: scale(1.18); transform-origin: 50% 40%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(18 15 13 / 0.55) 0%, rgb(18 15 13 / 0) 30%, rgb(18 15 13 / 0) 60%, var(--night) 100%); }
.hero-kicker {
  position: absolute; top: calc(78px + env(safe-area-inset-top, 0px)); left: var(--gx); right: var(--gxr); margin: 0;
  font: 500 0.78rem/1.5 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber);
}
.hero-names {
  position: relative; z-index: 1; align-self: center; margin: 0;
  display: grid; justify-items: start;
  padding: 0 var(--gxr) 0 var(--gx);
  font-size: clamp(3.6rem, 15.5vw, 17rem); font-weight: 800; line-height: 0.82;
}
.hn { display: block; will-change: transform; }
.hn-2 { justify-self: end; }
.hn-amp { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; font-stretch: 100%; color: var(--amber); font-size: 0.75em; line-height: 0.9; justify-self: center; }
.hero-foot {
  position: absolute; left: var(--gx); right: var(--gxr); bottom: calc(26px + env(safe-area-inset-bottom, 0px));
  display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap;
  font: 500 0.8rem/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream);
}
.hero-foot p { margin: 0; }
.scroll-cue { display: inline-flex; gap: 10px; align-items: center; color: var(--cream-2); }
.scroll-cue::after { content: ""; width: 1px; height: 36px; background: linear-gradient(var(--cream), transparent); animation: cue 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ── Countdown ─────────────────────────────────────── */
.count { padding: clamp(80px, 14vw, 180px) var(--gxr) clamp(80px, 12vw, 160px) var(--gx); display: grid; gap: 10px; }
.count-big { display: flex; align-items: baseline; gap: 0.12em; line-height: 0.78; }
.count-days { font-weight: 800; font-size: clamp(9rem, 38vw, 34rem); color: var(--cream); font-variant-numeric: tabular-nums; letter-spacing: -0.05em; }
.count-unit { font: italic 400 clamp(2.5rem, 9vw, 8rem)/1 var(--serif); color: var(--amber); }
.count-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 900px; border-top: 1px solid var(--hair); margin-top: 24px; }
.count-row > div { display: grid; gap: 6px; padding: 18px 0; }
.count-row > div + div { padding-left: 20px; border-left: 1px solid var(--hair); }
.count-num { font: 800 clamp(2.2rem, 6vw, 4.5rem)/1 var(--wide); font-stretch: 125%; font-variant-numeric: tabular-nums; }
.count-label { font: 500 0.72rem/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--cream-2); }
.cd-after { font: 800 clamp(2rem, 6vw, 4rem)/1 var(--wide); font-stretch: 125%; text-transform: uppercase; color: var(--amber); }

/* ── Marquee band ──────────────────────────────────── */
.band { background: var(--copper); color: var(--copper-ink); overflow: hidden; padding: clamp(18px, 3vw, 34px) 0; }
.band-track { display: flex; width: max-content; font-weight: 800; font-size: clamp(2.2rem, 7vw, 6rem); line-height: 1; white-space: nowrap; will-change: transform; }
.band-track span { padding-right: 0.6em; }
.band-track .dot { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; }

/* ── Statement ─────────────────────────────────────── */
.statement { padding: clamp(100px, 16vw, 220px) var(--gxr) clamp(100px, 16vw, 220px) var(--gx); }
.statement-text { margin: 0 auto; max-width: 22ch; font: 400 clamp(2rem, 5.2vw, 4.6rem)/1.12 var(--serif); letter-spacing: -0.01em; text-wrap: pretty; }

/* ── The day (horizontal on desktop) ───────────────── */
.day { position: relative; }
.day-pin { padding: clamp(60px, 9vw, 120px) 0; display: grid; gap: clamp(32px, 5vw, 60px); overflow: hidden; }
.day-head { padding: 0 var(--gxr) 0 var(--gx); }
.day-track { display: flex; gap: clamp(16px, 2vw, 28px); padding: 0 var(--gxr) 0 var(--gx); width: max-content; will-change: transform; }
.day-card {
  width: min(78vw, 560px); min-height: min(64vh, 560px);
  background: var(--night-2); border: 1px solid var(--hair);
  padding: clamp(22px, 3vw, 36px); display: grid; grid-template-rows: auto auto auto 1fr; gap: 14px;
}
.day-card .time { font: 800 clamp(3.5rem, 8vw, 7rem)/0.85 var(--wide); font-stretch: 125%; color: var(--amber); letter-spacing: -0.03em; }
.day-card h3 { font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1; margin: 0; }
.day-card p { color: var(--cream-2); max-width: 40ch; margin: 0; }
.day-card ol { list-style: none; margin: 0; padding: 0; align-self: end; border-top: 1px solid var(--hair); }
.day-card li { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); padding: 9px 0; border-bottom: 1px solid var(--hair); font-size: 0.95rem; }
.day-card li span { font: 500 0.75rem/1.6 var(--mono); color: var(--amber); }
.day-card.alt { background: var(--copper); color: var(--copper-ink); border-color: transparent; }
.day-card.alt .time { color: var(--copper-ink); }
.day-card.alt p { color: rgb(26 17 11 / 0.78); }
.day-card.alt ol, .day-card.alt li { border-color: rgb(26 17 11 / 0.2); }
.day-card.alt li span { color: var(--copper-ink); }
@media (max-width: 899px) {
  .day-track { width: auto; flex-direction: column; }
  .day-card { width: 100%; min-height: 0; }
}

/* ── Index rows (facts, updates) ───────────────────── */
.index { padding: clamp(80px, 12vw, 160px) var(--gxr) clamp(60px, 10vw, 140px) var(--gx); }
.index-head { margin-bottom: clamp(32px, 5vw, 64px); }
.rows { border-top: 1px solid var(--hair); }
.row {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 8px 40px; align-items: center;
  padding: clamp(16px, 2.2vw, 28px) 0; border-bottom: 1px solid var(--hair); position: relative;
}
.row::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.row:hover::after { transform: scaleX(1); }
.row-title { margin: 0; font-weight: 250; font-size: clamp(1.8rem, 5vw, 4.4rem); line-height: 0.95; transition: font-weight .35s, color .35s; }
.row:hover .row-title { font-weight: 800; color: var(--amber); }
.row-body { margin: 0; color: var(--cream-2); max-width: 48ch; }
.row-body strong { color: var(--cream); font-weight: 600; display: block; margin-bottom: 4px; }
.row-body a { color: var(--amber); }
.row-meta { display: block; font: 500 0.72rem/1.6 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); margin-bottom: 6px; }
@media (max-width: 700px) { .row { grid-template-columns: 1fr; } }
.calendar { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 32px; }
.pill { display: inline-flex; align-items: center; padding: 14px 22px; border-radius: 999px; background: var(--cream); color: var(--night); border: 1px solid var(--cream); font: 500 0.75rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: transform .25s, background .25s, color .25s; }
.pill:hover { transform: translateY(-2px); background: var(--amber); border-color: var(--amber); color: var(--night) !important; }
.pill.ghost { background: transparent; color: var(--cream); border-color: var(--hair); }

/* ── Photo out of the sun ──────────────────────────── */
.reveal-photo { position: relative; height: 220vh; }
.reveal-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.reveal-frame { position: absolute; inset: 0; clip-path: circle(5% at 29% 31%); }
.reveal-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 35%; }
.reveal-caption { position: relative; z-index: 1; margin: 0; padding: 0 var(--gx); text-align: center; font-size: clamp(2rem, 6.5vw, 6rem); line-height: 0.95; mix-blend-mode: difference; color: #fff; }
.reveal-caption .w-light, .reveal-caption .w-bold { display: block; }

/* ── RSVP ──────────────────────────────────────────── */
.rsvp-band { background: var(--copper); color: var(--copper-ink); padding: clamp(80px, 12vw, 160px) var(--gxr) clamp(80px, 12vw, 160px) var(--gx); }
.rsvp-band .eyebrow-bold { color: var(--copper-ink); }
.rsvp-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 900px) { .rsvp-grid { grid-template-columns: 1fr; } }
.rsvp-intro h2 { margin-bottom: 20px; }
.rsvp-intro p { font-size: 1.15rem; }
.rsvp-card { background: var(--night); color: var(--cream); padding: clamp(24px, 4vw, 40px); min-width: 0; border-radius: 4px; }
.rsvp-stack { display: grid; gap: 22px; }
.rsvp-card .field label, .rsvp-card .field legend { color: var(--cream-2); }
.rsvp-card input, .rsvp-card select, .rsvp-card textarea { color: var(--cream); border-color: var(--cream-2); }
.rsvp-card textarea { border-color: var(--hair); }
.rsvp-card .choice label { color: var(--cream); border-color: var(--hair); }
.rsvp-card .choice label:has(input:checked) { border-color: var(--amber); background: rgb(242 160 61 / 0.1); }
.rsvp-card .btn { background: var(--cream); color: var(--night); border-color: var(--cream); border-radius: 999px; }
.rsvp-card .btn:hover { background: var(--amber); border-color: var(--amber); color: var(--night); }
.rsvp-card .btn.ghost { background: transparent; color: var(--cream); border-color: var(--hair); }
.rsvp-card .notice { color: var(--cream-2); }
.rsvp-card .notice.error { color: #ff9c86; border-color: #ff9c86; }
.rsvp-greeting, .rsvp-thanks { font: 400 1.6rem/1.25 var(--serif); }
.rsvp-card .row { display: flex; gap: 12px; flex-wrap: wrap; padding: 0; border: 0; }
.rsvp-card .row::after { display: none; }

/* ── FAQ ───────────────────────────────────────────── */
.faq { border-top: 1px solid var(--hair); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; font: 250 clamp(1.3rem, 3vw, 2.4rem)/1.1 var(--wide); font-stretch: 125%; text-transform: uppercase; transition: font-weight .3s, color .3s; }
.faq summary:hover, .faq details[open] summary { font-weight: 700; color: var(--amber); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.6rem/1 var(--mono); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; margin: 0; color: var(--cream-2); max-width: 62ch; font-size: 1.05rem; }

/* ── Footer ────────────────────────────────────────── */
.site-footer { padding: 40px 0 calc(28px + env(safe-area-inset-bottom, 0px)); overflow: hidden; border-top: 1px solid var(--hair); }
.footer-giant { margin: 0; font-weight: 800; font-size: 23.5vw; line-height: 0.8; letter-spacing: -0.04em; text-align: center; color: transparent; -webkit-text-stroke: 1px rgb(243 236 226 / 0.35); white-space: nowrap; }
.footer-row { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding: 28px var(--gxr) 0 var(--gx); font: 500 0.75rem/1.6 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream-2); }
.footer-row p { margin: 0; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--cream); }

/* Reduced motion: everything sits still and fully visible */
@media (prefers-reduced-motion: reduce) {
  .hero { height: auto; }
  .hero-pin { position: relative; }
  .hero-photo img { filter: brightness(0.6); transform: none; }
  .reveal-photo { height: auto; }
  .reveal-pin { position: relative; height: 80vh; }
  .reveal-frame { clip-path: none; }
  .scroll-cue::after { animation: none; }
}
.home .hero { padding-block: 0; border-bottom: 0; }
.home section[id] { scroll-margin-top: 0; }

/* QA fixes */
.reveal-caption { mix-blend-mode: normal; color: var(--cream); text-shadow: 0 2px 30px rgb(0 0 0 / 0.55); font-size: clamp(1.6rem, 7.2vw, 6rem); }
@media (min-width: 900px) {
  .day-pin { min-height: 100vh; min-height: 100svh; align-content: center; padding: 84px 0 36px; gap: 28px; }
  .day h2 { font-size: clamp(2rem, 4.4vw, 4.6rem); }
  .day-card { min-height: 0; height: min(calc(100svh - 300px), 560px); overflow: hidden; }
  .day-card .time { font-size: clamp(3rem, 6vw, 5.5rem); }
  .day-card li { padding: 6px 0; font-size: 0.875rem; }
}

/* Two events: side by side, no horizontal scroll */
.day-track { width: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.day-card { width: auto; height: auto !important; min-height: min(70vh, 620px); overflow: visible !important; }
.day-card .time { font-size: clamp(4rem, 10vw, 9rem) !important; }
@media (max-width: 899px) { .day-track { grid-template-columns: 1fr; } .day-card { min-height: 0; } }


/* ── Typography: C&N fonts on the bold layout ──────── */
.home { font-family: var(--sans); font-synthesis: none; }
.w-light, .w-bold, .hero-names, .count-days, .band-track, .rows .row-title, .footer-giant, .day-card h3, .intro-names,
.count-num, .day-card .time, .bar-mark, .cd-after, .faq summary, .reveal-caption {
  font-family: var(--serif); font-weight: 400; font-stretch: normal; text-transform: none; letter-spacing: -0.015em;
}
.w-light { font-style: normal; }
.w-bold { font-style: italic; }
.home h2 { line-height: 0.95; }
.hero-names { font-size: clamp(4.4rem, 17vw, 19rem); line-height: 0.86; }
.hn-amp { font-size: 0.7em; }
.intro-names { font-size: clamp(2.2rem, 6vw, 4.2rem); }
.bar-mark { font-size: 1.5rem; letter-spacing: 0; }
.count-days { letter-spacing: -0.03em; }
.count-num { font-size: clamp(2.6rem, 6.5vw, 5rem); }
.band-track { font-size: clamp(2.4rem, 7.5vw, 6.5rem); }
.band-track span:nth-child(4n+3) { font-style: italic; }
.day-card .time { letter-spacing: -0.02em; }
.day-card h3 { font-size: clamp(2rem, 3.6vw, 3rem); }
.row-title { font-size: clamp(2rem, 5.2vw, 4.6rem); transition: color .35s, transform .35s; }
.row:hover .row-title { font-weight: 400; font-style: italic; color: var(--amber); transform: translateX(8px); }
.faq summary { font-size: clamp(1.5rem, 3.2vw, 2.6rem); }
.faq summary:hover, .faq details[open] summary { font-weight: 400; font-style: italic; }
.footer-giant { font-style: italic; letter-spacing: -0.03em; }
.reveal-caption { font-size: clamp(2.4rem, 8vw, 7rem); line-height: 0.95; }
.reveal-caption .w-bold { color: var(--amber); }
/* Labels and small text in Manrope */
.eyebrow-bold, .hero-kicker, .hero-foot, .bar-nav a, .count-label, .intro-date, .row-meta, .day-card li span, .pill, .footer-row { font-family: var(--sans); font-weight: 700; }
.day-card li { font-family: var(--sans); }
.rsvp-greeting, .rsvp-thanks { font-family: var(--serif); }
.footer-giant { color: rgb(243 236 226 / 0.09); -webkit-text-stroke: 0; font-size: 26vw; }


/* ── Light theme: keep text over the photos light ─────── */
.hero-names, .hero-foot, .hero-foot p { color: #fff; }
.hero-names { text-shadow: 0 2px 40px rgb(0 0 0 / 0.25); }
.hn-amp { color: var(--sun); }
.hero-kicker { color: #f6c27a; }
.scroll-cue { color: rgb(255 255 255 / 0.8); }
.scroll-cue::after { background: linear-gradient(#fff, transparent); }
.hero-shade { background: linear-gradient(180deg, rgb(0 0 0 / 0.38) 0%, rgb(0 0 0 / 0) 32%, rgb(0 0 0 / 0) 62%, rgb(0 0 0 / 0.45) 100%); }
.hero-photo img { filter: brightness(0.62) saturate(0.95); }
.reveal-caption { color: #fff; }
.reveal-caption .w-bold { color: #f6c27a; }
.reveal-pin { background: var(--night); }
.intro { background: var(--night); }
.intro-names { color: var(--cream); }
.intro-horizon { background: var(--cream); opacity: 0.5; }
.rsvp-card { background: var(--night); color: var(--cream); box-shadow: 0 30px 60px -20px rgb(26 17 11 / 0.35); }
.rsvp-card .choice label:has(input:checked) { border-color: var(--amber); background: rgb(194 97 31 / 0.08); }
.rsvp-card .notice.error { color: #a33a14; border-color: #a33a14; }
.footer-giant { color: rgb(42 33 27 / 0.07); }
.day-card { border-color: var(--hair); }
.home ::selection { background: var(--sun); color: #2a211b; }
.pill:hover { background: var(--sun); border-color: var(--sun); color: #2a211b !important; }


/* ── The ring: black and white, colour returns on scroll ── */
.moment { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: clamp(28px, 5vw, 80px);
  padding: clamp(40px, 8vw, 120px) var(--gxr) clamp(80px, 12vw, 160px) var(--gx); }
.moment-photo { margin: 0; position: relative; overflow: hidden; aspect-ratio: 4 / 5; max-height: 88vh; max-width: 100%; border-radius: 2px; }
.moment-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; filter: grayscale(1) contrast(1.06) brightness(1.02); transform: scale(1.06); }
.moment-copy { display: grid; gap: 18px; min-width: 0; }
.moment-copy h2 { font-size: clamp(3.2rem, 9vw, 8.5rem); line-height: 0.9; }
.moment-copy .w-bold { color: var(--amber); }
.moment-text { margin: 0; max-width: 32ch; font: 400 clamp(1.15rem, 1.8vw, 1.45rem)/1.5 var(--sans); color: var(--cream-2); }
@media (max-width: 899px) { .moment { grid-template-columns: 1fr; } .moment-photo { max-height: 80vh; } }
@media (prefers-reduced-motion: reduce) { .moment-photo img { filter: none; transform: none; } }
