/* Liam & Hannah — misty forest, candlelight, old letters */

:root {
  --noir: #1E2A38;
  --storm: #35444B;
  --pine: #2C4034;
  --blackberry: #472830;
  --mauve: #86627B;
  --sage: #849688;
  --seaglass: #708986;
  --rose: #D9BCAF;
  --mist: #DEE7EC;
  --parchment: #F3EEE8;
  --clay: #AC7B78;
  --rust: #9B5E4D;
  --driftwood: #A19B8C;
  /* slightly deeper mauve so small text and buttons pass WCAG AA on light backgrounds */
  --mauve-ink: #745369;

  --serif-display: "Cormorant Garamond", Georgia, serif;
  --serif-body: "EB Garamond", Georgia, serif;
  --script: "Pinyon Script", cursive;

  /* extra deep tones for the dark theme */
  --plum-night: #2A2236;
  --aubergine: #3A2B40;
  --night-card: #26324A;
  --plum-card: #3A2C42;
  --lilac: #C9AECB;
  --midnight: #141B26;

  /* Theme tokens. Dark (deep blues and purples) is the default;
     [data-theme="light"] below restores the original parchment look. */
  --bg: var(--noir);
  --bg-alt: var(--plum-night);
  --band: var(--aubergine);
  --band-2: var(--storm);
  --surface: var(--night-card);
  --surface-warm: var(--plum-card);
  --text: var(--parchment);
  --text-muted: #B9B4C4;
  --accent: var(--lilac);
  --accent-strong: var(--rose);
  --line: rgba(201, 174, 203, .35);
  --chip: #34405A;
  --input-bg: var(--midnight);
  --btn: var(--mauve-ink);
  --btn-hover: #5C4256;
  --btn-outline-text: var(--parchment);
  --footer-bg: var(--midnight);
  --shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 8px 24px rgba(0, 0, 0, .3);

  --radius: 6px;
  --gutter: 1.25rem;
  --max: 68rem;
}

:root[data-theme="light"] {
  --bg: var(--parchment);
  --bg-alt: var(--mist);
  --band: var(--storm);
  --band-2: var(--pine);
  --surface: var(--parchment);
  --surface-warm: var(--rose);
  --text: var(--noir);
  --text-muted: var(--storm);
  --accent: var(--mauve-ink);
  --accent-strong: var(--blackberry);
  --line: var(--sage);
  --chip: var(--mist);
  --input-bg: var(--parchment);
  --btn: var(--mauve-ink);
  --btn-hover: var(--blackberry);
  --btn-outline-text: var(--pine);
  --footer-bg: var(--noir);
  --shadow: 0 1px 2px rgba(30, 42, 56, .06), 0 8px 24px rgba(30, 42, 56, .08);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif-body);
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* faint paper grain over everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .12 0 0 0 0 .16 0 0 0 0 .22 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

h1, h2, h3 {
  font-family: var(--serif-display);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 .5em;
}
h2 { font-size: clamp(2rem, 6vw, 2.75rem); }
h3 { font-size: 1.6rem; font-weight: 500; }

p { margin: 0 0 1.1em; }

.eyebrow {
  display: block;
  font-family: var(--serif-display);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 40rem; margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }

section { padding: 3rem 0; }
@media (min-width: 52rem) { section { padding: 3.75rem 0; } }
.section-mist { background: var(--bg-alt); }
.section-dark {
  background: var(--band);
  color: var(--parchment);
}
.section-pine { background: var(--band-2); color: var(--parchment); }

.section-dark .eyebrow, .section-pine .eyebrow { color: var(--rose); }
.section-dark a, .section-pine a { color: var(--rose); }

/* ---------- header / nav ---------- */

.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  color: var(--parchment);
}
.site-header.solid {
  position: relative;
  background: var(--storm);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem var(--gutter);
}
.nav-brand {
  font-family: var(--script);
  font-size: 1.9rem;
  color: var(--parchment);
  text-decoration: none;
  line-height: 1;
}
.nav-brand:hover { color: var(--rose); }

