/* Hitch marketing + policy site, shared stylesheet.
   Destination Editorial, translated to the web.
   Palette source of truth: ../src/design/tokens.ts (Phase 5a anchors).
   Warm Ivory #FAF7F0 . Travertine #E8DED0 . Soft Taupe #B9A498
   Espresso #2A211B . Champagne #E9D2AC
   Type source of truth: ../src/design/type.ts (Playfair display,
   EB Garamond body, Pinyon Script accent, small-caps eyebrows).
   Self-hosted fonts, no external assets, no frameworks, no build step. */

/* -- Fonts (self-hosted, copied from the app's font packages) -------- */

@font-face {
  font-family: "Playfair Display";
  src: url("fonts/PlayfairDisplay_500Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("fonts/PlayfairDisplay_600SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond_400Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond_500Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond_600SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pinyon Script";
  src: url("fonts/PinyonScript_400Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* -- Tokens ----------------------------------------------------------- */

:root {
  color-scheme: light dark;

  /* Anchor palette (never invented; from tokens.ts) */
  --cream: #faf7f0;
  --bone: #e8ded0;
  --whisper: #b9a498;
  --champagne: #e9d2ac;
  --ink: #2a211b;
  --ink-deep: #1a130e;

  /* Working derivations (tokens.ts) */
  --whisper-bg: #f1e9db;
  --whisper-soft: rgba(185, 164, 152, 0.4);
  --hairline: rgba(42, 33, 27, 0.1);
  --slate: #5c4f44;
  --taupe-text: #786857;
  --champagne-deep: #c9a86b;
  --champagne-soft: rgba(233, 210, 172, 0.3);
  --cream-soft: rgba(250, 247, 240, 0.85); /* over-photo secondary lettering */
  --copper: #825834;

  /* After Dark (afterdark/tokens.ts), used only in the teaser band */
  --void: #0a0a0a;
  --smoke: #1a1a1a;
  --ash: #262626;
  --neon: #ff2d87;
  --bone-ad: #e8e5de;
  --whisper-dark: #6b6b6b;

  /* Semantic slots (these flip in dark mode; the anchors above do not) */
  --ground: var(--cream);
  --surface: #fffdf8;
  --surface-inset: var(--whisper-bg);
  --band-travertine: var(--bone);
  --text: var(--ink);
  --text-secondary: var(--slate);
  --text-tertiary: var(--taupe-text);
  --line: var(--hairline);
  --line-strong: var(--whisper-soft);
  --accent: var(--champagne-deep);
  --photo-filter: none;

  --font-display: "Playfair Display", "Iowan Old Style", Georgia,
    "Times New Roman", serif;
  --font-body: "EB Garamond", "Iowan Old Style", Georgia, "Times New Roman",
    serif;
  --font-script: "Pinyon Script", cursive;

  --radius-card: 14px;
  --radius-card-large: 20px;
  --radius-utility: 8px;

  --shadow-s: 0 4px 16px rgba(42, 33, 27, 0.04);
  --shadow-m: 0 8px 24px rgba(42, 33, 27, 0.06);
  --shadow-l: 0 14px 32px rgba(42, 33, 27, 0.1);

  --measure: 42rem;
  --page-max: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: var(--ink-deep);
    --surface: #241b15;
    --surface-inset: #2f251d;
    --band-travertine: #221a13;
    --text: rgba(250, 247, 240, 0.92);
    --text-secondary: rgba(250, 247, 240, 0.72);
    --text-tertiary: rgba(250, 247, 240, 0.56);
    --line: rgba(250, 247, 240, 0.12);
    --line-strong: rgba(250, 247, 240, 0.22);
    --accent: var(--champagne);
    --photo-filter: brightness(0.84) saturate(0.96);
    --shadow-s: none;
    --shadow-m: none;
    --shadow-l: none;
  }
}

/* -- Base ------------------------------------------------------------- */

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Paper grain, the same texture the app lays over its surfaces
   (src/design/primitives/Grain.tsx: feTurbulence fractalNoise 0.85 over an
   espresso tint). Pre-rasterized to a small local tile (img/grain.png) so
   scrolling never re-runs the SVG filter. Click-through, whole document. */
body {
  position: relative;
}

body::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("img/grain.png");
  background-repeat: repeat;
  background-size: 160px 160px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
  text-decoration-color: var(--champagne-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--champagne-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

::selection {
  background: var(--champagne);
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 0.6em 1em;
  z-index: 3000;
  text-decoration: none;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

[hidden] {
  display: none !important;
}

/* -- Small-caps voice (eyebrows, nav, buttons, pills) ----------------- */

.eyebrow,
.pill,
.site-nav ul a,
.btn,
.footer-nav a,
.toc a,
.toc-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow {
  display: block;
  color: var(--text-tertiary);
  margin: 0 0 1.1rem;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--champagne-deep);
  margin-right: 0.75em;
  vertical-align: 0.14em;
}

.eyebrow--bare::before {
  display: none;
}

.pill {
  display: inline-block;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.38em 1em;
  color: var(--text-tertiary);
  letter-spacing: 0.16em;
}

.pill--copper {
  border-color: rgba(130, 88, 52, 0.55);
  color: var(--copper);
  background: var(--champagne-soft);
}

@media (prefers-color-scheme: dark) {
  .pill--copper {
    border-color: rgba(233, 210, 172, 0.4);
    color: var(--champagne);
  }
}

/* -- Brand lockup (the hıtch wordmark + arch, per Wordmark.tsx/Arch.tsx) */

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}

.brand:hover {
  color: var(--text);
}

.brand-arch {
  display: block;
  width: 2.6em;
  height: auto;
  color: var(--accent);
  margin-bottom: -0.52em;
}

.wm {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: flex-end;
}

.wm-i {
  position: relative;
  font-style: normal;
}

.wm-dot {
  position: absolute;
  top: -0.14em;
  left: 50%;
  width: 0.15em;
  height: 0.15em;
  margin-left: -0.075em;
  border-radius: 50%;
  background: var(--champagne-deep);
}

@media (prefers-color-scheme: dark) {
  .wm-dot {
    background: var(--champagne);
  }
}

/* Large hero lockup */
.brand--hero {
  color: var(--cream);
  pointer-events: none;
}

.brand--hero .brand-arch {
  width: 3.2em;
  color: rgba(250, 247, 240, 0.85);
  margin-bottom: -0.6em;
}

.brand--hero .wm {
  font-size: clamp(3.4rem, 9vw, 5.2rem);
}

.brand--hero .wm-dot {
  background: var(--champagne);
}

/* -- Header ----------------------------------------------------------- */

.site-header {
  padding: 1.3rem var(--gutter);
}

.site-nav {
  max-width: var(--page-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: clamp(0.9rem, 2.5vw, 1.7rem);
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  align-items: center;
}

.site-nav ul a {
  text-decoration: none;
  color: var(--text-secondary);
  padding-bottom: 0.25em;
  border-bottom: 1px solid transparent;
}

.site-nav ul a:hover,
.site-nav ul a[aria-current="page"] {
  color: var(--text);
}

.site-nav ul a[aria-current="page"] {
  border-bottom-color: var(--champagne-deep);
}

/* Overlay variant: sits on top of the photo hero (index) */
.site-header--overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
}

.site-header--overlay .brand,
.site-header--overlay .site-nav ul a {
  color: rgba(250, 247, 240, 0.85);
}

.site-header--overlay .site-nav ul a:hover,
.site-header--overlay .site-nav ul a[aria-current="page"] {
  color: var(--cream);
}

.site-header--overlay .brand:hover {
  color: var(--cream);
}

.site-header--overlay .brand-arch {
  color: rgba(250, 247, 240, 0.8);
}

.site-header--overlay .wm-dot {
  background: var(--champagne);
}

/* -- Photo hero (index) ----------------------------------------------- */

.hero-photo {
  position: relative;
  min-height: clamp(34rem, 96vh, 56rem);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--ink);
}

.hero-photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  filter: var(--photo-filter);
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to top,
      rgba(26, 19, 14, 0.88) 0%,
      rgba(26, 19, 14, 0.45) 34%,
      rgba(26, 19, 14, 0.18) 60%,
      rgba(26, 19, 14, 0.38) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 7.5rem var(--gutter) 5.5rem;
  max-width: 46rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content .eyebrow {
  color: rgba(250, 247, 240, 0.85);
  margin: 1.6rem 0 2.4rem;
}

.hero-content .eyebrow::before {
  background: var(--champagne);
}

.hero-content h1 {
  color: var(--cream);
  font-size: clamp(2.7rem, 7vw, 4.6rem);
  line-height: 1.04;
  margin-bottom: 0.35em;
}

.hero-content .lede {
  color: rgba(250, 247, 240, 0.82);
  font-size: clamp(1.15rem, 2vw, 1.3rem);
  max-width: 30em;
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-top: 2.4rem;
}

.hero-note {
  color: var(--text-tertiary);
  font-size: 0.95rem;
  margin-top: 1rem;
}

.hero-photo .hero-note {
  color: rgba(250, 247, 240, 0.6);
}

/* Quiet page hero (about, support, rsvp, policies) */
.page-hero {
  padding: clamp(2.5rem, 7vw, 5rem) var(--gutter) clamp(1.5rem, 4vw, 3rem);
}

.page-hero-inner {
  max-width: var(--page-max);
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(2.3rem, 5.5vw, 3.6rem);
  max-width: 14em;
}

.page-hero .lede {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 32em;
}

.page-hero--center {
  text-align: center;
}

.page-hero--center h1,
.page-hero--center .lede {
  margin-left: auto;
  margin-right: auto;
}

/* -- Bands ------------------------------------------------------------ */

.band {
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--gutter);
}

