/* ==========================================================
   THEME: That's Amore! — modern Italian riviera
   Ivory paper, cobalt ink, lemon and wine accents.

   This file is the whole look of the site. Restyle or replace it
   freely for a new trip; the rules the games need to work live in
   essentials.css, which loads after this one.
   ========================================================== */

:root {
  --bg: #fcf6e6;
  --surface: #fdf7e8;
  --surface-alt: #f5ebd2;
  --stripe-a: #d3e3f5;
  --stripe-b: #b7cfed;
  --ribbon: #e0b53a;
  --ink: #141c2f;
  --ink-soft: #5d6477;
  --ink-faint: #8b91a0;
  --line: #ece0c3;
  --line-strong: #dccca4;

  --cobalt: #1f3f7a;
  --cobalt-soft: #e9eef7;
  --sky: #7a9dd3;
  --lemon: #d9ae3b;
  --lemon-soft: #fbf3dc;
  --wine: #7a1f2b;
  --wine-soft: #f6e8ea;
  --olive: #5b6b3a;
  --olive-soft: #eef0e4;

  --font-script: "Great Vibes", "Snell Roundhand", cursive;
  --font-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 16px;
  --shadow: 0 1px 2px rgba(20, 28, 47, 0.04), 0 8px 28px rgba(20, 28, 47, 0.06);
  --shadow-hover: 0 1px 2px rgba(20, 28, 47, 0.05), 0 14px 36px rgba(20, 28, 47, 0.09);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--stripe-a);
  background-image: repeating-linear-gradient(
    90deg,
    var(--stripe-a) 0 44px,
    var(--stripe-b) 44px 88px
  );
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--cobalt);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

h1, h2, h3 { line-height: 1.1; margin: 0 0 0.5rem; }

:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
}

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.6rem 1.25rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.brand {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 2.7rem;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}

.brand em {
  font-style: normal;
  color: var(--wine);
  margin-left: 0.12em;
}

.nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 0.5rem 0 0.9rem;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.nav-links a:hover { color: var(--ink); }

.nav-links a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--cobalt);
}

/* ---------- Page layout ---------- */
main {
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 3.5rem;
}

.page-title {
  text-align: center;
  margin: 0 auto 3rem;
  max-width: 40rem;
}

.page-title h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 3.75rem);
  letter-spacing: -0.015em;
  margin: 0 0 0.75rem;
}

.page-title p {
  margin: 0;
  color: #2c3752;
  font-size: 1.05rem;
}

.page-title .eyebrow {
  margin-bottom: 0.9rem;
  font-size: 0.75rem;
  color: var(--cobalt);
}

.eyebrow {
  margin: 0 0 1.1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cobalt);
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}

/* yellow ribbon set just inside the edge of every card */
.card::after,
.faq-list::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 2px solid var(--ribbon);
  border-radius: calc(var(--radius) - 6px);
  pointer-events: none;
}

/* ---------- Hero (home page title card) ---------- */
/* the page's blue stripes run behind the title card */
.site-header--home { background: none; }

/* full-width cream band for the nav under the hero */
.site-header--home .nav {
  padding-top: 0.4rem;
  background: var(--bg);
  box-shadow: 0 0 0 100vmax var(--bg);
  clip-path: inset(0 -100vmax);
}

.hero {
  padding: clamp(1.75rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2.5rem);
}

.hero-panel {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 5.5rem 2rem 3.25rem;
  text-align: center;
  background: var(--bg);
  border-radius: 380px 380px 18px 18px;
  box-shadow: 0 20px 50px rgba(10, 20, 45, 0.35);
}

/* thin inset rule, like a painted plaque */
.hero-panel::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px solid var(--ribbon);
  border-radius: inherit;
  pointer-events: none;
}

.hero-kicker,
.hero-place {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero-kicker { color: var(--cobalt); }
.hero-place { color: var(--ink-soft); }

.hero-title {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(4.5rem, 11vw, 7.5rem);
  line-height: 1.1;
  color: var(--ink);
  margin: 1.5rem 0 1.1rem;
}

.hero-title em {
  font-style: normal;
  color: var(--wine);
  margin-left: 0.12em;
}

.hero-meta {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.75rem 0 0;
  padding: 0;
}

.hero-meta li {
  padding: 0.45rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.85rem;
  font-weight: 500;
}

.hero-meta li:empty { display: none; }

.hero-meta strong { color: var(--wine); font-weight: 600; }

/* ---------- Lodging: arched "home base" card ---------- */
.stay-card {
  max-width: 520px;
  margin: 0 auto;
  padding: 4rem 2rem 2.25rem;
  text-align: center;
  border-radius: 260px 260px 18px 18px;
}

.stay-card::after { border-radius: 252px 252px 12px 12px; }

.stay-card .eyebrow { margin-bottom: 0.6rem; }

/* the serif's old-style figures read oddly in addresses and times */
.stay-address,
.stay-hour { font-variant-numeric: lining-nums; }

.stay-address {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 7vw, 2.6rem);
  letter-spacing: -0.01em;
  margin: 0;
}

