/* I Do Two (IDoTwo.com). Layout concept: a wedding program bound as a site — a sticky ribbon of pages, each view printed
   on cool white card in dusty-blue ink, the cover framed in line-drawn florals like the invitation. */
:root {
  --paper: #F5F7FA;
  --card: #FFFFFF;
  --ink: #22304C;
  --ink-soft: #5B6A86;
  --line: #CBD5E4;
  --accent: #4C6FA3;
  --wash: #E8EEF7;
  --gold: #9C7F4C;
  --ok: #4F7E5E;
  --warn: #9A5B2E;
  --shadow: 0 1px 2px rgba(34, 48, 76, .06), 0 8px 24px -12px rgba(34, 48, 76, .18);
  --f-display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --f-script: "Pinyon Script", "Snell Roundhand", "Apple Chancery", cursive;
  --f-body: "Mulish", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --s-1: .8125rem; --s0: 1rem; --s1: 1.1875rem; --s2: 1.5rem; --s3: 2.125rem; --s4: 3rem; --s5: 4.25rem;
  --r: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0F151F; --card: #161F2C; --ink: #E3E8F1; --ink-soft: #9DABC3; --line: #2B3749;
    --accent: #93AEDA; --wash: #1C2738; --gold: #CDB283; --ok: #8DBE9B; --warn: #E0A577;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -14px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0F151F; --card: #161F2C; --ink: #E3E8F1; --ink-soft: #9DABC3; --line: #2B3749;
  --accent: #93AEDA; --wash: #1C2738; --gold: #CDB283; --ok: #8DBE9B; --warn: #E0A577;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -14px rgba(0,0,0,.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: var(--s0); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, textarea:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px;
}
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -.005em; }
p { margin: 0; }
.wrap { max-width: 68rem; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.caps { font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .2em; font-size: var(--s-1); color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- header / ribbon nav ---------- */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 18px; padding-block: 8px; }
.brand { display: flex; align-items: center; flex: none; padding: 6px 2px; }
.brand img { height: 28px; width: auto; display: block; }
.logo-d { display: none !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-l { display: none !important; } :root:not([data-theme="light"]) .logo-d { display: block !important; } }
:root[data-theme="dark"] .logo-l { display: none !important; }
:root[data-theme="dark"] .logo-d { display: block !important; }
.intro { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding-block: 6px 4px; }
.intro img { height: clamp(96px, 16vw, 132px); width: auto; }
.intro p { max-width: 34rem; }
.mono { display: flex; align-items: baseline; gap: 2px; text-decoration: none; color: var(--ink); flex: none; }
.mono b { font-family: var(--f-display); font-weight: 500; font-size: 1.5rem; letter-spacing: .04em; }
.mono i { font-family: var(--f-script); font-style: normal; font-size: 1.7rem; color: var(--accent); margin-left: 6px; line-height: 1; }
.foot-brand { font-family: var(--f-display); font-weight: 600; font-size: 1rem; color: var(--ink); letter-spacing: .02em; }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  flex: none; text-decoration: none; color: var(--ink-soft); padding: 8px 11px; border-radius: 999px;
  font-size: .875rem; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: var(--wash); }
.nav a[aria-current="page"] { color: var(--card); background: var(--ink); }
.nav a:last-child { margin-right: 28px; }

/* ---------- views ---------- */
main { padding-block: 28px 64px; }
.view { display: flex; flex-direction: column; gap: 40px; }
.view[hidden] { display: none !important; }
.head { display: flex; flex-direction: column; gap: 10px; max-width: 46rem; }
.head h2 { font-size: clamp(var(--s3), 5vw, var(--s4)); }
.head h2 em { font-family: var(--f-script); font-style: normal; color: var(--accent); font-weight: 400; font-size: 1.05em; }
.head .lead { font-size: var(--s1); color: var(--ink-soft); line-height: 1.5; max-width: 40rem; }
.sec { display: flex; flex-direction: column; gap: 16px; }
.sec > h3, .sec-head h3 { font-size: var(--s2); }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); min-width: 0; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 17rem)), 1fr)); }
.two { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); align-items: start; }
.rule { height: 18px; color: var(--accent); opacity: .8; }
.rule svg { display: block; width: 100%; height: 100%; }

