/* Concept 4 — Sí
   A meld of Concept 1 (Cathedral Editorial) and Concept 3 (Golden Hour):
   the light, architectural palette of 1, structured into the alternating
   photo/text "spreads" of 3 — with a distinct textured background instead
   of flat cream, and the S+I / "sí" wordplay as the signature moment. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Public+Sans:wght@300;400;500;600&display=swap');


@font-face {
  font-family: 'MaterialDings';
  src: url('MaterialDings.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
:root {
  --cream: #FAF3E3;
  --cream-rose: #F1E2D6;
  --cream-gold: #F5E8C4;
  --ink: #241F18;
  --ink-soft: #4A4239;
  --navy: #1D2A47;
  --navy-deep: #131C31;
  --gold: #A3813A;
  --gold-soft: #C9A45E;
  --oxblood: #6E2A28;
  --line: rgba(36, 31, 24, 0.14);
  --line-gold: rgba(163, 129, 58, 0.45);

  --font-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* Distinct textured ground: a soft warm gradient plus a faint engraved-linen
   dot lattice, so the page reads as stationery rather than a flat tint. */
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(163,129,58,0.16) 1px, transparent 0),
    linear-gradient(160deg, #FCF7EC 0%, #F7EED9 45%, #F1E2D0 100%);
  background-size: 22px 22px, 100% 100%;
  background-attachment: fixed, fixed;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); display: inline-block; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; margin: 0; color: var(--navy-deep); letter-spacing: 0.005em; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy-deep); color: #fff; padding: 0.75em 1.25em; z-index: 200; }
.skip-link:focus { left: var(--gutter); top: 0.75rem; }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 243, 227, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 0.75rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--navy-deep); min-width: 0; }
.brand svg { width: 32px; height: 38px; color: var(--gold); flex-shrink: 0; }
.brand-names { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.03em; white-space: nowrap; }

/* Below the point where name + language toggle + menu button no longer
   fit on one comfortable line, drop the wordmark text and keep just the
   SI monogram — the names are already the first thing in the hero. */
