/* Céline & Simon, 7 augusti 2027

   The system, in one breath: an invitation painted on canvas. Names and headings in
   Amatic SC, the hand-drawn face from our printed invitation; body text in Lora; one
   small italic line in Lora under the RSVP button. All on a
   linen-textured ground, with painted bouquets framing the page like the flowers on
   our card. Colours come from Céline's moodboard: vintage wine as the one accent,
   blush and sand as quiet tints. Photos and cards share one small radius; nothing
   else competes with the flowers. */

:root {
  --canvas: #f5efe5;
  --card: #fbf8f3;
  --tint: #efe2db;
  --rose: #e8d3d3;
  --sea: #dde5e6;
  --wine: #5e1f35;
  --wine-deep: #45162a;
  --ink: #2b2422;
  --ink-soft: #6c625d;
  --line: rgba(43, 36, 34, 0.14);
  --texture: url(../img/canvas.webp);

  --font: "Lora", Georgia, "Times New Roman", serif;
  --display: "Amatic SC", "Lora", Georgia, serif;
  --serif: "Lora", Georgia, serif;

  --gutter: clamp(20px, 5vw, 56px);
  --r: 6px;
  --max: 1140px;
  --topbar: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
/* Keep `hidden` working on elements we give a display, like the grid form. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar) + 16px); -webkit-text-size-adjust: 100%; }
body {
  background: var(--canvas) var(--texture) repeat;
  background-size: 512px;
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-decoration-thickness: 1px; text-underline-offset: 0.22em;
  transition: color 0.2s, text-decoration-color 0.2s;
}
a:hover { color: var(--wine); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--wine); color: var(--card); }
button, input, select, textarea { font: inherit; color: inherit; }

/* Language: show only the active one. */
html[lang="sv"] [lang="en"]:not(html),
html[lang="en"] [lang="sv"]:not(html) { display: none !important; }

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--wine); color: var(--card); padding: 10px 16px; border-radius: 999px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--card); }

/* Placeholders we still need to fill in. Visible with ?utkast in the URL. */
html.show-todo .todo {
  background: #fff1a8;
  box-shadow: 0 0 0 3px #fff1a8;
  outline: 1px dashed #b89400;
  outline-offset: 3px;
  color: var(--ink);
}
/* Placeholders guests could act on (a Swish number, phone numbers, emails) stay hidden
   on the live site until the real ones are in. ?utkast shows them; .soon stands in. */
html:not(.show-todo) .hide-live { display: none; }
html.show-todo .soon { display: none; }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-weight: 400; line-height: 1.1; color: var(--ink); }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: 0.01em; }
h2 { font-size: clamp(2.9rem, 10vw, 4.6rem); line-height: 1; }
h3 { font-size: clamp(1.3rem, 3.4vw, 1.55rem); font-weight: 450; letter-spacing: -0.025em; line-height: 1.2; }
h4 { font-size: 1.15rem; font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; }
p + p { margin-top: 0.8em; }
h1, h2, h3, h4, .lead, .sign-off, summary { text-wrap: balance; }
p { text-wrap: pretty; }
.lead { font-size: clamp(1.15rem, 3vw, 1.35rem); line-height: 1.45; letter-spacing: -0.015em; color: var(--ink-soft); }
.small { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 50px; padding: 0.7em 2em;
  border-radius: 999px; border: 1px solid var(--wine);
  background: var(--wine); color: var(--card);
  font-weight: 450; font-size: 1rem; letter-spacing: 0.005em;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.2s var(--ease);
}
.btn:hover { background: var(--wine-deep); border-color: var(--wine-deep); color: var(--card); }
.btn:active { transform: scale(0.98); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: transparent; color: var(--wine); border-color: var(--wine); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--topbar);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--gutter);
  transition: background-color 0.3s, box-shadow 0.3s;
}
.topbar.is-scrolled { background: var(--canvas) var(--texture) 0 0 / 512px; box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 700; letter-spacing: 0.02em; line-height: 1; }
.brand-full { display: none; font-size: 1.7rem; }
.brand-short { font-size: 1.8rem; }
.topbar-actions { display: flex; align-items: center; gap: 6px; }