.nav-toggle {
  background: none;
  border: 1px solid rgba(243, 238, 232, .5);
  color: var(--parchment);
  border-radius: var(--radius);
  padding: .45rem .7rem;
  font: inherit;
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--parchment);
  text-decoration: none;
  font-family: var(--serif-display);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--rose); }

.nav.open .nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--noir);
  padding: 1.5rem var(--gutter) 2rem;
  text-align: center;
}

/* light/dark switch: sits left of Menu on phones, after the links on desktop */
.nav-brand { order: 0; }
.nav-links { order: 1; }
.theme-toggle { order: 2; margin-left: auto; margin-right: .6rem; }
.nav-toggle { order: 3; }
/* sliding switch: knob on the left (sparkle) = dark, on the right (sun) = light */
.theme-toggle {
  position: relative;
  width: 3.5rem;
  height: 1.9rem;
  padding: 0;
  flex: none;
  border: 1px solid rgba(243, 238, 232, .5);
  border-radius: 999px;
  background: rgba(20, 27, 38, .45);
  cursor: pointer;
  transition: background .4s ease, border-color .3s ease;
}
.tt-knob {
  position: absolute;
  top: 50%;
  left: .2rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--parchment);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
  transform: translateY(-50%);
  transition: left .35s cubic-bezier(.4, 1.4, .5, 1), background .4s ease;
}
.tt-knob svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: .95rem;
  height: .95rem;
  transform: translate(-50%, -50%);
  transition: opacity .3s ease, transform .4s ease;
}
.tt-star { fill: var(--mauve-ink); }
.tt-sun { fill: none; stroke: var(--rust); stroke-width: 2; stroke-linecap: round; opacity: 0; transform: translate(-50%, -50%) rotate(-90deg); }
.tt-sun circle { fill: var(--rust); stroke: none; }
:root[data-theme="light"] .theme-toggle { background: rgba(217, 188, 175, .35); }
:root[data-theme="light"] .tt-knob { left: calc(100% - 1.6rem); }
:root[data-theme="light"] .tt-star { opacity: 0; transform: translate(-50%, -50%) rotate(90deg); }
:root[data-theme="light"] .tt-sun { opacity: 1; transform: translate(-50%, -50%); }
.theme-toggle:hover, .nav-toggle:hover { border-color: var(--rose); }
.nav-toggle:hover { color: var(--rose); }