.band--tight {
  padding-top: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.band--travertine {
  background: var(--band-travertine);
}

.band-inner {
  max-width: var(--page-max);
  margin: 0 auto;
}

.band-inner--narrow {
  max-width: var(--measure);
}

.band h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
}

.band .lede {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 32em;
}

/* Copy + visual split */
.band-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.band-grid--flip {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

.band-grid--flip .band-copy {
  order: 2;
}

.band-visual {
  display: flex;
  justify-content: center;
}

@media (max-width: 56rem) {
  .band-grid,
  .band-grid--flip {
    grid-template-columns: minmax(0, 1fr);
  }
  .band-grid--flip .band-copy {
    order: 0;
  }
  .band-visual {
    margin-top: 0.5rem;
  }
}

/* Editorial feature rows (quiet lists with hairline dividers) */
.rows {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.rows li {
  padding: 1.05rem 0;
  border-top: 1px solid var(--line);
}

.rows li:last-child {
  border-bottom: 1px solid var(--line);
}

.rows .row-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.25;
  margin-bottom: 0.15em;
}

.rows .row-note {
  color: var(--text-secondary);
  display: block;
  max-width: 36em;
}

/* -- Phone frame (screenshots never appear bare) ---------------------- */

.phone {
  width: min(288px, 76vw);
  border-radius: 52px;
  background: var(--ink-deep);
  padding: 9px;
  box-shadow:
    0 34px 70px rgba(42, 33, 27, 0.32),
    0 6px 18px rgba(42, 33, 27, 0.18);
  border: 1px solid rgba(233, 210, 172, 0.28);
  flex: none;
}

.phone img {
  display: block;
  width: 100%;
  aspect-ratio: 660 / 1434;
  object-fit: cover;
  border-radius: 44px;
  filter: var(--photo-filter);
}

.phone--tilt {
  transform: rotate(1.6deg);
}

.phone--tilt-l {
  transform: rotate(-1.6deg);
}

@media (prefers-reduced-motion: no-preference) {
  .phone {
    transition: transform 400ms ease;
  }
  .phone--tilt:hover,
  .phone--tilt-l:hover {
    transform: rotate(0deg);
  }
}

/* -- Full-bleed photo strip ------------------------------------------- */

.strip {
  position: relative;
  min-height: clamp(18rem, 52vh, 30rem);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}

.strip > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--photo-filter);
}