/* ---------- cover (home) ---------- */
.cover {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow); overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
}
@media (max-width: 52rem) { .cover { grid-template-columns: 1fr; } }
.cover-card { position: relative; padding: clamp(84px, 11vw, 120px) clamp(36px, 6vw, 72px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.florals { position: absolute; inset: 0; pointer-events: none; color: var(--accent); }
.florals svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover-card > *:not(.florals) { position: relative; }
.verse { font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; line-height: 1.7; color: var(--ink-soft); max-width: 25rem; }
.verse b { display: block; font-weight: 600; color: var(--accent); margin-bottom: 2px; }
.names { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 8px; }
.names span { font-family: var(--f-display); font-weight: 500; font-size: clamp(2.75rem, 7vw, 4.5rem); letter-spacing: .08em; line-height: 1; text-transform: uppercase; color: var(--ink); }
.names i { font-family: var(--f-script); font-style: normal; font-size: clamp(1.75rem, 4vw, 2.5rem); color: var(--accent); display: flex; align-items: center; gap: 14px; line-height: 1.3; }
.names i::before, .names i::after { content: ""; width: 54px; height: 1px; background: currentColor; opacity: .6; }
.cover-date { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.35rem, 3vw, 1.75rem); letter-spacing: .1em; text-transform: uppercase; margin-top: 6px; }
.cover-sub { font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; color: var(--ink-soft); line-height: 1.8; }
.edition { font-family: var(--f-body); font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); padding: 5px 12px; border-radius: 999px; }
.cover-side { position: relative; display: flex; flex-direction: column; background: var(--wash); border-left: 1px solid var(--line); }
@media (max-width: 52rem) { .cover-side { border-left: 0; border-top: 1px solid var(--line); } }
.photo { margin: 0; flex: 1; min-height: 20rem; overflow: hidden; position: relative; }
.photo img { position: absolute; inset: 0; }
@media (max-width: 52rem) { .photo { min-height: 26rem; } }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.count { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 18px; padding: 22px 26px; border-top: 1px solid var(--line); background: var(--card); }
.count-n { font-family: var(--f-display); font-weight: 500; font-size: 4rem; line-height: .9; color: var(--accent); font-variant-numeric: lining-nums tabular-nums; }
.count-t { display: flex; flex-direction: column; gap: 4px; }
.count-t strong { font-family: var(--f-display); font-size: var(--s2); font-weight: 600; line-height: 1.1; }
.count-bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 4px; }
.count-bar span { display: block; height: 100%; background: var(--accent); border-radius: 4px; }

/* next-up strip */
.next { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; }
@media (max-width: 36rem) { .next { grid-template-columns: auto 1fr; } .next .btn { grid-column: 1 / -1; justify-self: start; } }
.cal { width: 66px; text-align: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card); flex: none; }
.cal small { display: block; background: var(--ink); color: var(--card); font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 3px 0; }
.cal b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 1.9rem; line-height: 1.25; padding-bottom: 3px; font-variant-numeric: lining-nums; }
.btn { display: inline-flex; align-items: center; gap: 8px; font: 700 .875rem var(--f-body); color: var(--card); background: var(--ink); border: 0; padding: 10px 16px; border-radius: 999px; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--accent); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }

/* path cards (home index) */
.path { --min: 15rem; }
.path a { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s; }
.path a:hover { border-color: var(--accent); transform: translateY(-2px); }
.path .pg { font-family: var(--f-display); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-size: .75rem; color: var(--accent); }
.path h3 { font-size: var(--s2); }
.path p { color: var(--ink-soft); font-size: .9375rem; line-height: 1.5; }
.meter { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 6px; font-size: .8125rem; color: var(--ink-soft); }
.meter i { flex: 1; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.meter i span { display: block; height: 100%; background: var(--ok); }

/* ---------- couple ---------- */
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; margin: 0; }
.dl dt { font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; color: var(--ink-soft); padding-top: 4px; }
.dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 30rem) { .dl { grid-template-columns: 1fr; gap: 2px; } .dl dd { margin-bottom: 10px; } }
.copy { font: 600 .75rem var(--f-body); color: var(--accent); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; margin-left: 6px; cursor: pointer; vertical-align: 1px; }
.copy:hover { border-color: var(--accent); }