@media (max-width: 560px) {
  .site-nav .wrap { height: 60px; }
  .brand-names { display: none; }
  .brand svg { width: 30px; height: 35px; }
}
.nav-links { display: none; gap: 1.3rem; list-style: none; margin: 0; padding: 0; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; white-space: nowrap; }
.nav-links a { text-decoration: none; color: var(--ink-soft); padding-bottom: 4px; border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--oxblood); border-color: var(--gold); }
.nav-right { display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.nav-cta { display: none; }
.nav-cta a {
  text-decoration: none; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
  color: var(--cream); background: var(--navy-deep); padding: 0.7em 1.1em; border: 1px solid var(--navy-deep);
  white-space: nowrap; transition: background 0.2s, color 0.2s;
}
.nav-cta a:hover { background: transparent; color: var(--navy-deep); }

.lang-toggle {
  display: inline-flex; align-items: center; border: 1px solid var(--line-gold); border-radius: 999px;
  overflow: hidden; font-size: 0.72rem; letter-spacing: 0.06em; font-weight: 700; background: var(--cream);
}
.lang-toggle button {
  border: none; background: transparent; color: var(--ink-soft); padding: 0.45em 0.85em; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; letter-spacing: 0.06em;
}
.lang-toggle button.active { background: var(--navy-deep); color: var(--cream); }
.lang-toggle button:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.lang-toggle button[data-lang-btn="wd"] { padding-left: 0.7em; padding-right: 0.7em; font-size: 0.85rem; }

/* Wingdings mode — a just-for-fun third toggle. Text content is untouched;
   this only swaps the rendered font to the bundled MaterialDings webfont,
   so the effect works consistently across desktop and mobile devices. */
body.lang-wd, body.lang-wd * {
  font-family: 'MaterialDings', sans-serif !important;
}
body.lang-wd .lang-toggle button,
body.lang-wd .nav-toggle {
  font-family: var(--font-body) !important;
}

.nav-toggle { background: none; border: 1px solid var(--line); width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle svg { width: 18px; height: 18px; }
.mobile-menu { display: none; flex-direction: column; border-top: 1px solid var(--line); background: var(--cream); max-height: calc(100vh - 60px); overflow-y: auto; }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 1rem var(--gutter); text-decoration: none; border-bottom: 1px solid var(--line); color: var(--ink); font-family: var(--font-display); font-size: 1.05rem; }
.mobile-menu .lang-toggle { margin: 1rem var(--gutter); align-self: flex-start; }
.mobile-menu-cta {
  background: var(--navy-deep); color: var(--cream) !important; font-family: var(--font-body) !important;
  font-size: 0.78rem !important; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  text-align: center; border-bottom-color: var(--navy-deep) !important;
}

@media (min-width: 561px) and (max-width: 1059px) {
  .mobile-menu { max-height: calc(100vh - 66px); }
}

@media (min-width: 1060px) {
  .site-nav .wrap { height: 74px; }
  .nav-links { display: flex; }
  .nav-cta { display: block; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* ---------- Hero (distinct gold-tinted band + sí mark) ---------- */
.hero { position: relative; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 6rem); overflow: hidden; background: var(--cream-gold); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(circle at 50% 0%, rgba(163,129,58,0.22), transparent 60%);
}
.hero .wrap { position: relative; display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.05fr 0.95fr; } }

.si-mark { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.5rem; }
.si-mark svg { width: 44px; height: 44px; color: var(--gold); flex-shrink: 0; }
.si-caption { font-family: var(--font-display); font-style: italic; font-size: 0.95rem; color: var(--oxblood); line-height: 1.3; }
.si-caption em { font-style: italic; color: var(--gold); }

.hero-names { font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 1.02; }
.hero-amp { display: inline-block; font-style: italic; color: var(--gold); font-weight: 400; padding: 0 0.06em; }
.hero-date { margin-top: 1.4rem; font-family: var(--font-display); font-size: clamp(1.15rem, 2.4vw, 1.5rem); color: var(--oxblood); letter-spacing: 0.02em; }
.hero-venue { margin-top: 0.9rem; font-size: 1rem; color: var(--ink-soft); max-width: 34ch; }
.hero-venue strong { color: var(--navy-deep); font-weight: 600; }
.hero-note { margin-top: 0.6rem; font-size: 0.95rem; color: var(--ink-soft); }

.btn-primary {
  margin-top: 2.2rem; display: inline-flex; align-items: center; gap: 0.75em; text-decoration: none;
  background: var(--navy-deep); color: var(--cream); font-family: var(--font-body); font-weight: 600;
  font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; padding: 1.05em 2em;
  border: 1px solid var(--navy-deep); transition: background 0.2s, color 0.2s;
}
.btn-primary:hover, .btn-primary:focus-visible { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.btn-primary svg { width: 14px; height: 14px; }

.hero-frame {
  position: relative; border-top-left-radius: clamp(90px, 18vw, 220px); border-top-right-radius: clamp(90px, 18vw, 220px);
  overflow: hidden; border: 1px solid var(--line-gold); box-shadow: 0 30px 60px -30px rgba(19, 28, 49, 0.35);
}
.hero-frame img { width: 100%; height: clamp(340px, 50vw, 600px); object-fit: cover; object-position: center 30%; }
.hero-frame::after {
  content: ""; position: absolute; inset: 0; border-top-left-radius: clamp(90px, 18vw, 220px); border-top-right-radius: clamp(90px, 18vw, 220px);
  box-shadow: inset 0 0 0 10px var(--cream-gold); pointer-events: none;
}

/* ---------- Spreads (Concept 3's rhythm, on distinct light bands) ---------- */
section.spread-section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.tone-a { background: var(--cream); }
.tone-b { background: var(--cream-rose); }
.spread { display: grid; gap: clamp(2rem, 5vw, 3rem); align-items: center; }
@media (min-width: 860px) {
  .spread { grid-template-columns: 1fr 1fr; }
  .spread.reverse .spread-photo { order: 2; }
  .spread.reverse .spread-text { order: 1; }
}
.spread-photo { border-radius: 4px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 46px -28px rgba(19,28,49,0.3); }
.spread-photo img { width: 100%; height: clamp(300px, 40vw, 460px); object-fit: cover; }
.spread-text h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-top: 0.7rem; line-height: 1.1; }
.spread-text p { margin-top: 1.1rem; color: var(--ink-soft); max-width: 46ch; font-size: 1.02rem; }

/* The Cathedral photo (proposal-2) is a SUPPORTING photo, not the feature
   image the hero is — it's deliberately smaller and narrower than the
   column it sits in, rather than stretched to fill it.
   It previously shared the generic vw-driven height clamp above, which
   is fine for a photo meant to span its whole column, but that clamp's
   height and the column's width scale independently of each other. Across
   the range where ".spread" is still single-column but already wide
   (roughly 700-859px, just under the two-column breakpoint), that mismatch
   produced a very shallow, wide box — shallow enough to crop into both
   people's heads. Sizing this photo by a fixed aspect-ratio instead ties
   its height directly to its own width, so the crop proportion — and the
   safety margin above their heads — stays the same at every viewport,
   with no breakpoint-dependent gap. 3:4 stays close to the source photo's
   own portrait proportions, so cropping is minimal: it trims mostly sky
   and treetop, not the chapel, the entrance arch, or the couple. */
#the-day .spread-photo {
  width: 100%;
  max-width: clamp(240px, 45vw, 340px);
  margin: 0 auto;
}
#the-day .spread-photo img {
  height: auto;
  aspect-ratio: 3 / 4;
  object-position: 50% 100%;
}