.strip::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(26, 19, 14, 0.82) 0%,
    rgba(26, 19, 14, 0.28) 45%,
    rgba(26, 19, 14, 0.05) 100%
  );
}

.strip-caption {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 2.5rem var(--gutter);
}

.strip-caption .eyebrow {
  color: rgba(250, 247, 240, 0.8);
  margin-bottom: 0.7rem;
}

.strip-caption .eyebrow::before {
  background: var(--champagne);
}

.strip-caption p {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1.25;
  color: var(--cream);
  max-width: 22em;
  margin: 0;
}

/* Editorial photo card (4:5, cover, never stretched) */
.photo-card {
  border-radius: var(--radius-card-large);
  overflow: hidden;
  box-shadow: var(--shadow-l);
  width: min(420px, 100%);
}

.photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: var(--photo-filter);
}

/* -- The espresso anchor band (Hitch Pro) ----------------------------- */

.band--espresso {
  background: var(--ink);
  color: rgba(250, 247, 240, 0.85);
}

.band--espresso h2 {
  color: var(--cream);
}

.band--espresso .eyebrow {
  color: var(--champagne);
}

.band--espresso .eyebrow::before {
  background: var(--champagne);
}

.band--espresso .rows li {
  border-color: rgba(250, 247, 240, 0.14);
}