.story { list-style: none; margin: 0; padding: 0; position: relative; display: flex; flex-direction: column; }
.story::before { content: ""; position: absolute; left: 13px; top: 14px; bottom: 14px; width: 1px; background: var(--line); }
.story li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 10px 0; }
.story .h { width: 28px; height: 26px; position: relative; z-index: 1; color: var(--accent); }
.story .h svg { width: 100%; height: 100%; display: block; }
.story time { font-family: var(--f-display); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .75rem; color: var(--gold); }
.story strong { display: block; font-family: var(--f-display); font-size: var(--s2); font-weight: 500; line-height: 1.15; font-style: italic; }
.story p { color: var(--ink-soft); font-size: .9375rem; }

.sched { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 4px 28px; }
.sched li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px; padding: 9px 12px; border-radius: 10px; align-items: baseline; }
.sched li.yours { background: var(--wash); }
.sched li.yours span:last-child { font-weight: 700; }
.sched time { font-family: var(--f-display); font-weight: 600; font-size: 1.0625rem; color: var(--accent); white-space: nowrap; font-variant-numeric: lining-nums; }
.tag { display: inline-block; font-size: .6875rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 1px 8px; border-radius: 999px; vertical-align: 2px; margin-left: 6px; }
.tag.you { color: var(--card); background: var(--accent); }
.tag.done { color: var(--ok); border: 1px solid currentColor; }
.tag.must { color: var(--warn); border: 1px solid currentColor; }

