/* ==========================================================================
   Wedding — styles
   1. Tokens   2. Base   3. Layout & header   4. Home   5. Infos
   6. RSVP     7. Footer   8. Language picker   9. Catchphrase
   ========================================================================== */

/* 1. Tokens — change the palette and type here */
:root {
  --bg: #f9f2ec;            /* warm cream */
  --surface: #fdf9f5;       /* cards: a shade lighter than the page */
  --blush: #f2e1df;
  --blush-soft: #f6ebe6;
  --rose: #d9a3b1;          /* decorative pink */
  --accent: #94405b;        /* berry: links, buttons, active states, headings */
  --accent-dark: #742c45;
  --accent-ink: #ffffff;
  --sage: #8a9e7b;          /* leaves and fine ornaments */
  --ink: #45202f;           /* deep berry: all main text */
  --muted: #5e3d48;         /* secondary text, still high contrast */
  --line: #e8d8d1;

  /* Type rules: script = the couple's names only · serif = everything else */
  --script: "Italianno", "Snell Roundhand", cursive;
  --serif: "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
  --body: var(--serif);
  --title: 1.4rem;          /* small headings: venue names, sub-sections, info cards */
  --text: 1.2rem;           /* every paragraph, on every page */
  --text-sm: 1.05rem;       /* secondary lines: addresses, hints, notes, footer */
  --text-label: .84rem;     /* letter-spaced capitals */

  --radius: 2px;
  --radius-sm: 2px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --column: 760px;
  --wide: 960px;            /* the photo carousel is wider than the text column */
  --gutter: 24px;
}

/* 2. Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  display: flex; flex-direction: column;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font: 500 var(--text)/1.7 var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* Myrtle branch in the top-left corner, behind the header; the cut stem sits just off the page.
   Flowers: Maria Sibylla Merian, "Tulip, two Branches of Myrtle and two Shells", 1700 (Rijksmuseum, public domain). */
.corner-flower {
  display: block; position: absolute; z-index: 2;   /* above the header, so it can be clicked */
  top: -18px; left: max(-14px, calc(50% - 640px));
  width: clamp(124px, 26vw, 370px); aspect-ratio: 820 / 905;
  background: url("../img/flowers/myrtle-corner.png") top left / contain no-repeat;
}
body > * { position: relative; z-index: 1; }
.js body { opacity: 0; }
.js.ready body { opacity: 1; transition: opacity .5s var(--ease); }

img { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.2; margin: 0; color: var(--accent); }
h1 { font-size: clamp(2.2rem, 5.5vw, 2.8rem); }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.3rem); }
h3 { font-size: var(--title); font-weight: 600; color: var(--ink); }
p { margin: 0 0 .9em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }
::selection { background: var(--blush); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* The one small-label style (kickers, venue labels): letter-spaced capitals */
.eyebrow, .label {
  display: block;
  font: 600 var(--text-label)/1.3 var(--serif);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow { margin-bottom: .6rem; }

.btn, .more {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .85em 2em;
  border: 1px solid var(--accent); border-radius: var(--radius);
  background: var(--accent); color: var(--accent-ink);
  font: 600 var(--text-label)/1 var(--serif); letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn .icon, .more .icon { width: 1.1em; height: 1.1em; }
.btn-ghost, .more { background: transparent; color: var(--accent); }
.btn-ghost:hover, .more:hover { background: var(--accent); color: var(--accent-ink); }
.more .icon { transition: transform .25s var(--ease); }
.more:hover .icon { transform: translateX(3px); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 5vw, 48px);
}

/* 3. Layout & header */
.wrap { width: 100%; max-width: var(--column); margin: 0 auto; padding: 0 var(--gutter); }
body > .wrap { flex: 1 0 auto; }
main { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(48px, 9vw, 72px); padding-bottom: 72px; }

/* Centred masthead: names, catchphrase, date & place, countdown, then the menu */
.site-header { text-align: center; padding: clamp(132px, 17vw, 200px) 0 clamp(28px, 5vw, 40px); }
.names { margin: 0; font: 400 clamp(3.6rem, 11vw, 5.6rem)/1 var(--script); color: var(--accent); }
.names a { color: inherit; text-decoration: none; }
.amp { padding: 0 .08em; }
.when {
  margin: 18px 0 0;
  font: 600 clamp(.95rem, 2.6vw, 1.08rem)/1.6 var(--serif);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
  font-variant-numeric: lining-nums;
}
.when .dot { padding: 0 .35em; }

.nav {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px clamp(8px, 3vw, 22px);
  margin-top: clamp(26px, 5vw, 40px);
}
.nav a {
  padding: .3em .35em .25em;
  border-bottom: 1.5px solid transparent;
  color: var(--accent);
  font: 600 1.08rem/1.3 var(--serif); letter-spacing: .08em;
  text-decoration: none;
  transition: border-color .2s;
}
.nav a:hover { border-bottom-color: var(--rose); }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.lang-btn { display: inline-flex; border: 0; background: none; cursor: pointer; padding: .4em; border-radius: 50%; }
.lang-btn img { width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--rose); transition: transform .2s var(--ease); }
.lang-btn:hover img { transform: scale(1.1); }

/* 4. Home */
.carousel { width: min(var(--wide), 100vw - 2 * var(--gutter)); justify-self: center; }
.carousel-frame { position: relative; }
.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  border-radius: 14px;
  background: var(--blush);
  aspect-ratio: 3 / 2;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.carousel-arrow {
  position: absolute; top: calc(50% - 22px); z-index: 1;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: rgba(253, 249, 245, .9);
  color: var(--accent);
  cursor: pointer;
  opacity: 0;
  transition: opacity .25s, transform .2s var(--ease);
}
.carousel-arrow.prev { left: 22px; }
.carousel-arrow.next { right: 22px; }
.carousel:hover .carousel-arrow, .carousel-arrow:focus-visible { opacity: 1; }
.carousel-arrow:hover { transform: scale(1.08); }
@media (hover: none) { .carousel-arrow { display: none; } }
.carousel-bar { display: flex; align-items: center; justify-content: center; gap: 16px; padding-top: 18px; }
.carousel-dots { display: flex; gap: 10px; }
.carousel-dots button {
  width: 7px; height: 7px; padding: 0;
  border: 1px solid var(--accent); border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background .35s;
}
.carousel-dots button[aria-current="true"] { background: var(--accent); }

/* Save the date: an invitation card — a square double frame, thick outside, thin inside */
.std {
  position: relative; isolation: isolate; text-align: center;
  padding: clamp(48px, 8vw, 68px) clamp(22px, 5vw, 52px);
  background:
    radial-gradient(120% 70% at 50% 0%, var(--blush-soft), transparent 70%),
    var(--surface);
  border: 6px solid var(--accent);
  border-radius: 0;
}
.std::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--accent); pointer-events: none; z-index: -1; }
.std .eyebrow { margin-bottom: .8rem; }
.std .date {
  margin: 0;
  font: 500 clamp(1.8rem, 4.8vw, 2.4rem)/1.25 var(--serif);
  color: var(--accent);
  font-variant-numeric: lining-nums;
}
/* line — rings — line, under the date */
.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 18px auto 0; color: var(--rose); max-width: 260px; }
.ornament::before, .ornament::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--rose)); }
.ornament::after { transform: scaleX(-1); }
.ornament .icon { width: 1.4em; height: 1.4em; color: var(--accent); }

