/* House in Order Co. wedding website template. Themes: heirloom, garden, modern. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- themes ---------- */
body[data-theme="heirloom"] {
  --paper: #F4EEE3; --paper2: #EDE4D3; --card: #FAF6EE; --ink: #1E2A44; --ink-soft: #545E77;
  --accent: #A3864E; --accent-ink: #7A6232; --line: rgba(30, 42, 68, .17); --on-ink: #F4EEE3;
  --seal: #7B2433; --seal2: #561521; --env: #E9DFCC; --env2: #DCCFB5; --env-line: rgba(122, 98, 50, .25);
  --f-display: "Cormorant Garamond", Georgia, serif; --f-script: "Pinyon Script", "Snell Roundhand", cursive;
  --f-body: "EB Garamond", Georgia, serif; --f-label: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --t-style: italic; --t-weight: 500; --fs-body: 19.5px; --name-size: clamp(64px, 11vw, 132px); --name-lh: 1.05;
  --label-track: .32em; --label-size: 11px; --radius: 2px;
}
body[data-theme="garden"] {
  --paper: #F6F2E9; --paper2: #EEE9DC; --card: #FBF9F3; --ink: #37422F; --ink-soft: #5F6A55;
  --accent: #7A2E3A; --accent-ink: #6A2430; --line: rgba(55, 66, 47, .18); --on-ink: #F6F2E9;
  --sage: #A3AD8A; --seal: #6E2A33; --seal2: #4D1A22; --env: #E7E3D3; --env2: #D9D3BE; --env-line: rgba(55, 66, 47, .22);
  --f-display: "Fraunces", Georgia, serif; --f-script: "Allura", cursive;
  --f-body: "Lora", Georgia, serif; --f-label: "Jost", "Helvetica Neue", Arial, sans-serif;
  --t-style: italic; --t-weight: 300; --fs-body: 18px; --name-size: clamp(66px, 11.5vw, 138px); --name-lh: 1.0;
  --label-track: .28em; --label-size: 11.5px; --radius: 14px;
}
body[data-theme="modern"] {
  --paper: #FAF8F5; --paper2: #F1EEE8; --card: #FFFFFF; --ink: #151515; --ink-soft: #5C5A57;
  --accent: #8A7560; --accent-ink: #6B5A48; --line: rgba(21, 21, 21, .14); --on-ink: #FAF8F5;
  --seal: #1C1C1C; --seal2: #000000; --env: #EFECE6; --env2: #E3DED5; --env-line: rgba(0, 0, 0, .14);
  --f-display: "Bodoni Moda", "Didot", Georgia, serif; --f-script: "Bodoni Moda", Georgia, serif;
  --f-body: "Jost", "Helvetica Neue", Arial, sans-serif; --f-label: "Jost", "Helvetica Neue", Arial, sans-serif;
  --t-style: normal; --t-weight: 400; --fs-body: 17.5px; --name-size: clamp(54px, 10vw, 128px); --name-lh: .98;
  --label-track: .3em; --label-size: 11px; --radius: 0px;
}