@media (min-width: 70rem) { /* full menu bar once all six links fit on one line */
  .nav-toggle { display: none; }
  .nav-links { margin-left: auto; }
  .theme-toggle { margin: 0 0 0 2rem; }
  .nav-links, .nav.open .nav-links {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    position: static;
    background: none;
    padding: 0;
  }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  min-height: var(--app-h, 100svh); /* locked height: phone toolbars can't resize it mid-scroll */
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--parchment);
  overflow: visible; /* the calendar menu may hang below the photo */
  background: var(--noir);
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 60%;
  filter: saturate(.75) contrast(.95);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(30, 42, 56, .55) 0%, rgba(30, 42, 56, .4) 45%, rgba(30, 42, 56, .7) 100%);
}
.hero-inner { position: relative; z-index: 1; padding: 6rem var(--gutter) 4rem; }
.hero .eyebrow { color: var(--rose); }
.hero h1 {
  font-family: var(--script);
  font-size: clamp(3.4rem, 14vw, 7rem);
  font-weight: 400;
  line-height: 1.05;
  margin: .25rem 0 1.25rem;
  text-shadow: 0 2px 20px rgba(30, 42, 56, .4);
}
.hero h1 .amp { display: block; font-size: .55em; margin: .1em 0; }
.hero-meta {
  font-family: var(--serif-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.hero-meta span { display: block; }
.hero-meta .hero-date {
  font-size: clamp(1.6rem, 6.5vw, 2.6rem);
  font-weight: 400;
  letter-spacing: .2em;
  line-height: 1.25;
  margin-bottom: .35rem;
}
.countdown {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.75rem;
}
.cd-unit {
  min-width: 4.3rem;
  padding: .55rem .35rem .5rem;
  border: 1px solid rgba(243, 238, 232, .35);
  border-radius: var(--radius);
  background: rgba(20, 27, 38, .38);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.cd-num {
  display: block;
  font-family: var(--serif-display);
  font-size: clamp(1.6rem, 6.5vw, 2.4rem);
  font-weight: 500;
  line-height: 1.05;
  font-variant-numeric: lining-nums tabular-nums; /* digits don't jiggle as they change */
}
.cd-label {
  display: block;
  margin-top: .2rem;
  font-family: var(--serif-display);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--rose);
}
.countdown-done { font-style: italic; font-size: 1.3rem; }

/* "Click me!" under the countdown: bursts 18 clovers, one for the 18th */
.clover-button {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.4rem;
  padding: .55rem 1.2rem;
  border: 1px solid rgba(243, 238, 232, .45);
  border-radius: 999px;
  background: rgba(20, 27, 38, .38);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  color: var(--parchment);
  font-family: var(--serif-display);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .3s ease, color .3s ease, transform .18s ease;
}
.clover-button svg { width: 1.2rem; height: 1.2rem; color: var(--rose); transition: transform .5s ease; }
.clover-button:hover { border-color: var(--rose); color: var(--rose); }
.clover-button:hover svg { transform: rotate(25deg); }
.clover-button:active { transform: scale(.95); }

.clover-burst {
  position: fixed;
  z-index: 300;
  width: var(--size, 1.4rem);
  height: var(--size, 1.4rem);
  pointer-events: none;
  color: var(--tint, var(--lilac));
  filter: drop-shadow(0 1px 3px rgba(20, 27, 38, .6)); /* stands out over the photo */
  animation: clover-burst 1.6s cubic-bezier(.15, .7, .3, 1) forwards;
}
@keyframes clover-burst {
  0%   { transform: translate(-50%, -50%) scale(.2) rotate(0); opacity: 0; }
  12%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1) rotate(var(--spin)); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .clover-burst { animation: clover-fade 1.4s ease forwards; transform: translate(calc(-50% + var(--dx) / 3), calc(-50% + var(--dy) / 3)); }
  @keyframes clover-fade { 0%, 100% { opacity: 0; } 30%, 70% { opacity: 1; } }
}
@media (min-width: 52rem) {
  .countdown { gap: .85rem; }
  .cd-unit { min-width: 5.6rem; padding: .7rem .5rem .6rem; }
}

/* shorter banner for inner pages */
.banner {
  position: relative;
  min-height: 72vh;
  min-height: 72svh;
  min-height: calc(var(--app-h, 100svh) * .72); /* locked height: phone toolbars can't resize it mid-scroll */
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--parchment);
  background: var(--noir);
  overflow: hidden;
}
.banner img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.7) contrast(.95);
}
.banner::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(30, 42, 56, .5);
}
.banner-inner { position: relative; z-index: 1; padding: 5rem var(--gutter) 2.25rem; }
.banner h1 { font-size: clamp(2.6rem, 9vw, 4rem); font-weight: 300; letter-spacing: .04em; }
@media (min-width: 52rem) {
  .banner { min-height: 80vh; min-height: 80svh; min-height: calc(var(--app-h, 100svh) * .8); }
  .banner h1 { font-size: clamp(3.4rem, 6vw, 5rem); }
}
.banner .eyebrow { color: var(--rose); }

/* ---------- dividers ---------- */