.stay-city {
  margin: 0.2rem 0 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.stay-note {
  margin: 0.75rem 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--wine);
}

.stay-times {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.75rem 0 1.5rem;
}

.stay-time {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.9rem 0.75rem;
  border-radius: 14px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.stay-label {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cobalt);
}

.stay-day { font-weight: 500; font-size: 0.95rem; }

.stay-hour {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--wine);
}

.stay-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.stay-btn {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.65rem 1.2rem;
  border: 1.5px solid var(--cobalt);
  border-radius: 999px;
  background: transparent;
  color: var(--cobalt);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.stay-btn:hover { background: var(--cobalt-soft); }

.stay-btn--primary { background: var(--cobalt); color: #fff; }
.stay-btn--primary:hover { background: #17325f; }

/* ---------- Itinerary ---------- */
.day-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 2.5rem;
  padding: 0.3rem;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.day-tab {
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.5rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.day-tab:hover { color: var(--ink); }

.tab-short { display: none; }

.day-tab[aria-selected="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(20, 28, 47, 0.1);
}

.days {
  display: grid;
  gap: 1.5rem;
}

.day {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  padding: 2.5rem;
}

.day h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.6rem;
  letter-spacing: -0.015em;
  margin: 0 0 0.35rem;
}

.day-date {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cobalt);
}

.day .day-sub {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* dotted rail between the times and the plans, with a dot per stop */
.timeline {
  --time-col: 7.5rem;
  --gap: 2.5rem;
  --pad: 0.85rem;
  --dot: 13px;
  --dot-top: 0.2rem;
  --rail: calc(var(--time-col) + var(--gap) / 2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  --p: var(--pad);
  position: relative;
  display: grid;
  grid-template-columns: var(--time-col) 1fr;
  gap: var(--gap);
  padding: var(--p) 0;
}

.timeline li:first-child { --p: 0.15rem; }
.timeline li:last-child { padding-bottom: 0; }

.timeline li::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: calc(var(--rail) - var(--dot) / 2);
  top: calc(var(--p) + var(--dot-top));
  width: var(--dot);
  height: var(--dot);
  border-radius: 50%;
  background: var(--lemon-soft);
  border: 2.5px solid var(--cobalt);
}

/* segment from this dot down to the next one */
.timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(var(--rail) - 1px);
  top: calc(var(--p) + var(--dot-top) + var(--dot) / 2);
  height: calc(100% - var(--p) + var(--pad));
  border-left: 2px dotted var(--sky);
}

.timeline time {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cobalt);
  font-variant-numeric: tabular-nums;
  padding-top: 0.15rem;
}

.timeline .what {
  font-weight: 500;
  font-size: 1.02rem;
}

.timeline .detail {
  display: block;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.tag {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.2rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 999px;
  background: var(--cobalt-soft);
  color: var(--cobalt);
}

a.tag { text-decoration: none; transition: filter 0.15s var(--ease); }
a.tag:hover { filter: brightness(0.95); text-decoration: underline; }

.tag--wine { background: var(--wine-soft); color: var(--wine); }
.tag--lemon { background: var(--lemon-soft); color: #7a5c0e; }
.tag--leaf { background: var(--olive-soft); color: var(--olive); }

/* ---------- Attendees ---------- */
.people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.25rem;
}

.person {
  text-align: center;
  padding: 2rem 1.5rem 1.75rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.person:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.avatar {
  width: 92px;
  height: 92px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 500;
  color: var(--cobalt);
  background: var(--cobalt-soft);
}

/* hand-drawn illustration in place of the initial */
.avatar.avatar--art {
  display: block;
  object-fit: contain;
  background: #fff;
}

.person--bride {
  grid-column: 1 / -1;
  max-width: 440px;
  width: 100%;
  justify-self: center;
  padding: 2.5rem 2rem 2.25rem;
  margin-bottom: 1rem;
  border-color: var(--line-strong);
}

.person--bride .avatar {
  width: 124px;
  height: 124px;
  font-size: 2.6rem;
  color: #fff;
  background: var(--wine);
  box-shadow: 0 0 0 5px var(--surface), 0 0 0 6px var(--line-strong);
}

.person h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  margin: 0;
}

.person .role {
  display: block;
  margin: 0.2rem 0 1.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.person--bride .avatar.avatar--art { background: #fff; }

.person--bride .role { color: var(--wine); }

.person dl {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.45rem 0.75rem;
  text-align: left;
  font-size: 0.875rem;
}

.person dt { color: var(--ink-faint); }
.person dd { margin: 0; text-align: right; font-weight: 500; }

.note {
  margin: 3rem auto 0;
  max-width: 36rem;
  text-align: center;
  color: #3a4560;
  font-size: 0.875rem;
}

/* ---------- Packing list ---------- */
.packing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.checklist-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.checklist-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.1rem;
  letter-spacing: -0.01em;
  margin: 0;
}

.progress {
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.progress-bar {
  height: 4px;
  border-radius: 999px;
  background: var(--surface-alt);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cobalt), #3a64ad);
  transition: width 0.4s var(--ease);
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checklist li + li { border-top: 1px solid var(--line); }

.checklist label {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 0;
  cursor: pointer;
}

.checklist input {
  appearance: none;
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}

.checklist input::after {
  content: "";
  width: 5px;
  height: 10px;
  margin-top: -2px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.15s var(--ease);
}

.checklist label:hover input { border-color: var(--cobalt); }

.checklist input:checked {
  background: var(--cobalt);
  border-color: var(--cobalt);
}

.checklist input:checked::after { transform: rotate(45deg) scale(1); }

.checklist input + span { transition: color 0.15s var(--ease); }

.checklist input:checked + span {
  color: var(--ink-faint);
  text-decoration: line-through;
  text-decoration-color: var(--ink-faint);
}

.checklist .highlight { font-weight: 600; color: var(--wine); }

.btn {
  font: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

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

.packing-aside { display: grid; gap: 1.25rem; }

.link-card {
  display: block;
  color: inherit;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.link-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.link-card .eyebrow { display: block; margin-bottom: 0.6rem; }

.link-card h2,
.aside-card h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.1rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}

.link-card p { margin: 0 0 1.25rem; color: var(--ink-soft); }

.link-arrow {
  color: var(--wine);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.facts {
  margin: 0.75rem 0 0;
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  font-size: 0.925rem;
}

.facts dt,
.facts dd {
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}

.facts dt { color: var(--ink-faint); }
.facts dd { margin: 0; }

/* ---------- Outfit guide ---------- */
.when {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.outfit-day {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(20, 28, 47, 0.14);
}

.outfit-day:first-of-type { border-top: 0; padding-top: 0; }

.outfit-day-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.6rem;
  letter-spacing: -0.015em;
  margin: 0;
}

.looks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.look {
  padding: 1.75rem;
  scroll-margin-top: 1.5rem;
}

.look:target { border-color: var(--cobalt); }

.look-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.look-meta .when { color: var(--cobalt); }

.look h3,
.outfit-extras h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.75rem;
  margin: 0.4rem 0 0.4rem;
}

.look p,
.outfit-extras p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.925rem;
}

.palette {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 1.25rem 0;
  padding: 0;
  font-size: 0.72rem;
  color: var(--ink-soft);
  text-align: center;
}

.palette span {
  display: block;
  height: 44px;
  margin-bottom: 0.35rem;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(20, 28, 47, 0.1);
}

.look h4 {
  margin: 0 0 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.ideas {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.925rem;
}

.ideas li {
  padding: 0.45rem 0 0.45rem 1.1rem;
  border-top: 1px solid var(--line);
  position: relative;
}

.ideas li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lemon);
}

.outfit-extras {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.outfit-extras .card { padding: 1.75rem; }
.outfit-extras h3 { font-size: 1.4rem; }

/* ---------- Entrance animation (itinerary page) ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* reveal the script title left to right, like it's being written */
@keyframes write {
  from { clip-path: inset(-40% 100% -40% -10%); }
  to { clip-path: inset(-40% -10% -40% -10%); }
}

.hero-panel { animation: rise 0.9s var(--ease) both; }
.hero-kicker { animation: rise 0.7s var(--ease) 0.3s both; }
.hero-title { animation: write 1.5s cubic-bezier(0.55, 0.1, 0.3, 1) 0.5s both; }
.hero-foot { animation: rise 0.7s var(--ease) 1.3s both; }

/* sections fade up as they scroll into view (only when JS is on) */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.is-visible { opacity: 1; transform: none; }

/* then the itinerary dots pop in and the dotted line draws down */
.js .reveal .timeline li::before {
  transform: scale(0);
  transition: transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1) calc(0.25s + var(--i, 0) * 0.12s);
}

.js .reveal .timeline li::after {
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s ease-out calc(0.35s + var(--i, 0) * 0.12s);
}

.js .reveal.is-visible .timeline li::before { transform: scale(1); }
.js .reveal.is-visible .timeline li::after { transform: scaleY(1); }

/* ---------- Designer credit ---------- */
.credit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0 1.25rem 2.25rem;
  text-align: center;
  color: #2c3752;
}

.credit-name {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
  transition: color 0.15s var(--ease);
}

.credit-name:hover { color: var(--cobalt); }

/* thin rules either side of the name */
.credit-name::before,
.credit-name::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}

/* offset the trailing letter-spacing so the name sits centered */
.credit-name::after { margin-left: -0.3em; }

/* keep the copyright on one line on phones */
@media (max-width: 560px) {
  .credit-name { gap: 0.6rem; letter-spacing: 0.16em; }
  .credit-name::before, .credit-name::after { width: 18px; }
  .credit-name::after { margin-left: -0.16em; }
}

@media (max-width: 360px) {
  .credit-name::before, .credit-name::after { display: none; }
}

/* ---------- Bach Bingo ---------- */
.bingo-nudge {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 560px;
  margin: 0 auto 1.25rem;
  padding: 0.9rem 1.1rem;
  border-left: 3px solid var(--wine);
  border-radius: 0 12px 12px 0;
  background: var(--wine-soft);
  font-size: 0.875rem;
}

.bingo-nudge p { margin: 0; }
.bingo-nudge strong { color: var(--wine); }
.bingo-nudge .stay-btn { flex: none; font-size: 0.8rem; padding: 0.5rem 0.9rem; }

.bingo-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 1.5rem 1.4rem 1.25rem;
}