body {
  margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: var(--fs-body);
  line-height: 1.62; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
body.locked { overflow: hidden; }
/* paper grain */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .27 0 0 0 0 .2 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body[data-theme="modern"]::before { opacity: .25; }
#app { position: relative; z-index: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.eyebrow, .label {
  font-family: var(--f-label); font-size: var(--label-size); letter-spacing: var(--label-track); text-transform: uppercase;
  font-weight: 600; color: var(--accent-ink); margin: 0;
}
body[data-theme="modern"] .eyebrow, body[data-theme="modern"] .label { font-weight: 500; }
.script { font-family: var(--f-script); font-weight: 400; }
body[data-theme="modern"] .script { font-style: italic; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 13px 28px;
  border: 1px solid var(--ink); background: transparent; color: var(--ink); border-radius: var(--radius);
  font-family: var(--f-label); font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.btn:hover { background: var(--ink); color: var(--on-ink); }
.btn.solid { background: var(--ink); color: var(--on-ink); }
.btn.solid:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn.small { min-height: 38px; padding: 8px 16px; font-size: 10.5px; letter-spacing: .18em; }
.btn.ghost { border-color: var(--line); }
.btn[disabled] { opacity: .5; cursor: wait; }
body[data-theme="garden"] .btn { border-radius: 999px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px clamp(16px, 4vw, 40px); transition: background .3s, box-shadow .3s, padding .3s;
}
.nav.scrolled { background: color-mix(in srgb, var(--paper) 94%, transparent); box-shadow: 0 1px 0 var(--line); padding-top: 10px; padding-bottom: 10px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.nav .mono { font-family: var(--f-display); font-size: 22px; letter-spacing: .06em; text-decoration: none; color: var(--ink); white-space: nowrap; }
.nav .mono i { font-style: italic; color: var(--accent); padding: 0 .12em; }
.nav ul { display: flex; gap: clamp(14px, 2vw, 28px); list-style: none; margin: 0; padding: 0; align-items: center; }
.nav ul a { font-family: var(--f-label); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; font-weight: 600; color: var(--ink); padding: 6px 0; border-bottom: 1px solid transparent; }
.nav ul a:hover { border-color: var(--accent); }
.nav ul a.btn { padding: 8px 18px; border: 1px solid var(--ink); }
.nav ul a.btn:hover { color: var(--on-ink); }
.nav .menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font-family: var(--f-label); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; padding: 10px 14px; cursor: pointer; }
body[data-theme="modern"] .nav.on-photo:not(.scrolled) .mono,
body[data-theme="modern"] .nav.on-photo:not(.scrolled) ul a,
body[data-theme="modern"] .nav.on-photo:not(.scrolled) .menu-btn { color: #fff; border-color: rgba(255,255,255,.55); }
@media (max-width: 860px) {
  .nav ul { display: none; }
  .nav .menu-btn { display: inline-block; }
}
.sheet {
  position: fixed; inset: 0; z-index: 60; background: var(--paper); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.sheet.open { opacity: 1; visibility: visible; }
/* scrolls on short / landscape phones; links stay centred when they fit */
.sheet { overflow-y: auto; overscroll-behavior: contain; justify-content: flex-start; padding: 64px 16px 24px; }
.sheet > a:first-of-type { margin-top: auto; }
.sheet > a:last-child { margin-bottom: auto; }
.sheet a { font-family: var(--f-display); font-style: var(--t-style); font-weight: var(--t-weight); font-size: 34px; text-decoration: none; color: var(--ink); padding: 4px 12px; }
.sheet .close { position: absolute; top: 14px; right: 16px; }

/* ---------- layout ---------- */
.sec { position: relative; padding: clamp(72px, 11vw, 128px) clamp(16px, 5vw, 48px); }
.sec.alt { background: var(--paper2); }
.wrap { max-width: 1080px; margin: 0 auto; }
.narrow { max-width: 700px; margin: 0 auto; }
.center { text-align: center; }
.sec-head { text-align: center; margin: 0 auto clamp(36px, 6vw, 60px); max-width: 720px; }
.sec-head h2 {
  font-family: var(--f-display); font-style: var(--t-style); font-weight: var(--t-weight); font-size: clamp(42px, 6.4vw, 66px);
  line-height: 1.05; margin: 10px 0 0; letter-spacing: -.005em;
}
body[data-theme="modern"] .sec-head { text-align: left; margin-left: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 28px; align-items: end; border-bottom: 1px solid var(--ink); padding-bottom: 18px; max-width: none; }
body[data-theme="modern"] .sec-head .num { font-family: var(--f-display); font-size: clamp(54px, 8vw, 92px); line-height: .8; grid-row: span 2; }
body[data-theme="modern"] .sec-head h2 { font-size: clamp(36px, 5.4vw, 58px); text-transform: uppercase; letter-spacing: .02em; margin-top: 4px; }
body[data-theme="modern"] .sec-head .orn { display: none; }
.sec-head .lede { margin: 18px auto 0; color: var(--ink-soft); max-width: 560px; }
body[data-theme="modern"] .sec-head .lede { grid-column: 2; margin: 10px 0 0; }
.orn { display: flex; justify-content: center; margin-top: 16px; color: var(--accent); }
.orn svg { display: block; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 110px clamp(16px, 5vw, 48px) 70px; overflow: hidden; }
.hero .inner { position: relative; z-index: 2; max-width: 980px; width: 100%; }
.hero .pre { margin-bottom: 18px; }
.hero h1 { margin: 0; font-weight: 400; }
.hero .names { font-family: var(--f-script); font-size: var(--name-size); line-height: var(--name-lh); display: block; color: var(--ink); }
.hero .names .amp { display: block; font-family: var(--f-display); font-style: italic; font-size: .42em; color: var(--accent); line-height: 1.2; margin: .02em 0; }
.hero .date-line { margin-top: 26px; display: flex; align-items: center; justify-content: center; gap: 18px; font-family: var(--f-label); font-size: 13px; letter-spacing: .3em; text-transform: uppercase; font-weight: 600; }
.hero .date-line span.rule { width: 46px; height: 1px; background: var(--accent); }
@media (max-width: 380px) {
  .hero .date-line { gap: 10px; letter-spacing: .22em; }
  .hero .date-line span.rule { width: 22px; }
  .count div { min-width: 0; flex: 1; }
  .rsvp-card { padding: 22px 16px; }
}
.hero .place { margin-top: 10px; font-family: var(--f-display); font-style: italic; font-size: 22px; color: var(--ink-soft); }
.hero .cta { margin-top: 34px; }
.crest { width: 132px; height: 132px; margin: 0 auto 6px; color: var(--accent); position: relative; }
.crest svg { width: 100%; height: 100%; }
.crest .ini { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-size: 34px; color: var(--ink); letter-spacing: .02em; }
.crest .ini i { font-size: .62em; color: var(--accent); padding: 0 .08em; font-style: italic; }

/* hero with arch photo (heirloom/garden) */
.hero.with-photo .inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 70px); align-items: center; max-width: 1120px; }
.hero.with-photo .copy { order: 2; }
.arch { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .35); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch-frame { position: relative; padding: 12px; border: 1px solid var(--accent); border-radius: 999px 999px calc(var(--radius) + 6px) calc(var(--radius) + 6px); }
.hero.with-photo .names { font-size: clamp(58px, 7.6vw, 112px); }
@media (max-width: 860px) {
  .hero.with-photo .inner { grid-template-columns: 1fr; }
  .hero.with-photo .copy { order: 1; }
  .hero.with-photo .arch-frame { max-width: 360px; margin: 0 auto; order: 2; }
}
.branch { position: absolute; color: var(--ink); opacity: .8; pointer-events: none; z-index: 1; }
body[data-theme="garden"] .branch { color: var(--ink); }

/* modern hero */
body[data-theme="modern"] .hero.photo-bg { color: #fff; align-items: flex-end; text-align: left; padding-bottom: clamp(48px, 9vw, 96px); }
body[data-theme="modern"] .hero.photo-bg .bg { position: absolute; inset: 0; z-index: 0; }
body[data-theme="modern"] .hero.photo-bg .bg img { width: 100%; height: 100%; object-fit: cover; }
body[data-theme="modern"] .hero.photo-bg .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.18) 55%, rgba(0,0,0,0) 80%), linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.05) 35%, rgba(0,0,0,.62) 100%); }
body[data-theme="modern"] .hero.photo-bg .btn-row { justify-content: flex-start; }
body[data-theme="modern"] .hero.photo-bg .names { text-shadow: 0 2px 30px rgba(0,0,0,.35); }
body[data-theme="modern"] .hero .names { font-family: var(--f-display); text-transform: uppercase; letter-spacing: -.01em; }
body[data-theme="modern"] .hero .names .amp { display: inline-block; font-size: .5em; text-transform: none; margin: 0 .22em; vertical-align: .12em; }
body[data-theme="modern"] .hero.photo-bg .names, body[data-theme="modern"] .hero.photo-bg .eyebrow, body[data-theme="modern"] .hero.photo-bg .place { color: #fff; }
body[data-theme="modern"] .hero.photo-bg .date-line { justify-content: flex-start; }
body[data-theme="modern"] .hero.photo-bg .date-line span.rule { background: #fff; }
body[data-theme="modern"] .hero.photo-bg .inner { max-width: 1180px; }
body[data-theme="modern"] .hero.photo-bg .btn { border-color: #fff; color: #fff; }
body[data-theme="modern"] .hero.photo-bg .btn:hover { background: #fff; color: #111; }
body[data-theme="modern"] .hero.photo-bg .count { justify-content: flex-start; }
body[data-theme="modern"] .hero.photo-bg .count div { border-color: rgba(255,255,255,.4); }
body[data-theme="modern"] .hero.photo-bg .count b, body[data-theme="modern"] .hero.photo-bg .count span { color: #fff; }

/* countdown */
.count { display: flex; justify-content: center; gap: clamp(8px, 2vw, 16px); margin-top: 30px; }
.count div { min-width: 74px; padding: 10px 8px 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.count b { display: block; font-family: var(--f-display); font-weight: 500; font-size: clamp(30px, 5vw, 44px); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.count span { display: block; margin-top: 6px; font-family: var(--f-label); font-size: 9.5px; letter-spacing: .25em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.count.done { font-family: var(--f-display); font-style: italic; font-size: 28px; }

/* ---------- story ---------- */
.story-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.story-grid.no-photo { grid-template-columns: 1fr; max-width: 700px; margin: 0 auto; }
.story-text p:first-child::first-letter { font-family: var(--f-display); float: left; font-size: 4.2em; line-height: .82; padding: .06em .1em 0 0; color: var(--accent); }
.story-photo { position: sticky; top: 100px; }
.story-photo .arch { aspect-ratio: 3 / 4; }
.mile { list-style: none; padding: 0; margin: clamp(40px, 6vw, 64px) 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.mile li { padding: 22px 18px 6px; border-right: 1px solid var(--line); }
.mile li:last-child { border-right: none; }
.mile .yr { font-family: var(--f-display); font-size: 36px; line-height: 1; color: var(--accent); font-style: var(--t-style); }
.mile h3 { margin: 10px 0 6px; font-family: var(--f-label); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; }
.mile p { font-size: .92em; color: var(--ink-soft); }
@media (max-width: 760px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-photo { position: static; max-width: 340px; margin: 0 auto; }
  .mile li { border-right: none; border-bottom: 1px solid var(--line); padding-left: 0; }
}

/* ---------- events ---------- */
.events { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: clamp(16px, 3vw, 28px); }
.event { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 4vw, 40px) clamp(22px, 3vw, 34px); text-align: center; display: flex; flex-direction: column; }
body[data-theme="heirloom"] .event { outline: 1px solid var(--line); outline-offset: -9px; }
body[data-theme="modern"] .event { text-align: left; border: none; border-top: 2px solid var(--ink); background: transparent; padding-left: 0; padding-right: 0; }
.event h3 { margin: 10px 0 14px; font-family: var(--f-display); font-style: var(--t-style); font-weight: var(--t-weight); font-size: 36px; line-height: 1.05; }
body[data-theme="modern"] .event h3 { text-transform: uppercase; font-size: 30px; font-style: normal; }
.event .when { font-family: var(--f-label); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.event .venue { margin-top: 16px; font-family: var(--f-display); font-size: 23px; font-style: italic; line-height: 1.2; }
.event .addr { color: var(--ink-soft); font-size: .92em; margin-top: 4px; }
.event .note { margin-top: 14px; font-size: .95em; }
.event .attire { margin-top: 12px; font-size: .9em; color: var(--ink-soft); }
.event .attire b { font-family: var(--f-label); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-ink); font-weight: 600; display: block; margin-bottom: 2px; }
.event .actions { margin-top: auto; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
body[data-theme="modern"] .event .actions { justify-content: flex-start; }
.cal { position: relative; }
.cal-menu { position: absolute; z-index: 10; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); min-width: 200px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 40px -18px rgba(0,0,0,.35); padding: 6px; display: none; text-align: left; }
.cal-menu.open { display: block; }
.cal-menu a { display: block; padding: 10px 12px; font-family: var(--f-label); font-size: 12px; letter-spacing: .08em; text-decoration: none; border-radius: var(--radius); }
.cal-menu a:hover { background: var(--paper2); }

.timeline { max-width: 640px; margin: clamp(56px, 8vw, 84px) auto 0; }
.timeline h3, .dress h3, .sub-h { text-align: center; font-family: var(--f-display); font-style: var(--t-style); font-weight: var(--t-weight); font-size: 34px; margin: 0 0 26px; }
.timeline ol { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline ol::before { content: ""; position: absolute; left: 50%; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 1fr 34px 1fr; align-items: center; padding: 10px 0; }
.timeline .t { text-align: right; font-family: var(--f-label); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--accent-ink); }
.timeline .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 1px solid var(--accent); margin: 0 auto; position: relative; z-index: 1; }
.sec.alt .timeline .dot { background: var(--paper2); }
.timeline .w { font-family: var(--f-display); font-size: 22px; line-height: 1.25; }
.timeline .w small { display: block; font-family: var(--f-body); font-size: 15px; color: var(--ink-soft); }

.dress { max-width: 720px; margin: clamp(56px, 8vw, 84px) auto 0; text-align: center; }
.dress .code { font-family: var(--f-label); font-size: 13px; letter-spacing: .3em; text-transform: uppercase; font-weight: 600; color: var(--accent-ink); margin-bottom: 14px; }
.swatches { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 24px; }
.swatches figure { margin: 0; width: 70px; }
.swatches span { display: block; width: 54px; height: 54px; margin: 0 auto; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 6px 14px -8px rgba(0,0,0,.4); }
.swatches figcaption { margin-top: 8px; font-family: var(--f-label); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- cards (travel, registry, party) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(14px, 2.4vw, 24px); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; display: flex; flex-direction: column; }
body[data-theme="modern"] .card { border: none; border-top: 1px solid var(--ink); background: transparent; padding-left: 0; padding-right: 0; }
.card h3 { margin: 6px 0 8px; font-family: var(--f-display); font-weight: var(--t-weight); font-style: var(--t-style); font-size: 27px; line-height: 1.15; }
body[data-theme="modern"] .card h3 { font-style: normal; }
.card .meta { color: var(--ink-soft); font-size: .92em; }
.card .code-box { margin-top: 14px; padding: 10px 12px; border: 1px dashed var(--accent); border-radius: var(--radius); font-size: .9em; }
.card .code-box b { font-family: var(--f-label); letter-spacing: .14em; }
.card .btn { margin-top: auto; align-self: flex-start; }
.card .spacer { flex: 1; min-height: 18px; }
.travel-note { max-width: 700px; margin: 0 auto clamp(30px, 5vw, 44px); text-align: center; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: clamp(30px, 5vw, 44px); }
.facts div { border-top: 1px solid var(--line); padding-top: 14px; }
.facts h4 { margin: 0 0 6px; font-family: var(--f-label); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-ink); font-weight: 600; }

.registry { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 32px; }
.registry a { min-width: 220px; padding: 22px 26px; border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); text-decoration: none; text-align: center; transition: border-color .25s, transform .25s; }
.registry a:hover { border-color: var(--accent); transform: translateY(-2px); }
.registry a b { display: block; font-family: var(--f-display); font-size: 25px; font-weight: 500; font-style: var(--t-style); }
.registry a span { font-family: var(--f-label); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-ink); font-weight: 600; }

.party { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px 20px; }
.person { text-align: center; flex: 0 1 180px; }
@media (max-width: 520px) { .person { flex-basis: 44%; } .person .ph { width: 120px; height: 120px; } }
.person .ph { width: 150px; height: 150px; margin: 0 auto 14px; border-radius: 50%; overflow: hidden; background: var(--paper2); display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-size: 44px; color: var(--accent); border: 1px solid var(--line); }
body[data-theme="modern"] .person .ph { border-radius: 0; width: 100%; height: auto; aspect-ratio: 4 / 5; }
.person .ph img { width: 100%; height: 100%; object-fit: cover; }
.person b { display: block; font-family: var(--f-display); font-size: 23px; font-weight: 500; }
.person span { font-family: var(--f-label); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-ink); font-weight: 600; }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
.gallery button { display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: none; background: var(--paper2); cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery button:hover img { transform: scale(1.03); }
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(10,10,10,.92); display: flex; align-items: center; justify-content: center; padding: 20px; }
.lightbox img { max-height: 90vh; max-width: 92vw; width: auto; }
.lightbox button { position: absolute; top: 14px; right: 14px; color: #fff; border-color: rgba(255,255,255,.5); }

/* ---------- faq ---------- */
.faq { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font-family: var(--f-display); font-size: 24px; line-height: 1.3; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 13px; height: 13px; border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: translateY(-70%) rotate(45deg); transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq .a { padding: 0 0 24px; color: var(--ink-soft); }

/* ---------- rsvp ---------- */
.rsvp-card { max-width: 680px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 5vw, 52px); box-shadow: 0 30px 60px -45px rgba(0,0,0,.45); }
body[data-theme="heirloom"] .rsvp-card { outline: 1px solid var(--line); outline-offset: -10px; }
.rsvp-card .intro-line { text-align: center; color: var(--ink-soft); margin-bottom: 26px; }
.deadline { text-align: center; margin-bottom: 24px; }
.field { display: block; margin-bottom: 16px; text-align: left; }
.field > span { display: block; font-family: var(--f-label); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--ink-soft); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 14px; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
body[data-theme="garden"] .field input, body[data-theme="garden"] .field textarea { border-radius: 10px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.field textarea { min-height: 96px; resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .two { grid-template-columns: 1fr; gap: 0; } }
.msg { margin: 6px 0 16px; padding: 12px 14px; border-radius: var(--radius); font-size: .95em; }
.msg.err { background: color-mix(in srgb, #B3261E 9%, var(--card)); border: 1px solid color-mix(in srgb, #B3261E 35%, transparent); color: #7A1A14; }
.msg.info { background: var(--paper2); border: 1px solid var(--line); }
.hh-title { text-align: center; margin-bottom: 6px; }
.hh-title h3 { font-family: var(--f-display); font-style: var(--t-style); font-weight: var(--t-weight); font-size: 34px; margin: 8px 0 4px; line-height: 1.1; }
.guest { border-top: 1px solid var(--line); padding: 22px 0 6px; }
.guest .gname { font-family: var(--f-display); font-size: 25px; font-weight: 500; margin-bottom: 12px; }
.guest .gname small { font-family: var(--f-label); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-ink); margin-left: 8px; font-weight: 600; }
.q { margin-bottom: 16px; }
.q .qlabel { font-family: var(--f-label); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; margin-bottom: 8px; color: var(--ink-soft); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; flex: 1 1 128px; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); font-size: 16px; transition: all .2s; }
body[data-theme="garden"] .choice span { border-radius: 999px; }
.choice input:checked + span { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.meals { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.meals .choice span { flex-direction: column; align-items: flex-start; text-align: left; min-height: 0; padding: 12px 14px; border-radius: var(--radius) !important; }
.meals .choice b { font-weight: 600; font-size: 16px; }
.meals .choice small { font-size: 13.5px; color: var(--ink-soft); line-height: 1.35; margin-top: 2px; }
.meals .choice input:checked + span small { color: color-mix(in srgb, var(--on-ink) 80%, transparent); }
.hh-extra { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 8px; }
.rsvp-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-top: 18px; }
.linkish { background: none; border: none; padding: 6px 0; font-family: var(--f-label); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.pick { display: grid; gap: 10px; }
.pick button { text-align: left; padding: 16px 18px; border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); font: inherit; cursor: pointer; color: var(--ink); }
.pick button:hover { border-color: var(--accent); }
.pick button small { display: block; color: var(--ink-soft); font-size: 14px; }
.done { text-align: center; }
.done h3 { font-family: var(--f-script); font-size: clamp(48px, 9vw, 70px); font-weight: 400; margin: 6px 0 10px; line-height: 1.1; }
body[data-theme="modern"] .done h3 { font-family: var(--f-display); font-style: italic; }
.done ul { list-style: none; padding: 0; margin: 20px auto; max-width: 440px; text-align: left; }
.done li { display: grid; grid-template-columns: minmax(90px, 30%) 1fr; gap: 4px 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .95em; line-height: 1.45; }
.done li b { font-weight: 600; }
.done li span { color: var(--ink-soft); }
@media (max-width: 480px) { .done li { grid-template-columns: 1fr; } }
.done .rsvp-credit { margin: 30px auto 0; max-width: 440px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .85em; color: var(--ink-soft); }
.done .rsvp-credit a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); }
.choice span { height: 100%; }
.demo-note { margin: 0 auto 22px; max-width: 680px; text-align: center; font-family: var(--f-label); font-size: 12px; letter-spacing: .06em; padding: 10px 14px; border: 1px dashed var(--accent); border-radius: var(--radius); color: var(--accent-ink); }
.party-row { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 6px; }
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- footer ---------- */
.foot { text-align: center; padding: clamp(70px, 10vw, 110px) 20px 40px; }
.foot .names { font-family: var(--f-script); font-size: clamp(48px, 8vw, 76px); line-height: 1.1; }
body[data-theme="modern"] .foot .names { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(34px, 6vw, 56px); }
.foot .when { margin-top: 10px; }
.foot .tag { margin-top: 18px; font-family: var(--f-display); font-style: italic; font-size: 20px; color: var(--accent-ink); }
.foot .credit { margin-top: 56px; font-family: var(--f-label); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); opacity: .75; }
.foot .credit a { text-decoration: none; border-bottom: 1px solid var(--line); }

/* ---------- reveal on scroll ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.rv.in { opacity: 1; transform: none; }
.no-anim .rv { opacity: 1; transform: none; transition: none; }

/* ---------- password gate ---------- */
.gate { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.gate form { max-width: 380px; width: 100%; }

/* ---------- screenshot / share modes ---------- */
body.static .hero { min-height: 880px; }
body.static .nav { position: absolute; }
@media (max-width: 600px) { body.static .hero { min-height: 780px; } }
body.share { overflow: hidden; }
.share-card { width: 1200px; height: 630px; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; }
.share-card::after { content: ""; position: absolute; inset: 22px; border: 1px solid var(--accent); pointer-events: none; }
.share-card .names { font-family: var(--f-script); font-size: 118px; line-height: 1.12; margin: 6px 0 14px; color: var(--ink); }
.share-card .names .amp { font-family: var(--f-display); font-style: italic; font-size: .45em; color: var(--accent); }
body[data-theme="modern"] .share-card .names { font-family: var(--f-display); text-transform: uppercase; font-size: 84px; }
.share-card .eyebrow { font-size: 15px; }
.share-card .crest { width: 120px; height: 120px; }
.share-card.has-photo { justify-content: flex-start; }
.share-card.has-photo .share-photo { width: 46%; height: 100%; }
.share-card.has-photo .share-photo img { width: 100%; height: 100%; object-fit: cover; }
.share-card.has-photo .share-copy { flex: 1; padding: 0 40px; }
.share-card.has-photo .names { font-size: 92px; }
.share-card.has-photo::after { inset: 22px 22px 22px calc(46% + 22px); }

/* ---------- envelope intro ---------- */
.intro { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; background: var(--paper); transition: opacity .8s ease, visibility .8s; perspective: 1400px; }
.intro::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 42%, transparent 30%, rgba(0,0,0,.07) 100%); pointer-events: none; }
.intro.gone { opacity: 0; visibility: hidden; }
.intro .to { font-family: var(--f-display); font-style: italic; font-size: 20px; color: var(--ink-soft); text-align: center; }
.env { position: relative; width: min(86vw, 460px); aspect-ratio: 1.42; cursor: pointer; transform-style: preserve-3d; filter: drop-shadow(0 26px 30px rgba(0,0,0,.22)); border: none; padding: 0; background: none; }
.env .back { position: absolute; inset: 0; background: var(--env2); border-radius: 4px; }
.env .card-in { position: absolute; left: 6%; right: 6%; top: 7%; height: 86%; background: var(--card); border-radius: 3px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; box-shadow: 0 2px 6px rgba(0,0,0,.08); transition: transform 1.1s cubic-bezier(.2,.8,.2,1); z-index: 2; outline: 1px solid var(--line); outline-offset: -8px; }
.env .card-in .script { font-size: clamp(30px, 7vw, 44px); line-height: 1.1; color: var(--ink); }
body[data-theme="modern"] .env .card-in .script { font-family: var(--f-display); text-transform: uppercase; font-style: normal; font-size: clamp(22px, 5vw, 32px); }
.env .front { position: absolute; inset: 0; z-index: 3; border-radius: 4px; background: linear-gradient(160deg, var(--env) 0%, var(--env2) 100%); clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%); }
.env .front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top right, transparent 49.6%, var(--env-line) 50%, transparent 50.4%), linear-gradient(to top left, transparent 49.6%, var(--env-line) 50%, transparent 50.4%); background-size: 50% 100%; background-position: 0 0, 100% 0; background-repeat: no-repeat; opacity: .8; }
.env .flap { position: absolute; left: 0; right: 0; top: 0; height: 58%; z-index: 4; transform-origin: 50% 0; transition: transform .9s cubic-bezier(.4,.1,.3,1); transform-style: preserve-3d; }
.env .flap::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--env) 0%, color-mix(in srgb, var(--env2) 80%, var(--env)) 100%); clip-path: polygon(0 0, 100% 0, 50% 100%); border-radius: 4px 4px 0 0; }
.env .seal { position: absolute; left: 50%; top: 58%; z-index: 6; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--seal) 70%, #fff) 0%, var(--seal) 38%, var(--seal2) 100%);
  box-shadow: 0 4px 10px rgba(0,0,0,.35), inset 0 -3px 6px rgba(0,0,0,.35), inset 0 3px 5px rgba(255,255,255,.18);
  color: rgba(255,255,255,.88); font-family: var(--f-display); font-size: 25px; letter-spacing: .02em; transition: transform .5s ease, opacity .5s ease; }
.env .seal::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.28); box-shadow: inset 0 2px 3px rgba(0,0,0,.25); }
.env .seal i { font-size: .62em; padding: 0 .06em; font-style: italic; }
body[data-theme="modern"] .env .seal { color: #D8C7A8; }
.intro .hint { font-family: var(--f-label); font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.intro.opening .seal { transform: scale(.6); opacity: 0; }
.intro.opening .flap { transform: rotateX(180deg); }
.intro.flap-back .flap { z-index: 1; }
.intro.rise .card-in { transform: translateY(-58%); }
.intro.opening .hint { opacity: 0; animation: none; transition: opacity .3s; }
.intro .skip { position: absolute; bottom: 22px; right: 22px; }
