/* ==========================================================
   THEME: Last Trail Before the Veil — Bozeman camp in the pines
   Cream canvas cards set in a pine forest, with
   evergreen ink, moss, and faded rust accents.

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

:root {
  --bg: #f6f0e1;
  --surface: #faf6eb;
  --surface-alt: #eee5cf;
  --forest-dusk: #4c6a52;
  --forest: #2f4a37;
  --forest-floor: #22382a;
  --ribbon: #bf9a63;
  --ink: #23271f;
  --ink-soft: #5a5e52;
  --ink-faint: #878a7c;
  --line: #e6dcc4;
  --line-strong: #d3c5a2;

  --pine: #2f4a35;
  --pine-soft: #e5ebe1;
  --sage: #8fa58a;
  --ochre: #c99a3e;
  --ochre-soft: #f6edd6;
  --rust: #a4532f;
  --rust-soft: #f4e5da;
  --moss: #5f6f3a;
  --moss-soft: #edefdf;

  --font-title: "Bebas Neue", "Oswald", Impact, sans-serif;    /* site name, first line: a trail sign */
  --font-title-script: "Great Vibes", "Snell Roundhand", cursive; /* site name, second line */
  --font-script: "Yellowtail", "Brush Script MT", cursive;     /* the letter */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 16px;
  --shadow: 0 1px 2px rgba(28, 34, 28, 0.05), 0 8px 28px rgba(28, 34, 28, 0.08);
  --shadow-hover: 0 1px 2px rgba(28, 34, 28, 0.06), 0 14px 36px rgba(28, 34, 28, 0.12);
  --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);
  /* the woods: three tiled rows of pines, small and misty at the back,
     big and dark up front, over a dusk-to-forest-floor gradient */
  background-color: var(--forest);
  background-image:
    url("assets/woods/near.svg"),
    url("assets/woods/mid.svg"),
    url("assets/woods/far.svg"),
    linear-gradient(180deg, var(--forest-dusk) 0, var(--forest) 900px, var(--forest-floor) 100%);
  background-position: -60px 40px, 30px 0, 0 0, 0 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--pine);
  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(--pine);
  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-title);
  font-weight: 400;
  font-size: 2.3rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}

.brand em {
  font-family: var(--font-title-script);
  font-style: normal;
  font-size: 1.1em;
  letter-spacing: 0;
  color: var(--rust);
  margin-left: 0.2em;
}

.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(--pine);
}

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

/* a cream trail sign so the title reads over the trees */
.page-title {
  position: relative;
  text-align: center;
  margin: 0 auto 2.5rem;
  max-width: 44rem;
  padding: 2.25rem 2rem 2.1rem;
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.page-title::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 2px solid var(--ribbon);
  border-radius: calc(var(--radius) - 6px);
  pointer-events: none;
}

.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: var(--ink);
  font-size: 1.05rem;
}

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

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

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

/* tan rope line 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 woods 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(8, 16, 10, 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(--pine); }
.hero-place { color: var(--ink-soft); }

.hero-title {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(3.4rem, 7.4vw, 5.4rem);
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin: 1.5rem 0 1.1rem;
}

.hero-title em {
  font-family: var(--font-title-script);
  font-style: normal;
  font-size: 0.95em;
  letter-spacing: 0;
  line-height: 1.1;
  color: var(--rust);
}

/* the long title reads best as two lines: lead, then accent */
.hero-title span,
.hero-title em { display: block; }

.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(--rust); 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(--rust);
}

.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(--pine);
}

.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(--rust);
}

.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(--pine);
  border-radius: 999px;
  background: transparent;
  color: var(--pine);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

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

.stay-btn--primary { background: var(--pine); color: #fff; }
.stay-btn--primary:hover { background: #22382a; }

/* ---------- 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(28, 34, 28, 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(--pine);
}

.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(--ochre-soft);
  border: 2.5px solid var(--pine);
}

/* 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(--sage);
}

.timeline time {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pine);
  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(--pine-soft);
  color: var(--pine);
}

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

.tag--rust { background: var(--rust-soft); color: var(--rust); }
.tag--ochre { background: var(--ochre-soft); color: #7a5a1c; }
.tag--moss { background: var(--moss-soft); color: var(--moss); }

/* ---------- 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(--pine);
  background: var(--pine-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(--rust);
  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(--rust); }

.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: var(--bg);
  opacity: 0.85;
  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(--pine), #6f8b5e);
  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(--pine); }

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

.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(--rust); }

.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(--rust);
  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(232, 222, 196, 0.22);
}

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

/* day and topic labels sit on the trees, so they're cream */
.outfit-day-head .day-date { color: var(--ribbon); }

.outfit-day-head h2,
.faq-group > h2 { color: var(--bg); text-shadow: 0 1px 8px rgba(8, 16, 10, 0.5); }

.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(--pine); }

.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(--pine); }

.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(28, 34, 28, 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(--ochre);
}

.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: var(--bg);
}

.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(--ribbon); }

/* 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; }
}

/* ---------- Letter from the Bride ---------- */
.letter-card {
  max-width: 640px;
  margin: 0 auto;
  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(28, 34, 28, 0.15));
}

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

.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(--rust);
}

.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(--pine); letter-spacing: 0.06em; }

/* ---------- 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(--rust);
  border-radius: 0 10px 10px 0;
  background: var(--rust-soft);
  font-size: 0.95rem;
}

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

.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(--pine);
  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(8, 16, 10, 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(28, 34, 28, 0.45);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

/* same rope line 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(--pine);
  border-color: var(--pine);
  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(28, 34, 28, 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(--pine);
  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(232, 222, 196, 0.22);
}

.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: 2rem; text-align: center; line-height: 1; }
  .brand em { display: block; margin-left: 0; }
  .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: 1rem 1rem 1.1rem; }
  /* a shorter, flatter arch so the schedule shows sooner on phones */
  .hero-panel {
    padding: 2.4rem 1rem 1.4rem;
    border-radius: 120px 120px 14px 14px;
  }
  .hero-title {
    font-size: 3rem;
    line-height: 1;
    margin: 0.8rem 0 0.7rem;
  }
  .hero-title span,
  .hero-title em { display: block; }
  .hero-title em { margin: 0; }
  .hero-meta { margin-top: 1rem; gap: 0.4rem; }
  .hero-meta li { padding: 0.35rem 0.8rem; font-size: 0.8rem; }
  .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; the bride 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; }
  .letter-card { padding: 2rem 1.4rem 1.75rem; }
  .letter-greeting { font-size: 2.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; }

  /* 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: 2.6rem; }
}

@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; }
}