.bingo-head,
.bingo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.bingo-head {
  margin-bottom: 0.35rem;
  text-align: center;
  font-family: var(--font-script);
  font-size: 2.4rem;
  line-height: 1.2;
  color: var(--wine);
}

.bingo-tile {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
  hyphens: auto;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease), transform 0.1s var(--ease);
}

.bingo-tile:active { transform: scale(0.96); }

.bingo-tile.is-marked {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #fff;
}

.bingo-tile.is-free {
  background: var(--wine);
  border-color: var(--wine);
  color: #fff;
  cursor: default;
}

.bingo-free-label {
  font-family: var(--font-script);
  font-size: 1.5em;
  line-height: 1;
  margin-bottom: 0.1rem;
}

.bingo-tile.is-winning {
  background: var(--lemon);
  border-color: #c99a1e;
  color: var(--ink);
}

.bingo-status {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.bingo-status strong { color: var(--wine); }

.bingo-toast {
  z-index: 20;
  left: 50%;
  top: 40%;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: max-content;
  max-width: calc(100vw - 2rem);
  padding: 1.25rem 2.5rem 1.1rem;
  border: 2px solid var(--ribbon);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(10, 20, 45, 0.3);
  transform: translate(-50%, -50%);
}

.bingo-toast.is-showing { animation: bingo-pop 2.6s var(--ease) both; }

@keyframes bingo-pop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
  12% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); }
  20% { transform: translate(-50%, -50%) scale(1); }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.98); }
}