.flourish {
  display: block;
  width: 9rem;
  height: auto;
  margin: 0 auto 1.25rem;
  color: var(--accent);
  opacity: .8;
}
.section-dark .flourish, .section-pine .flourish { color: var(--rose); opacity: .8; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  background: var(--btn);
  color: var(--parchment);
  border: 1px solid var(--btn);
  border-radius: var(--radius);
  padding: .7rem 1.6rem;
  font-family: var(--serif-display);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .3s ease, border-color .3s ease, color .3s ease;
}
.btn:hover, .btn:focus-visible { background: var(--btn-hover); border-color: var(--btn-hover); color: var(--parchment); }
.btn-outline {
  background: transparent;
  color: var(--btn-outline-text);
  border-color: var(--sage);
}
.btn-outline:hover { background: var(--sage); border-color: var(--sage); color: var(--noir); }
.section-dark .btn-outline, .section-pine .btn-outline { color: var(--parchment); }

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

/* ---------- cards & grids ---------- */

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-rose { background: var(--surface-warm); }
.card-rose .eyebrow { color: var(--accent-strong); }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; filter: saturate(.8); }
.card-body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .3rem; }
.card-body p { font-size: 1.02rem; }
.card-body .btn { margin-top: auto; align-self: flex-start; }

.link-cards a.card { text-decoration: none; color: var(--text); transition: transform .4s ease, box-shadow .4s ease; }
.link-cards a.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(30,42,56,.08), 0 14px 32px rgba(30,42,56,.12); }
.link-cards .card-body { padding-bottom: 1.3rem; }
/* five home cards: 2 + 2 + 1 wide on tablets, 3 + 2 wider on computers (no lonely last card) */
@media (min-width: 37rem) and (max-width: 51.99rem) {
  .link-cards { grid-template-columns: repeat(2, 1fr); }
  .link-cards > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .link-cards > :last-child:nth-child(odd) img { aspect-ratio: 2 / 1; }
}
@media (min-width: 52rem) {
  .link-cards { grid-template-columns: repeat(6, 1fr); }
  .link-cards > * { grid-column: span 2; }
  .link-cards > :nth-child(4), .link-cards > :nth-child(5) { grid-column: span 3; }
  .link-cards > :last-child:nth-child(odd) { grid-column: span 3; }
  .link-cards > :nth-child(4) img, .link-cards > :nth-child(5) img { aspect-ratio: 16 / 9; }
}
.link-cards .more {
  font-family: var(--serif-display);
  font-weight: 600;
  letter-spacing: .18em;
  font-size: .85rem;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: auto;
}

/* ---------- story ---------- */