.spread-text p.spread-datetime {
  font-family: var(--font-display); font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: var(--oxblood); font-weight: 500; letter-spacing: 0.01em; max-width: none;
}

/* Photo break: a contained landscape editorial crop, not a full-bleed band
   or a tall portrait block. The source is a 1333x2000 portrait; a 3:2 box
   at max-width 960px needs only ~44% of the source's height (well within
   native resolution at any reasonable viewport — see the width math above,
   width always drives the scale for a landscape box over a portrait
   source), so it stays sharp while keeping the vertical footprint compact. */
.photo-break { padding: clamp(2rem, 5vw, 3rem) 0; }
.photo-break-wrap { display: flex; justify-content: center; }
.photo-break-figure {
  margin: 0; width: 100%; max-width: 960px; aspect-ratio: 3 / 2;
  border-radius: 4px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 24px 46px -28px rgba(19,28,49,0.3);
}
.photo-break-figure img { width: 100%; height: 100%; object-fit: cover; object-position: center 57%; }

/* ---------- Invitation ---------- */
/* #invitation-form is now the <form> itself, wrapping the #invitation and
   #music sections — it carries no visual styling of its own (that's still
   .invitation-shell below), just a margin reset in case a browser's UA
   stylesheet ever adds one to <form>. */
#invitation-form { margin: 0; }
/* Netlify honeypot field: hidden from guests, still present for bots that
   blindly fill every input — see data-netlify-honeypot on the form. */
.hidden { display: none; }
.invitation-shell {
  background: var(--cream); border: 1px solid var(--line-gold); padding: clamp(1.75rem, 5vw, 3.25rem); position: relative;
}
.invitation-shell::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--line); pointer-events: none; }
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-top: 0.8rem; line-height: 1.08; }
.section-head p { margin-top: 1.1rem; color: var(--ink-soft); font-size: 1.02rem; max-width: 56ch; }

.form-grid { display: grid; gap: 1.25rem; margin-top: 1rem; }
@media (min-width: 700px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .field-wide { grid-column: 1 / -1; } }
.field label { display: block; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--ink-soft); margin-bottom: 0.5rem; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: var(--cream-rose);
  border: 1px solid var(--line); padding: 0.9em 1em;
  /* 16px+ so iOS Safari doesn't auto-zoom the page when a field is focused. */
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.field textarea { resize: vertical; min-height: 3.2em; }
.field-optional { text-transform: none; letter-spacing: normal; font-weight: 400; }
.field-hint { margin: 0.55rem 0 0; font-size: 0.82rem; font-style: italic; color: var(--ink-soft); }

.field-radio-group { margin-top: 1.75rem; }
.field-radio-group > span { display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--navy-deep); margin-bottom: 0.9rem; }

/* The attendance choices sit right under the name fields, ahead of the
   address block — the section heading ("Will you celebrate with us?")
   already asks the question, so this is a short structural label, not
   another question, styled like the small field labels above it rather
   than the larger serif prompts used for the travel/music questions. */
.field-radio-group.attendance-group > span.field-label-small {
  font-family: var(--font-body); font-size: 0.74rem; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 600; color: var(--ink-soft); margin-bottom: 0.75rem;
}
.field-radio-group.attendance-group + .form-grid { margin-top: 1.75rem; }

/* Mobile-first: full-width, bordered rows with generous padding, so the
   whole row is the tap target rather than the small circle alone. */
.radio-row { display: flex; flex-direction: column; gap: 0.7rem; }
.radio-row label {
  display: flex; align-items: center; gap: 0.85em; font-size: 1rem; color: var(--ink); cursor: pointer;
  padding: 0.95em 1.1em; border: 1px solid var(--line); background: var(--cream-rose);
}
.radio-row input { accent-color: var(--navy); width: 22px; height: 22px; flex-shrink: 0; }

@media (min-width: 700px) {
  .radio-row { flex-direction: row; flex-wrap: wrap; gap: 0.75rem 1.5rem; }
  .radio-row label { padding: 0; border: none; background: none; font-size: 0.94rem; color: var(--ink-soft); }
  .radio-row input { width: 16px; height: 16px; }
}

.travel-origin { margin-top: 1.25rem; max-width: 420px; display: none; }
.travel-origin.show { display: block; }