.bingo-toast-word {
  font-family: var(--font-script);
  font-size: 3.5rem;
  line-height: 1.1;
  color: var(--wine);
}

.bingo-toast-sub {
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cobalt);
}

/* ---------- Bride Trivia ---------- */
.trivia-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.75rem 1.75rem;
}

.trivia-name label,
.trivia-q label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.trivia-name label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cobalt);
}

.trivia-form input[type="text"]:not(.visually-hidden),
.trivia-form textarea {
  display: block;
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  /* 16px stops iPhone Safari zooming in on focus */
  font-size: 1rem;
  line-height: 1.45;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.trivia-form textarea {
  min-height: 3.2rem;
  resize: vertical;
  overflow: hidden;
}

.trivia-form input[type="text"]:not(.visually-hidden):focus,
.trivia-form textarea:focus {
  outline: none;
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px var(--cobalt-soft);
}

.trivia-list {
  list-style: none;
  counter-reset: trivia;
  margin: 1.75rem 0 0;
  padding: 0;
}

.trivia-q {
  counter-increment: trivia;
  position: relative;
  padding: 1.25rem 0 1.25rem 2.75rem;
  border-top: 1px solid var(--line);
}

.trivia-q::before {
  content: counter(trivia);
  position: absolute;
  left: 0;
  top: 1.2rem;
  width: 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cobalt);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}

.trivia-draft {
  margin: 0.25rem 0 1rem;
  font-size: 0.8rem;
  color: var(--ink-faint);
  text-align: center;
}

.trivia-error {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--wine);
  border-radius: 0 10px 10px 0;
  background: var(--wine-soft);
  font-size: 0.875rem;
}