.band--espresso .rows .row-title {
  color: var(--cream);
}

.band--espresso .rows .row-note {
  color: rgba(250, 247, 240, 0.66);
}

.band--espresso a:not(.btn) {
  text-decoration-color: var(--champagne);
}

.band--espresso a:not(.btn):hover {
  color: var(--champagne);
}

@media (prefers-color-scheme: dark) {
  .band--espresso {
    background: #241b15;
    border-top: 1px solid rgba(233, 210, 172, 0.16);
    border-bottom: 1px solid rgba(233, 210, 172, 0.16);
  }
}

.price {
  display: flex;
  align-items: baseline;
  gap: 0.35em;
  margin: 1.6rem 0 0.4rem;
  font-family: var(--font-display);
  color: var(--cream);
}

.price-amount {
  font-weight: 600;
  font-size: clamp(3.6rem, 9vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.price-once {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--champagne);
}

.price-note {
  color: rgba(250, 247, 240, 0.66);
  max-width: 30em;
}

/* -- After Dark teaser band ------------------------------------------- */

.band--void {
  background: var(--void);
  color: var(--bone-ad);
  text-align: center;
  position: relative;
}

.band--void .band-inner {
  max-width: 40rem;
}

.neon-wire {
  width: min(220px, 50%);
  height: 1px;
  margin: 0 auto 2.2rem;
  background: linear-gradient(
    to right,
    rgba(255, 45, 135, 0),
    var(--neon) 50%,
    rgba(255, 45, 135, 0)
  );
  box-shadow: 0 0 12px rgba(255, 45, 135, 0.55);
}

.band--void .eyebrow {
  color: var(--whisper-dark);
  margin-bottom: 1.4rem;
}

.band--void .eyebrow::before {
  background: var(--neon);
  box-shadow: 0 0 8px rgba(255, 45, 135, 0.8);
}

.band--void p {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.3;
  margin: 0 0 0.9rem;
  color: var(--bone-ad);
}

.band--void .fine-void {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--whisper-dark);
  margin: 0;
}

/* -- Buttons (Btn: espresso primary, champagne celebratory, hairline
      secondary; small-caps labels like the app) ----------------------- */

.btn {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 1.05em 2.3em;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 140ms ease, transform 140ms ease;
  background: var(--ink);
  color: var(--cream);
}

.btn:hover {
  opacity: 0.9;
  color: var(--cream);
}

.btn:active {
  transform: translateY(1px);
}

.btn--celebratory {
  background: var(--champagne);
  color: var(--ink);
}

.btn--celebratory:hover {
  color: var(--ink);
}

.btn--secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}

.btn--secondary:hover {
  color: var(--text);
  border-color: var(--text-secondary);
  opacity: 1;
}

/* On espresso, void, or photo grounds */
.btn--on-dark {
  background: var(--champagne);
  color: var(--ink);
}

.btn--on-dark:hover {
  color: var(--ink);
}

