/* ==========================================================
   THEME: Camille's Miami Beach Weekend — ocean, cream and gold
   Warm cream paper, deep navy ink, ocean and cobalt blues with a
   touch of metallic gold: Art Deco double-line frames, a soft
   sunburst behind the title, cabana stripes and a faint wave
   pattern across the page.

   This file is the whole look of the site; the rules the scripts
   need to work live in essentials.css, which loads after this one.
   ========================================================== */

:root {
  --bg: #f8f3e9;
  --surface: #fffdf8;
  --surface-alt: #eef3f4;
  --page: #d9ecef;
  --page-deep: #b7d8e0;
  --trim: #dcc58e;
  --ink: #1b2c4f;
  --ink-soft: #4f5f78;
  --ink-faint: #75829a;
  --line: #ebe4d6;
  --line-strong: #dccfb2;

  --ocean: #1f5fa8;
  --ocean-soft: #e4edf7;
  --sky: #8fbde4;
  --gold: #b58b3a;
  --gold-soft: #f6eedb;
  --cobalt: #163f86;
  --cobalt-soft: #e2eaf6;
  --aqua: #22777a;
  --aqua-soft: #dff1f0;

  --font-script: "Parisienne", "Snell Roundhand", cursive;
  --font-display: "Bodoni Moda", "Didot", Georgia, "Times New Roman", serif;
  --font-body: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 10px;
  --shadow: 0 1px 2px rgba(27, 44, 79, 0.05), 0 10px 30px rgba(27, 44, 79, 0.07);
  --shadow-hover: 0 1px 2px rgba(27, 44, 79, 0.06), 0 16px 38px rgba(27, 44, 79, 0.11);
  --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(--page);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='48'%3E%3Cpath d='M0 30c12 0 12-8 24-8s12 8 24 8 12-8 24-8 12 8 24 8' fill='none' stroke='%23ffffff' stroke-opacity='0.45' stroke-width='1.5'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at top, var(--page) 0%, var(--page-deep) 100%);
  background-attachment: scroll, fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--ocean);
  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(--ocean);
  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-display);
  font-weight: 400;
  font-size: 1.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}

/* "MIA" in italic serif capitals (script capitals read as "MJA") */
.brand em {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1em;
  letter-spacing: 0.1em;
  color: var(--ocean);
  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(--ocean);
}

/* ---------- 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: 400;
  font-size: clamp(2.6rem, 6vw, 3.75rem);
  letter-spacing: -0.015em;
  margin: 0 0 0.75rem;
}

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

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

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

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

/* Art Deco double gold line just inside the edge of every card */
.card::after,
.faq-list::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 3px double var(--trim);
  border-radius: calc(var(--radius) - 4px);
  pointer-events: none;
}

/* ---------- Hero (home page title card) ---------- */
/* the wave pattern runs 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: 720px;
  margin: 0 auto;
  padding: 5.5rem 2rem 3.25rem;
  text-align: center;
  /* an Art Deco arch, like a Collins Avenue hotel window */
  --arch: 150px;
  /* a soft gold sunburst rising from the top of the card */
  background:
    repeating-conic-gradient(from -90deg at 50% 0%, rgba(201, 163, 78, 0.09) 0deg 5deg, transparent 5deg 10deg) top / 100% 70% no-repeat,
    var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 50% 50% 6px 6px / var(--arch) var(--arch) 6px 6px;
  box-shadow: 0 22px 54px rgba(23, 64, 127, 0.22);
}

/* Art Deco double gold frame */
.hero-panel::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 3px double var(--trim);
  border-radius: 50% 50% 3px 3px / calc(var(--arch) - 12px) calc(var(--arch) - 12px) 3px 3px;
  pointer-events: none;
}

/* a gold scallop shell crowning the top of the arch */
.hero-panel::after {
  content: "";
  position: absolute;
  top: -1.55rem;
  left: 50%;
  transform: translateX(-50%);
  width: 3.4rem;
  height: 2.5rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 3 56 41'%3E%3Cpath d='M19 36 L-0.4 27.1 Q-2.8 20.5 4.1 19.3 Q4.1 12.3 11.0 13.5 Q13.4 6.9 19.5 10.4 Q24.0 5.0 28.5 10.4 Q34.6 6.9 37.0 13.5 Q43.9 12.3 43.9 19.3 Q50.8 20.5 48.4 27.1 L29 36 Z' fill='%23c9a34e' stroke='%23a8822f' stroke-width='1.4' stroke-linejoin='round'/%3E%3Cpath d='M21.0 33.5L6.1 21.0M22.1 32.6L12.3 15.7M23.3 32.2L19.9 13.0M24.7 32.2L28.1 13.0M25.9 32.6L35.7 15.7M27.0 33.5L41.9 21.0' stroke='%23fbf3df' stroke-width='1.3' stroke-linecap='round'/%3E%3Cpath d='M19 36L16 42H32L29 36Z' fill='%23c9a34e' stroke='%23a8822f' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 2px 3px rgba(27, 44, 79, 0.2));
}