.story-split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.story-split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  filter: saturate(.8);
}
@media (min-width: 52rem) {
  .story-split { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .story-split.flip > :first-child { order: 2; }
}

.drop-cap::first-letter {
  float: left;
  font-family: var(--serif-display);
  font-size: 3.6em;
  line-height: .85;
  padding: .08em .1em 0 0;
  color: var(--accent-strong);
}

/* ---------- gallery ---------- */

.gallery {
  columns: 2 10rem;
  column-gap: .75rem;
}
@media (min-width: 52rem) { .gallery { columns: 3 14rem; column-gap: 1rem; } }
.gallery button {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0 0 .75rem;
  border: 0;
  background: var(--surface);
  border-radius: 4px;
  overflow: hidden;
  cursor: zoom-in;
  break-inside: avoid;
}
@media (min-width: 52rem) { .gallery button { margin-bottom: 1rem; } }
.gallery img {
  width: 100%;
  height: auto;
  filter: saturate(.82);
  transition: transform .8s ease, filter .8s ease;
}
.gallery button:hover img { transform: scale(1.03); filter: saturate(1); }

/* Through the years reads left to right, in date order */
.gallery[data-gallery="years"] {
  columns: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
  align-items: start;
}
.gallery[data-gallery="years"] button { margin: 0; }
.gallery[data-gallery="years"] img { aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 52rem) {
  .gallery[data-gallery="years"] { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
}

/* captioned photos (Through the years) */
.gallery button.captioned {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: left;
  color: var(--text);
}
.gallery button.captioned:hover img { transform: none; }
.g-cap { display: block; padding: .6rem .75rem .75rem; }
.g-cap-text { display: block; font-size: 1rem; line-height: 1.35; font-style: italic; }
.g-cap-meta {
  display: block;
  margin-top: .3rem;
  font-family: var(--serif-display);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(30, 42, 56, .96);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: calc(100vw - 2rem);
  max-height: calc(100svh - 9rem);
  width: auto;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .4);
}
.lightbox button {
  position: absolute;
  background: none;
  border: 0;
  color: var(--parchment);
  font-family: var(--serif-display);
  font-size: 2.6rem;
  line-height: 1;
  padding: .5rem 1rem;
  cursor: pointer;
  opacity: .8;
}
.lightbox button:hover { opacity: 1; color: var(--rose); }
.lb-close { top: .5rem; right: .5rem; }
.lb-prev { left: 0; top: 50%; transform: translateY(-50%); }
.lb-next { right: 0; top: 50%; transform: translateY(-50%); }
.lb-foot {
  position: absolute;
  bottom: .75rem;
  left: 1rem; right: 1rem;
  text-align: center;
  color: var(--mist);
}
.lb-count { font-size: .9rem; letter-spacing: .2em; }
.lb-caption .g-cap { padding: 0 0 .35rem; }
.lb-caption .g-cap-text { font-size: 1.1rem; color: var(--parchment); }
.lb-caption .g-cap-meta { color: var(--rose); }

/* ---------- details ---------- */

.facts {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  text-align: center;
}
.fact .label { margin-bottom: .25rem; }
.fact .value { font-family: var(--serif-display); font-size: 1.6rem; line-height: 1.3; }

.schedule { list-style: none; margin: 0; padding: 0; }
.schedule li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.schedule li:last-child { border-bottom: 0; }
.schedule time {
  font-family: var(--serif-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--accent-strong);
}
.section-dark .schedule time { color: var(--rose); }
.schedule strong { font-family: var(--serif-display); font-size: 1.35rem; font-weight: 500; display: block; }
.schedule span { font-size: 1rem; }

.note {
  border-left: 2px solid var(--accent);
  padding: .4rem 0 .4rem 1.2rem;
  font-style: italic;
}

/* ---------- honeymoon fund ---------- */

.fund-card .amount {
  font-family: var(--serif-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--accent-strong);
  margin: .2rem 0 .9rem;
}
.any-amount {
  grid-column: 1 / -1;
  justify-content: center;
  text-align: center;
  background: var(--band);
  color: var(--parchment);
  border-color: var(--band);
}
.any-amount .card-body { justify-content: center; align-items: center; padding: 3rem 1.5rem; }
.any-amount h3 { font-size: clamp(1.8rem, 5vw, 2.4rem); font-weight: 400; }
.any-amount p { max-width: 30rem; }
.any-amount .card-body .btn { align-self: center; margin-top: .5rem; }
.any-amount .flourish { color: var(--rose); margin-bottom: 1.2rem; width: 6rem; }
/* just the one card (until the honeymoon ideas are back) */
.fund-solo { grid-template-columns: 1fr; max-width: 38rem; margin: 0 auto; }

.qr-block {
  display: none;
  gap: 2rem;
  align-items: center;
  max-width: 44rem;
  margin: 2.5rem auto 0;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.qr-block img { width: 9.5rem; height: 9.5rem; flex: none; border-radius: 4px; }
.qr-block p:last-child { margin-bottom: 0; }
@media (min-width: 52rem) { .qr-block { display: flex; } }

.fine-print { font-size: 1rem; }
.fine-print h3 { font-size: 1.35rem; }

/* ---------- cottages ---------- */

.rates { margin: 2rem 0 1.5rem; }
.rates .fact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1rem .75rem;
}
.rates .value { font-size: 2rem; color: var(--accent-strong); }

.steps { counter-reset: step; list-style: none; margin: 1.5rem 0 2rem; padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.4rem 3.2rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: -.1rem;
  width: 2.2rem; height: 2.2rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  font-family: var(--serif-display);
  font-size: 1.2rem;
  color: var(--accent-strong);
}
.timeline li { grid-template-columns: 8.5rem 1fr; }
.timeline time { font-size: 1.1rem; line-height: 1.35; }

.copy-line {
  display: inline-block;
  margin: .4rem 0;
  padding: .3rem .7rem;
  background: var(--chip);
  border-radius: 4px;
  font-family: var(--serif-display);
  font-weight: 600;
  letter-spacing: .04em;
  user-select: all;
}

.stay-list { padding-left: 1.2rem; margin: 0; }
.stay-list li { margin-bottom: .9rem; }
.stay-list li::marker { color: var(--rose); }

/* ---------- family passphrase gate ---------- */

.family-gate { padding: 2.5rem 0 3rem; }
.gate-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: none;
  border: 0;
  padding: .5rem;
  color: var(--text-muted);
  font-family: var(--serif-display);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  cursor: pointer;
}
.gate-toggle svg { width: 1.3rem; height: 1.3rem; color: var(--accent); }
.gate-toggle:hover { color: var(--accent-strong); }
.gate-form { margin-top: 1rem; }
.gate-form label { display: block; font-style: italic; margin-bottom: .6rem; }
.gate-row { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.gate-row input {
  flex: 1 1 12rem;
  max-width: 18rem;
  padding: .65rem .9rem;
  font: inherit;
  color: var(--text);
  background: var(--input-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.gate-row input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.gate-msg { min-height: 1.5em; margin-top: .75rem; font-size: 1rem; color: var(--accent-strong); }

/* ---------- add to calendar ---------- */

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: .6rem;
  margin-top: 1.4rem;
}
.hero-actions .clover-button { margin-top: 0; }
.cal-menu { position: relative; display: inline-block; }
.fact .cal-menu { margin-top: .9rem; }
.cal-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.1rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-family: var(--serif-display);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .3s ease, color .3s ease, transform .18s ease;
}
.cal-toggle svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cal-toggle .cal-star { fill: var(--rose); stroke: none; }
.cal-toggle:hover, .cal-toggle[aria-expanded="true"] { border-color: var(--accent-strong); color: var(--accent-strong); }
.cal-toggle:active { transform: scale(.96); }
/* over the hero photo: same frosted pill as "Click me!" */
.cal-menu.on-photo .cal-toggle {
  border-color: rgba(243, 238, 232, .45);
  background: rgba(20, 27, 38, .38);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  color: var(--parchment);
  font-size: .9rem;
  letter-spacing: .18em;
}
.cal-menu.on-photo .cal-toggle:hover, .cal-menu.on-photo .cal-toggle[aria-expanded="true"] { border-color: var(--rose); color: var(--rose); }
.cal-options {
  position: absolute;
  top: calc(100% + .45rem);
  left: 50%;
  z-index: 30;
  min-width: 12.5rem;
  padding: .35rem;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: left;
  animation: cal-drop .25s ease;
}
.cal-options[hidden] { display: none; }
.cal-options a {
  display: block;
  padding: .6rem .8rem;
  border-radius: 4px;
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
}
.cal-options a:hover, .cal-options a:focus-visible { background: var(--chip); color: var(--accent-strong); }
@keyframes cal-drop { from { opacity: 0; transform: translate(-50%, -6px); } }
@media (prefers-reduced-motion: reduce) { .cal-options { animation: none; } }

/* ---------- wedding party ---------- */

.team-vs {
  margin: 1.5rem 0 .25rem;
  font-family: var(--script);
  font-size: clamp(2.1rem, 8vw, 3.2rem);
  line-height: 1.15;
}
.team-vs a { color: var(--text); text-decoration: none; white-space: nowrap; transition: color .3s ease; }
.team-vs a:hover { color: var(--accent-strong); }
.team-vs .amp { display: inline-block; color: var(--accent); margin: 0 .3em; vertical-align: middle; }
.team-vs .amp svg { display: block; width: .8em; height: .8em; transition: transform .6s ease; }
.team-vs:hover .amp svg { transform: rotate(25deg); }
.team-count {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .2rem .6rem;
  font-family: var(--serif-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}

/* the zigzag: a dotted path down the middle, people alternating sides */
.party-list {
  position: relative;
  list-style: none;
  max-width: 50rem;
  margin: 2.25rem auto 0;
  padding: 0;
}
.party-list::before {
  content: "";
  position: absolute;
  top: 1rem;
  bottom: 1rem;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(to bottom, var(--accent) 0 5px, transparent 5px 13px);
  opacity: .45;
}
.party-member {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 2.6rem;
  align-items: center;
  margin-bottom: 2.25rem;
}
.party-member:last-child { margin-bottom: 0; }
.party-member .polaroid { grid-column: 1; justify-self: end; }
.party-member .party-text { grid-column: 2; grid-row: 1; text-align: left; }
.party-member:nth-child(even) .polaroid { grid-column: 2; justify-self: start; }
.party-member:nth-child(even) .party-text { grid-column: 1; text-align: right; }

/* little clover stop on the path */
.party-node {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.9rem;
  height: 1.9rem;
  padding: .3rem;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-alt);
  box-shadow: 0 0 0 2px var(--line);
  color: var(--accent-strong);
}
#team-liam .party-node { background: var(--bg); }
.party-node svg { width: 100%; height: 100%; display: block; }

/* polaroids with a strip of washi tape */
.polaroid {
  position: relative;
  width: 100%;
  max-width: 15rem;
  margin: 0;
  padding: .55rem .55rem 0;
  background: #F6F2EC;
  border: 1px solid rgba(30, 42, 56, .08);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .18), 0 12px 28px rgba(0, 0, 0, .25);
  transform: rotate(var(--tilt, -2deg));
  transition: transform .5s cubic-bezier(.3, 1.5, .5, 1), box-shadow .4s ease;
  cursor: pointer;
}
.polaroid::before {
  content: "";
  position: absolute;
  top: -.7rem;
  left: 50%;
  width: 4.6rem;
  height: 1.4rem;
  transform: translateX(-50%) rotate(-4deg);
  background: rgba(201, 174, 203, .62);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}