/* The events: three calendar pages */
.venues { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 34px 0 36px; }
.event {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(69, 32, 47, .05), 0 8px 22px -14px rgba(69, 32, 47, .28);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.event:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(69, 32, 47, .05), 0 14px 28px -14px rgba(69, 32, 47, .38); }
.event-date {
  display: grid; justify-items: center; gap: 2px;
  padding: 12px 8px 11px;
  background: var(--accent); color: var(--accent-ink);
  font-variant-numeric: lining-nums;
}
.event-month, .event-wd { font: 600 .74rem/1.2 var(--serif); letter-spacing: .2em; text-transform: uppercase; }
.event-month { opacity: .85; }
.event-wd { opacity: .85; letter-spacing: .12em; }
.event-day { font: 500 2.5rem/1 var(--serif); }
.event-day small { font-size: .6em; margin: 0 .08em; vertical-align: .22em; opacity: .8; }
.event-body { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 12px 14px; }
.event-body .label { font-size: .74rem; }
.event-name { font: 600 1.28rem/1.15 var(--serif); color: var(--ink); text-wrap: balance; }
.event-time, .event-address { display: inline-flex; align-items: center; gap: .35em; margin: 0; font-size: var(--text-sm); line-height: 1.3; color: var(--muted); font-variant-numeric: lining-nums; }
.event-time .icon { width: 1em; height: 1em; color: var(--accent); }
.event-time.tbd { font-style: italic; }
.event-map {
  display: inline-flex; align-items: center; gap: .3em; margin-top: auto; position: relative; top: 4px;
  padding: .45em 1em .4em; border: 1px solid var(--line); border-radius: 99px;
  font: 600 .74rem/1 var(--serif); letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.event-map .icon { width: 1.2em; height: 1.2em; }
.event-map:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
button.event-map { background: none; color: var(--accent); cursor: pointer; }
.event-note { display: flex; align-items: center; gap: .4em; margin: auto 0 0; position: relative; top: 4px; font-size: var(--text-sm); line-height: 1.3; color: var(--accent-dark); font-style: italic; }
.event-note .icon { width: 1em; height: 1em; flex: none; }

/* Our story, with a drop cap */
.story { max-width: 36em; margin: 0 auto; }
.story h2 { text-align: center; margin-bottom: 22px; }
.story-text p { color: var(--ink); }
.story-text p:first-child::first-letter {
  float: left; margin: .02em .1em 0 0;
  font: 400 4.2em/.8 var(--serif); color: var(--accent);
}

.rsvp-cta { text-align: center; background: var(--blush-soft); }
.rsvp-cta h2 { margin-bottom: 8px; }
.rsvp-cta .btn { margin-top: 22px; }

/* Playlist: Spotify's player, framed like the photos */
.playlist { text-align: center; }
.playlist h2 { margin-bottom: 8px; }
.playlist > p { max-width: 32em; margin: 0 auto; }
.playlist-player { margin-top: 26px; }
.playlist-player iframe { display: block; width: 100%; height: 452px; border: 0; border-radius: 14px; background: var(--blush-soft); }
.playlist-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 26px; margin-top: 22px; }
.playlist-open { display: inline-flex; align-items: center; gap: .4em; font-size: var(--text-sm); letter-spacing: .04em; text-decoration: none; }
.playlist-open:hover { text-decoration: underline; }
.playlist-open .icon { width: 1em; height: 1em; }

/* 5. Infos */
.page-intro { text-align: center; max-width: 32em; margin: 0 auto; }
.page-intro p { margin-top: 12px; }

.section-nav {
  position: sticky; top: 0; z-index: 5;
  margin: 0 calc(var(--gutter) * -1);
  padding: 10px var(--gutter);
  background: rgba(249, 242, 236, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.section-nav ul {
  display: flex; gap: 4px 18px;
  list-style: none; margin: 0; padding: 0;
  overflow-x: auto; scrollbar-width: none;
}
.section-nav ul::-webkit-scrollbar { display: none; }
/* Wider screens: wrap instead of hiding links off to the side; phones keep the swipeable row */
@media (min-width: 641px) { .section-nav ul { flex-wrap: wrap; justify-content: center; column-gap: 12px; } }
.section-nav a {
  display: inline-flex; align-items: center; gap: .5em;
  white-space: nowrap;
  padding: .45em .2em .35em;
  border-bottom: 1.5px solid transparent;
  color: var(--muted);
  font: 500 var(--text-sm)/1.2 var(--serif); letter-spacing: .06em;
  text-decoration: none;
  transition: color .25s, border-color .25s;
}
.section-nav a:hover { color: var(--accent); }
.section-nav a.is-active { color: var(--accent); border-bottom-color: var(--accent); }

.info-sections { display: grid; gap: 28px; margin-top: 28px; }
.info-section { scroll-margin-top: 70px; }
.info-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.badge { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--rose); color: var(--accent); }
.badge .icon { width: 22px; height: 22px; }
.block { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.block h3 { margin-bottom: 12px; }

/* Longer text folded behind a "Read more" toggle */
.read-more summary {
  display: inline-flex; align-items: center; gap: .35em;
  color: var(--accent); font-size: var(--text-sm); cursor: pointer;
  list-style: none;
}
.read-more summary::-webkit-details-marker { display: none; }
.read-more summary:hover span { text-decoration: underline; text-underline-offset: 3px; }
.read-more summary .icon { width: 1em; height: 1em; transition: transform .25s var(--ease); }
.read-more[open] summary .icon { transform: rotate(90deg); }
.read-more .if-open, .read-more[open] .if-closed { display: none; }
.read-more[open] .if-open { display: inline; }
.facts + .read-more { margin-top: 18px; }
.read-more[open] > p, .read-more[open] > ul { animation: reveal .3s var(--ease); }
@keyframes reveal { from { opacity: 0; transform: translateY(-4px); } }

.list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.list li { position: relative; padding-left: 24px; }
.list li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -10 20 20'%3E%3Cg fill='%23e6a2b2'%3E%3Ccircle cy='-4.5' r='4'/%3E%3Ccircle cx='4.3' cy='-1.4' r='4'/%3E%3Ccircle cx='2.6' cy='3.6' r='4'/%3E%3Ccircle cx='-2.6' cy='3.6' r='4'/%3E%3Ccircle cx='-4.3' cy='-1.4' r='4'/%3E%3C/g%3E%3Ccircle r='2.2' fill='%2394405b'/%3E%3C/svg%3E") center / contain no-repeat;
}
.block > .list:first-child { margin-top: 0; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 4.6rem; top: 12px; bottom: 12px; width: 1px; background: var(--rose); }
.timeline li { display: grid; grid-template-columns: 4rem 1fr; gap: 1.2rem; padding: 8px 0; position: relative; }
.timeline li::after { content: ""; position: absolute; left: calc(4.6rem - 5px); top: 19px; width: 11px; height: 11px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--accent); }
.timeline .time { font: 500 var(--title)/1.3 var(--serif); color: var(--accent); font-variant-numeric: lining-nums tabular-nums; }
.timeline .what { padding-left: .6rem; }
.timeline .what strong { display: block; }
.timeline .what span { color: var(--muted); font-size: var(--text-sm); }