.trivia-submit {
  display: block;
  width: 100%;
  padding: 0.85rem 1.2rem;
  font-size: 0.95rem;
}

.trivia-submit:disabled { opacity: 0.6; cursor: default; }

.trivia-done {
  padding: 1.5rem 0 0.5rem;
  text-align: center;
}

.trivia-done-word {
  margin: 0;
  font-family: var(--font-script);
  font-size: 3.5rem;
  line-height: 1.1;
  color: var(--wine);
}

.trivia-done p:not(.trivia-done-word) { margin: 0.25rem 0 1.25rem; color: var(--ink-soft); }

/* ---------- Letter from the Bride ---------- */
.letter-card {
  max-width: 640px;
  margin: 1.5rem auto 0;
  padding: 2.75rem 2.75rem 2.5rem;
}

/* postage stamp in the top-right corner; the letter wraps around it */
.letter-stamp {
  float: right;
  width: 150px;
  height: auto;
  margin: -0.5rem -0.75rem 0.75rem 1.25rem;
  transform: rotate(4deg);
  filter: drop-shadow(0 3px 6px rgba(20, 28, 47, 0.15));
}

.letter-greeting {
  margin: 0 0 1.25rem;
  font-family: var(--font-script);
  font-size: 2.6rem;
  line-height: 1.1;
  color: var(--wine);
}

.letter-body p {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: 1.28rem;
  line-height: 1.6;
  color: var(--ink);
  font-variant-numeric: lining-nums;
}

.letter-signoff {
  margin: 1.75rem 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink-soft);
}

.letter-signature {
  margin: 0.1rem 0 0;
  font-family: var(--font-script);
  font-size: 3.4rem;
  line-height: 1.1;
  color: var(--wine);
}

.letter-ps {
  margin: 1.75rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--line-strong);
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.letter-ps strong { color: var(--cobalt); letter-spacing: 0.06em; }

.note-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 2.75rem 2rem;
  text-align: center;
}

.note-card .eyebrow { margin-bottom: 0.4rem; }

.note-card h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.1rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.4rem;
}

.note-lede {
  margin: 0 auto 1.5rem;
  max-width: 28rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.note-form { text-align: left; }
.note-advice { margin: 1.1rem 0 1.25rem; }
.note-card .trivia-done { padding-top: 0.5rem; }

/* ---------- Find the Guest ---------- */
.find-board { max-width: 640px; margin: 0 auto; }

.find-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.find-fact {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.9rem;
  align-items: start;
  padding: 1.25rem 1.4rem 1.2rem;
}

.find-fact-num {
  grid-row: span 2;
  width: 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cobalt);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}

.find-fact-text {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.35;
}

/* the socket a guest piece clicks into */
.find-slot {
  position: relative;
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0.3rem 0.35rem 0.3rem 1rem;
  border: 1.5px dashed var(--line-strong);
  border-radius: 12px;
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}

.find-slot-hint {
  font-size: 0.85rem;
  color: var(--ink-faint);
}

.find-slot-hint::after { content: " ＋"; color: var(--cobalt); }

.find-slot.is-filled { border-style: solid; border-color: transparent; background: transparent; padding-left: 0; }

.find-board.is-picking .find-slot:not(.is-filled),
.find-board.is-dragging .find-slot:not(.is-filled) {
  border-color: var(--cobalt);
  background: var(--cobalt-soft);
}

.find-slot.is-over {
  border-color: var(--cobalt) !important;
  border-style: solid !important;
  background: var(--cobalt-soft) !important;
}

/* guest puzzle pieces */
.find-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 1rem 0.3rem 0.3rem;
  border: 1.5px solid var(--cobalt);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: grab;
  transition: transform 0.12s var(--ease), box-shadow 0.12s var(--ease), opacity 0.12s var(--ease);
}