.form-note { margin-top: 2.25rem; font-size: 0.83rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 1.25rem; }
.form-note strong { color: var(--oxblood); }
.form-submit { margin-top: 1.75rem; }

/* ---------- Music (light row-list) ---------- */
.music-intro { max-width: 62ch; }
.music-list { margin-top: 2.5rem; display: flex; flex-direction: column; }
.music-row { display: grid; gap: 0.4rem 2rem; padding: 1.5rem 0; border-top: 1px solid var(--line-gold); }
@media (min-width: 700px) { .music-row { grid-template-columns: 1fr 1.4fr; align-items: center; } }
.music-row:last-child { border-bottom: 1px solid var(--line-gold); }
.music-row .q { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--navy-deep); }
.music-row input { width: 100%; border: none; border-bottom: 1px solid var(--line); background: transparent; padding: 0.65em 0; font-family: var(--font-body); font-size: 1rem; color: var(--ink); }
.music-row input:focus { outline: none; border-bottom-color: var(--gold); }
.music-note { margin-top: 1.75rem; font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- What's Next (compact editorial closing section) ---------- */
#next { padding: clamp(2.5rem, 6vw, 3.5rem) 0 clamp(2rem, 5vw, 2.75rem); }
#next .section-head { margin-bottom: 1.5rem; }

.next-columns { display: grid; column-gap: 3rem; }
.next-item + .next-item { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-gold); }

@media (min-width: 700px) {
  .next-columns { grid-template-columns: 1fr 1fr; position: relative; }
  .next-item + .next-item { margin-top: 0; padding-top: 0; border-top: none; }
  .next-columns::before {
    content: ""; position: absolute; top: 0.15em; bottom: 0.15em; left: 50%;
    width: 1px; background: var(--line-gold);
  }
}

.next-item h3 { font-size: 1.15rem; font-weight: 500; }
.next-item p { margin-top: 0.6rem; color: var(--ink-soft); font-size: 0.92rem; max-width: 40ch; }

/* ---------- Footer ---------- */
footer { background: var(--navy-deep); color: rgba(250, 243, 227, 0.85); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer-top { display: flex; flex-direction: column; gap: 2rem; align-items: flex-start; }
@media (min-width: 780px) { .footer-top { flex-direction: row; justify-content: space-between; align-items: center; } }
.footer-brand { display: flex; align-items: center; gap: 0.9rem; }
.footer-brand svg { width: 30px; height: 36px; color: var(--gold-soft); }
.footer-brand-text { font-family: var(--font-display); font-size: 1.1rem; color: #fff; }
.footer-meta { font-size: 0.88rem; line-height: 1.8; }
.footer-note { margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid rgba(250,243,227,0.15); font-size: 0.8rem; color: rgba(250,243,227,0.55); display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }

/* ---------- Sticky mobile CTA bar ---------- */
/* Keeps "Send Me an Invitation" reachable in one tap from anywhere on the
   page on a phone, without duplicating the hero's own CTA or covering the
   form's submit button — see the show/hide logic in script.js. */
.mobile-cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  display: flex; justify-content: center;
  padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom, 0px));
  background: rgba(250, 243, 227, 0.97);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--line-gold);
  box-shadow: 0 -8px 20px -14px rgba(19, 28, 49, 0.35);
  transform: translateY(100%);
  transition: transform 0.25s ease;
}
.mobile-cta-bar.show { transform: translateY(0); }
.mobile-cta-bar .btn-primary { margin-top: 0; width: 100%; justify-content: center; }

@media (min-width: 1060px) {
  .mobile-cta-bar { display: none; }
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Thank-you (RSVP confirmation) page ---------- */
/* Reuses the hero's gold-tinted ground and the same type/color/button
   tokens as the rest of the site — no new visual language, just a smaller,
   centered composition for a single-purpose page. */
body.thank-you-page {
  min-height: 100vh; background-color: var(--cream-gold);
  background-image: radial-gradient(circle at 50% 0%, rgba(163,129,58,0.22), transparent 60%);
}
.thank-you-main { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: clamp(2.5rem, 8vw, 5rem) 0; }
.thank-you-wrap { max-width: 540px; text-align: center; }
.thank-you-mark { width: 46px; height: 54px; margin: 0 auto 1.5rem; color: var(--gold); }
.thank-you-wrap h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.15; }
.thank-you-wrap p { margin-top: 1.25rem; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.7; max-width: 48ch; margin-left: auto; margin-right: auto; }
.thank-you-signature { margin-top: 1.75rem; font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--oxblood); line-height: 1.5; }
.thank-you-wrap .btn-primary { margin-top: 2.5rem; }