/* ---------- interview ---------- */
.iv-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--card); }
.seg button { font: 700 .8125rem var(--f-body); color: var(--ink-soft); background: none; border: 0; padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--card); }
.iv-group { display: grid; grid-template-columns: 13rem 1fr; gap: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
@media (max-width: 48rem) { .iv-group { grid-template-columns: 1fr; gap: 12px; } }
.iv-group header { display: flex; flex-direction: column; gap: 4px; }
.iv-group header h3 { font-size: var(--s2); }
.iv-group header time { font-family: var(--f-display); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .75rem; color: var(--gold); }
.iv-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; counter-reset: q; }
.iv-q { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.iv-q[hidden] { display: none; }
.iv-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.who { font-size: .6875rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; white-space: nowrap; margin-top: 3px; }
.who.both { background: var(--wash); color: var(--accent); }
.who.canaan { background: var(--ink); color: var(--card); }
.who.kyla { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.iv-q p { font-size: 1.0625rem; line-height: 1.45; }
.iv-q textarea {
  width: 100%; min-height: 2.6rem; resize: vertical; font: .9375rem/1.5 var(--f-body); color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px;
}
.iv-q textarea::placeholder { color: var(--ink-soft); opacity: .8; }
.note { font-size: .8125rem; color: var(--ink-soft); }
.tips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tips li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; }
.tips li::before { content: ""; width: 7px; height: 7px; border: 1.5px solid var(--accent); transform: rotate(45deg); margin: 8px 0 0 3px; }

/* ---------- checklists / plan ---------- */
.road { position: relative; height: 34px; margin: 18px 8px 4px; }
.road-line { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.road-fill { position: absolute; left: 0; top: calc(50% - 1.5px); height: 3px; background: var(--accent); border-radius: 3px; }
.road-dot { position: absolute; top: 50%; width: 11px; height: 11px; transform: translate(-50%, -50%) rotate(45deg); background: var(--card); border: 1.5px solid var(--accent); }
.road-dot.past { background: var(--accent); }
.road-dot.big { width: 18px; height: 18px; background: var(--accent); }
.road-now { position: absolute; top: -18px; transform: translateX(-50%); font-size: .6875rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.ms { --min: 8rem; gap: 12px; }
.ms .card { padding: 16px 14px; }
.ms .card { display: flex; flex-direction: column; gap: 6px; }
.ms .card.next { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.ms .card.big { background: var(--wash); }
.ms .d { font-family: var(--f-display); font-weight: 600; font-size: 2rem; line-height: 1; font-variant-numeric: lining-nums; }
.ms .d small { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin-left: 6px; font-family: var(--f-display); }
.ms strong { font-family: var(--f-display); font-size: 1.25rem; font-weight: 600; line-height: 1.2; }
.ms p { font-size: .875rem; color: var(--ink-soft); line-height: 1.45; }
.ms .when { margin-top: auto; font-size: .75rem; font-weight: 700; letter-spacing: .06em; color: var(--ink-soft); }
.ms .card.next .when { color: var(--accent); }

.weeks { --min: 15.5rem; }
.week { display: flex; flex-direction: column; gap: 12px; }
.week.now { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.week-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.week h3 { font-size: var(--s2); font-style: italic; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; padding: 6px 4px; border-radius: 8px; cursor: pointer; font-size: .9375rem; line-height: 1.45; }
.check:hover { background: var(--wash); }
.check input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 2px 0 0; border: 1.5px solid var(--ink-soft); border-radius: 5px; display: grid; place-items: center; cursor: pointer; background: var(--card); }
.check input:checked { background: var(--ok); border-color: var(--ok); }
.check input:checked::after { content: ""; width: 9px; height: 5px; border: 2px solid var(--card); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.check input:checked + span { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ok) 60%, transparent); }
.check.must span::after { content: "Must"; font-size: .625rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--warn); border: 1px solid currentColor; border-radius: 999px; padding: 0 6px; margin-left: 8px; vertical-align: 2px; text-decoration: none; display: inline-block; }

.vows { --min: 12rem; }
.vow { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 18px; position: relative; }
.vow::after { content: ""; position: absolute; inset: 6px; border: 1px solid var(--line); border-radius: 10px; pointer-events: none; }
.vow .rn { font-family: var(--f-display); font-weight: 600; font-size: 1.75rem; color: var(--accent); line-height: 1; }
.vow strong { font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; line-height: 1.2; }
.vow p { font-size: .875rem; color: var(--ink-soft); line-height: 1.5; }
.vow.done { background: color-mix(in srgb, var(--ok) 8%, var(--card)); }

/* ---------- ceremony ---------- */
.flow { position: relative; display: flex; gap: 3px; height: 44px; margin-top: 6px; }
.flow span { border-radius: 999px; min-width: 6px; display: flex; align-items: center; justify-content: center; font: 600 .875rem var(--f-display); color: var(--card); cursor: default; }
.flow span.moment { background: var(--line); color: var(--ink); }
.flow span.speak { background: var(--accent); }
.flow span.legal { background: var(--gold); }
.axis { display: flex; justify-content: space-between; font-size: .8125rem; color: var(--ink-soft); font-style: italic; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .8125rem; color: var(--ink-soft); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.program { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 12px 36px; }
.program li { display: grid; grid-template-columns: 2rem 1fr; gap: 10px; }
.program li > div { min-width: 0; }
.program .pn { font-family: var(--f-display); font-weight: 600; color: var(--accent); font-size: 1.25rem; text-align: right; line-height: 1.3; font-variant-numeric: lining-nums; }
.program .row { display: flex; align-items: baseline; gap: 8px; }
.program .nm { font-family: var(--f-display); font-weight: 600; font-size: 1.0625rem; letter-spacing: .08em; text-transform: uppercase; min-width: 0; overflow-wrap: anywhere; }
.program .dots { flex: 1; border-bottom: 1px dotted var(--ink-soft); opacity: .5; transform: translateY(-4px); min-width: 12px; }
.program .mn { font-size: .8125rem; color: var(--ink-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.program .jb { font-size: .875rem; color: var(--ink-soft); line-height: 1.45; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 2.25rem 1fr; gap: 12px; counter-increment: s; }
.steps li::before { content: counter(s); font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; color: var(--card); background: var(--accent); width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; font-variant-numeric: lining-nums; }
.steps strong { display: block; font-family: var(--f-display); font-size: 1.25rem; font-weight: 600; line-height: 1.2; }
.steps p { color: var(--ink-soft); font-size: .9375rem; }
.lines { display: flex; flex-direction: column; gap: 14px; }
.line { border-left: 2px solid var(--accent); padding: 4px 0 4px 16px; display: flex; flex-direction: column; gap: 4px; }
.line .caps { font-size: .6875rem; }
.line blockquote { margin: 0; font-family: var(--f-display); font-size: 1.3125rem; line-height: 1.4; }
.line .ans { font-size: .875rem; color: var(--ink-soft); }
.bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.bullets li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; line-height: 1.5; }
.bullets li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin: 9px 0 0 4px; }

/* ---------- legal ---------- */
.cred { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
@media (max-width: 40rem) { .cred { grid-template-columns: 1fr; justify-items: start; } }
.seal { width: 8.5rem; aspect-ratio: 1; position: relative; color: var(--accent); flex: none; }
.seal svg { width: 100%; height: 100%; display: block; }
.seal div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.seal b { font-family: var(--f-display); font-weight: 600; font-size: 1.75rem; color: var(--ink); line-height: 1; font-variant-numeric: lining-nums; }
.seal small { font-size: .625rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.cred-name { font-family: var(--f-display); font-size: var(--s3); font-weight: 500; font-style: italic; line-height: 1.1; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.facts div { display: flex; flex-direction: column; gap: 2px; }
.facts b { font-family: var(--f-display); font-size: 1.25rem; font-weight: 600; font-variant-numeric: lining-nums; }
.lstep h3 { font-size: 1.375rem; margin-bottom: 10px; }

/* ---------- game day ---------- */
.run { list-style: none; margin: 0; padding: 0; position: relative; }
.run::before { content: ""; position: absolute; left: 6.15rem; top: 12px; bottom: 12px; width: 1px; background: var(--line); }
.run li { display: grid; grid-template-columns: 5.4rem 1.5rem 1fr; gap: 4px; padding: 8px 0; align-items: start; }
.run .clk { text-align: right; font-family: var(--f-display); font-weight: 600; font-size: 1.0625rem; line-height: 1.3; font-variant-numeric: lining-nums tabular-nums; }
.run .clk small { display: block; font-family: var(--f-body); font-size: .6875rem; font-weight: 700; color: var(--ink-soft); letter-spacing: .04em; }
.run .dot { width: 10px; height: 10px; transform: rotate(45deg); border: 1.5px solid var(--accent); background: var(--card); justify-self: center; margin-top: 7px; position: relative; z-index: 1; }
.run li.key .dot { background: var(--accent); }
.run li.go .dot { width: 15px; height: 15px; background: var(--gold); border-color: var(--gold); margin-top: 5px; }
.run li.key .tx { font-weight: 700; }
.run li.go .tx { font-family: var(--f-display); font-size: 1.375rem; font-style: italic; font-weight: 500; line-height: 1.25; }
.ifs { --min: 15rem; }
.ifs .card { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; }
.ifs em { font-family: var(--f-script); font-style: normal; font-size: 1.5rem; color: var(--accent); line-height: 1; }
.ifs strong { font-family: var(--f-display); font-size: 1.1875rem; font-weight: 600; line-height: 1.2; }
.ifs p { font-size: .875rem; color: var(--ink-soft); line-height: 1.5; }

.src { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
footer { border-top: 1px solid var(--line); padding-block: 26px 40px; color: var(--ink-soft); font-size: .8125rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--card); padding: 9px 16px; border-radius: 999px; font-size: .875rem; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; }
.toast.on { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .view:not([hidden]) { animation: rise .45s cubic-bezier(.2,.7,.2,1); }
  @keyframes rise { from { opacity: .001; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* ---------- guest site ---------- */
.gmono { display: flex; align-items: baseline; gap: 2px; text-decoration: none; color: var(--ink); flex: none; }
.gmono b { font-family: var(--f-display); font-weight: 500; font-size: 1.5rem; letter-spacing: .04em; }
.gmono i { font-family: var(--f-script); font-style: normal; font-size: 1.5rem; color: var(--accent); margin: 0 1px; }
.nav a[href="#rsvp"] { color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.nav a[href="#rsvp"][aria-current="page"] { color: var(--card); background: var(--accent); border-color: var(--accent); }
.gfoot { align-items: center; }
.made { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); text-decoration: none; font-size: .8125rem; }
.made img { height: 18px; width: auto; display: block; }
.maplinks { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: .875rem; font-weight: 700; margin-top: 4px; }
.event { display: flex; flex-direction: column; gap: 10px; }
.event h3 { font-size: var(--s3); }
.ev-time { font-family: var(--f-display); font-weight: 600; font-size: 1.5rem; color: var(--accent); font-variant-numeric: lining-nums; }
.rsvp-card { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.rsvp-card h3 { font-size: var(--s2); }
.email { font-size: 1.125rem; font-weight: 700; overflow-wrap: anywhere; }
.air, .hotel, .thing, .person { display: flex; flex-direction: column; gap: 6px; }
.air h3, .hotel h3, .thing h3, .person h3 { font-size: 1.375rem; }
.code { font-family: var(--f-display); font-weight: 600; font-size: 2rem; letter-spacing: .08em; color: var(--accent); line-height: 1; }
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 48rem; }
.faq details { padding: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-family: var(--f-display); font-size: 1.375rem; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-family: var(--f-body); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 20px; color: var(--ink-soft); max-width: 42rem; }
.story-photo { margin: 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); max-height: 36rem; }
.story-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pull { margin: 0 auto; max-width: 40rem; text-align: center; font-family: var(--f-display); font-style: italic; font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.4; color: var(--ink); display: flex; flex-direction: column; gap: 10px; }
.pull cite { font-style: normal; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: .8125rem; color: var(--accent); }
.empty { text-align: center; padding: 40px 22px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.path a h3 { font-size: var(--s2); }

/* ---------- admin ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: 12px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.stat b { font-family: var(--f-display); font-weight: 500; font-size: 2.4rem; line-height: 1; color: var(--accent); font-variant-numeric: lining-nums tabular-nums; }
.stat span { color: var(--ink-soft); font-size: .875rem; font-weight: 600; }
.couple { display: flex; flex-direction: column; gap: 14px; }
.couple-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px 16px; }
.couple-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.couple-id h3 { font-size: var(--s2); }
.facts2 { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 18px; margin: 0; font-size: .9375rem; }
.facts2 dt { color: var(--ink-soft); font-weight: 600; }
.facts2 dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 30rem) { .facts2 { grid-template-columns: 1fr; gap: 2px; } .facts2 dd { margin-bottom: 8px; } }
.chip { display: inline-block; background: var(--wash); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: .8125rem; font-weight: 600; overflow-wrap: anywhere; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); white-space: nowrap; }
.pill.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.factions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.btn.danger { background: var(--warn); }
.btn[disabled] { opacity: .6; cursor: default; }
.aform { display: flex; flex-direction: column; gap: 14px; }
.frow { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > span { font-size: .8125rem; font-weight: 700; color: var(--ink-soft); letter-spacing: .02em; }
.field input, .field select, .field textarea, .sinput {
  font: 400 1rem var(--f-body); color: var(--ink); background: var(--paper); border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 12px; width: 100%; min-width: 0;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .sinput:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.ferr { color: var(--warn); font-weight: 600; min-height: 0; }
.ferr:empty { display: none; }
.invite, .confirm { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.inv-meta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; margin: 0; font-size: .9375rem; }
.inv-meta dt { color: var(--ink-soft); font-weight: 600; }
.inv-meta dd { margin: 0; overflow-wrap: anywhere; }
.inv-body { margin: 0; white-space: pre-wrap; font: 400 .9375rem/1.6 var(--f-body); background: var(--wash); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; overflow-wrap: anywhere; }
.small { font-size: .875rem; }

/* ---------- seating ---------- */
:root {
  --side-a: #9E6B76; --side-b: #4C6FA3; --side-both: #8A6E3E; --seat-ink: #FFFFFF;
  --t0: #4C6FA3; --t1: #9E6B76; --t2: #5F8669; --t3: #8A6E3E; --t4: #6E5C99; --t5: #417C88; --t6: #9A6243; --t7: #5B6A86; --t8: #A3577E; --t9: #6B7F3A; --t10: #2F6E9E; --t11: #8C5A9C;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --side-a: #DDA7B2; --side-b: #93AEDA; --side-both: #CDB283; --seat-ink: #0F151F;
  --t0: #93AEDA; --t1: #DDA7B2; --t2: #9CC7A6; --t3: #CDB283; --t4: #B7A6E0; --t5: #8CC6D1; --t6: #E2A985; --t7: #AEBBD3; --t8: #E39BBE; --t9: #BCCB8A; --t10: #7FB4E0; --t11: #CFA3DE;
} }
:root[data-theme="dark"] {
  --side-a: #DDA7B2; --side-b: #93AEDA; --side-both: #CDB283; --seat-ink: #0F151F;
  --t0: #93AEDA; --t1: #DDA7B2; --t2: #9CC7A6; --t3: #CDB283; --t4: #B7A6E0; --t5: #8CC6D1; --t6: #E2A985; --t7: #AEBBD3; --t8: #E39BBE; --t9: #BCCB8A; --t10: #7FB4E0; --t11: #CFA3DE;
}
.seat-top { display: flex; flex-direction: column; gap: 14px; }
.balance { display: flex; flex-direction: column; gap: 8px; }
.bal-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--line); gap: 2px; }
.bal-bar span { min-width: 0; }
.bal-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .875rem; color: var(--ink-soft); }
.bal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.bal-legend b { color: var(--ink); }
.side-a { background: var(--side-a); fill: var(--side-a); }
.side-b { background: var(--side-b); fill: var(--side-b); }
.side-both { background: var(--side-both); fill: var(--side-both); }
.sdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.seat-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 58px); z-index: 10; background: color-mix(in srgb, var(--paper) 94%, transparent); padding-block: 8px; margin-block: -8px; }
.segtabs { display: inline-flex; flex-wrap: wrap; gap: 4px; background: var(--wash); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.segtabs button { font: 700 .875rem var(--f-body); color: var(--ink-soft); background: transparent; border: 0; border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.segtabs button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.seatbody { display: flex; flex-direction: column; gap: 20px; }
.btn.sm { padding: 6px 12px; font-size: .8125rem; }
.btn.warnb { color: var(--warn); }
.chips, .tnames { display: flex; flex-wrap: wrap; gap: 6px; }
.gchip { display: inline-flex; align-items: center; gap: 6px; font: 600 .8125rem var(--f-body); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px 5px 9px; cursor: pointer; max-width: 100%; }
.gchip small { color: var(--ink-soft); font-weight: 600; }
.gchip:hover { border-color: var(--accent); }
.gchip.sel { background: var(--ink); color: var(--card); border-color: var(--ink); }
.gchip.sel small { color: inherit; }
.unseated { display: flex; flex-direction: column; gap: 12px; }
.unseated .sec-head h3 { font-size: var(--s1); }
.unseated select, .seat-search .sinput { font: 600 .875rem var(--f-body); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.seat-search .sinput { width: min(16rem, 100%); }
.selbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; background: var(--wash); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.tgrid { --min: 15rem; }
.tcard { display: flex; flex-direction: column; gap: 12px; padding: 16px; transition: border-color .15s, box-shadow .15s; }
.tcard.target { border-color: var(--accent); }
.tcard.over { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 40%, transparent); }
.tcard-svg { cursor: default; }
.tcard.target .tcard-svg { cursor: pointer; }
.tsvg { display: block; width: 100%; max-width: 240px; height: auto; margin-inline: auto; }
.tsvg .tbl { fill: color-mix(in srgb, var(--tc) 14%, var(--card)); stroke: var(--tc); stroke-width: 2; }
.tsvg .tname { font: 600 15px var(--f-display); fill: var(--ink); text-anchor: middle; }
.tsvg .tcount { font: 700 11px var(--f-body); fill: var(--ink-soft); text-anchor: middle; }
.tsvg .seat.empty { fill: var(--card); stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 3 3; }
.tsvg .seat.on { cursor: pointer; }
.tsvg .seat.on text { font: 800 10.5px var(--f-body); fill: var(--seat-ink); text-anchor: middle; pointer-events: none; }
.tsvg .seat.sel circle { stroke: var(--ink); stroke-width: 3; }
.twarn { margin: 0; padding-left: 18px; color: var(--warn); font-size: .8125rem; font-weight: 600; }
.treewrap { overflow-x: auto; padding: 16px; }
.tree { display: block; height: auto; margin-inline: auto; }
.tree .thead { font: 600 15px var(--f-display); fill: var(--ink); letter-spacing: .06em; text-transform: uppercase; }
.tree .tgen { font: 700 10px var(--f-body); fill: var(--ink-soft); text-anchor: middle; letter-spacing: .14em; text-transform: uppercase; }
.tree .trule { stroke: var(--line); stroke-dasharray: 2 5; }
.tree .tlink { fill: none; stroke: var(--line); stroke-width: 1.5; }
.tree .tpair { stroke: var(--ink-soft); stroke-width: 2; }
.tree .tbox { fill: var(--card); stroke-width: 2; }
.tree .tbox.side-a { stroke: var(--side-a); fill: color-mix(in srgb, var(--side-a) 10%, var(--card)); }
.tree .tbox.side-b { stroke: var(--side-b); fill: color-mix(in srgb, var(--side-b) 10%, var(--card)); }
.tree .tbox.side-both { stroke: var(--side-both); fill: color-mix(in srgb, var(--side-both) 10%, var(--card)); }
.tree .tnode { cursor: pointer; }
.tree .tnode:focus-visible .tbox, .tree .tnode.sel .tbox { stroke: var(--ink); stroke-width: 3; }
.tree .tn { font: 700 12.5px var(--f-body); fill: var(--ink); }
.tree .tr { font: 600 10.5px var(--f-body); fill: var(--ink-soft); }
.tree .tt { font: 800 10px var(--f-body); fill: var(--seat-ink); text-anchor: middle; }
.tree .tcouple { fill: var(--ink); }
.tree .tcname { font: 500 22px var(--f-script); fill: var(--card); text-anchor: middle; }
.clusters { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); align-items: start; }
.cluster { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.cl { max-width: 100%; height: auto; }
.cl-ring.side-a { fill: color-mix(in srgb, var(--side-a) 10%, var(--card)); stroke: var(--side-a); stroke-width: 2; }
.cl-ring.side-b { fill: color-mix(in srgb, var(--side-b) 10%, var(--card)); stroke: var(--side-b); stroke-width: 2; }
.cl-ring.side-both { fill: color-mix(in srgb, var(--side-both) 10%, var(--card)); stroke: var(--side-both); stroke-width: 2; }
.cl-dot { stroke: var(--card); stroke-width: 1.5; }
.cl-dot.un { fill: var(--card); stroke: var(--ink-soft); stroke-width: 1.5; }
.cluster figcaption { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.cluster figcaption strong { font-family: var(--f-display); font-size: var(--s1); font-weight: 600; }
.verdict { font-size: .8125rem; font-weight: 700; color: var(--ink-soft); }
.verdict.ok { color: var(--ok); }
.verdict.split { color: var(--warn); }
.tlegend { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; font-size: .75rem; color: var(--ink-soft); }
.tlegend span { display: inline-flex; align-items: center; gap: 4px; }
.tlegend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.bulk summary { cursor: pointer; font-weight: 700; }
.bulk[open] summary { margin-bottom: 14px; }
.check-inline { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9375rem; }
.glist { padding: 0; overflow-x: auto; }
.glist table { width: 100%; border-collapse: collapse; font-size: .9375rem; min-width: 44rem; }
.glist th { text-align: left; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); padding: 12px 14px; border-bottom: 1px solid var(--line); }
.glist td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.glist td:first-child { white-space: nowrap; }
.glist td:first-child .sdot { margin-right: 8px; }
.glist tr:last-child td { border-bottom: 0; }
.glist tr.editing td { background: var(--wash); white-space: normal; }
.tpill { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .8125rem; white-space: nowrap; }
.tpill::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--tc); }
.glines { display: flex; flex-direction: column; gap: 10px; }
.gline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.gline .btn { margin-left: auto; }
@media (max-width: 36rem) { .tgrid { --min: 9.5rem; gap: 10px; } .tcard { padding: 12px; } .tcard .gchip { font-size: .75rem; padding: 4px 9px 4px 7px; } }
#admin-body { display: flex; flex-direction: column; gap: 28px; }
.segtabs { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
@media (max-width: 30rem) { .segtabs button { padding: 7px 11px; font-size: .8125rem; white-space: nowrap; } }