.party-member:nth-child(even) .polaroid::before { background: rgba(217, 188, 175, .7); transform: translateX(-50%) rotate(5deg); }
.polaroid:hover { transform: rotate(0) scale(1.04); box-shadow: 0 4px 8px rgba(0, 0, 0, .2), 0 18px 36px rgba(0, 0, 0, .3); }
.polaroid.wiggle { animation: wiggle .7s ease; }
@keyframes wiggle {
  0%, 100% { transform: rotate(var(--tilt, -2deg)); }
  20% { transform: rotate(-7deg) scale(1.05); }
  45% { transform: rotate(6deg) scale(1.05); }
  70% { transform: rotate(-3deg) scale(1.02); }
}
.polaroid-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(160deg, var(--storm), var(--blackberry));
}
.polaroid-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.party-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: .6rem;
  height: 100%;
  color: var(--rose);
  text-align: center;
}
.party-placeholder svg { width: 42%; max-width: 4.5rem; opacity: .85; }
.party-placeholder span {
  font-family: var(--serif-display);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 0 .5rem;
}
.polaroid-name {
  padding: .45rem .25rem .6rem;
  font-family: var(--script);
  font-size: clamp(1.3rem, 4.6vw, 1.75rem);
  line-height: 1.1;
  color: var(--noir);
  text-align: center;
}