/* Language: a quiet segmented control. The flags keep it easy to spot. */
.lang { display: flex; padding: 3px; gap: 2px; border-radius: 999px; border: 1px solid var(--line); background: rgba(251, 248, 243, 0.6); }
.lang button {
  display: flex; align-items: center; gap: 7px;
  min-height: 36px; padding: 0 12px 0 9px;
  border: 0; border-radius: 999px; background: transparent; color: var(--ink-soft);
  font-weight: 550; font-size: 0.8rem; letter-spacing: 0.04em;
  cursor: pointer; transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.lang button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(43, 36, 34, 0.14); }
.lang button:not([aria-pressed="true"]):hover { color: var(--ink); }
.lang .flag { width: 22px; height: 15px; border-radius: 2px; flex: none; box-shadow: 0 0 0 1px rgba(43, 36, 34, 0.12); }

.menu-btn {
  display: flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 8px;
  border: 0; border-radius: 999px; background: transparent; color: var(--ink);
  font-weight: 450; cursor: pointer;
}
.menu-btn .bars { position: relative; width: 20px; height: 10px; }
.menu-btn .bars::before, .menu-btn .bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; border-radius: 1px;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.menu-btn .bars::before { top: 0; }
.menu-btn .bars::after { top: 8.5px; }
.menu-btn[aria-expanded="true"] .bars::before { top: 4.25px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { top: 4.25px; transform: rotate(-45deg); }

.nav {
  position: fixed; inset: 0; z-index: -1;
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  padding: calc(var(--topbar) + 24px) var(--gutter) 48px;
  background: var(--canvas) var(--texture) 0 0 / 512px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
}
.nav.is-open { opacity: 1; visibility: visible; transition: opacity 0.35s var(--ease); }
.nav a {
  font-family: var(--display); font-size: clamp(2.4rem, 10vw, 3.1rem); letter-spacing: 0.01em; line-height: 1.15;
  text-decoration: none; color: var(--ink);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--wine); }
.nav .nav-rsvp { margin-top: 18px; color: var(--wine); font-weight: 700; }
body.menu-open { overflow: hidden; }

/* ---------- painted bouquets ----------
   Each bouquet is two layers: a quick underpainting and the finished painting.
   They are painted in from the stems up, then the detail settles on top. */