.days { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; }
.day { display: grid; grid-template-columns: 7rem minmax(0, 1fr); border: 1px solid var(--line); background: var(--surface); }
.day-date { display: grid; align-content: center; justify-items: center; gap: 2px; padding: 16px 6px; background: var(--blush-soft); border-right: 1px solid var(--line); text-align: center; }
.day-date .label { letter-spacing: .12em; }
.day-num { font: 500 2.3rem/1.05 var(--serif); color: var(--accent); font-variant-numeric: lining-nums; white-space: nowrap; }
.day-month { font-size: var(--text-sm); color: var(--muted); line-height: 1.2; }
.day-body { display: grid; align-content: start; gap: 8px; padding: 16px 20px 18px; }
.day-title { display: flex; align-items: center; gap: .45em; font: 600 var(--title)/1.2 var(--serif); }
.day-title .icon { color: var(--accent); width: 1.05em; height: 1.05em; }
.day-when { font-size: var(--text-sm); color: var(--muted); line-height: 1.35; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.tags li { display: flex; align-items: center; gap: .4em; font-size: var(--text-sm); line-height: 1.3; }
.tags .icon { color: var(--accent); width: 1.1em; height: 1.1em; }
.day-note { display: inline-flex; align-items: center; gap: .45em; justify-self: start; margin: 4px 0 0; padding: 5px 12px; background: var(--blush); color: var(--accent-dark); font-size: var(--text-sm); font-weight: 700; line-height: 1.3; }
.day-note .icon { width: 1.1em; height: 1.1em; }
.day.is-star { border-color: var(--accent); }
.day.is-star .day-date { background: var(--accent); border-color: var(--accent); }
.day.is-star .day-date .label, .day.is-star .day-num, .day.is-star .day-month { color: var(--accent-ink); }
.steps { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: flex; align-items: center; gap: 14px; position: relative; }
.steps li + li::before { content: ""; position: absolute; left: 21px; top: -14px; height: 14px; border-left: 1.5px dotted var(--rose); }
.steps .badge { width: 44px; height: 44px; }
.steps strong { display: block; line-height: 1.3; }
.steps li > div { flex: 1; min-width: 0; }
.step-time { display: flex; align-items: center; gap: .35em; margin-left: auto; padding-left: 12px; text-align: right; font: 500 var(--title)/1.2 var(--serif); color: var(--accent); font-variant-numeric: lining-nums tabular-nums; }
.step-time .icon { width: .8em; height: .8em; flex: none; }
.step-time.tbd { font-size: var(--text-sm); color: var(--muted); }
.steps div > span:not(.step-time) { display: block; color: var(--muted); font-size: var(--text-sm); line-height: 1.4; }

.facts { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 24px; }
.facts.is-stacked { grid-template-columns: 1fr; }
.block > .facts:first-child { margin-top: 0; }
.facts li { display: flex; align-items: flex-start; gap: 14px; }
.facts .badge { width: 44px; height: 44px; }
.facts strong { display: block; line-height: 1.3; }
.facts span:not(.badge) { display: block; color: var(--muted); font-size: var(--text-sm); line-height: 1.5; margin-top: 2px; }
.links { margin-top: 10px; gap: 8px; }
.links a { display: inline-flex; align-items: center; gap: .35em; }
.links .icon { width: .95em; height: .95em; }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cards div { background: var(--blush-soft); padding: 16px 18px; }
.cards strong { display: block; font: 600 var(--title)/1.25 var(--serif); margin-bottom: 4px; }
.cards span { color: var(--muted); font-size: var(--text-sm); }

.soon {
  display: flex; align-items: center; gap: .7em;
  padding: 14px 18px;
  border: 1px dashed var(--rose);
  background: var(--blush-soft);
  color: var(--accent-dark);
}


/* 6. RSVP */
.form { display: grid; gap: 26px; }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form legend, .form label.field-label { display: block; padding: 0; margin-bottom: 10px; font-weight: 600; line-height: 1.35; }
.hint { display: block; color: var(--muted); font-size: var(--text-sm); font-weight: 500; margin-top: 2px; }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .box {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 108px; height: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--bg);
  text-align: center; font-weight: 500;
  transition: background .2s, border-color .2s, color .2s;
}
.choice .box .icon { width: 26px; height: 26px; color: var(--muted); transition: color .2s, transform .3s var(--ease); }
.choice:hover .box { border-color: var(--rose); }
.choice input:checked + .box { background: var(--blush); border-color: var(--accent); color: var(--accent-dark); }
.choice input:checked + .box .icon { color: var(--accent); transform: scale(1.12); }
.choice.no input:checked + .box { background: #f1ecea; border-color: var(--muted); color: var(--ink); }
.choice.no input:checked + .box .icon { color: var(--muted); }
.choice input:focus-visible + .box { outline: 2px solid var(--accent); outline-offset: 2px; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills .choice .box { min-height: 0; flex-direction: row; padding: .55em 1.2em; font-size: var(--text-sm); }

.input, .form textarea {
  width: 100%;
  padding: .75em 1em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font: 500 var(--text-sm)/1.4 var(--body);   /* ≥16px avoids iOS zoom on focus */
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.form textarea { min-height: 96px; resize: vertical; }
.input:focus, .form textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--blush); }
.input::placeholder, .form textarea::placeholder { color: #8c6e77; }

.counts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 8px 8px 16px; border: 1px solid var(--line); background: var(--bg); }
.stepper .lbl { font-weight: 500; }
.stepper .ctrl { display: flex; align-items: center; gap: 4px; }
.stepper button {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface); color: var(--accent);
  font: 400 1.3rem/1 var(--serif); cursor: pointer;
}
.stepper button:hover { background: var(--blush); }
.stepper output { min-width: 2ch; text-align: center; font: 500 1.5rem/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; }