.party-text h3 {
  margin: .45rem 0 .15rem;
  font-size: clamp(1.45rem, 5vw, 2rem);
  font-weight: 400;
}
.party-text p { margin: 0; font-style: italic; font-size: 1.02rem; color: var(--text-muted); }
.party-role {
  display: inline-block;
  padding: .25rem .7rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-family: var(--serif-display);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}
.party-role.lead { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--noir); }
:root[data-theme="light"] .party-role.lead { color: var(--parchment); }

/* each person slides in from their own side */
.party-member.reveal { transform: translateX(-28px); }
.party-member.reveal:nth-child(even) { transform: translateX(28px); }
.party-member.reveal.in { transform: none; }

@media (max-width: 30rem) {
  .team-vs a, .team-vs .amp { display: block; }
  .team-vs .amp { margin: .15em auto; }
  .team-vs .amp svg { margin: 0 auto; }
  .party-member { column-gap: 2.6rem; margin-bottom: 1.9rem; }
  .party-node { width: 1.6rem; height: 1.6rem; }
  .party-role { font-size: .6rem; letter-spacing: .12em; padding: .2rem .55rem; }
}
@media (prefers-reduced-motion: reduce) {
  .polaroid, .polaroid:hover { transition: none; }
  .polaroid.wiggle { animation: none; }
  .party-member.reveal { transform: none; }
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--footer-bg);
  color: var(--mist);
  text-align: center;
  padding: 2.75rem var(--gutter) 2.25rem;
}
.site-footer .script {
  font-family: var(--script);
  font-size: 2.4rem;
  color: var(--parchment);
  line-height: 1.2;
}
.site-footer p { margin: .3rem 0; font-size: 1rem; }
.site-footer .eyebrow { color: var(--rose); margin: .75rem 0 0; }
.site-footer svg { width: 2rem; color: var(--rose); margin: 0 auto 1rem; display: block; opacity: .85; }

