  :root {
    --paper: #FBF3EE;
    --burgundy: #6B0F2A;
    --burg: #5F0E27;
    --burg-deep: #3F0819;
    --gold: #B58A3C;
    --gold-text: #87611F;
    --gold-light: #D9B66A;

    --bg: #FFF9F5;
    --bg-alt: #F7E8E6;
    --ink: #3B1220;
    --muted: #6E4B57;
    --head: #6B0F2A;
    --accent: #8A1636;
    --line: rgba(135, 97, 31, .35);
    --focus: #8A1636;
    --btn-bg: #6B0F2A;
    --btn-fg: #FFF6F0;
    --nav-bg: #FBF3EE;
    --nav-fg: #6B0F2A;

    --script: 'Great Vibes', 'Snell Roundhand', 'Apple Chancery', cursive;
    --serif: 'Cormorant Garamond', Garamond, 'Times New Roman', serif;
    --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #1F0A12; --bg-alt: #2A0F1A; --ink: #F7EAE4; --muted: #CDAFB6;
      --head: #E9C98A; --accent: #E2BC72; --line: rgba(226, 188, 114, .32); --focus: #E2BC72;
      --btn-bg: #D9B66A; --btn-fg: #3A0C1A; --nav-bg: #1F0A12; --nav-fg: #F7EAE4;
    }
  }
  :root[data-theme="dark"] {
    --bg: #1F0A12; --bg-alt: #2A0F1A; --ink: #F7EAE4; --muted: #CDAFB6;
    --head: #E9C98A; --accent: #E2BC72; --line: rgba(226, 188, 114, .32); --focus: #E2BC72;
    --btn-bg: #D9B66A; --btn-fg: #3A0C1A; --nav-bg: #1F0A12; --nav-fg: #F7EAE4;
  }
  *, *::before, *::after { box-sizing: inherit; }
  html {
    background: linear-gradient(to bottom, var(--nav-bg) 0, var(--nav-bg) 50vh, var(--burg-deep) 50vh) no-repeat;
    scroll-behavior: smooth;
    scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 4rem);
    overflow-x: clip;
  }
  body {
    margin: 0; background: var(--bg); color: var(--ink);
    font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; -webkit-text-size-adjust: 100%;
  }
  a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

  /* Navigation */
  .nav {
    position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
    background: var(--nav-bg); color: var(--nav-fg); border-bottom: 1px solid var(--line);
  }
  .nav-inner {
    max-width: 64rem; margin: 0 auto; padding: 0 1.25rem; height: 3.5rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  }
  .mark { font-family: var(--script); font-size: 1.7rem; line-height: 1; color: inherit; text-decoration: none; }
  .nav ul { display: flex; gap: .1rem; list-style: none; margin: 0 0 0 auto; padding: 0; }
  .nav .link {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 .55rem;
    color: inherit; text-decoration: none; font-size: .92rem; font-weight: 500;
  }
  .nav .link:hover { color: var(--accent); }
  @media (max-width: 40rem) {
    .nav-inner { gap: .4rem; padding-inline: .65rem; }
    .nav nav { min-width: 0; flex: 1; overflow: hidden; }
    .nav ul { min-width: 0; overflow-x: auto; scrollbar-width: none; }
    .nav ul::-webkit-scrollbar { display: none; }
    .nav li { flex: 0 0 auto; }
    .nav .link { padding-inline: .45rem; font-size: .82rem; white-space: nowrap; }
  }
  @media (max-width: 26rem) { .mark { display: none; } }

  /* Hero: the invitation, always on paper */
  .hero {
    position: relative; isolation: isolate; overflow: hidden; color: var(--burgundy);
    background:
      radial-gradient(60% 34% at 6% 40%, rgba(240, 196, 206, .5), transparent 72%),
      radial-gradient(55% 30% at 96% 68%, rgba(214, 196, 232, .42), transparent 72%),
      radial-gradient(50% 24% at 20% 88%, rgba(246, 214, 206, .55), transparent 72%),
      var(--paper);
  }
  .hero::before {
    content: ""; position: absolute; inset: .8rem; z-index: 0; pointer-events: none;
    border: 1px solid rgba(181, 138, 60, .5);
  }
  .flora { position: absolute; z-index: 0; height: auto; pointer-events: none; user-select: none; }
  .flora.tl { top: 0; left: 0; width: clamp(6.5rem, 27vw, 14rem); }
  .flora.br { right: 0; bottom: 0; width: clamp(10rem, 46vw, 20rem); }
  .hero-inner {
    position: relative; z-index: 1; max-width: 46rem; margin: 0 auto; text-align: center;
    padding: clamp(8.5rem, 26vw, 7rem) 1.5rem clamp(7rem, 20vw, 9rem);
  }
  @media (min-width: 46rem) { .hero-inner { padding-top: 5.5rem; } }
  .with { margin: 0; font-family: var(--sans); font-size: .78rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
  .warm { margin: .35rem 0 0; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.25rem; letter-spacing: .04em; }
  .gold {
    color: var(--gold-text);
    background: linear-gradient(100deg, #8A6120 0%, #D2A84E 45%, #96691F 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  }
  .wedding {
    margin: 1.4rem 0 0; font-family: var(--serif); font-weight: 600; text-transform: uppercase;
    font-size: clamp(2.9rem, 13.5vw, 6rem); line-height: 1; letter-spacing: .05em; padding-left: .05em;
  }
  .of { display: flex; align-items: center; gap: 1rem; margin: .5rem auto 0; max-width: 22rem; font-size: .78rem; letter-spacing: .25em; text-transform: uppercase; font-weight: 500; }
  .of::before, .of::after { content: ""; flex: 1; height: 1px; background: rgba(181, 138, 60, .7); }
  .names { position: relative; margin: .2rem 0 0; font-family: var(--script); font-weight: 400; font-size: clamp(4.5rem, 22vw, 9.6rem); line-height: .96; }
  .names .n {
    position: relative; z-index: 1; display: block; padding: .04em .14em .1em;
    color: var(--burgundy);
    background: linear-gradient(100deg, #4F0B20 0%, #A3163F 48%, #5C0D25 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  }
  .amp-row { position: relative; display: flex; justify-content: center; align-items: center; min-height: clamp(3.4rem, 14vw, 5.2rem); }
  .amp { position: relative; z-index: 1; font-family: var(--script); font-size: clamp(3.2rem, 14vw, 5.6rem); line-height: 1; padding: 0 .15em; }
  .cupid {
    position: absolute; z-index: 0; right: -3%; top: 50%; transform: translateY(-42%);
    width: clamp(6.5rem, 30vw, 12rem); height: auto; pointer-events: none;
  }
  @media (min-width: 46rem) { .cupid { right: -14%; } }

  .orn { display: flex; align-items: center; justify-content: center; gap: .9rem; margin: 1.5rem auto; max-width: 20rem; color: var(--gold); }
  .orn::before, .orn::after { content: ""; flex: 1; height: 1px; background: rgba(181, 138, 60, .7); }
  .orn svg { width: 1.1rem; height: 1.1rem; }
  .tag { margin: 1.25rem auto 0; max-width: 24rem; font-size: .8rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; line-height: 1.8; }
  .day { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 1.15rem; letter-spacing: .5em; text-transform: uppercase; padding-left: .5em; }
  .date {
    margin: .1rem 0 0; font-family: var(--serif); font-weight: 700; text-transform: uppercase;
    font-size: clamp(1.9rem, 8.5vw, 3.4rem); line-height: 1.1; letter-spacing: .02em;
  }
  .trio { display: grid; grid-template-columns: repeat(3, 1fr); margin: 2rem auto 0; max-width: 40rem; }
  .trio > div { padding: .25rem .5rem; }
  .trio > div + div { border-left: 1px solid rgba(181, 138, 60, .6); }
  .trio svg { width: 2.6rem; height: 2.6rem; color: var(--gold); margin-bottom: .35rem; }
  .trio h2 { margin: 0; font-family: var(--serif); font-size: 1rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
  .trio p { margin: .1rem 0 0; font-family: var(--serif); font-style: italic; font-size: 1.05rem; line-height: 1.3; }
  .join { margin: 2.25rem auto 0; max-width: 24rem; font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; line-height: 1.9; }

  /* Sections */
  .section { padding: clamp(3.5rem, 9vw, 6rem) 1.25rem; }
  .wrap { max-width: 44rem; margin: 0 auto; }
  .section h2.title { font-family: var(--script); font-weight: 400; margin: 0 0 1rem; font-size: clamp(3rem, 11vw, 4.4rem); line-height: 1.05; color: var(--head); }
  .section h3.sub { font-family: var(--serif); font-weight: 600; font-size: 1.7rem; margin: 3rem 0 1.25rem; color: var(--head); }
  .section p { margin: 0 0 1rem; max-width: 38rem; }
  .alt { background: var(--bg-alt); }
  .band {
    background: var(--burg); color: #FBF3EE;
    --head: #E9C98A; --muted: #DDBFC6; --line: rgba(233, 201, 138, .35);
    --accent: #E9C98A; --focus: #E9C98A; --btn-bg: #D9B66A; --btn-fg: #3A0C1A;
  }
  .lead { font-family: var(--serif); font-size: 1.45rem; line-height: 1.4; font-weight: 500; }
  .tbc { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--muted); }

  .btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.7rem;
    border-radius: 999px; background: var(--btn-bg); color: var(--btn-fg); font: 600 1rem var(--sans);
    text-decoration: none; border: 0; cursor: pointer;
  }
  .btn:hover { filter: brightness(1.12); }
  .tl { color: var(--accent); font-weight: 600; text-underline-offset: .2em; }

  .days { display: flex; align-items: baseline; gap: .75rem; margin: 2rem 0; padding: 1.25rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .days b { font-family: var(--serif); font-weight: 700; font-size: clamp(3.4rem, 15vw, 5rem); line-height: 1; color: var(--head); font-variant-numeric: lining-nums; }
  .days span { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--muted); }
  .days.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; align-items: stretch; }
  .days.countdown .countdown-unit { display: grid; min-width: 0; justify-items: center; gap: .35rem; padding: .8rem .25rem; border: 1px solid var(--line); border-radius: 6px; font-style: normal; }
  .days.countdown .countdown-value { color: var(--head); font: 700 clamp(1.7rem, 7vw, 2.8rem)/1 var(--serif); font-variant-numeric: tabular-nums; transition: color .2s ease; }
  .days.countdown .countdown-label { color: var(--muted); font: 600 clamp(.45rem, 2.1vw, .65rem)/1 var(--sans); letter-spacing: .08em; }
  .days.countdown .countdown-message { grid-column: 1 / -1; padding: .5rem; text-align: center; font: 500 1.2rem/1.4 var(--serif); }
  @media (max-width: 26rem) { .days.countdown { gap: .35rem; } .days.countdown .countdown-unit { padding-inline: .1rem; } }
  .music-section { background: var(--paper); }
  .music-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem 1.4rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: 8px; background: #fffaf5; }
  .music-card .title { margin: 0 0 .25rem; }
  .music-copy { min-width: 0; }
  .music-card .lead { margin: 0; font-size: 1.1rem; overflow-wrap: anywhere; }
  .music-art { display: flex; height: 2.75rem; align-items: center; gap: .25rem; color: var(--gold); }
  .music-art::before { content: "♫"; margin-right: .4rem; color: var(--burgundy); font: 600 1.45rem var(--serif); }
  .music-art span { width: 4px; height: 35%; border-radius: 4px; background: currentColor; }
  .music-art span:nth-child(2) { height: 75%; }
  .music-art span:nth-child(3) { height: 52%; }
  .music-art span:nth-child(4) { height: 90%; }
  .music-card.is-playing .music-art span { animation: music-wave .7s ease-in-out infinite alternate; }
  .music-card.is-playing .music-art span:nth-child(2) { animation-delay: .2s; }
  .music-card.is-playing .music-art span:nth-child(3) { animation-delay: .4s; }
  .music-card.is-playing .music-art span:nth-child(4) { animation-delay: .1s; }
  @keyframes music-wave { to { transform: scaleY(.35); } }
  .music-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: end; gap: .5rem .75rem; }
  .music-toggle { min-height: 2.75rem; padding: 0 1rem; border: 0; border-radius: 999px; background: var(--btn-bg); color: var(--btn-fg); font: 600 .9rem var(--sans); cursor: pointer; touch-action: manipulation; }
  .music-toggle:disabled { opacity: .68; cursor: not-allowed; }
  .music-volume-label { font-size: .8rem; }
  .music-volume { width: 5.5rem; accent-color: var(--accent); touch-action: pan-x; }
  .music-status { grid-column: 2 / -1; margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.4; }
  @media (max-width: 40rem) { .music-card { grid-template-columns: auto 1fr; gap: .75rem; padding: 1.1rem; } .music-controls { grid-column: 1 / -1; justify-content: start; } .music-status { grid-column: 1 / -1; } }
  @media (prefers-reduced-motion: reduce) { .music-card.is-playing .music-art span { animation: none; } }
  .facts { margin: 2rem 0; border-top: 1px solid var(--line); }
  .facts div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .facts dt { color: var(--muted); }
  .facts dd { margin: 0; font-weight: 500; }
  .facts dd.pending { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.15rem; color: var(--muted); }

  .timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
  .timeline li { position: relative; display: grid; grid-template-columns: 5.25rem 1fr; gap: .1rem 1rem; padding: 0 0 1.6rem 1.5rem; }
  .timeline li:last-child { padding-bottom: 0; }
  .timeline li::before { content: ""; position: absolute; left: -7px; top: .5rem; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); }
  .timeline time { font-weight: 600; font-variant-numeric: tabular-nums; }
  .timeline p { margin: 0; grid-column: 2; color: var(--muted); }

  .venue-name { font-family: var(--serif); font-weight: 600; font-size: 2rem; line-height: 1.15; margin: 0 0 .5rem; color: var(--head); }
  address { font-style: normal; margin: 0 0 1.5rem; font-size: 1.15rem; }

  .hotels { list-style: none; margin: 2rem 0 0; padding: 0; border-bottom: 1px solid var(--line); }
  .hotel { padding: 1.6rem 0; border-top: 1px solid var(--line); }
  .hotel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem 1rem; }
  .hotel h3 { font-family: var(--serif); font-weight: 600; font-size: 1.7rem; margin: 0; color: var(--head); }
  .dist { margin: 0; color: var(--muted); font-weight: 500; }
  .hotel p { margin: .4rem 0 0; }
  .hotel .meta { display: flex; flex-wrap: wrap; gap: .1rem 1.5rem; font-weight: 500; }
  .hotel .links { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; margin-top: .6rem; }
  .hotel .links a { display: inline-flex; align-items: center; min-height: 44px; }

  .ledger { margin: 2rem 0 1.5rem; border-bottom: 1px solid var(--line); }
  .row { display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; align-items: center; padding: .9rem 0; border-top: 1px solid var(--line); }
  .row .k { grid-column: 1; color: var(--muted); font-size: .92rem; }
  .row .v { grid-column: 1; font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
  .row .copy {
    grid-column: 2; grid-row: 1 / span 2; min-height: 44px; min-width: 5.5rem; padding: 0 1rem; background: transparent;
    color: #FBF3EE; border: 1.5px solid #D9B66A; border-radius: 999px; font: 600 1rem var(--sans); cursor: pointer;
  }
  .row .copy:hover { background: #D9B66A; color: #3A0C1A; }
  .pay { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0 0 1.5rem; }
  .small { color: var(--muted); font-size: .98rem; }
  .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

  .foot { background: var(--burg-deep); color: #FBF3EE; padding: 3.5rem 1.25rem 3rem; text-align: center; }
  .foot .love { font-family: var(--script); font-size: clamp(3rem, 11vw, 4.2rem); line-height: 1; margin: 0 0 1rem; color: #E2BC72; }
  .foot .fn { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 1.5rem; letter-spacing: .04em; }
  .foot .fd { margin: .1rem 0 1.5rem; color: #DDBFC6; }
  .foot .quote { margin: 0 auto; max-width: 20rem; font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: #DDBFC6; line-height: 1.4; }

  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

  /* ── Us / Photos ── */
  .photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
    margin-top: 1.75rem;
  }
  .photo-grid .wide { grid-column: 1 / -1; }
  .photo-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; display: block; }
  .photo-grid .wide img { aspect-ratio: 16/9; }
  .us-quote {
    margin: 1.75rem 0 0; font-family: var(--serif); font-style: italic;
    font-size: 1.15rem; color: var(--muted); line-height: 1.6; text-align: center;
  }

  /* ── RSVP ── */
  .rsvp-wrap { margin-top: 1.75rem; }
  .rsvp-wrap > p { margin-bottom: 1.25rem; }
  .jotform-wrap { border-radius: 6px; overflow: hidden; }