.bouquet { position: absolute; bottom: 0; width: var(--bw, 30vw); aspect-ratio: 1 / 2; pointer-events: none; }
.bouquet img { position: absolute; inset: 0; width: 100%; height: 100%; }
.bouquet .under { display: none; }
.js .bouquet img { opacity: 0; }
.js .bouquet .under { display: block; }
.bouquet--l { left: calc(var(--bw, 30vw) * -0.1); transform-origin: 35% 100%; }
.bouquet--r { right: calc(var(--bw, 30vw) * -0.1); transform-origin: 65% 100%; }
.bouquet.is-painting .under {
  -webkit-mask: linear-gradient(to top, #000 50%, transparent 66%) 0 0 / 100% 300% no-repeat;
  mask: linear-gradient(to top, #000 50%, transparent 66%) 0 0 / 100% 300% no-repeat;
  animation: paint-up 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.bouquet.is-painting .paint { animation: paint-settle 1.8s ease 0.9s forwards; }
.bouquet.is-painted { animation: sway 9s ease-in-out infinite alternate; }
.bouquet--r.is-painted { animation-duration: 10.5s; animation-direction: alternate-reverse; }
@keyframes paint-up {
  from { opacity: 1; -webkit-mask-position: 0 0; mask-position: 0 0; }
  to { opacity: 1; -webkit-mask-position: 0 100%; mask-position: 0 100%; }
}
@keyframes paint-settle { from { opacity: 0; } to { opacity: 1; } }
@keyframes sway { from { transform: rotate(-0.6deg); } to { transform: rotate(0.6deg); } }

/* ---------- hero ---------- */
.hero {
  --bw: 52vw;
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding: calc(var(--topbar) + 8vh) var(--gutter) calc(var(--bw) * 1.4);
  text-align: center;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.hero-line { font-size: clamp(1.05rem, 3.6vw, 1.3rem); line-height: 1.4; letter-spacing: -0.01em; color: var(--ink-soft); }
.names {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 0.22em;
  margin-top: clamp(6px, 1.2vh, 12px);
  font-size: clamp(4rem, 19vw, 10rem); line-height: 1;
}
.names .amp { font-size: 0.6em; color: var(--ink-soft); }
.hero-date { margin-top: clamp(10px, 1.8vh, 18px); font-size: clamp(1.1rem, 3.6vw, 1.35rem); font-weight: 450; letter-spacing: -0.015em; }

/* Countdown: just the days. */
.countdown { display: flex; flex-direction: column; align-items: center; margin-top: clamp(16px, 2.8vh, 28px); line-height: 1; }
.countdown b { font-weight: 250; font-size: clamp(2.3rem, 8vw, 2.9rem); letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown small { margin-top: 4px; font-size: 0.9rem; color: var(--ink-soft); }
.countdown.is-done { font-family: var(--display); font-size: clamp(2.4rem, 8vw, 3rem); }
.hero .btn { margin-top: clamp(20px, 3.2vh, 30px); min-width: 160px; }
.hero-by { margin-top: 12px; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.15rem, 3.8vw, 1.3rem); color: var(--ink-soft); }

/* The entrance: flowers are painted first, then the names, then the details. */
.hero-inner > * { opacity: 0; animation: rise 1.1s var(--ease) forwards; }
.hero-inner > .hero-line { animation-delay: 0.4s; }
.hero-inner > .names { animation-delay: 0.55s; }
.hero-inner > .hero-date { animation-delay: 1s; }
.hero-inner > .countdown { animation-delay: 1.15s; }
.hero-inner > .btn { animation-delay: 1.3s; }
.hero-inner > .hero-by { animation-delay: 1.4s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* ---------- page header (sub pages) ---------- */
.page-head {
  --bw: clamp(118px, 22vw, 300px);
  position: relative; overflow: hidden;
  padding: calc(var(--topbar) + clamp(40px, 9vw, 110px)) var(--gutter) calc(var(--bw) * 1.72);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.page-head h1 { position: relative; font-size: clamp(3.6rem, 15vw, 7.2rem); line-height: 0.95; }
.page-head .lead { position: relative; max-width: 32ch; margin: 18px auto 0; }
.page-head + .section { padding-top: clamp(40px, 6vw, 72px); }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(80px, 12vw, 148px) var(--gutter); }
.section--tint { background: var(--tint) var(--texture) 0 0 / 512px; background-blend-mode: multiply; }
.section--rule > .split, .section--rule > .wrap { border-top: 1px solid var(--line); padding-top: clamp(56px, 8vw, 96px); }
.section--rule { padding-top: 0; }
.wrap { max-width: var(--max); margin: 0 auto; }
.narrow { max-width: 760px; margin: 0 auto; }
.narrow > .lead { margin-top: 16px; }
.narrow > .small { margin-top: 14px; }
.split { display: grid; gap: 28px 64px; max-width: var(--max); margin: 0 auto; }
.split-head > * + * { margin-top: 18px; }
.split-head .lead { max-width: 30ch; }
.split-body { min-width: 0; }
.section-head { margin: 0 0 clamp(36px, 5vw, 56px); }
.section-head .lead { margin-top: 14px; max-width: 38ch; }
.section-head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; }

/* ---------- intro ---------- */
.intro { padding-top: clamp(24px, 6vw, 72px); }
.intro .wrap { display: grid; justify-items: center; gap: 44px; text-align: center; }
.arch {
  width: min(76vw, 360px); aspect-ratio: 4 / 5;
  border-radius: 999px 999px var(--r) var(--r); overflow: hidden;
}
.arch img, .arch .ph { width: 100%; height: 100%; object-fit: cover; }
.letter { max-width: 32rem; }
.letter h2 { margin-bottom: 22px; }
.letter p { font-size: 1.12rem; }
.letter .signature { margin-top: 26px; font-weight: 450; }

/* Placeholder image: a blush canvas with a short label. */
.ph {
  display: grid; place-items: center; padding: 16px;
  background: var(--rose) var(--texture) 0 0 / 512px; background-blend-mode: multiply;
  text-align: center; font-size: 0.9rem; color: var(--ink-soft);
}

/* ---------- painting ---------- */
.painting { margin: 0 auto; padding: 0 var(--gutter); max-width: calc(var(--max) + 2 * var(--gutter)); }
.painting img { width: 100%; height: clamp(280px, 56vw, 660px); object-fit: cover; object-position: 22% 55%; border-radius: var(--r); }

/* ---------- the weekend: one row per day ---------- */
.day { display: grid; gap: 28px 64px; align-items: start; }
.day + .day { margin-top: clamp(56px, 8vw, 104px); }
.day-media { display: grid; gap: 8px; }
.day-media img, .day-media .ph { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.day-media--two { grid-template-columns: 1fr 1fr; }
.day-media--two img, .day-media--two .ph { aspect-ratio: 3 / 4; }
.day-name { font-family: var(--display); font-size: clamp(2.8rem, 8vw, 3.8rem); letter-spacing: 0.01em; line-height: 1; margin-bottom: clamp(20px, 2.6vw, 28px); }
.day-name small { font-family: var(--font); font-size: clamp(1rem, 2.6vw, 1.15rem); letter-spacing: -0.01em; color: var(--ink-soft); margin-left: 0.4em; white-space: nowrap; }

.event, .timeline li { display: grid; grid-template-columns: 3.8rem 1fr; gap: 0 18px; }
.event--plain { display: block; }
.event--plain h4 { margin-bottom: 8px; }
.time { position: relative; font-size: 1.1rem; font-weight: 450; line-height: 1.35; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
/* "ca" sits just above an approximate time, so the time still lines up with its heading. */
.time small { position: absolute; left: 0; bottom: 100%; font-size: 0.78rem; font-weight: 400; letter-spacing: 0; color: var(--ink-soft); }
.event p:not(.place), .timeline p:not(.place) { margin-top: 6px; }

/* Address links: a pin and quiet text, not a heavy underline. */
.place { margin-top: 4px; }
.place a {
  display: inline-flex; align-items: flex-start; gap: 6px;
  font-size: 0.95rem; color: var(--ink-soft); text-decoration: none;
}
.place a::before {
  content: ""; width: 13px; height: 13px; flex: none; margin-top: 0.32em; background: var(--wine);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.place a:hover { color: var(--wine); text-decoration: underline; }

.timeline { list-style: none; padding: 0; position: relative; }
.timeline li { position: relative; padding-bottom: 24px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: calc(3.8rem + 8px); top: 0.8em; bottom: -0.6em;
  width: 1px; background: var(--line);
}
.timeline li:last-child::before { display: none; }
.timeline li::after {
  content: ""; position: absolute; left: calc(3.8rem + 5px); top: calc(0.8em - 3px);
  width: 7px; height: 7px; border-radius: 50%; background: var(--canvas); border: 1px solid var(--wine);
}
.timeline li > div { padding-left: 22px; }
.timeline .is-key::after { background: var(--wine); }

/* The day's dress code sits with its schedule; the rule below closes the day. */
.dress-link { margin-top: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); font-size: 0.98rem; color: var(--ink-soft); }
.dress-link a { color: var(--ink); font-weight: 450; }

/* ---------- dress code ---------- */
.dress-grid { display: grid; gap: 56px 48px; }
.dress-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 20px; }
.dress-photos img, .dress-photos .ph { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r); }
.dress-photos .ph { background-color: var(--card); }
/* Day first, then the dress code, then the photos, so nobody mixes up the days. */
.dress-day { font-size: 1.15rem; font-weight: 500; letter-spacing: 0.02em; color: var(--wine); }
.dress h3 { font-family: var(--display); font-size: clamp(2.3rem, 6vw, 2.9rem); letter-spacing: 0.01em; line-height: 1; margin: 2px 0 18px; }
.dress > p:not(.dress-day) { max-width: 46ch; }

/* ---------- plan ahead: links to the other pages ---------- */
.links-grid { display: grid; gap: 40px 24px; }
.link-card { display: block; text-decoration: none; color: var(--ink); }
.link-card .media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--tint); border-radius: var(--r); }
.link-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.link-card:hover .media img { transform: scale(1.035); }
.link-card h3 { margin-top: 16px; }
.link-card p { margin-top: 6px; color: var(--ink-soft); }
.link-card:hover h3 { color: var(--wine); }
.link-card .badge { position: absolute; left: 12px; top: 12px; }
.badge {
  font-size: 0.75rem; font-weight: 550; letter-spacing: 0.01em; line-height: 1.4;
  padding: 4px 11px; border-radius: 999px; background: var(--card); color: var(--wine);
}

/* ---------- map (explore page) ---------- */
.map { position: relative; margin: 0 0 40px; border-radius: var(--r); overflow: hidden; container-type: inline-size; }
.map img { width: 100%; height: auto; aspect-ratio: 760 / 560; }
.map .pin, .map .town, .map .sea { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; line-height: 1.1; }
.map .town { font-size: clamp(0.7rem, 2.2cqi, 0.95rem); color: var(--ink-soft); }
.map .sea { font-size: clamp(0.68rem, 2.2cqi, 0.95rem); color: #7d8b8f; letter-spacing: 0.22em; }
.map .pin { display: flex; align-items: center; gap: 6px; transform: translate(-7px, -50%); }
.map .pin::before {
  content: ""; width: 13px; height: 13px; flex: none; border-radius: 50%;
  background: var(--wine); box-shadow: 0 0 0 3px var(--card), 0 0 0 4px var(--wine);
}
.map .pin span {
  font-weight: 550; font-size: clamp(0.7rem, 2.2cqi, 0.92rem); color: var(--ink);
  background: rgba(251, 248, 243, 0.92); padding: 2px 7px; border-radius: 999px;
}
.map .away { position: absolute; font-size: clamp(0.68rem, 2.1cqi, 0.88rem); color: var(--ink-soft); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.map .away svg { width: 14px; height: 14px; }
.map .scale { position: absolute; left: 4%; bottom: 5%; font-size: clamp(0.65rem, 2cqi, 0.8rem); color: var(--ink-soft); }
.map .scale::before { content: ""; display: block; width: var(--w); height: 5px; border: 1px solid var(--ink-soft); border-top: 0; margin-bottom: 3px; }
.map figcaption { position: absolute; right: 10px; bottom: 8px; font-size: 0.65rem; color: var(--ink-soft); }


/* ---------- where to stay ---------- */
.notice {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 24px 24px 26px; margin-bottom: 18px;
  background: var(--wine); color: var(--card); border-radius: var(--r);
}
.notice svg { width: 26px; height: 26px; flex: none; margin-top: 2px; }
.notice strong { font-weight: 450; font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1.25; display: block; margin-bottom: 4px; }
.stay-group { margin-top: 56px; }
.stay-group > h2 { font-size: clamp(2.4rem, 7.6vw, 3.2rem); }
.stay-group > .lead { margin-top: 8px; font-size: 1.1rem; }
.stay-list { list-style: none; padding: 0; margin-top: 18px; border-top: 1px solid var(--line); }
.stay-list li { display: grid; gap: 4px 24px; padding: 18px 0 20px; border-bottom: 1px solid var(--line); }
.stay-list h3 { font-size: 1.3rem; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.stay-list .badge { background: var(--rose); color: var(--wine-deep); }
.stay-list .links { display: flex; gap: 18px; font-weight: 450; font-size: 0.95rem; }
.stay-group--backup .stay-list li { padding: 14px 0 16px; }
.stay-tip { margin-top: 36px; padding: 28px; background: var(--tint) var(--texture) 0 0 / 512px; background-blend-mode: multiply; border-radius: var(--r); }
.stay-tip h3 { margin-bottom: 8px; }

/* ---------- explore ---------- */
.explore-map { margin-bottom: clamp(48px, 7vw, 88px); }
.explore-map .map { margin: 0; }
.cards { display: grid; gap: 44px 24px; max-width: var(--max); margin: 0 auto; }
.card .media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--tint); border-radius: var(--r); }
.card .media img { width: 100%; height: 100%; object-fit: cover; }
.card h3 { margin: 16px 0 6px; }

/* ---------- speeches, and the Swish number in the FAQ ---------- */
.people { display: grid; gap: 12px; }
.person { padding: 20px 22px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.person h3 { font-size: 1.35rem; }
.person .role { margin-top: 2px; color: var(--ink-soft); }
.person .reach { margin-top: 10px; display: flex; flex-direction: column; gap: 2px; font-weight: 450; font-size: 0.98rem; }
.tips { margin-top: 28px; display: grid; gap: 14px; padding: 0; list-style: none; }
.tips li { position: relative; padding-left: 26px; }
.tips li::before { content: ""; position: absolute; left: 4px; top: 0.72em; width: 8px; height: 1px; background: var(--wine); }
.swish {
  display: inline-flex; flex-direction: column; gap: 2px; margin-top: 8px;
  padding: 18px 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
}
.swish b { font-weight: 300; font-size: 1.7rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* ---------- rsvp ---------- */
.rsvp { --bw: min(24vw, 360px); overflow: hidden; }
.rsvp .bouquet { display: none; }
.rsvp .wrap { position: relative; z-index: 1; max-width: 640px; }
.rsvp h2 { text-align: center; font-size: clamp(4.2rem, 18vw, 7rem); line-height: 1; }
.rsvp .lead { text-align: center; margin: 12px auto 0; max-width: 30ch; }

.form-card {
  margin-top: clamp(32px, 5vw, 48px);
  padding: clamp(24px, 5vw, 44px);
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 40px 70px -50px rgba(69, 22, 42, 0.45);
}
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field > label, .field legend { font-weight: 500; font-size: 0.98rem; }
.field .hint { font-size: 0.85rem; color: var(--ink-soft); font-weight: 400; margin-left: 4px; }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--ink); font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:hover, .field textarea:hover { border-color: rgba(43, 36, 34, 0.28); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--wine); box-shadow: 0 0 0 4px rgba(94, 31, 53, 0.12); }
.field textarea { min-height: 110px; resize: vertical; }
fieldset.field { border: 0; padding: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 10px; }
.choices { display: grid; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice > span {
  display: flex; align-items: center; gap: 12px;
  min-height: 54px; padding: 12px 18px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.choice > span::before {
  content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%;
  border: 1px solid rgba(43, 36, 34, 0.4); transition: box-shadow 0.2s, background-color 0.2s, border-color 0.2s;
}
.choice input[type="checkbox"] + span::before { border-radius: 4px; }
.choice:hover > span { border-color: rgba(43, 36, 34, 0.28); }
.choice input:checked + span { background: #f6eceb; border-color: var(--wine); }
.choice input:checked + span::before { background: var(--wine); border-color: var(--wine); box-shadow: inset 0 0 0 3.5px #f6eceb; }
.choice input:focus-visible + span { outline: 2px solid var(--wine); outline-offset: 3px; }
.if-attending { display: grid; gap: 22px; }
.form .btn { justify-self: start; min-width: 200px; margin-top: 4px; }
.form .btn[disabled] { opacity: 0.7; cursor: progress; }
.form-status { min-height: 1.5em; font-weight: 500; }
.thanks { text-align: center; padding: 28px 8px; }
.thanks h3 { font-family: var(--display); font-size: clamp(2.6rem, 9vw, 3.4rem); letter-spacing: 0.01em; }
.thanks p { margin-top: 10px; color: var(--ink-soft); }
.bot-field { position: absolute; left: -9999px; }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 18px 0; min-height: 64px;
  font-size: 1.12rem; font-weight: 450; letter-spacing: -0.02em; line-height: 1.3;
  transition: color 0.2s;
}
.faq summary:hover { color: var(--wine); }

/* Contacts in the FAQ: a small role label, then names with phone and email. */
.contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contacts .who { display: block; font-size: 0.85rem; letter-spacing: 0.02em; color: var(--wine); margin-bottom: 2px; }
.contacts b { font-weight: 500; margin-right: 6px; }
.contacts a { margin-right: 10px; white-space: nowrap; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 14px; height: 14px; flex: none;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 1px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1px 14px no-repeat;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 22px; max-width: 60ch; color: var(--ink-soft); }

/* ---------- footer: sign-off, links, and the bouquets once more ---------- */
.footer { --bw: 44vw; position: relative; padding: clamp(32px, 6vw, 64px) 0 0; text-align: center; overflow: hidden; }
.footer > p, .footer-nav { position: relative; z-index: 1; padding: 0 var(--gutter); }
.footer .sign-off { font-family: var(--display); font-size: clamp(3rem, 11vw, 4.6rem); letter-spacing: 0.01em; line-height: 1; }
.footer .names-small { margin-top: 12px; color: var(--ink-soft); }
.footer .contact { margin-top: 16px; font-weight: 450; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-top: 30px; font-size: 0.95rem; }
.footer-nav a { color: var(--ink-soft); text-decoration: none; }
.footer-nav a:hover { color: var(--wine); }
.footer-flowers { position: relative; height: calc(var(--bw) * 1.6); margin-top: 20px; }

/* ---------- larger screens ---------- */
@media (min-width: 560px) {
  .brand-full { display: inline; }
  .brand-short { display: none; }
}

@media (min-width: 640px) {
  .links-grid { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .people { grid-template-columns: 1fr 1fr; }
  .stay-list li { grid-template-columns: 1fr auto; align-items: start; }
  .stay-list li > :not(.links) { grid-column: 1; }
  .stay-list .links { grid-column: 2; grid-row: 1 / span 3; padding-top: 4px; }
  .choices--two { grid-template-columns: 1fr 1fr; }
  .dress-grid { grid-template-columns: 1fr 1fr; }
  .footer { --bw: 30vw; }
}

@media (min-width: 900px) {
  /* Hero: the bouquets frame the names from both sides, like on our card. */
  .hero {
    --bw: min(29vw, 47svh);
    justify-content: center;
    padding: calc(var(--topbar) + 2vh) var(--gutter) 4vh;
  }
  .names { flex-direction: column; align-items: center; font-size: clamp(5rem, min(11vw, 15vh), 11rem); line-height: 0.9; }
  .names .amp { line-height: 1; }

  /* Days: photo beside the programme, alternating sides. */
  .day { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .day--flip { align-items: start; }
  .day--flip .day-media { order: 2; position: sticky; top: calc(var(--topbar) + 32px); }
  .page-head { padding-bottom: clamp(80px, 9vw, 140px); min-height: calc(var(--bw) * 2 * 0.86); justify-content: center; }
}

@media (min-width: 960px) {
  body { font-size: 1.1rem; }
  .split { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
  .split-head { position: sticky; top: calc(var(--topbar) + 32px); align-self: start; }
  .intro .wrap { grid-template-columns: auto minmax(0, 32rem); justify-content: center; text-align: left; gap: 88px; align-items: center; }
  .arch { width: 380px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .footer { --bw: min(20vw, 300px); }
  .footer-flowers { position: absolute; inset: 0; height: auto; margin: 0; }
  .footer { padding-bottom: clamp(120px, 12vw, 200px); min-height: calc(var(--bw) * 2 * 0.9); }
}

@media (min-width: 1100px) {
  :root { --topbar: 76px; }
  .rsvp .bouquet { display: block; }

  /* Desktop menu: inline links, no overlay. */
  .menu-btn { display: none; }
  .nav {
    position: static; z-index: auto; flex-direction: row; align-items: center; gap: 4px 20px;
    padding: 0; background: none; opacity: 1; visibility: visible; transition: none;
    margin-left: auto;
  }
  .nav a { font-family: var(--font); font-size: 0.93rem; font-weight: 400; letter-spacing: -0.01em; line-height: 1; }
  .nav .nav-rsvp {
    margin: 0 0 0 6px; color: var(--card); font-weight: 450;
    padding: 11px 20px; background: var(--wine); border-radius: 999px;
  }
  .nav .nav-rsvp:hover { background: var(--wine-deep); color: var(--card); }
  .topbar { gap: 28px; }
}

@media (min-width: 1100px) and (max-width: 1259px) {
  .nav { gap: 4px 15px; }
  .nav a { font-size: 0.88rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-inner > * { animation: none; opacity: 1; }
  .js .bouquet img.paint { opacity: 1; }
  .js .bouquet .under { display: none; }
  .bouquet.is-painting .under, .bouquet.is-painting .paint, .bouquet.is-painted { animation: none; }
}