/* ---------- slow fade-in ---------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 1.2s ease, transform 1.2s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tt-knob, .tt-knob svg { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .gallery img { transition: none; }
}

/* no-JS fallback: show everything */
.no-js .reveal { opacity: 1; transform: none; }

a[href^="tel:"] { white-space: nowrap; }

/* ---------- click animations ---------- */

/* soft ripple from wherever you tap */
.btn, .nav-toggle, .theme-toggle, .gate-toggle, .link-cards a.card, .gallery button {
  position: relative;
  overflow: hidden;
}
.ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(243, 238, 232, .45) 0%, rgba(201, 174, 203, .25) 45%, transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  animation: ripple .7s ease-out forwards;
}
@keyframes ripple {
  to { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* a little press-in */
.btn, .link-cards a.card, .gallery button, .nav-toggle, .theme-toggle {
  transition: transform .18s ease, background .3s ease, border-color .3s ease, color .3s ease, box-shadow .4s ease;
}
.btn:active, .nav-toggle:active { transform: scale(.96); }
.link-cards a.card:active, .gallery button:active { transform: scale(.985); }

/* the photo viewer opens with a gentle zoom */
.lightbox.open { animation: fade-in .35s ease; }
.lightbox.open img { animation: zoom-in .45s cubic-bezier(.2, .8, .3, 1); }
@keyframes fade-in { from { opacity: 0; } }
@keyframes zoom-in { from { transform: scale(.92); opacity: 0; } }

/* the mobile menu slides down */
.nav.open .nav-links { animation: menu-drop .35s ease; }
@keyframes menu-drop { from { opacity: 0; transform: translateY(-8px); } }

/* page-to-page cross-fade (browsers that support view transitions) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .35s ease both page-out; }
::view-transition-new(root) { animation: .5s ease both page-in; }
@keyframes page-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
  .ripple { display: none; }
  .lightbox.open, .lightbox.open img, .nav.open .nav-links { animation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .btn:active, .nav-toggle:active,
  .link-cards a.card:active, .gallery button:active { transform: none; }
}