.hero-kicker,
.hero-place {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

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

/* the lead set tall in serif capitals, the accent in script tucked beneath */
.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
  margin: 1.6rem 0 1.25rem;
}

.hero-title span {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 7.4vw, 4.5rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: -0.08em;
}

.hero-title em {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(3.2rem, 10vw, 5.6rem);
  letter-spacing: 0.12em;
  margin-right: -0.12em;
  color: var(--ocean);
  margin-top: 0.05em;
}

.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.4rem 1.05rem;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--surface);
  font-size: 0.85rem;
  font-weight: 500;
}

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

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

/* ---------- Lodging: "home base" card with cabana stripes across the top ---------- */
.stay-card {
  max-width: 520px;
  margin: 0 auto;
  padding: 3.5rem 2rem 2.25rem;
  text-align: center;
  overflow: hidden;
}

.stay-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12px;
  background: repeating-linear-gradient(90deg, var(--ocean) 0 16px, var(--bg) 16px 32px);
}

.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: 400;
  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(--cobalt);
}

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

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

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

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

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

.stay-btn--primary { background: var(--ocean); color: #fff; }
.stay-btn--primary:hover { background: #174b87; }

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

.day-tab {
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.5rem 1.1rem;
  border: 0;
  border-radius: 5px;
  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(27, 44, 79, 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: 400;
  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(--ocean);
}

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

/* 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(--ocean);
  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(--ocean-soft);
  color: var(--ocean);
}

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

.tag--cobalt { background: var(--cobalt-soft); color: var(--cobalt); }
.tag--gold { background: var(--gold-soft); color: #7f5d1c; }
.tag--aqua { background: var(--aqua-soft); color: var(--aqua); }

/* ---------- 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: 400;
  color: var(--ocean);
  background: var(--ocean-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(--cobalt);
  box-shadow: 0 0 0 5px var(--surface), 0 0 0 6px var(--line-strong);
}

.person h2 {
  font-family: var(--font-display);
  font-weight: 400;
  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(--cobalt); }

.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: #4f5f78;
  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: 400;
  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(--ocean), var(--sky));
  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(--ocean); }

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

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

.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: 400;
  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(--cobalt);
  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(27, 44, 79, 0.14);
}

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

.outfit-day-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  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(--ocean); }

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

.look h3,
.outfit-extras h3 {
  font-family: var(--font-display);
  font-weight: 400;
  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(27, 44, 79, 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;
  transform: rotate(45deg);
  background: var(--gold);
}

.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: #3e4d66;
}

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

/* 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: 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(27, 44, 79, 0.15));
}

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

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

.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(--ocean); 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: 400;
  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(--cobalt);
  border-radius: 0 10px 10px 0;
  background: var(--cobalt-soft);
  font-size: 0.95rem;
}

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

.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(--ocean);
  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(23, 64, 127, 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(27, 44, 79, 0.45);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

/* same double gold line as the cards */
.home-tip::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 3px double var(--trim);
  border-radius: 14px;
  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(--ocean);
  border-color: var(--ocean);
  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(27, 44, 79, 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: 400;
  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(--ocean);
  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(27, 44, 79, 0.14);
}

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

.faq-group > h2 {
  font-family: var(--font-display);
  font-weight: 400;
  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: 1.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.25rem 0.9rem 1rem; }
  .hero-panel { --arch: 96px; padding: 2.9rem 0.9rem 1.2rem; }
  .hero-panel::before { inset: 8px; border-radius: 50% 50% 3px 3px / calc(var(--arch) - 8px) calc(var(--arch) - 8px) 3px 3px; }
  .hero-panel::after { top: -1.15rem; width: 2.6rem; height: 1.9rem; }
  .hero-title { margin: 0.7rem 0 0.6rem; }
  .hero-title span { font-size: 2.1rem; }
  .hero-title em { font-size: 3rem; }
  .hero-kicker, .hero-place { font-size: 0.64rem; letter-spacing: 0.2em; }
  /* dates and countdown share one row */
  .hero-meta { flex-wrap: nowrap; gap: 0.4rem; margin-top: 0.9rem; }
  .hero-meta li { padding: 0.3rem 0.6rem; font-size: 0.74rem; white-space: nowrap; }
  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: 2.75rem 1.25rem 1.75rem; }
  .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 span { font-size: 1.75rem; }
  .hero-title em { 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; }
}