.details { display: grid; gap: 26px; }
.error { color: #a83b3b; font-size: var(--text-sm); margin-top: 6px; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn[type="submit"] { justify-self: start; }

.result { text-align: center; }
.result .icon { width: 40px; height: 40px; color: var(--rose); fill: var(--blush); margin: 0 auto 14px; display: block; }
.result p { font: 500 1.7rem/1.35 var(--serif); color: var(--accent); }
.result .btn { margin-top: 20px; }
.form-error { padding: 14px 18px; background: var(--blush); color: var(--accent-dark); }

/* 7. Footer */
.site-footer { flex: none; padding: 0 0 34px; text-align: center; }
.footer-flower { display: block; width: 64px; margin: 0 auto; }
.footer-tulip { width: 64px; height: auto; }
.footer-names { margin: 14px 0 4px; font: 400 clamp(2.6rem, 8vw, 3.4rem)/1 var(--script); color: var(--accent); }
.cd-date {
  display: flex; align-items: center; justify-content: center; gap: .5em;
  margin: 0;
  font: 600 var(--text-sm)/1.4 var(--serif); letter-spacing: .2em; font-variant-numeric: lining-nums;
  color: var(--accent);
}
.cd-date .sep { width: .55em; height: .55em; fill: var(--rose); stroke: none; }
.countdown { display: flex; justify-content: center; gap: clamp(8px, 2.5vw, 16px); margin: 26px 0 0; }
.cd-unit {
  width: clamp(70px, 19vw, 96px); padding: 14px 4px 12px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface);
}
.cd-num {
  display: block; height: 1em; overflow: hidden;   /* clips the number as it rolls in */
  font: 500 clamp(2rem, 7vw, 2.8rem)/1 var(--serif); color: var(--accent);
  font-variant-numeric: lining-nums tabular-nums;
}
.cd-num span { display: block; animation: roll .5s var(--ease); }
@keyframes roll { from { transform: translateY(70%); opacity: 0; } }
.cd-lbl { display: block; margin-top: 8px; font: 600 .74rem/1 var(--serif); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cd-done { margin: 0; font: italic 500 1.4rem/1.4 var(--serif); color: var(--accent); }

/* 8. Language picker */
.lang-modal {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  padding: 16px;
  background: rgba(92, 42, 60, .25);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: fade .3s var(--ease);
}
.lang-dialog { width: min(100%, 460px); text-align: center; animation: rise .4s var(--ease); }
.lang-dialog h2 { font: 400 3.4rem/1.1 var(--script); color: var(--accent); }
.lang-dialog p { color: var(--muted); margin: 8px 0 24px; }
.lang-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.lang-list button {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: 84px; padding: 12px 4px;
  border: 0; border-radius: var(--radius);
  background: none; color: var(--ink); cursor: pointer;
  font: 500 var(--text-sm)/1 var(--serif);
  transition: background .2s;
}
.lang-list button:hover, .lang-list button[aria-current="true"] { background: var(--blush-soft); }
.lang-list img { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--rose); transition: transform .25s var(--ease); }
.lang-list button:hover img { transform: scale(1.08); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(.98); } }