.find-chip img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.find-chip:hover { box-shadow: 0 4px 12px rgba(20, 28, 47, 0.12); }
.find-chip.is-selected { background: var(--cobalt); color: #fff; box-shadow: 0 0 0 3px var(--cobalt-soft); }
.find-chip.is-dragging { opacity: 0.35; }
.find-chip:disabled { cursor: default; }

.find-ghost {
  box-shadow: 0 12px 28px rgba(20, 28, 47, 0.25);
}

/* results */
.find-result { grid-column: 2; margin: 0.35rem 0 0; font-size: 0.85rem; font-weight: 600; }
.find-fact.is-right .find-result { color: var(--olive); }
.find-fact.is-wrong .find-result { color: var(--wine); }
.find-fact.is-right .find-chip { border-color: var(--olive); }
.find-fact.is-wrong .find-chip { border-color: var(--wine); opacity: 0.75; text-decoration: line-through; text-decoration-color: var(--wine); }

/* the tray of unplaced guests stays at the bottom of the screen */
.find-dock {
  position: sticky;
  z-index: 5;
  bottom: 0.75rem;
  max-width: 640px;
  margin: 1.25rem auto 0;
  padding: 0.9rem 1rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(253, 247, 232, 0.96);
  box-shadow: 0 -4px 24px rgba(20, 28, 47, 0.12), var(--shadow);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.find-hint {
  margin: 0 0 0.6rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.find-tray {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.9rem;
  min-height: 42px;
}

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

.find-status { margin: 0; font-size: 0.85rem; color: var(--ink-soft); }
.find-status strong { color: var(--wine); }

/* the guest picker: tap a fact, then pick who it is */
.find-picker {
  width: min(460px, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(20, 28, 47, 0.3);
  overflow: auto;
  overscroll-behavior: contain;
}

.find-picker::backdrop { background: rgba(20, 28, 47, 0.45); }
.find-picker[open] { animation: find-pop 0.2s var(--ease); }

@keyframes find-pop {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.find-picker-inner { padding: 1.4rem 1.25rem 1.25rem; }

.find-picker-label {
  margin: 0;
  text-align: center;
  font-family: var(--font-script);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--wine);
}

.find-picker-fact {
  margin: 0.5rem 0 1.1rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.3;
}

.find-picker-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.find-pick {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 56px;
  padding: 0.4rem 0.6rem;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.12s var(--ease), background 0.12s var(--ease);
}

.find-pick:hover, .find-pick:focus-visible { border-color: var(--cobalt); }
.find-pick:active { background: var(--cobalt-soft); }

.find-pick img {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  -webkit-touch-callout: none;
}

.find-pick-name { display: block; font-size: 0.95rem; font-weight: 600; }
.find-pick-note { display: block; font-size: 0.72rem; color: var(--ink-faint); }

.find-pick.is-current { border-color: var(--cobalt); background: var(--cobalt-soft); }
.find-pick.is-current .find-pick-note { color: var(--cobalt); }

.find-picker-actions {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

/* phones and tablets: no dragging. Tap a fact to pick its guest, so the
   bottom bar only holds the progress and the check button */
@media (max-width: 560px), (hover: none) and (pointer: coarse) {
  .find-chip { cursor: pointer; }
  .find-slot.is-filled .find-chip::after { content: "Change"; margin-left: 0.35rem; font-size: 0.72rem; font-weight: 500; color: var(--ink-faint); }
  .find-board.is-checked .find-slot.is-filled .find-chip::after { content: none; }

  /* the picker rises from the bottom like an iPhone sheet */
  .find-picker {
    width: 100%;
    max-width: 100%;
    max-height: 88%;
    margin: auto 0 0;
    border-radius: 22px 22px 0 0;
  }
  .find-picker[open] { animation: find-rise 0.25s var(--ease); }
  .find-picker-inner { padding: 1.25rem 1rem calc(1.1rem + env(safe-area-inset-bottom)); }
  .find-picker-inner::before {
    content: "";
    display: block;
    width: 40px;
    height: 5px;
    margin: -0.4rem auto 0.9rem;
    border-radius: 3px;
    background: var(--line-strong);
  }
}

@keyframes find-rise {
  from { transform: translateY(100%); }
  to { transform: none; }
}

/* ---------- Lodging ---------- */
.lodging-card {
  max-width: 760px;
  margin: 1.5rem auto 0;
}

.lodging-card h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.1rem;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}

.heads-up {
  margin: 0 0 1.5rem;
  padding: 0.9rem 1.1rem;
  border-left: 3px solid var(--wine);
  border-radius: 0 10px 10px 0;
  background: var(--wine-soft);
  font-size: 0.95rem;
}

.heads-up strong { color: var(--wine); }

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0.9rem 0 0.9rem 2.75rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.steps li:first-child { border-top: 0; }

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cobalt);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}

.steps strong { color: var(--ink); font-weight: 600; }

.lodging-card .facts { margin-top: 0; }
.lodging-card .facts dt:first-of-type,
.lodging-card .facts dt:first-of-type + dd { border-top: 0; }

/* ---------- Add-to-home-screen popup ---------- */
.home-tip {
  width: min(400px, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  overflow: auto;
  padding: 2.25rem 1.75rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(10, 20, 45, 0.35);
  text-align: center;
}

.home-tip[open] { animation: tip-in 0.35s var(--ease) both; }

@keyframes tip-in {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.home-tip::backdrop {
  background: rgba(20, 28, 47, 0.45);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

/* same yellow ribbon as the cards */
.home-tip::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 2px solid var(--ribbon);
  border-radius: 16px;
  pointer-events: none;
}

.home-tip-close {
  position: absolute;
  z-index: 1;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.home-tip-close:hover {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #fff;
}

.home-tip-close svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.home-tip-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 15px;
  box-shadow: 0 4px 14px rgba(20, 28, 47, 0.15);
}

.home-tip .eyebrow { margin-bottom: 0.4rem; }

.home-tip h2:focus { outline: none; }

.home-tip h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.9rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}

.home-tip-lede {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.home-tip .steps { text-align: left; font-size: 0.95rem; }
.home-tip .steps li { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.home-tip .steps li::before { top: 0.7rem; }

.ios-icon {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  margin: 0 0.1em;
  vertical-align: -0.2em;
  fill: none;
  stroke: var(--cobalt);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* short phones (e.g. iPhone SE): keep the whole popup on screen */
@media (max-height: 700px) {
  .home-tip { padding: 1.5rem 1.25rem 1rem; }
  .home-tip-icon { width: 48px; height: 48px; margin-bottom: 0.6rem; border-radius: 11px; }
  .home-tip h2 { font-size: 1.6rem; }
  .home-tip-lede { margin-bottom: 0.5rem; font-size: 0.875rem; }
  .home-tip .steps { font-size: 0.875rem; }
  .home-tip .steps li { padding: 0.55rem 0 0.55rem 2.5rem; }
  .home-tip .steps li::before { top: 0.5rem; width: 1.6rem; height: 1.6rem; font-size: 0.8rem; }
  .home-tip-close { top: 16px; right: 16px; }
}

/* ---------- FAQ ---------- */
.faq-group {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(20, 28, 47, 0.14);
}

.faq-group:first-of-type { border-top: 0; padding-top: 0; }

.faq-group > h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.9rem;
  letter-spacing: -0.01em;
  margin: 0;
}

.faq-list {
  position: relative;
  padding: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

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

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 3.5rem 1.15rem 1.5rem;
  font-weight: 500;
  position: relative;
  transition: background 0.15s var(--ease);
}

.faq summary:hover { background: var(--bg); }

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

/* plus / minus */
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 1.5rem;
  top: 50%;
  width: 12px;
  height: 1.5px;
  background: var(--ink-soft);
  transition: transform 0.25s var(--ease);
}

.faq summary::after { transform: rotate(90deg); }
.faq[open] summary::after { transform: rotate(0deg); }

.faq summary:focus-visible { outline-offset: -3px; }

.faq .answer {
  padding: 0 1.5rem 1.35rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.faq .answer p { margin: 0 0 0.6rem; }
.faq .answer p:last-child { margin-bottom: 0; }
.faq .answer ul { margin: 0 0 0.6rem; padding-left: 1.1rem; }
.faq .answer strong { color: var(--ink); font-weight: 600; }

/* ---------- Responsive ---------- */
/* tablets and phones: the links as an even 3-column grid, with a lone
   last link centred (phones shrink the text further below) */
@media (max-width: 1240px) {
  /* three links per row, on a six-column grid so a short last row of one
     or two links can sit centered whatever the number of pages */
  .nav-links li { grid-column: span 2; }
  .nav-links li:last-child:nth-child(3n + 1) { grid-column: 3 / span 2; }
  .nav-links li:nth-last-child(2):nth-child(3n + 1) { grid-column: 2 / span 2; }
  .nav-links {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0 0.5rem;
    width: 100%;
    max-width: 560px;
  }
  .nav-links a {
    display: block;
    text-align: center;
    white-space: nowrap;
    padding: 0.55rem 0 0.7rem;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }
}

@media (max-width: 860px) {
  .day { grid-template-columns: 1fr; gap: 1.5rem; }
  .packing-layout { grid-template-columns: 1fr; }
  .faq-group { grid-template-columns: 1fr; gap: 1.25rem; }
  .outfit-day { grid-template-columns: 1fr; gap: 1.25rem; }
  .looks, .outfit-extras { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .nav { padding-top: 1.25rem; gap: 0.6rem; }
  .brand { font-size: 2.3rem; }
  .nav-links { gap: 0 0.3rem; max-width: 400px; }
  .nav-links a { padding: 0.5rem 0 0.6rem; font-size: 0.66rem; letter-spacing: 0.08em; }
  .hero { padding: 1.5rem 1rem; }
  /* equal rows above and below keep the title in the middle of the card */
  .hero-panel {
    display: grid;
    grid-template-rows: 1fr auto 1fr;
    padding: 2.75rem 1rem 2rem;
    border-radius: 180px 180px 14px 14px;
  }
  .hero-kicker { align-self: end; }
  .hero-title {
    font-size: 5.6rem;
    line-height: 0.9;
    margin: 1.4rem 0;
    /* the script's ink sits high in its line box; nudge it to true centre */
    position: relative;
    top: 0.12em;
  }
  .hero-title span,
  .hero-title em { display: block; }
  .hero-title em { font-size: 1.12em; margin: -0.05em 0 0; }
  .hero-kicker, .hero-place { font-size: 0.68rem; letter-spacing: 0.2em; }
  main { padding-top: 2rem; }
  .card, .day { padding: 1.5rem; }
  .day-tabs { flex-wrap: nowrap; }
  .day-tab { padding: 0.45rem 0.55rem; font-size: 0.78rem; white-space: nowrap; }
  .timeline { --time-col: 5.1rem; --gap: 1.75rem; --dot: 11px; }
  .timeline time { font-size: 0.72rem; }
}

@media (max-width: 560px) {
  .lodging-card h2 { font-size: 1.8rem; }
  .stay-card { padding: 3.25rem 1.25rem 1.75rem; border-radius: 180px 180px 16px 16px; }
  .stay-card::after { border-radius: 172px 172px 10px 10px; }
  .stay-time { padding: 0.8rem 0.5rem; }
  .stay-hour { font-size: 1.7rem; }

  /* guests two to a row; Rachel keeps the full row */
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .person { padding: 1.4rem 0.9rem 1.25rem; }
  .person--bride { padding: 2rem 1.5rem 1.75rem; margin-bottom: 0.25rem; }
  .person:not(.person--bride) .avatar { width: 72px; height: 72px; margin-bottom: 0.7rem; }
  .person:not(.person--bride) h2 { font-size: 1.35rem; }
  .person:not(.person--bride) .role { font-size: 0.6rem; letter-spacing: 0.12em; margin-bottom: 0.9rem; }
  .person:not(.person--bride) dl { grid-template-columns: 1fr; gap: 0; text-align: center; font-size: 0.8rem; padding-top: 0.6rem; }
  .person:not(.person--bride) dt { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 0.55rem; }
  .person:not(.person--bride) dd { text-align: center; }
  .bingo-card { padding: 1rem 0.9rem 1rem; }
  .trivia-card { padding: 1.5rem 1.1rem 1.25rem; }
  .letter-card { padding: 2rem 1.4rem 1.75rem; }
  .letter-greeting { font-size: 2.3rem; }
  .find-fact { padding: 1.1rem 1.1rem 1rem; gap: 0.3rem 0.75rem; }
  .find-fact-text { font-size: 1.1rem; }
  .find-dock { margin-inline: -0.25rem; padding: 0.7rem 0.75rem 0.75rem; }
  .find-hint { margin-bottom: 0.3rem; font-size: 0.75rem; }
  .find-actions { margin-top: 0.3rem; }
  .letter-stamp { width: 104px; margin: -0.5rem -0.4rem 0.5rem 0.9rem; }
  .letter-body p { font-size: 1.15rem; }
  .letter-signature { font-size: 3rem; }
  .note-card { padding: 1.75rem 1.4rem 1.5rem; }
  .note-card h2 { font-size: 1.8rem; }
  .trivia-q { padding-left: 2.4rem; }
  .bingo-head { font-size: 1.9rem; }
  .bingo-head, .bingo-grid { gap: 4px; }
  .bingo-tile { padding: 0.2rem; border-radius: 8px; font-size: 0.6rem; line-height: 1.15; }
  .bingo-nudge { flex-direction: column; align-items: flex-start; gap: 0.6rem; }

  /* an odd guest out on the last row sits centred */
  .person:last-child:nth-child(even) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 0.375rem);
  }
  /* stack each label above its answer */
  .facts { grid-template-columns: 1fr; }
  .facts dd { border-top: 0; padding-top: 0; }
  .facts dt { padding-bottom: 0.2rem; }
  .lodging-card .facts dt:first-of-type { padding-top: 0; }
}

/* very small phones (e.g. 320px) */
@media (max-width: 370px) {
  .nav { padding-inline: 0.5rem; }
  .nav-links { gap: 0 0.2rem; }
  .tab-long { display: none; }
  .tab-short { display: inline; }
  .day-tab { padding: 0.45rem 0.75rem; }
  .nav-links a { font-size: 0.6rem; letter-spacing: 0.04em; }
  .hero-title { font-size: 4.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal,
  .js .reveal .timeline li::before,
  .js .reveal .timeline li::after { opacity: 1; transform: none; }
}

@media print {
  .site-header, .day-tabs, .btn { display: none; }
  body { background: #fff; }
  .card, .faq-list, .hero-panel { box-shadow: none; }
  .day[hidden] { display: grid !important; }
  .js .reveal { opacity: 1; transform: none; }
}