.btn--ghost-dark {
  background: transparent;
  color: var(--cream);
  border-color: rgba(250, 247, 240, 0.45);
}

.btn--ghost-dark:hover {
  color: var(--cream);
  border-color: var(--cream);
  opacity: 1;
}

.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: default;
}

.btn[aria-disabled="true"]:hover {
  opacity: 0.55;
}

@media (prefers-color-scheme: dark) {
  .btn {
    background: var(--cream);
    color: var(--ink);
  }
  .btn:hover {
    color: var(--ink);
  }
  .btn--celebratory,
  .btn--on-dark {
    background: var(--champagne);
    color: var(--ink);
  }
  .btn--secondary {
    background: transparent;
    color: var(--text);
  }
  .btn--secondary:hover {
    color: var(--text);
  }
  .btn--ghost-dark {
    background: transparent;
    color: var(--cream);
  }
  .btn--ghost-dark:hover {
    color: var(--cream);
  }
}

/* -- Cards ------------------------------------------------------------ */

.card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  padding: 1.8rem;
  box-shadow: var(--shadow-s);
}

.card--travertine {
  background: var(--surface-inset);
  border-color: transparent;
}

.card--large {
  border-radius: var(--radius-card-large);
  padding: clamp(1.8rem, 4vw, 2.6rem);
}

/* The one espresso anchor card on quiet pages. */
.card--dark {
  background: var(--ink);
  border-color: transparent;
  color: rgba(250, 247, 240, 0.85);
  box-shadow: var(--shadow-l);
}

.card--dark h2,
.card--dark h3 {
  color: var(--cream);
}

.card--dark .eyebrow {
  color: var(--champagne);
}

.card--dark .eyebrow::before {
  background: var(--champagne);
}

.card--dark a:not(.btn) {
  color: var(--champagne);
  text-decoration-color: var(--champagne);
}

@media (prefers-color-scheme: dark) {
  .card--dark {
    background: #241b15;
    border: 1px solid rgba(233, 210, 172, 0.18);
  }
}

/* -- Draft banner + placeholder marks (legal pages) ------------------- */

.draft-banner {
  background: var(--champagne-soft);
  border: 1px solid rgba(130, 88, 52, 0.5);
  border-radius: var(--radius-card);
  padding: 1.3rem 1.5rem;
  margin: 0 0 2.5rem;
}

.draft-banner strong {
  display: block;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.5rem;
}

.draft-banner p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

@media (prefers-color-scheme: dark) {
  .draft-banner {
    border-color: rgba(233, 210, 172, 0.4);
  }
  .draft-banner strong {
    color: var(--champagne);
  }
}

mark.ph {
  background: var(--champagne-soft);
  color: var(--copper);
  padding: 0 0.2em;
  border-bottom: 1px dashed var(--copper);
  border-radius: 2px;
}

@media (prefers-color-scheme: dark) {
  mark.ph {
    color: var(--champagne);
    border-bottom-color: var(--champagne-deep);
  }
}

/* -- Legal layout: sticky contents rail + readable prose -------------- */

.doc-layout {
  max-width: var(--page-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.toc {
  position: sticky;
  top: 2rem;
  padding-top: 0.4rem;
}

.toc-label {
  display: block;
  color: var(--text-tertiary);
  margin-bottom: 1rem;
}

.toc-label::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--champagne-deep);
  margin-right: 0.75em;
  vertical-align: 0.14em;
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line);
}

.toc li {
  margin: 0;
}

.toc a {
  display: block;
  padding: 0.42em 0 0.42em 1em;
  text-decoration: none;
  color: var(--text-tertiary);
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  border-left: 1px solid transparent;
  margin-left: -1px;
}

.toc a:hover {
  color: var(--text);
  border-left-color: var(--champagne-deep);
}

@media (max-width: 64rem) {
  .doc-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .toc {
    position: static;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-card);
    padding: 1.2rem 1.4rem;
    margin-bottom: 2.5rem;
  }
  .toc ol {
    border-left: none;
    columns: 2;
    column-gap: 2rem;
  }
  .toc a {
    border-left: none;
    padding-left: 0;
  }
}

@media (max-width: 40rem) {
  .toc ol {
    columns: 1;
  }
}