/* 9. Catchphrase — typed one character at a time behind a rose cursor */
.catch {
  display: flex; align-items: center; justify-content: center;
  min-height: 2.8em;
  margin: 6px 0 0;
  font: italic 500 clamp(1.2rem, 3vw, 1.4rem)/1.3 var(--serif);
  color: var(--ink);
}
.catch-text { display: block; max-width: 30ch; }
.catch .word { white-space: nowrap; }
.catch .ch {
  display: inline-block;
  opacity: 0; transform: translateY(.12em); color: var(--rose);
  transition: opacity .18s ease-out;                              /* erasing: quick fade */
}
.catch .ch.on {
  opacity: 1; transform: none; color: var(--ink);
  transition: opacity .45s ease-out, transform .55s var(--ease), color 1s .15s ease;
}
.caret { position: relative; }                 /* zero-width inline: never shifts the text */
.caret::after {
  content: ""; position: absolute; left: 2px; top: .12em;
  width: 1.5px; height: 1em; border-radius: 1px;
  background: var(--accent);
  animation: caret 1.1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html, .carousel-track { scroll-behavior: auto; }
  .catch .ch, .catch .ch.on { transform: none; transition: opacity .3s; }
  .caret::after, .lang-modal, .lang-dialog, .cd-num span, .read-more[open] > p, .read-more[open] > ul { animation: none; }
}

/* Mobile */
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .nav a { font-size: 1rem; letter-spacing: .06em; }
  .carousel-track { aspect-ratio: 4 / 3; }
  .std::before { inset: 6px; }
  .cards { grid-template-columns: 1fr; }
  .day { grid-template-columns: 5.2rem minmax(0, 1fr); }
  .day-num { font-size: 1.8rem; }
  .day-body { padding: 14px 14px 16px; }
  .steps li { flex-wrap: wrap; }
  .steps li > div { flex-basis: calc(100% - 58px); }
  .step-time { margin-left: 58px; padding-left: 0; font-size: var(--text); }
  .steps li + li::before { display: none; }
  .facts { grid-template-columns: 1fr; }
  /* Events become compact rows: date block on the left, details on the right */
  .venues { grid-template-columns: 1fr; gap: 12px; margin: 28px 0 30px; }
  .event { flex-direction: row; text-align: left; }
  .event-date { flex: none; width: 5.6rem; align-content: center; padding: 12px 4px; }
  .event-day { font-size: 2rem; }
  .event-body { align-items: flex-start; gap: 3px; padding: 12px 14px; }
  .event-map { margin-top: 6px; }
  .timeline::before { left: 3.9rem; }
  .timeline li { grid-template-columns: 3.4rem 1fr; }
  .timeline li::after { left: calc(3.9rem - 5px); }
  .counts { grid-template-columns: 1fr; }
  .form .btn[type="submit"] { justify-self: stretch; }
}