.prose {
  max-width: 65ch;
}

.prose h1 {
  font-size: clamp(2.1rem, 5vw, 3rem);
}

.prose h2 {
  font-size: 1.55rem;
  margin-top: 2.6em;
  padding-top: 1.5em;
  border-top: 1px solid var(--line);
}

.prose h3 {
  font-size: 1.15rem;
  margin-top: 1.8em;
}

.prose ul {
  padding-left: 1.3em;
  margin: 0 0 1em;
}

.prose li {
  margin-bottom: 0.45em;
}

.prose .doc-meta {
  color: var(--text-tertiary);
  margin-bottom: 0.3em;
}

.prose blockquote {
  margin: 1.4em 0;
  padding: 1em 1.3em;
  border-left: 3px solid var(--copper);
  background: var(--surface-inset);
  border-radius: 0 var(--radius-utility) var(--radius-utility) 0;
  color: var(--text-secondary);
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

/* -- FAQ (support page): editorial rows, hairline dividers ------------ */

.faq h3 {
  margin-top: 2.6rem;
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.faq h3::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--champagne-deep);
  margin-right: 0.75em;
  vertical-align: 0.14em;
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-of-type {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.3;
  padding: 1rem 1.8rem 1rem 0;
  list-style: none;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-size: 1.3rem;
  color: var(--champagne-deep);
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2212"; /* minus sign */
}

.faq summary:hover {
  color: var(--copper);
}

@media (prefers-color-scheme: dark) {
  .faq summary:hover {
    color: var(--champagne);
  }
}

.faq details p {
  color: var(--text-secondary);
  max-width: 38em;
  margin: 0 0 1.3rem;
}

/* -- RSVP invitation stage -------------------------------------------- */

.rsvp-stage {
  max-width: 27rem;
  margin: 0 auto;
}

.invite-card {
  border-radius: var(--radius-card-large);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: var(--shadow-l);
  text-align: center;
}

/* The photo half of the invitation (screenshot 09's treatment) */
.invite-photo {
  position: relative;
  min-height: 21rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  background: var(--ink);
}

.invite-photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--photo-filter);
}

.invite-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(26, 19, 14, 0.44);
}

.invite-photo-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.invite-arch {
  display: block;
  width: 150px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(250, 247, 240, 0.8);
  margin-bottom: -1.4rem;
}

.invite-photo .eyebrow {
  color: rgba(250, 247, 240, 0.9);
  margin-bottom: 1rem;
}

.invite-photo .eyebrow::before {
  display: none;
}

.invite-names {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.3rem, 8vw, 2.9rem);
  line-height: 1.12;
  color: var(--cream);
  margin: 0;
  /* Invite codes mix caps and digits; keep the figures at lining height
     so a code reads as one word, not letters with sunken numbers. */
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

.sr-and {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.invite-names .amp {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 1.05em;
  color: var(--champagne);
  display: block;
  line-height: 0.9;
  margin: 0.06em 0;
  text-shadow: 0 1px 14px rgba(26, 19, 14, 0.55);
}

/* The caption band under the photo (travertine, like the app card) */
.invite-caption {
  background: var(--surface-inset);
  border-top: 1px solid var(--line-strong);
  padding: 1.5rem 1.5rem 1.7rem;
}

.invite-date {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.45rem;
  margin: 0 0 0.15em;
}

.invite-where {
  color: var(--text-secondary);
  margin: 0;
}

/* Body of the card (form / actions) */
.invite-body {
  padding: 2rem 1.8rem 2.2rem;
}

.invite-body .eyebrow {
  display: inline-block;
}

/* Champagne rule: thin line with a center dot */
.rule {
  position: relative;
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(201, 168, 107, 0),
    rgba(201, 168, 107, 0.75) 18%,
    rgba(201, 168, 107, 0.75) 82%,
    rgba(201, 168, 107, 0)
  );
  margin: 1.5rem auto;
  width: 78%;
}

.rule::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--champagne-deep);
}

.script-line {
  font-family: var(--font-script);
  font-size: 1.9rem;
  line-height: 1.2;
  color: var(--copper);
  margin: 0 0 0.3rem;
}

@media (prefers-color-scheme: dark) {
  .script-line {
    color: var(--champagne);
  }
}

.field {
  text-align: left;
  margin: 1.7rem 0;
}

.field label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 0.4rem;
}

.field input {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.35rem;
  letter-spacing: 0.14em;
  padding: 0.4em 0;
  text-transform: uppercase;
}

.field input:focus {
  outline: none;
  border-bottom-color: var(--champagne-deep);
}

.field input::placeholder {
  color: var(--text-tertiary);
  opacity: 1;
}

.rsvp-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.rsvp-actions .btn {
  width: 100%;
}

.seal {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: var(--champagne);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.3rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.1rem;
  box-shadow:
    0 0 0 5px var(--surface),
    0 0 0 6px var(--champagne-deep),
    var(--shadow-m);
}

.prototype-note {
  color: var(--text-tertiary);
  font-size: 0.92rem;
  margin: 1.1rem 0 0;
}

/* -- Footer (espresso, small-caps nav) -------------------------------- */

.site-footer {
  background: var(--ink);
  color: rgba(250, 247, 240, 0.72);
  padding: clamp(3rem, 7vw, 4.5rem) var(--gutter) 2.6rem;
}

@media (prefers-color-scheme: dark) {
  .site-footer {
    background: #150f0a;
    border-top: 1px solid rgba(250, 247, 240, 0.08);
  }
}

.footer-inner {
  max-width: var(--page-max);
  margin: 0 auto;
}

.site-footer .brand {
  color: var(--cream);
}

.site-footer .brand-arch {
  color: rgba(233, 210, 172, 0.8);
}

.site-footer .wm-dot {
  background: var(--champagne);
}

.footer-tag {
  color: rgba(250, 247, 240, 0.6);
  margin: 1rem 0 2rem;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  gap: clamp(1rem, 3vw, 1.8rem);
  flex-wrap: wrap;
  margin: 0 0 2rem;
  padding: 0;
}

.footer-nav a {
  text-decoration: none;
  color: rgba(250, 247, 240, 0.66);
}

.footer-nav a:hover {
  color: var(--champagne);
}

.fine {
  color: rgba(250, 247, 240, 0.45);
  font-size: 0.92rem;
  margin: 0;
  border-top: 1px solid rgba(250, 247, 240, 0.12);
  padding-top: 1.6rem;
}

/* -- Small screens ----------------------------------------------------- */

@media (max-width: 40rem) {
  .site-header {
    padding: 1rem var(--gutter);
  }
  .site-nav {
    justify-content: center;
    text-align: center;
  }
  .hero-content {
    padding-top: 8.5rem;
  }
  .invite-body {
    padding: 1.7rem 1.3rem 1.9rem;
  }
  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }
}

/* -- Motion ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn,
  .phone {
    transition: none;
  }
  .phone--tilt,
  .phone--tilt-l {
    transform: none;
  }
}

/* RSVP get-the-app nudge: benefits beside a framed screenshot. The panel
   breaks out of the narrow invite column to a fuller editorial measure. */
.nudge-panel {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  width: min(880px, calc(100vw - 2.5rem));
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.nudge-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.nudge-benefits {
  margin: 1.3rem 0 1.6rem;
}

.nudge-benefit {
  padding: 0.85rem 0;
  border-top: 1px solid rgba(233, 210, 172, 0.18);
}

.nudge-benefit:last-child {
  border-bottom: 1px solid rgba(233, 210, 172, 0.18);
}

.nudge-benefit h3 {
  font-family: 'EB Garamond', serif;
  font-weight: 600;
  font-size: 1.02rem;
  margin: 0 0 0.2rem;
}

.nudge-benefit p {
  margin: 0;
  font-size: 0.94rem;
  color: rgba(250, 246, 238, 0.72);
}

.nudge-phone {
  width: min(212px, 40vw);
  margin: 0;
}

@media (max-width: 760px) {
  .nudge-panel {
    flex-direction: column;
    align-items: stretch;
  }
  .nudge-phone {
    align-self: center;
    margin-top: 0.6rem;
  }
}
