/* ==========================================================================
   Matt & Lexi · visual prototype 3
   Forest green, warm ivory, charcoal, restrained copper.
   Mobile-first. Motion is opt-in via prefers-reduced-motion: no-preference.
   ========================================================================== */

/* Fonts (self-hosted, SIL Open Font License; see assets/fonts/OFL.txt) ---- */
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* Tokens ------------------------------------------------------------------ */
:root {
  --forest-950: #0f1f18;
  --forest-900: #14281f;
  --forest-800: #1b3a2c;
  --forest-700: #244d3a;
  --ivory-50: #faf7f0;
  --ivory: #f4efe3;
  --ivory-200: #e6dece;
  --ivory-300: #d6cab2;
  --charcoal-950: #161715;
  --charcoal: #1d1e1c;
  --ink: #2a2b28;
  --muted: #5d5e58;
  --copper: #b87442;        /* rules and large accents only (3.3:1) */
  --copper-light: #d9a47c;  /* small copper text on dark (≥ 5.6:1) */
  --copper-dark: #8d4f26;   /* small copper text on ivory (5.6:1) */

  --on-dark-muted: rgb(244 239 227 / .72);
  --rule-dark: rgb(244 239 227 / .18);
  --rule-light: rgb(42 43 40 / .16);

  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --max: 84rem;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --header-h: 4.25rem;
  --dock-h: 0px;
  --dock-size: calc(var(--dock-h) + env(safe-area-inset-bottom));
  --dock-clearance: 0px;
  --section-y: clamp(4.5rem, 10vw, 8.5rem);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Protect both keyboard focus and section links from the fixed navigation. */
  scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top) + 1rem);
  scroll-padding-bottom: calc(max(var(--dock-clearance), env(safe-area-inset-bottom)) + 1rem);
}
html.is-typing, html.nav-open { --dock-clearance: 0px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html.nav-open { overflow: hidden; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
strong { font-weight: 600; }
::selection { background: var(--copper-light); color: var(--charcoal); }

:focus-visible {
  outline: 2px solid var(--copper-light);
  outline-offset: 3px;
}
.on-light :focus-visible,
.section--ivory :focus-visible,
.demo :focus-visible { outline-color: var(--copper-dark); }
main:focus, [tabindex="-1"]:focus { outline: none; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.nowrap { white-space: nowrap; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  top: .75rem; left: .75rem;
  z-index: 100;
  padding: .8rem 1.2rem;
  background: var(--ivory);
  color: var(--forest-900);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* Type helpers -------------------------------------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin: 0 0 1.5rem;
  font: 600 .75rem/1.3 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 2.25rem;
  height: 1px;
  background: var(--copper);
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.section-title { font-size: clamp(2.6rem, 6vw, 5rem); }
.section--ivory .section-title { color: var(--forest-900); }

.lede {
  max-width: 32em;
  font-size: clamp(1.125rem, 1.5vw, 1.3rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.amp {
  font-family: var(--serif);
  font-style: italic;
  color: var(--copper-light);
}
.section--ivory .amp { color: var(--copper-dark); }

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--ext { width: .85em; height: .85em; margin-left: .3em; vertical-align: -.05em; }

.link-inline { font-weight: 500; }
.note { margin: 0; font-size: .95rem; }

/* Header & navigation ---------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--ivory);
}
/* Background lives on a pseudo-element so the header never becomes a
   containing block for the fixed mobile menu (backdrop-filter would do that). */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(15 31 24 / .9);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid rgb(244 239 227 / .08);
  opacity: 0;
  transition: opacity .5s var(--ease-out);
}
.site-header.is-solid::before { opacity: 1; }
/* Without a photograph behind it the bar appears as soon as the page moves (the script marks the
   header solid on the first scrolled pixel), so an introduction's words never pass beneath it
   uncovered; the slower fade is kept for the return to the top. */
.site-header:not(.site-header--over-photo).is-solid::before { transition-duration: .15s; }

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}

.wordmark {
  position: relative;
  z-index: 2;
  font: 400 1.7rem/1 var(--serif);
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark .amp { margin-inline: .05em; }

.site-nav__list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.9vw, 2.25rem);
}
.site-nav__list a {
  position: relative;
  display: inline-block;
  padding-block: .65rem;
  font: 500 .76rem/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
}
.site-nav__list a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .3rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.site-nav__list a:not(.nav-cta):hover::after,
.site-nav__list a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}
.site-nav__list a[aria-current="page"]::after { background: var(--copper-light); }
.site-nav__home { display: none; }

.nav-cta {
  padding: .75rem 1.2rem !important;
  border: 1px solid rgb(217 164 124 / .8);
  border-radius: 999px;
  transition: background-color .3s, color .3s;
}
.nav-cta:hover,
.nav-cta[aria-current="page"] {
  background: var(--copper-light);
  color: var(--charcoal);
}

.nav-toggle { display: none; }

@media (max-width: 59.99rem) {
  .site-nav { min-width: 0; }
  .js .nav-toggle {
    position: relative;
    z-index: 2;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    gap: .7rem;
    min-height: 2.75rem;
    padding: .6rem 1.1rem;
    background: rgb(15 31 24 / .25);
    border: 1px solid rgb(244 239 227 / .45);
    border-radius: 999px;
    font: 600 .75rem/1 var(--sans);
    letter-spacing: .18em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .nav-toggle__label { min-width: 0; overflow-wrap: anywhere; }
  .nav-toggle__icon {
    flex: none;
    position: relative;
    width: 1.1rem;
    height: .55rem;
  }
  .nav-toggle__icon::before,
  .nav-toggle__icon::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    height: 1.5px;
    background: currentColor;
    transition: transform .35s var(--ease-out), top .35s var(--ease-out);
  }
  .nav-toggle__icon::before { top: 0; }
  .nav-toggle__icon::after { top: calc(100% - 1.5px); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { top: calc(50% - .75px); transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { top: calc(50% - .75px); transform: rotate(-45deg); }

  .js .site-nav__list {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    justify-content: safe center;
    gap: .15rem;
    padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2.5rem;
    background:
      radial-gradient(120% 70% at 85% 0%, rgb(36 77 58 / .55), transparent 60%),
      var(--forest-950);
    overflow-y: auto;
    scroll-padding-block: calc(var(--header-h) + env(safe-area-inset-top) + 1rem) calc(env(safe-area-inset-bottom) + 1rem);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s var(--ease-out), visibility 0s linear .35s;
  }
  .js .site-nav__list li { flex: none; max-width: 100%; }
  .js .site-nav__list a { max-width: 100%; }
  /* Auto margins centre a fitting menu without making an overflowing start unreachable. */
  @supports not (justify-content: safe center) {
    .js .site-nav__list > li:first-child { margin-block-start: auto; }
    .js .site-nav__list > li:last-child { margin-block-end: auto; }
  }
  html.nav-open .site-nav__list {
    opacity: 1;
    visibility: visible;
    transition: opacity .35s var(--ease-out);
  }
  .js .site-nav__home { display: block; }
  .js .site-nav__list a {
    font: 400 clamp(2.2rem, 9.5vw, 3.5rem)/1.08 var(--serif);
    letter-spacing: -.01em;
    text-transform: none;
    padding-block: .3rem;
  }
  .js .site-nav__list a::after { bottom: .15rem; }
  .js .site-nav__list .nav-cta {
    margin-top: 1.5rem;
    padding: 1rem 1.7rem !important;
    font: 600 .8rem/1 var(--sans);
    letter-spacing: .18em;
    text-transform: uppercase;
  }

  /* Without JavaScript the links simply wrap under the wordmark, and the header sits in the
     page's flow (not over it), so the content begins below the header's real height however
     many rows the links take at whatever text size. */
  .no-js .site-header { position: relative; background: rgb(15 31 24); }
  .no-js .site-header__inner { flex-wrap: wrap; height: auto; padding-block: 1rem; }
  .no-js .site-nav__list { flex-wrap: wrap; gap: .25rem 1.1rem; }
  .no-js .site-header--over-photo::after { display: none; }
  .no-js .intro { padding-top: clamp(1.1rem, 3vw, 2.75rem); }
  .no-js .hero__inner,
  .no-js .explore-hero__inner { padding-top: 2rem; }
  .no-js { scroll-padding-top: 1rem; }
}
/* Keep controls within the screen when the guest enlarges text. */
@media (max-width: 15rem) {
  .site-header__inner { gap: .5rem; padding-inline: .5rem; }
  .js .nav-toggle { padding-inline: .5rem; }
  .hero__days a { flex-wrap: wrap; }
}

/* Quick links on phones: Travel & Stay and Your Invitation, always one tap away */
.dock { display: none; }
@media (max-width: 59.99rem) {
  :root { --dock-h: 3.9rem; --dock-clearance: var(--dock-size); }
  body { padding-bottom: var(--dock-size); }
  .dock {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
    padding: .55rem max(.75rem, env(safe-area-inset-right)) calc(.55rem + env(safe-area-inset-bottom)) max(.75rem, env(safe-area-inset-left));
    background: rgb(15 31 24 / .94);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgb(244 239 227 / .14);
    transition: transform .3s var(--ease-out);
  }
  .dock__link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 2.8rem;
    padding: .4rem .6rem;
    color: var(--ivory);
    border: 1px solid rgb(244 239 227 / .35);
    border-radius: 999px;
    font: 600 .74rem/1.15 var(--sans);
    letter-spacing: .07em;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
  }
  .dock__link .icon { width: 1.05rem; height: 1.05rem; }
  /* Labels wrap between words only, never inside one ("YOUR INVITATI/ON"). */
  .dock__link span { min-width: 0; overflow-wrap: normal; word-break: normal; hyphens: manual; }
  .dock__link--primary {
    color: var(--charcoal);
    background: var(--copper-light);
    border-color: var(--copper-light);
  }
  .dock__link[aria-current="page"] { box-shadow: inset 0 0 0 2px var(--ivory); }
  .dock__link--primary[aria-current="page"] { box-shadow: inset 0 0 0 2px var(--charcoal); }
  /* Step out of the way while someone types, so the keyboard never hides a field */
  html.is-typing .dock { transform: translateY(110%); }
  html.nav-open .dock { visibility: hidden; }
}
@media (max-width: 22rem) {
  .dock__link .icon { display: none; }
}
/* Much larger text on a narrow phone (about 150% and up): one button per row, so each label
   has the full width. Never applies at the normal text size, whatever the phone. */
@media (max-width: 15rem) {
  :root { --dock-h: 7.2rem; }
  .dock { grid-template-columns: minmax(0, 1fr); }
}
/* A short screen with that much larger text (a 320 × 568 phone at about 150% and up): the fixed header and the
   two-row dock would leave about a third of the screen for the page, so here the dock joins the page's flow at
   its end instead, after the footer, with both links still there. Never applies at the normal text size. */
@media (max-width: 15rem) and (max-height: 24rem) {
  :root { --dock-h: 0px; --dock-clearance: 0px; }
  body { padding-bottom: 0; }
  .dock { position: static; background: rgb(15 31 24); -webkit-backdrop-filter: none; backdrop-filter: none; }
  html.is-typing .dock { transform: none; }
}

/* 1 · Home hero ------------------------------------------------------------- */
/* From 40rem up, the photograph fills the whole opening and the three days sit over it.
   On phones it fills a stage at the top, with the names; the three days continue on solid
   green below it, so a short screen never has to squeeze everything over the photograph. */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  color: var(--ivory);
  background: var(--forest-950);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -3;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 34% 50%;
  transform-origin: 40% 45%;
}
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(85% 60% at 18% 66%, rgb(12 25 19 / .5) 0%, rgb(12 25 19 / .24) 45%, rgb(12 25 19 / 0) 75%),
    linear-gradient(to top, rgb(12 25 19 / .95) 0%, rgb(12 25 19 / .72) 30%, rgb(12 25 19 / .2) 62%, rgb(12 25 19 / 0) 80%),
    linear-gradient(to right, rgb(12 25 19 / .4) 0%, rgb(12 25 19 / 0) 60%);
}
/* A soft halo keeps the smallest hero text crisp over bright water and mist */
.hero__kicker,
.hero__day-date,
.hero__day-place,
.hero__foot { text-shadow: 0 1px 3px rgb(8 18 13 / .55); }

/* Fine film grain, static */
.hero::after,
.explore-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .1;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__inner { padding-top: calc(var(--header-h) + 3rem); }
/* A soft, blurred shade the size of the words, so the names stay legible wherever they land on
   the photograph (on shorter screens and with larger text they ride higher, over the mist) */
.hero__copy { position: relative; width: fit-content; max-width: 100%; }
.hero__copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -1.25rem -2.5rem -.75rem -2.5rem;
  border-radius: 3rem;
  background: rgb(12 25 19 / .56);
  filter: blur(2.75rem);
  pointer-events: none;
}
.hero__lower { padding-bottom: calc(clamp(1.25rem, 3vh, 2.25rem) + var(--dock-h)); }
.hero__kicker { margin-bottom: clamp(.75rem, 2vh, 1.4rem); }

.hero__title {
  margin: 0 0 clamp(1rem, 2.4vh, 1.75rem) -.04em;
  /* Never larger than prototype 2's 220 px, even with a large default text size (browser zoom
     still enlarges it), so the names don't climb into the bright mist */
  font: 400 clamp(4.3rem, 21vw, 220px)/.86 var(--serif);
  letter-spacing: -.025em;
  text-wrap: balance;
  text-shadow: 0 0 .3em rgb(12 25 19 / .4);
}
.hero__title .amp { padding-inline: .02em; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem 1.25rem;
  margin: 0;
  font: 400 clamp(1.35rem, 2.3vw, 2rem)/1.2 var(--serif);
}
.hero__meta-rule {
  width: clamp(2rem, 6vw, 5.5rem);
  height: 1px;
  background: rgb(244 239 227 / .6);
}

/* The three days, each leading to its part of the full schedule */
.hero__schedule { margin-top: clamp(1.75rem, 5vh, 3.75rem); }
.hero__schedule-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.hero__schedule-label {
  margin: 0;
  font: 600 .72rem/1.2 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--copper-light);
  text-shadow: 0 1px 3px rgb(8 18 13 / .55);
}
.hero__schedule-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 2.75rem;
  padding: .5rem 0 .5rem .75rem;
  font: 600 .76rem/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: rgb(244 239 227 / .45);
  text-underline-offset: .45em;
  text-shadow: 0 1px 3px rgb(8 18 13 / .55);
  transition: text-decoration-color .3s;
}
.hero__schedule-link:hover { text-decoration-color: currentColor; }
.hero__schedule-link .icon { width: 1rem; height: 1rem; transition: transform .3s var(--ease-out); }
.hero__schedule-link:hover .icon { transform: translateX(.2rem); }

.hero__days {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgb(244 239 227 / .3);
}
.hero__days li + li { border-left: 1px solid rgb(244 239 227 / .16); }
.hero__days a {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  height: 100%;
  padding: 1.1rem 1.25rem .35rem;
  text-decoration: none;
}
.hero__days li:first-child a { padding-left: 0; }
.hero__day-date {
  font: 600 .72rem/1.2 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--copper-light);
}
.hero__day-text { display: flex; flex-direction: column; gap: .15rem; }
.hero__day-event {
  font: 400 clamp(1.25rem, 1.8vw, 1.65rem)/1.15 var(--serif);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: .2em;
  transition: text-decoration-color .3s;
}
.hero__days a:hover .hero__day-event { text-decoration-color: currentColor; }
.hero__day-place { font-size: .9rem; color: var(--on-dark-muted); }
/* Event times are Scotland local time: inline in the heading on wider screens (adds no height to the
   opening), and as its own line on the solid panel below the photograph on phones. */
.hero__schedule-tz { color: var(--on-dark-muted); }
.hero__tz { display: none; }
@media (max-width: 40rem) {
  .hero__schedule-tz { display: none; }
  .hero__tz { display: block; margin: .65rem 0 0; font-size: .85rem; color: var(--on-dark-muted); }
}
.hero__day-go { display: none; }

.hero__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: .25rem 2rem;
  margin-top: clamp(1.25rem, 3vh, 2rem);
  font-size: .75rem;
  letter-spacing: .03em;
  color: var(--on-dark-muted);
}
.hero__foot p { margin: 0; }
.hero__coords { letter-spacing: .18em; }

@media (max-width: 40rem) {
  .hero { display: block; min-height: 0; }
  /* The stage is tall enough for the photograph to breathe above the names. On taller phones the
     three days fit in the first screen as well; on shorter ones they continue below it, with
     their heading just showing above the quick links. */
  .hero__stage {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: max(30rem, calc(100vh - var(--dock-h) - 15.5rem));
    min-height: min(max(30rem, calc(100svh - var(--dock-h) - 15.5rem)), calc(100svh - var(--dock-h) - 3rem));
  }
  .hero__inner { width: 100%; padding-top: calc(var(--header-h) + 2rem); padding-bottom: 1.5rem; }
  /* No shading over the loch and hills: the header has its own, and the names their own */
  .hero__shade { background: none; }
  /* The shading for the names is anchored to the words themselves: it starts just above the
     line about the three days and deepens into the green panel below */
  .hero__copy { width: auto; }
  .hero__copy::before {
    inset: -5rem calc(-1 * var(--gutter)) -1.5rem;
    border-radius: 0;
    filter: none;
    background: linear-gradient(to bottom,
      rgb(15 31 24 / 0) 0,
      rgb(15 31 24 / .56) 5rem,
      rgb(15 31 24 / .58) calc(100% - 3.5rem),
      rgb(15 31 24 / .9) calc(100% - 1rem),
      rgb(15 31 24) 100%);
  }
  .hero__kicker {
    gap: .6rem;
    font-size: .7rem;
    letter-spacing: .16em;
    text-shadow: 0 0 .9em rgb(12 25 19 / .75), 0 1px 3px rgb(8 18 13 / .6);
  }
  .hero__kicker::before { width: 1.5rem; }
  .hero__lower { padding-top: .25rem; background: var(--forest-950); }
  .hero__schedule { margin-top: 0; }
  .hero__days { grid-template-columns: minmax(0, 1fr); }
  .hero__days li + li { border-left: 0; border-top: 1px solid rgb(244 239 227 / .14); }
  .hero__days a,
  .hero__days li:first-child a {
    position: relative;
    flex-direction: row;
    align-items: baseline;
    gap: 1rem;
    padding: .7rem 1.75rem .7rem 0;
  }
  .hero__day-date { flex: none; width: 4.75rem; }
  .hero__day-text { min-width: 0; overflow-wrap: anywhere; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: .1rem .65rem; }
  .hero__day-event { font-size: 1.3rem; }
  .hero__day-go { display: block; position: absolute; right: 0; top: 50%; width: 1rem; height: 1rem; margin-top: -.5rem; color: rgb(244 239 227 / .55); }
  .hero__foot { flex-direction: column; margin-top: 1rem; }
}
/* Narrow phones: place and date stack cleanly instead of leaving the rule dangling */
@media (max-width: 24.3rem) {
  .hero__meta { flex-direction: column; align-items: flex-start; gap: .15rem; }
  .hero__meta-rule { display: none; }
}
/* Narrowest phones: the schedule link moves under the label; enlarged text can wrap. */
@media (max-width: 22.5rem) {
  .hero__schedule-head { flex-wrap: wrap; gap: 0 1rem; }
  .hero__schedule-label,
  .hero__schedule-link { max-width: 100%; overflow-wrap: anywhere; }
  .hero__schedule-label { padding-top: .6rem; }
  .hero__schedule-link { padding-left: 0; }
}

/* Opening sequence (under 5 s, plays once, skipped for reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .hero__media img,
  .explore-hero__media img { animation: hero-settle 4.4s var(--ease-out) both; }
  .hero__shade { animation: hero-dim 1.8s ease-out both; }
  [data-intro] {
    animation: rise 1.3s var(--ease-out) both;
    animation-delay: calc(.3s + var(--i, 0) * .14s);
  }
}
@keyframes hero-settle {
  from { transform: scale(1.08); }
  to { transform: none; }
}
@keyframes hero-dim {
  from { background-color: rgb(12 25 19 / .85); }
  to { background-color: rgb(12 25 19 / 0); }
}
@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 1.4rem, 0); }
  to { opacity: 1; transform: none; }
}

/* Sections ----------------------------------------------------------------- */
.section {
  position: relative;
  padding-block: var(--section-y);
}
.section--ivory { background: var(--ivory); color: var(--ink); }
.section--forest { background: var(--forest-900); color: var(--ivory); }
.section--charcoal { background: var(--charcoal); color: var(--ivory); }
.section--tight { padding-block: clamp(3.5rem, 7vw, 6rem); }
/* Two ivory sections in a row read as one: no doubled gap */
.section--ivory + .section--ivory { padding-top: 0; }

.figcap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .25rem 1.5rem;
  padding-top: .85rem;
  font-size: .8125rem;
  line-height: 1.45;
  color: var(--on-dark-muted);
}
.section--ivory .figcap { color: var(--muted); }
.figcap--overlay {
  position: absolute;
  right: 0; bottom: 0;
  display: block;
  max-width: 100%;
  padding: .4rem .65rem;
  font-size: .6875rem;
  letter-spacing: .02em;
  color: rgb(244 239 227 / .92);
  background: rgb(15 31 24 / .8);
}
.section--ivory .figcap--overlay { color: rgb(244 239 227 / .92); }

.button {
  display: inline-flex;
  max-width: 100%;
  overflow-wrap: anywhere;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-height: 3rem;
  padding: .95rem 1.5rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font: 600 .78rem/1.2 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  transition: background-color .3s, color .3s, border-color .3s;
}
.button .icon { width: 1.05rem; height: 1.05rem; }
.button--on-dark { border-color: rgb(217 164 124 / .8); }
.button--on-dark:hover {
  background: var(--copper-light);
  border-color: var(--copper-light);
  color: var(--charcoal);
}
.button--forest {
  color: var(--ivory);
  background: var(--forest-800);
  border-color: var(--forest-800);
}
.button--forest:hover { background: var(--forest-700); border-color: var(--forest-700); }
.button--copper {
  color: var(--charcoal);
  background: var(--copper-light);
  border-color: var(--copper-light);
}
.button--copper:hover { background: #e4b690; border-color: #e4b690; }
.button--quiet {
  color: var(--forest-800);
  border-color: rgb(27 58 44 / .4);
}
.button--quiet:hover { border-color: var(--forest-800); background: rgb(27 58 44 / .06); }

/* Reveal on scroll (only when JS has confirmed motion is welcome) */
.reveal-ready .reveal {
  opacity: 0;
  transform: translate3d(0, 1.75rem, 0);
  transition: opacity 1.1s var(--ease-out), transform 1.3s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.signoff {
  margin: 1.75rem 0 0;
  font: italic 400 clamp(1.6rem, 2.3vw, 2.05rem)/1.2 var(--serif);
  color: var(--forest-800);
}
.signoff > span { font-style: normal; }

/* The Celebration · venue band and schedule ----------------------------------------- */
.schedule-day {
  display: grid;
  gap: 1.25rem 3rem;
  padding: clamp(2.25rem, 5vw, 3.5rem) 0;
  border-top: 1px solid var(--rule-light);
}
.schedule-day:last-of-type { border-bottom: 1px solid var(--rule-light); }
@media (min-width: 56rem) {
  .schedule-day { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
}
.schedule-day__head { display: grid; gap: .35rem; align-content: start; }
.schedule-day__weekday {
  font: 600 .75rem/1.2 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--copper-dark);
}
.schedule-day__date {
  display: flex;
  align-items: baseline;
  gap: .8rem;
  font-family: var(--serif);
  color: var(--forest-900);
}
.schedule-day__num { font-size: clamp(4.25rem, 8vw, 6.5rem); line-height: .85; letter-spacing: -.03em; }
.schedule-day__month { font-style: italic; font-size: 1.35rem; color: var(--muted); }
.schedule-day__theme { margin-top: .4rem; font: italic 400 1.5rem/1.2 var(--serif); color: var(--forest-800); }

.events { list-style: none; }
.event {
  display: grid;
  gap: .3rem 1.75rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--rule-light);
}
.event:first-child { border-top: 0; padding-top: .35rem; }
@media (min-width: 34rem) {
  .event { grid-template-columns: 9.5rem minmax(0, 1fr); align-items: baseline; }
}
.event__time {
  margin: 0;
  font: 400 1.4rem/1.2 var(--serif);
  color: var(--forest-800);
  white-space: nowrap;
}
.event__name {
  font: 400 clamp(1.65rem, 2.6vw, 2.1rem)/1.1 var(--serif);
  color: var(--forest-900);
}
.event__note {
  margin: .35rem 0 0;
  font: 600 .68rem/1.2 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--copper-dark);
}
.event__place { margin: .3rem 0 0; color: var(--muted); }

/* Dress code: one line per day, beneath that day's events */
.schedule-day__dress {
  display: grid;
  gap: .35rem;
  margin: .5rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule-light);
}
@media (min-width: 56rem) {
  .schedule-day__dress { grid-column: 2; }
}
.schedule-day__dress-label {
  font: 600 .68rem/1.2 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--copper-dark);
}
.schedule-day__dress-text {
  max-width: 30em;
  font: italic 400 1.25rem/1.35 var(--serif);
  color: var(--forest-800);
}

.venue-info__title { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: .75rem; }
.venue-info__address { color: var(--on-dark-muted); }
.venue-info .link-inline { color: var(--copper-light); }
.venue-info__actions { display: grid; gap: 1rem; justify-items: start; }
.venue-info__actions .note { color: var(--on-dark-muted); }
.venue-info__actions .note a { color: var(--ivory); }

/* Travel & Stay ---------------------------------------------------------------------- */
.travel__grid {
  display: grid;
  gap: 3rem 5rem;
}
.routes { border-top: 1px solid var(--rule-light); }
.route {
  display: grid;
  gap: .6rem;
  padding: 1.6rem 0 1.4rem;
  border-bottom: 1px solid var(--rule-light);
}
.route h3 {
  font: 400 1.75rem/1.1 var(--serif);
  color: var(--forest-900);
}
.route p { margin: 0; }
.route p + p { margin-top: .6rem; }
.route .fine { font-size: .9rem; color: var(--muted); }
.routes__note { margin: 1.25rem 0 0; font-size: .9rem; color: var(--muted); }
@media (min-width: 40rem) {
  .route { grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1.5rem; }
}
@media (min-width: 60rem) {
  /* The routes read best at a comfortable measure, not the full width */
  .travel__grid { max-width: 56rem; }
}

.stay__head {
  display: grid;
  gap: 1rem 4rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.stay__title { font-size: clamp(2.6rem, 6vw, 5rem); color: var(--forest-900); }
.stay__head p { max-width: 30em; margin: 0; color: var(--muted); }
@media (min-width: 60rem) {
  .stay__head { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
}

.hotels {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(3.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 4rem);
}
@media (min-width: 56rem) {
  .hotels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.hotel { display: flex; flex-direction: column; align-items: flex-start; }
@media (min-width: 56rem) {
  /* Side by side, both cards share one set of rows, so the discount panels, their codes and copy
     buttons, and the website links sit level however long each description runs. The shared rows
     would inherit the grid's row gap, so it is zero here and a third card would space itself.
     Browsers without subgrid keep each card's own rows (the same look, not levelled). */
  .hotels { row-gap: 0; }
  .hotel { display: grid; grid-template-rows: subgrid; grid-row: span 8; align-items: start; justify-items: start; }
  .hotel:nth-child(n + 3) { margin-top: clamp(3.5rem, 6vw, 4.5rem); }
}
.hotel__media {
  position: relative;
  width: 100%;
  margin-bottom: 1.75rem;
  overflow: hidden;
  background: var(--ivory-200);
}
.hotel__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.hotel__tag {
  margin: 0 0 .6rem;
  font: 600 .72rem/1.2 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--copper-dark);
}
.hotel__name {
  margin-bottom: .4rem;
  font: 400 clamp(2.1rem, 3.2vw, 2.75rem)/1 var(--serif);
  color: var(--forest-900);
}
.hotel__address { font-size: .9rem; color: var(--muted); }
.hotel > p:not([class]) { max-width: 34em; }

.offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  width: 100%;
  margin: .75rem 0 1.5rem;
  padding: 1.4rem 1.5rem 1.3rem;
  background: var(--ivory-50);
  border: 1px solid var(--ivory-300);
}
.offer p { margin: 0; }
.offer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1rem;
}
.offer__pct {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .7rem;
  font: 400 3rem/.9 var(--serif);
  color: var(--forest-800);
}
.offer__pct span {
  font: 600 .7rem/1.2 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.offer__code {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
}
.code {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: .65rem .9rem;
  font: 600 1rem/1 var(--sans);
  letter-spacing: .14em;
  color: var(--forest-900);
  background: #fff;
  border: 1px dashed rgb(42 43 40 / .45);
}
/* Pending offer: visibly not ready to use */
.offer--pending { background: transparent; border-style: dashed; }
.offer--pending .offer__pct { color: var(--muted); }
.offer--pending .code {
  color: var(--muted);
  background: transparent;
  border-color: rgb(93 94 88 / .45);
}

.status {
  display: inline-flex;
  max-width: 100%;
  overflow-wrap: anywhere;
  align-items: center;
  gap: .5rem;
  padding: .45rem .75rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font: 600 .68rem/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.status--pending { color: var(--copper-dark); }
.status--pending::before {
  content: "";
  width: .45rem;
  height: .45rem;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.copy {
  display: none; /* shown once JS is available */
  max-width: 100%;
  overflow-wrap: anywhere;
  align-items: center;
  gap: .55rem;
  min-height: 2.75rem;
  padding: .65rem 1.1rem;
  color: var(--ivory);
  background: var(--forest-800);
  border: 1px solid var(--forest-800);
  border-radius: 999px;
  font: 600 .72rem/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .3s, color .3s;
}
.js .copy { display: inline-flex; }
.copy:hover { background: var(--forest-700); border-color: var(--forest-700); }
.copy[data-state="done"] { color: var(--forest-800); background: transparent; }

.link-ext {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: .95rem;
  color: var(--forest-800);
}

.more-to-come {
  display: grid;
  gap: .75rem 4rem;
  margin-top: clamp(3.5rem, 7vw, 5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule-light);
}
.more-to-come p { margin: 0; max-width: 40em; }
.more-to-come p + p { margin-top: .75rem; }
.more-to-come__title {
  font: italic 400 1.9rem/1.1 var(--serif);
  color: var(--forest-900);
}
@media (min-width: 60rem) {
  .more-to-come { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
}

/* Explore ------------------------------------------------------------------------------ */
/* Opening: Loch Faskally at dusk. The shading sits behind the words only, so the warm
   reflection keeps its colour. On phones the photograph fills a stage with the title, and
   the introduction continues below it. */
.explore-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: min(78vh, 46rem);
  overflow: hidden;
  color: var(--ivory);
  background: var(--charcoal);
}
.explore-hero__media { position: absolute; inset: 0; z-index: -3; }
.explore-hero__media picture,
.explore-hero__media img { width: 100%; height: 100%; }
.explore-hero__media img { object-fit: cover; object-position: 50% 50%; }
.explore-hero__inner { padding-top: calc(var(--header-h) + 2rem); }
.explore-hero__kicker { margin-bottom: 1rem; text-shadow: 0 0 .9em rgb(12 25 19 / .7), 0 1px 3px rgb(8 18 13 / .6); }
.explore-hero__title {
  margin: 0;
  font: 400 clamp(3.2rem, 9vw, 6.75rem)/.9 var(--serif);
  letter-spacing: -.02em;
  text-shadow: 0 2px 14px rgb(8 18 13 / .45);
}
.explore-hero__lower {
  position: relative;
  display: grid;
  gap: 1.1rem 3rem;
  padding-top: 1.1rem;
  padding-bottom: calc(clamp(1.5rem, 4vh, 2.75rem) + var(--dock-h));
}
.explore-hero__lede {
  max-width: 27em;
  margin: 0 0 1.25rem;
  font-size: clamp(1.06rem, 1.5vw, 1.25rem);
  line-height: 1.5;
  text-shadow: 0 1px 3px rgb(8 18 13 / .6);
}
.explore-hero__credit {
  margin: 0;
  font-size: .72rem;
  letter-spacing: .02em;
  color: rgb(244 239 227 / .85);
  text-shadow: 0 0 .8em rgb(12 25 19 / .7), 0 1px 3px rgb(8 18 13 / .6);
}
.explore-hero .jump a { background: rgb(15 31 24 / .45); }
/* One sentence per line where the introduction sits on the photograph */
.explore-hero__break { display: none; }
@media (min-width: 40.01rem) {
  .explore-hero__break { display: inline; }
  /* Keep the ivory heading above the local shade carried by the animated intro below. */
  .explore-hero__copy { position: relative; z-index: 1; }
  .explore-hero__lower { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .explore-hero__credit { position: absolute; right: var(--gutter); bottom: .75rem; max-width: min(38rem, 46%); padding: .3rem .6rem; text-align: right; color: var(--ivory); background: rgb(15 31 24 / .82); text-shadow: none; }
  /* A soft, blurred shade the size of the words (the introduction, and above it the title), so the
     rest of the photograph keeps its colour */
  .explore-hero__intro { position: relative; width: fit-content; max-width: 100%; }
  .explore-hero__intro::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: calc(-1 * (3.5rem + 1.1rem + clamp(3.2rem, 9vw, 6.75rem) * .9 + 3.25rem));
    right: -2.5rem;
    bottom: -1rem;
    left: -3.25rem;
    border-radius: 3rem;
    background: rgb(12 25 19 / .64);
    filter: blur(2.75rem);
    pointer-events: none;
  }
}
@media (max-width: 40rem) {
  .explore-hero { display: block; min-height: 0; }
  .explore-hero__stage {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: max(27rem, calc(100vh - var(--dock-h) - 13rem));
    min-height: min(max(27rem, calc(100svh - var(--dock-h) - 13rem)), calc(100svh - var(--dock-h) - 4rem));
  }
  .explore-hero__media img { object-position: 50% 100%; }
  .explore-hero__inner { width: 100%; padding-top: calc(var(--header-h) + 2rem); padding-bottom: 1rem; }
  .explore-hero__copy { position: relative; }
  .explore-hero__copy::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -4rem calc(-1 * var(--gutter)) -1rem;
    background: linear-gradient(to bottom,
      rgb(29 30 28 / 0) 0,
      rgb(29 30 28 / .56) 4rem,
      rgb(29 30 28 / .58) calc(100% - 2.5rem),
      rgb(29 30 28 / .9) calc(100% - .75rem),
      rgb(29 30 28) 100%);
    pointer-events: none;
  }
  .explore-hero__lower { padding-top: .5rem; padding-bottom: 2.75rem; background: var(--charcoal); }
  .explore-hero .jump a { background: none; }
}

/* Near Pitlochry: each place keeps its photograph's own shape */
.near { padding-top: clamp(3.5rem, 6vw, 5.5rem); padding-bottom: clamp(4rem, 7vw, 6rem); }
.near__head { display: grid; gap: .75rem 4rem; }
@media (min-width: 60rem) { .near__head { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: end; } }
.near__title { font-size: clamp(2.4rem, 5vw, 4rem); }
.near__head p { margin: 0; max-width: 36em; color: var(--on-dark-muted); }
.near__head strong { color: var(--ivory); font-weight: 600; }
.spots { list-style: none; display: grid; gap: clamp(3rem, 5.5vw, 4.5rem); margin-top: clamp(2.25rem, 4vw, 3.25rem); }
.spot { display: grid; gap: 1.25rem 3.5rem; align-items: center; }
.spot__media,
.trip__media,
.trip-wide__media { margin: 0; }
/* Credits sit under the photographs, so nothing covers the subject (the train, for one) */
.spot__media .figcap,
.trip__media .figcap,
.trip-wide__media .figcap { display: block; padding-top: .5rem; font-size: .75rem; }
.trip-wide__media .figcap { padding-inline: var(--gutter); text-align: right; }
.spot__media img,
.trip__media img,
.trip-wide__media img { background: var(--charcoal-950); }
.spot__media img,
.trip__media img { width: 100%; aspect-ratio: var(--ar, 3 / 2); object-fit: cover; }
/* A portrait photograph keeps a portrait frame rather than being squeezed into a landscape one */
.spot--portrait .spot__media { width: 100%; max-width: 28rem; }
.spot--portrait .spot__media img { aspect-ratio: 4 / 5; }
@media (min-width: 52rem) {
  .spots { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(2.5rem, 4.5vw, 4rem); }
  .spot { grid-column: 1 / -1; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  /* The Hermitage (portrait) and Ben Vrackie (landscape) share a row: each photograph keeps its own
     shape, with its words beneath, and the two finish level */
  .spot--pair { grid-column: auto; grid-template-columns: minmax(0, 1fr); align-items: start; }
  .spot--pair + .spot--pair { align-self: end; }
  .spot--portrait .spot__media { max-width: none; }
}.spot__meta,
.trip__kind {
  margin: 0 0 .6rem;
  font: 600 .7rem/1.3 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--copper-light);
}
.spot__name,
.trip__name { margin: 0 0 .7rem; font: 400 clamp(2rem, 3.2vw, 2.75rem)/1.05 var(--serif); }
.spot__text > p:not(.spot__meta),
.trip__text > p:not(.trip__kind) { max-width: 30em; color: var(--on-dark-muted); }
.spot__text > p:last-child { margin-bottom: 0; }
.spot__pictured { font-size: .85rem; font-style: italic; }

.explore__aside {
  max-width: 40em;
  margin: clamp(3rem, 5.5vw, 4.5rem) 0 0;
  font: italic 400 clamp(1.35rem, 2vw, 1.65rem)/1.35 var(--serif);
  color: var(--on-dark-muted);
}
.explore__aside a { color: var(--ivory); }

/* Further afield: framed by the length of the trip, not the drive */
.further { padding-block: clamp(4rem, 7vw, 6rem); }
.further__head { display: grid; gap: .75rem 4rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
@media (min-width: 60rem) {
  .further__head { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: end; }
}
.further__title { font-size: clamp(2.4rem, 5vw, 4rem); }
.further__head p { margin: 0; color: var(--on-dark-muted); max-width: 34em; }
.further .trip { display: grid; gap: 1.25rem 3.5rem; align-items: center; margin-top: clamp(2.5rem, 4.5vw, 3.5rem); }
.further .trip:first-of-type { margin-top: 0; }
/* Clear space after the wide Skye photograph, so its words don't run into the next trip */
.trip-wide + .wrap .trip { margin-top: clamp(4rem, 7vw, 6rem); }
@media (min-width: 52rem) {
  .further .trip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .further .trip--flip .trip__media { order: 2; }
}
.trip__kind { display: inline-block; padding: .35rem .7rem; border: 1px solid rgb(217 164 124 / .6); border-radius: 999px; }
.trip__how { margin: 0 0 .9rem; color: var(--ivory) !important; font-size: 1rem; }
.trip-wide { margin-top: clamp(3rem, 5.5vw, 4.5rem); }
.trip-wide__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 40rem) {
  .trip-wide__media img { aspect-ratio: 2 / 1; }
  /* London's export is 11 : 5, so its frame matches the file and Tower Bridge keeps both towers */
  .trip-wide--11x5 .trip-wide__media img { aspect-ratio: 11 / 5; }
}
.trip-wide__text { display: grid; gap: .5rem 3.5rem; padding-top: 1rem; }
@media (min-width: 52rem) { .trip-wide__text { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.further__note { margin: clamp(2.5rem, 4.5vw, 3.25rem) 0 0; font-size: .85rem; color: var(--on-dark-muted); }

/* Before & After the Wedding: two groups under one heading. The cities sit in a row of three
   cards (one column on phones) after the wide London band; the longer trips keep their layouts. */
.further__group { margin-top: clamp(2.5rem, 5vw, 4rem); }
.further__group--later { margin: clamp(4rem, 7vw, 6rem) 0 clamp(2rem, 4vw, 3rem); }
.further__sub { margin: 0 0 .5rem; font: italic 400 clamp(1.7rem, 2.6vw, 2.25rem)/1.15 var(--serif); color: var(--ivory); }
.further__sub-note { margin: 0; max-width: 36em; color: var(--on-dark-muted); }
.further__sub-note a,
.trip__text a { color: var(--ivory); }
.cities {
  list-style: none;
  display: grid;
  gap: clamp(2.5rem, 5vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(2.5rem, 4.5vw, 3.5rem);
}
@media (min-width: 60rem) {
  .cities { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
}
.city { display: grid; gap: 1.1rem; align-content: start; }
.city .trip__name { font-size: clamp(1.9rem, 2.4vw, 2.3rem); }

/* Questions ----------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--rule-light); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--rule-light); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.45rem 0;
  list-style: none;
  cursor: pointer;
  font: 400 clamp(1.45rem, 2.2vw, 1.9rem)/1.2 var(--serif);
  color: var(--forest-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 1rem;
  height: 1rem;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform .4s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--forest-700); }
.faq__answer { max-width: 38em; padding: 0 2.5rem 1.6rem 0; }
.faq__answer p:last-child { margin-bottom: 0; }
.faq__answer a { color: var(--forest-800); font-weight: 500; }
.faq__times { list-style: none; margin: 0 0 1em; }
.faq__times li { padding: .25rem 0; }

/* Credits -------------------------------------------------------------------------------- */
.credits-list {
  list-style: none;
  display: grid;
  gap: 0;
  max-width: 60rem;
  border-top: 1px solid var(--rule-light);
}
.credits-list li {
  display: grid;
  gap: .25rem 2rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--rule-light);
}
@media (min-width: 48rem) {
  .credits-list li { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
}
.credits-list__what { font: 400 1.35rem/1.25 var(--serif); color: var(--forest-900); }
.credits-list__who { color: var(--muted); font-size: .95rem; }
.credits-list a { color: var(--forest-800); }
.credits__intro { max-width: 44em; margin-bottom: 2.5rem; color: var(--muted); }
.credits__h { margin: 3.5rem 0 1.25rem; font: 400 clamp(2rem, 3.5vw, 2.75rem)/1 var(--serif); color: var(--forest-900); }

/* Footer --------------------------------------------------------------------------------- */
.site-footer {
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2.25rem;
  font-size: .9rem;
  color: var(--on-dark-muted);
  background: var(--charcoal-950);
}
.site-footer a { color: var(--ivory); }
.footer__grid {
  display: grid;
  gap: 2.5rem 5rem;
}
@media (min-width: 52rem) {
  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.footer__names {
  margin-bottom: 1rem;
  font: 400 clamp(2.4rem, 4.5vw, 3.4rem)/1 var(--serif);
  color: var(--ivory);
}
.footer__sign p:not(.footer__names) { margin-bottom: .6rem; }
.footer__nav ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem 2rem;
}
.footer__nav a { text-decoration: none; }
.footer__nav a:hover { text-decoration: underline; }
.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgb(244 239 227 / .12);
  font-size: .8rem;
}
.footer__base p { margin: 0; }
/* The contact address may break after the @ (a <wbr>), and anywhere as a last resort, so it never
   widens a narrow phone at enlarged text */
.footer__base a[href^="mailto:"],
.faq__answer a[href^="mailto:"] { overflow-wrap: anywhere; }
.footer__base strong { color: var(--ivory); }

/* Restrained footer */
.site-footer--compact { padding-block: clamp(2.25rem, 4vw, 3rem) 1.5rem; }
.footer-compact {
  display: grid;
  gap: 1.25rem 3rem;
  align-items: end;
}
@media (min-width: 60rem) {
  .footer-compact { grid-template-columns: auto minmax(0, 1fr); }
}
.footer-compact__names { margin: 0; font: 400 2.2rem/1 var(--serif); color: var(--ivory); }
.footer-compact__meta { margin: .45rem 0 0; }
.footer-compact__nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.35rem;
}
@media (min-width: 60rem) { .footer-compact__nav ul { justify-content: flex-end; } }
.footer-compact__nav a { display: inline-block; padding-block: .3rem; text-decoration: none; }
.footer-compact__nav a:hover { text-decoration: underline; }
.site-footer--compact .footer__base { margin-top: 1.5rem; padding-top: 1.1rem; }

/* Header over a photograph ---------------------------------------------------------- */
/* Until the header turns solid it has no bar of its own. Over the opening photographs a shade
   sits behind it, fading out just below it (so the photographs need no top gradient of their
   own), its words carry a soft halo, and the menu button a darker fill. */
.site-header--over-photo::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: calc(var(--header-h) + 3rem);
  background: linear-gradient(to bottom, rgb(12 25 19 / .8) 0, rgb(12 25 19 / .7) calc(var(--header-h) - .5rem), rgb(12 25 19 / 0) 100%);
  pointer-events: none;
  transition: opacity .5s var(--ease-out);
}
.site-header--over-photo.is-solid::after { opacity: 0; }
.site-header--over-photo:not(.is-solid) .wordmark,
.site-header--over-photo:not(.is-solid) .site-nav__list a:not(.nav-cta) { text-shadow: 0 0 .6em rgb(12 25 19 / .65), 0 1px 3px rgb(8 18 13 / .55); }
.site-header--over-photo:not(.is-solid) .nav-cta { background: rgb(15 31 24 / .45); }
@media (max-width: 59.99rem) {
  .js .nav-toggle {
    background: rgb(15 31 24 / .6);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
}

/* Interior pages · compact introduction ------------------------------------------------ */
.intro {
  padding: calc(var(--header-h) + clamp(1.1rem, 3vw, 2.75rem)) 0 clamp(1.25rem, 3vw, 2.5rem);
  color: var(--ivory);
  background: var(--forest-900);
}
.intro__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: .9rem 4rem; align-items: end; }
@media (min-width: 60rem) {
  .intro__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.intro__title {
  overflow-wrap: anywhere;
  margin: 0;
  font: 400 clamp(2.5rem, 6vw, 4.75rem)/.95 var(--serif);
  letter-spacing: -.015em;
}
.intro__side { display: grid; grid-template-columns: minmax(0, 1fr); gap: .9rem; }
.intro__lede {
  max-width: 34em;
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--on-dark-muted);
}
.intro .demo-pill { margin: 0; justify-self: start; }

/* "On this page" jump links */
.jump { display: flex; flex-wrap: wrap; gap: .5rem; }
.jump a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: .5rem .95rem;
  border: 1px solid rgb(244 239 227 / .3);
  border-radius: 999px;
  font: 600 .72rem/1 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  max-width: 100%;
  overflow-wrap: anywhere;
  transition: background-color .3s, border-color .3s, color .3s;
}
.jump a:hover { border-color: var(--copper-light); color: var(--copper-light); }
.jump .jump__key { border-color: rgb(217 164 124 / .8); color: var(--copper-light); }

/* Content starts close to the top after a compact introduction */
.section--after-intro { padding-top: clamp(1.75rem, 4vw, 3.5rem); }

/* Home · welcome and the two main paths, in one compact section --------------------------- */
.home-intro { padding-block: clamp(2.75rem, 6vw, 5.25rem); }
.home-intro__grid {
  display: grid;
  gap: 2rem 5rem;
  align-items: center;
}
@media (min-width: 60rem) {
  .home-intro__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
}
.home-intro .eyebrow { margin-bottom: 1.1rem; }
.home-intro__title {
  margin-bottom: 1.1rem;
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  color: var(--forest-900);
}
.home-intro__body { max-width: 31em; font-size: 1.075rem; line-height: 1.6; }
.home-intro__body p { margin-bottom: .8rem; }
.home-intro .signoff { margin: 0; }

/* Two clear paths: compact rows, not cards */
.paths-rows { list-style: none; display: grid; gap: .75rem; }
.paths-rows a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .2rem 1rem;
  min-height: 5.25rem;
  padding: 1rem 1.25rem 1rem 1.35rem;
  border: 1px solid rgb(27 58 44 / .28);
  color: var(--forest-900);
  text-decoration: none;
  transition: background-color .3s, border-color .3s;
}
.paths-rows a:hover { border-color: var(--forest-800); background: rgb(27 58 44 / .05); }
.paths-rows__label {
  font: 600 .7rem/1.3 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--copper-dark);
}
.paths-rows__title { grid-column: 1; font: 400 1.6rem/1.1 var(--serif); }
.paths-rows__text { grid-column: 1; font-size: .92rem; color: var(--muted); }
.paths-rows .icon { grid-column: 2; grid-row: 1 / span 3; width: 1.35rem; height: 1.35rem; color: var(--copper-dark); transition: transform .3s var(--ease-out); }
.paths-rows a:hover .icon { transform: translateX(.25rem); }
.paths-rows__invite a { background: var(--forest-900); border-color: var(--forest-900); color: var(--ivory); }
.paths-rows__invite a:hover { background: var(--forest-800); border-color: var(--forest-800); }
.paths-rows__invite .paths-rows__label,
.paths-rows__invite .icon { color: var(--copper-light); }
.paths-rows__invite .paths-rows__text { color: var(--on-dark-muted); }
.paths-rows__invite :focus-visible { outline-color: var(--copper-light); }

/* Home · the venue, shown whole ---------------------------------------------------------- */
/* Never wider than 960 CSS px: the hotel's file is 1920 px wide, so it stays crisp on
   high-density screens. It lines up with the content above; on wide screens the caption
   sits beside it. */
.home-photo {
  display: grid;
  gap: .75rem 2rem;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.home-photo picture { width: 100%; max-width: 960px; }
.home-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--ivory-200); }
.home-photo figcaption {
  display: grid;
  gap: .15rem;
  font-size: .8125rem;
  line-height: 1.45;
  color: var(--muted);
}
.home-photo figcaption strong { font-weight: 500; color: var(--ink); }
@media (min-width: 82rem) {
  .home-photo { grid-template-columns: minmax(0, 960px) minmax(0, 1fr); align-items: end; }
}

/* The Celebration · venue photograph beside the venue details (above them on phones) -------- */
.venue-info--photo { padding-block: clamp(3rem, 7vw, 6rem); }
.venue-photo__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem 4rem; align-items: center; }
@media (min-width: 60rem) {
  .venue-photo__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}
/* Never wider than 810 CSS px: half the 1620 px crop, so it stays crisp on 2x tablets too */
.venue-photo { max-width: 810px; margin: 0; }
.venue-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 40rem) { .venue-photo img { aspect-ratio: 3 / 2; } }
.venue-photo__text > div + div { margin-top: 1.75rem; }

/* The Celebration · Lexi and Matt's photograph: after Wednesday on phones, so the three days read
   without interruption and the document order matches what is seen; on wide screens in a column
   beside the schedule, level with the start of Monday, scrolling away with the page like everything
   else. The whole photograph is shown (3 : 4), never cropped and never stretched to the schedule's
   height. */
.schedule-photo { margin: clamp(2.25rem, 5vw, 3.5rem) 0 0; }
.schedule-photo img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; background: var(--ivory-200); }
.schedule-photo .figcap { display: block; padding-top: .5rem; }
@media (min-width: 60rem) {
  .schedule-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
    grid-template-rows: repeat(3, auto);
    column-gap: clamp(2.5rem, 5vw, 5rem);
    align-items: start;
  }
  .schedule-grid .schedule-day { grid-column: 1; }
  .schedule-photo { grid-column: 2; grid-row: 1 / -1; align-self: start; }
}

/* Our Story · eight chapters on a vertical timeline ------------------------------------------
   One column on phones, in chronological order: each chapter's date and title, its words, then its
   featured photograph with the way into that chapter's gallery. From 60rem the words and the
   photograph sit either side of a thin rule, alternating, each chapter as tall as its own text and
   photograph. The whole featured photograph is shown at its own proportions, never cropped. */
.story-section { padding-bottom: clamp(4rem, 8vw, 7rem); }
.story {
  --story-gap: clamp(3.5rem, 8vw, 6rem);
  position: relative;
  display: grid;
  gap: var(--story-gap);
  list-style: none;
  margin: 0;
  padding: 0;
}
.story__chapter { position: relative; display: grid; gap: 1.75rem 0; }
.story__text { max-width: 32rem; }
.story__head { display: grid; gap: .6rem; margin: 0 0 1.25rem; }
.story__date {
  font: 600 .75rem/1.2 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--copper-dark);
}
.story__title {
  font: 400 clamp(2rem, 4vw, 3rem)/1.05 var(--serif);
  letter-spacing: -.01em;
  color: var(--forest-900);
  text-wrap: balance;
}
.story__text p { max-width: 34em; }
.story__text > p:last-child { margin-bottom: 0; }
.story__media { position: relative; width: 100%; max-width: 36rem; margin: 0; }
.story__media--portrait { max-width: 27rem; }
.story__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--ar, 4 / 3);
  object-fit: cover;
  background: var(--ivory-200);
}
/* The featured photograph is a way into its gallery as well (without JavaScript, a link to the
   full-size photograph); it looks exactly as before, and shows the site's outline when focused */
.story__photo-link { display: block; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.story__photo-link picture { display: block; }
.story__photo-link:focus-visible { outline-offset: 4px; }
/* The way into each chapter's gallery: a quiet pill under the photograph, only once the script runs */
.story__open {
  display: none;
  align-items: center;
  gap: .6rem;
  max-width: 100%;
  min-height: 2.75rem;
  margin-top: .9rem;
  padding: .65rem 1.1rem;
  color: var(--forest-800);
  background: transparent;
  border: 1px solid rgb(27 58 44 / .4);
  border-radius: 999px;
  font: 600 .72rem/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s;
}
.has-gallery .story__open { display: inline-flex; }
.story__open:hover { color: var(--ivory); background: var(--forest-800); border-color: var(--forest-800); }
.story__open .icon { width: 1rem; height: 1rem; }
@media (min-width: 60rem) {
  .story { --story-gap: clamp(5rem, 9vw, 8rem); padding-block: .5rem; }
  .story__chapter {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(4rem, 8vw, 7rem);
    align-items: start;
  }
  /* The rule runs from each chapter's point to the next; the last chapter keeps only its point */
  .story__chapter::before {
    content: "";
    position: absolute;
    top: .4rem;
    left: 50%;
    width: .8rem;
    height: .8rem;
    border-radius: 50%;
    background: var(--copper);
    box-shadow: 0 0 0 .45rem var(--ivory);
    transform: translateX(-50%);
    z-index: 1;
  }
  .story__chapter:not(.story__chapter--closing)::after {
    content: "";
    position: absolute;
    top: .8rem;
    bottom: calc(-1 * var(--story-gap) - .4rem);
    left: 50%;
    width: 1px;
    background: var(--rule-light);
  }
  .story__text { grid-column: 1; grid-row: 1; justify-self: end; }
  .story__media { grid-column: 2; grid-row: 1; justify-self: start; }
  .story__chapter--flip .story__text { grid-column: 2; justify-self: start; }
  .story__chapter--flip .story__media { grid-column: 1; justify-self: end; }
  .story__chapter--closing { grid-template-columns: minmax(0, 1fr); }
  .story__chapter--closing .story__text { grid-column: 1; justify-self: center; max-width: 36rem; text-align: center; padding-top: 2.25rem; }
  .story__chapter--closing .story__head { justify-items: center; }
  .story__chapter--closing .story__text p { margin-inline: auto; }
}

/* Our Story · the gallery: one chapter's photographs, whole, over a dark surround ---------------- */
.gallery {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--ivory);
  background: var(--forest-950);
}
.gallery::backdrop { background: rgb(15 31 24 / .5); }
.gallery[open] { display: block; }
html.gallery-open { overflow: hidden; }
/* The stage takes the room under the title bar (a bounded track, so a tall photograph is fitted
   to it rather than growing it); when the bar, the photograph's minimum, and the controls outgrow a
   short screen (a phone on its side with enlarged text) the stage overflows the track and the
   dialog scrolls vertically instead of squeezing the photograph */
.gallery__inner {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  overflow-y: auto;
  overscroll-behavior: contain;
  outline: none;
}
/* The title takes whatever width the counter and the close button leave, wrapping by words, so
   large text on a narrow phone never squeezes it into a column of letters */
.gallery__bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas: "title count close";
  align-items: center;
  gap: .35rem 1rem;
  min-height: var(--header-h);
  padding: .6rem var(--gutter);
}
/* On narrow screens the title takes its own full-width row under the counter and the close button */
@media (max-width: 40rem) {
  .gallery__bar { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "count close" "title title"; }
}
.gallery__title { grid-area: title; min-width: 0; margin: 0; font: italic 400 clamp(1.15rem, 2vw, 1.4rem)/1.25 var(--serif); overflow-wrap: anywhere; }
.gallery__close { grid-area: close; }
.gallery__count {
  grid-area: count;
  justify-self: end;
  margin: 0;
  font: 600 .72rem/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  white-space: nowrap;
}
.gallery__close,
.gallery__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  padding: 0;
  color: var(--ivory);
  background: rgb(15 31 24 / .6);
  border: 1px solid rgb(244 239 227 / .45);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .3s, border-color .3s;
}
.gallery__close:hover,
.gallery__nav:hover { background: var(--forest-700); border-color: var(--ivory); }
.gallery__close .icon,
.gallery__nav .icon { width: 1.15rem; height: 1.15rem; }
/* The photograph's row is never smaller than half the screen (or 10rem): on a short screen the
   dialog scrolls rather than letting the row collapse */
.gallery__stage {
  --gallery-photo-min: max(50dvh, 10rem);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(var(--gallery-photo-min), 1fr) auto;
  grid-template-areas: "photo" "controls";
  align-items: center;
  min-height: 0;
  padding: 0 var(--gutter) max(1rem, env(safe-area-inset-bottom));
  touch-action: pan-y pinch-zoom;
}
.gallery__figure { grid-area: photo; display: flex; align-items: center; justify-content: center; min-height: 0; height: 100%; margin: 0; }
.gallery__img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.gallery__img[hidden] { display: none; }
/* While the next photograph loads (after a moment, so a quick change never flickers), the one on
   screen dims; it keeps its own description until the new one is on screen */
.gallery__img.is-loading { opacity: .45; }
.gallery__img { transition: opacity .3s; }
.gallery__error { grid-area: photo; align-self: center; max-width: 26em; margin: 0 auto; padding: 1rem 0; text-align: center; color: var(--on-dark-muted); }
.gallery__error p { margin: 0; }
.gallery__error p + p { margin-top: .6em; }
.gallery__error-title { color: var(--ivory); font: italic 400 1.2rem/1.3 var(--serif); }
.gallery__error a { color: var(--ivory); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
.gallery__error a:hover { color: var(--copper-light); }
.gallery__nav--prev { grid-area: controls; justify-self: start; margin-top: .75rem; }
.gallery__nav--next { grid-area: controls; justify-self: end; margin-top: .75rem; }
/* Wider or landscape screens: the buttons sit either side of the photograph */
@media (min-width: 40rem), (orientation: landscape) and (min-width: 30rem) {
  .gallery__stage {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: minmax(var(--gallery-photo-min), 1fr);
    grid-template-areas: "prev photo next";
    column-gap: .75rem;
  }
  .gallery__nav--prev { grid-area: prev; margin-top: 0; }
  .gallery__nav--next { grid-area: next; margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .story__open, .gallery__close, .gallery__nav, .gallery__img { transition: none; }
}

/* Credits */
.credits__note { max-width: 44em; }

/* ======================================================================================
   Your Invitation · interactive demo
   ====================================================================================== */
.demo-pill {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1.5rem;
  padding: .45rem .85rem;
  border: 1px solid var(--copper-light);
  border-radius: 999px;
  color: var(--copper-light);
  font: 600 .7rem/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.demo-pill::before {
  content: "";
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: currentColor;
}

.demo-wrap {
  display: grid;
  gap: 2.5rem;
  max-width: 54rem;
  margin-inline: auto;
}
.demo-wrap > * { min-width: 0; }
.demo {
  overflow-wrap: anywhere;
  background: var(--ivory-50);
  border: 1px solid var(--ivory-300);
  box-shadow: 0 30px 60px -45px rgb(20 40 31 / .45);
}
.demo__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1rem;
  padding: .9rem clamp(1rem, 3vw, 1.75rem);
  background: var(--ivory-200);
  border-bottom: 1px solid var(--ivory-300);
}
.demo__label {
  margin: 0;
  font: 600 .7rem/1.2 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--copper-dark);
}
.demo__switch {
  display: inline-flex;
  flex-wrap: wrap;
  max-width: 100%;
  padding: .2rem;
  background: var(--ivory-50);
  border: 1px solid var(--ivory-300);
  border-radius: 999px;
}
.demo__switch a {
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: .5rem .95rem;
  border-radius: 999px;
  font: 600 .74rem/1 var(--sans);
  letter-spacing: .06em;
  text-decoration: none;
  color: var(--muted);
}
.demo__switch a[aria-current="page"] { color: var(--ivory); background: var(--forest-800); }
.demo__reset {
  padding: .45rem .2rem;
  background: none;
  border: 0;
  font-size: .82rem;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
}
.demo__body { padding: clamp(1.5rem, 4vw, 2.75rem); }
.demo noscript p, .demo__fallback { margin: 0; padding: clamp(1.5rem, 4vw, 2.75rem); }

.stepper {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.25rem;
  margin: 0 0 2rem;
  padding: 0 0 1.25rem;
  border-bottom: 1px solid var(--rule-light);
  font-size: .8rem;
  color: var(--muted);
}
.stepper li { display: flex; max-width: 100%; align-items: center; gap: .45rem; }
.stepper__label { min-width: 0; overflow-wrap: anywhere; }
.stepper__n {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: .72rem;
  font-weight: 600;
}
.stepper .is-done { color: var(--forest-800); }
.stepper .is-done .stepper__n { background: var(--forest-800); border-color: var(--forest-800); color: var(--ivory); }
.stepper [aria-current="step"] { color: var(--ink); font-weight: 600; }
.stepper [aria-current="step"] .stepper__n { border-width: 2px; border-color: var(--copper-dark); color: var(--copper-dark); }
@media (max-width: 40rem) {
  .stepper { gap: .4rem .6rem; }
  .stepper__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .stepper [aria-current="step"] .stepper__label { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
}

.demo-view__title {
  margin-bottom: .75rem;
  font: 400 clamp(2.1rem, 4.5vw, 3.1rem)/1 var(--serif);
  color: var(--forest-900);
  text-wrap: balance;
}
.demo-view__intro { max-width: 38em; color: var(--muted); }
.demo h3 { font: 400 1.65rem/1.15 var(--serif); color: var(--forest-900); }

.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: .45rem; margin: 1.5rem 0; max-width: 30rem; }
.field label, .field__label { font-weight: 600; font-size: .95rem; }
.hint { margin: 0; font-size: .85rem; color: var(--muted); }
.input {
  min-width: 0;
  width: 100%;
  min-height: 3rem;
  padding: .7rem .9rem;
  background: #fff;
  border: 1px solid #8a8b84;
  border-radius: 2px;
  font-size: 1rem;
}
.input:focus-visible { outline: 2px solid var(--copper-dark); outline-offset: 1px; border-color: var(--forest-800); }
textarea.input { min-height: 4.5rem; resize: vertical; }
.input--code { max-width: 12rem; font-size: 1.35rem; letter-spacing: .35em; font-variant-numeric: tabular-nums; }
.input[aria-invalid="true"] { border-color: #a1341e; border-width: 2px; }
.error {
  display: flex;
  gap: .5rem;
  margin: 0;
  font-size: .9rem;
  font-weight: 600;
  color: #a1341e;
}

.demo-fill {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: .25rem 0 0;
  padding: 0;
  list-style: none;
}
.demo-fill li { max-width: 100%; }
.chip {
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: .5rem .8rem;
  background: var(--ivory);
  border: 1px solid var(--ivory-300);
  border-radius: 999px;
  font-size: .85rem;
  cursor: pointer;
}
.chip:hover { border-color: var(--forest-800); }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .9rem 1.25rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-light);
}
.actions .back { font-size: .95rem; color: var(--forest-800); }

.proto-note {
  margin: 2rem 0 0;
  padding: 1rem 1.15rem;
  border: 1px dashed rgb(141 79 38 / .55);
  font-size: .88rem;
  color: var(--ink);
  background: rgb(217 164 124 / .08);
}
.proto-note strong {
  display: block;
  margin-bottom: .2rem;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--copper-dark);
}
.proto-note p { margin: 0; }

.demo-code {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1rem;
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  background: var(--ivory);
  border: 1px solid var(--ivory-300);
}
.demo-code__value {
  font: 600 1.3rem/1 var(--sans);
  letter-spacing: .3em;
  font-variant-numeric: tabular-nums;
  color: var(--forest-900);
}

/* Household */
.people { list-style: none; display: grid; gap: .6rem; margin: 1.25rem 0 0; }
.people li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .25rem 1rem;
  padding: .9rem 1rem;
  background: #fff;
  border: 1px solid var(--ivory-300);
}
.people__name { font: 400 1.35rem/1.2 var(--serif); color: var(--forest-900); }
.people__role { font-size: .85rem; color: var(--muted); }

/* Choice pills (accessible radios) */
.q {
  min-width: 0;
  margin: 0;
  padding: 1rem 0;
  border: 0;
  border-top: 1px solid var(--rule-light);
}
.q:first-of-type { border-top: 0; }
.q legend {
  float: left;
  width: 100%;
  margin-bottom: .7rem;
  padding: 0;
}
.q legend + * { clear: both; }
.q__title { display: block; font-weight: 600; }
.q__sub { display: block; font-size: .88rem; color: var(--muted); }
.choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice { position: relative; display: inline-flex; }
.choice input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.choice span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 2.75rem;
  padding: .55rem 1rem;
  background: #fff;
  border: 1px solid #8a8b84;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 500;
}
.choice span::before {
  content: "";
  width: .8rem;
  height: .8rem;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  flex: none;
}
.choice input:checked + span {
  color: var(--ivory);
  background: var(--forest-800);
  border-color: var(--forest-800);
}
.choice input:checked + span::before { background: var(--ivory); box-shadow: inset 0 0 0 2px var(--forest-800); }
.choice input:focus-visible + span { outline: 2px solid var(--copper-dark); outline-offset: 3px; }
.choice:hover span { border-color: var(--forest-800); }

/* Person cards */
.person {
  min-width: 0;
  margin: 1.5rem 0 0;
  padding: 1.25rem clamp(1rem, 3vw, 1.75rem) .5rem;
  background: #fff;
  border: 1px solid var(--ivory-300);
}
.person > legend {
  float: left;
  width: 100%;
  margin: 0 0 .25rem;
  padding: 0;
  font: 400 1.6rem/1.2 var(--serif);
  color: var(--forest-900);
}
.person > legend + * { clear: both; }
.person__note { margin: 0 0 1rem; font-size: .9rem; color: var(--muted); }

.checks { min-width: 0; margin: 0; padding: 1rem 0; border: 0; border-top: 1px solid var(--rule-light); }
.checks legend { float: left; width: 100%; padding: 0; margin-bottom: .6rem; font-weight: 600; }
.checks legend + * { clear: both; }
.checks__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: .35rem 1.5rem; }
@media (min-width: 36rem) {
  .checks__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.check {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 2.5rem;
  cursor: pointer;
}
.check input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  accent-color: var(--forest-800);
  flex: none;
}
.person .field { max-width: none; margin: .25rem 0 1.25rem; }
@media (max-width: 40rem) {
  .demo__body { padding: 1.4rem 1rem 1.6rem; }
  .person { padding-inline: .85rem; }
  .choice span { padding: .5rem .8rem; gap: .4rem; }
}
@media (max-width: 23.5rem) {
  .choice span { padding: .45rem .65rem; font-size: .86rem; gap: .35rem; }
  .choice span::before { width: .7rem; height: .7rem; }
}

/* Review */
.review { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.review-person {
  padding: 1.25rem clamp(1rem, 3vw, 1.5rem);
  background: #fff;
  border: 1px solid var(--ivory-300);
}
.review-person h3 { margin-bottom: .75rem; }
.review-list { display: grid; gap: 0; margin: 0; }
.review-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .2rem 1rem;
  padding: .6rem 0;
  border-top: 1px solid var(--rule-light);
}
.review-list dt { font-size: .92rem; }
.review-list dt span { display: block; font-size: .8rem; color: var(--muted); }
.review-list dd { margin: 0; font-weight: 600; font-size: .92rem; text-align: right; }
.review-list .wide { grid-template-columns: 1fr; }
.review-list .wide dd { text-align: left; font-weight: 400; color: var(--ink); }
.ans { display: inline-flex; align-items: center; gap: .4rem; }
.ans::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; flex: none; }
.ans--yes { color: var(--forest-800); }
.ans--yes::before { background: var(--forest-800); }
.ans--no { color: var(--ink); }
.ans--no::before { border: 1.5px solid var(--ink); }
.ans--none { color: #a1341e; }
.ans--none::before { border: 1.5px dashed currentColor; }
.edit-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 1rem 0 0; font-size: .92rem; }
.edit-links a { color: var(--forest-800); font-weight: 500; }

.summary-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1rem;
  margin: 1.5rem 0 0;
  padding: 1rem 1.15rem;
  background: var(--ivory);
  border: 1px solid var(--ivory-300);
}
.summary-status p { margin: 0; }

/* Saved (demo) */
.notice {
  margin: 1.25rem 0 0;
  padding: 1.1rem 1.25rem;
  border-left: 3px solid var(--copper);
  background: rgb(217 164 124 / .14);
}
.notice p { margin: 0; }
.notice p + p { margin-top: .4rem; }
.history { list-style: none; margin: .75rem 0 0; font-size: .88rem; color: var(--muted); }

/* Status badges (text + shape, never colour alone) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .32rem .7rem;
  border-radius: 999px;
  font: 600 .72rem/1 var(--sans);
  letter-spacing: .06em;
  white-space: nowrap;
}
.badge::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; flex: none; }
.badge--complete { color: var(--ivory); background: var(--forest-800); }
.badge--complete::before { background: var(--ivory); }
.badge--partial { color: var(--copper-dark); background: rgb(217 164 124 / .2); border: 1px solid rgb(141 79 38 / .45); }
.badge--partial::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); border: 1.5px solid currentColor; }
.badge--unanswered { color: var(--muted); background: transparent; border: 1px solid rgb(93 94 88 / .5); }
.badge--unanswered::before { border: 1.5px solid currentColor; }

/* Couple's view (demo) */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin: 1.5rem 0;
}
.tile {
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--ivory-300);
}
.tile__num { margin: 0; font: 400 clamp(2.2rem, 5vw, 3rem)/1 var(--serif); color: var(--forest-900); }
.tile__label { margin: .4rem 0 0; }
@media (max-width: 40rem) {
  .tiles { gap: .5rem; }
  .tile { padding: .75rem .6rem; }
  .tile .badge { padding: .28rem .45rem; font-size: .62rem; letter-spacing: 0; gap: .3rem; }
  .tile .badge::before { width: .5rem; height: .5rem; }
}

.totals { width: 100%; margin: 0 0 2rem; border-collapse: collapse; font-size: .92rem; }
.totals caption, .hh-table caption { text-align: left; margin-bottom: .6rem; font-weight: 600; }
.totals th, .totals td { padding: .6rem .5rem; border-bottom: 1px solid var(--rule-light); text-align: right; }
.totals th:first-child, .totals td:first-child { text-align: left; padding-left: 0; }
.totals thead th { font-size: .78rem; color: var(--muted); font-weight: 600; }
.day-short { display: none; }
@media (max-width: 30rem) {
  .totals th, .totals td { padding-inline: .3rem; }
  .day-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .day-short { display: inline; }
}

.filter { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.filter button {
  min-height: 2.5rem;
  padding: .45rem .9rem;
  background: #fff;
  border: 1px solid #8a8b84;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
}
.filter button[aria-pressed="true"] { color: var(--ivory); background: var(--forest-800); border-color: var(--forest-800); }

.hh-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.hh-table th, .hh-table td { padding: .75rem .45rem; border-bottom: 1px solid var(--rule-light); text-align: left; vertical-align: middle; }
.hh-table thead th { font-size: .78rem; color: var(--muted); font-weight: 600; }
.hh-table th[scope="row"] { font-weight: 500; }
.hh-table th[scope="row"] a { color: var(--forest-900); }
.hh-table .num { text-align: center; font-variant-numeric: tabular-nums; }
.hh-you {
  display: block;
  margin-top: .15rem;
  font-size: .72rem;
  font-weight: 600;
  color: var(--copper-dark);
}
.hh-days { display: none; }
@media (max-width: 40rem) {
  .hh-table .col-updated { display: none; }
  .hh-table th, .hh-table td { padding-inline: .25rem; }
  .badge { font-size: .66rem; padding: .3rem .5rem; }
}
@media (max-width: 30rem) {
  .hh-table .num { display: none; }
  .hh-days { display: block; margin-top: .2rem; font-size: .78rem; font-weight: 400; color: var(--muted); }
  .hh-table td:last-of-type { text-align: right; }
}

.detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: .5rem 0 1.5rem; color: var(--muted); font-size: .9rem; }

.whats-real {
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--ivory-300);
}
.whats-real h2 { margin-bottom: 1rem; font: 400 clamp(1.7rem, 3vw, 2.2rem)/1.1 var(--serif); color: var(--forest-900); }
.whats-real ul { display: grid; gap: .6rem; padding-left: 1.2rem; }
.whats-real li::marker { color: var(--copper-dark); }

/* Reduced motion: no transforms, no smooth scrolling, nothing waits to appear.
   Durations are 0s (not the common .01ms) so that nothing is ever mid-transition,
   e.g. menu links are focusable the instant the menu opens. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header, .skip-link, .dock, .hero__media, .hero__shade, .explore-hero__media, .explore-hero__shade, .copy, .story__open, .gallery { display: none !important; }
  .hero, .explore-hero, .intro, .hero__lower, .explore-hero__lower, .section--forest, .section--charcoal, .site-footer { color: #000; background: #fff; min-height: 0; }
  .hero__copy::before, .explore-hero__copy::before, .explore-hero__lower::before { display: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* Travel & Stay, October 2026: the two offers with their details folded away, other places to stay
   behind one disclosure, the arrival selector (an instruction first, then one origin's options), the
   journey details folded in each option, the map and local notes behind one disclosure, and the notes
   for before travelling. Desktop lays options side by side for comparison; phones get one column. */
.intro__links { display: flex; flex-wrap: wrap; gap: .35rem 1.4rem; margin: 0; font-size: .95rem; }
.intro__links a { color: var(--ivory); }
.intro__links a:hover { color: var(--copper-light); }
.t-head { margin-bottom: clamp(1.5rem, 3.5vw, 2.25rem); }
.t-head h2 { font: 400 clamp(2.2rem, 4.5vw, 3.4rem)/1.05 var(--serif); color: var(--forest-900); }
.t-head p { max-width: 36em; margin: .6rem 0 0; color: var(--muted); }
.t-kicker {
  margin: 0 0 .5rem;
  font: 600 .72rem/1.2 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--copper-dark);
}
.t-checked { margin: 1rem 0 0; font-size: .9rem; color: var(--muted); }
.t-card {
  min-width: 0;
  padding: clamp(14px, 4.5vw, 1.5rem);
  background: var(--ivory-50);
  border: 1px solid var(--ivory-300);
  overflow-wrap: anywhere;
}
.t-card h4 { margin: 0 0 .5rem; font: 400 1.45rem/1.15 var(--serif); color: var(--forest-900); }
.t-card p { margin: 0; }

/* Disclosures: a serif title that works as a button, the plus sign turning to a cross when open */
.fold { border-top: 1px solid var(--rule-light); border-bottom: 1px solid var(--rule-light); }
.fold > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.1rem 0;
  list-style: none;
  cursor: pointer;
  color: var(--forest-900);
}
.fold > summary::-webkit-details-marker { display: none; }
.fold__title { margin: 0; font: 400 clamp(1.45rem, 2.2vw, 1.9rem)/1.2 var(--serif); color: inherit; }
.fold > summary::after {
  content: "";
  flex: none;
  width: 1rem;
  height: 1rem;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform .4s var(--ease-out);
}
.fold[open] > summary::after { transform: rotate(45deg); }
.fold > summary:hover { color: var(--forest-700); }
.fold > summary:focus-visible { outline: 3px solid var(--copper-dark); outline-offset: 2px; }
.fold__body { padding: .25rem 0 1.75rem; overflow-wrap: anywhere; }
.fold__lede { max-width: 40em; margin: 0 0 1.25rem; color: var(--muted); }
.fold--inset { margin-top: clamp(2rem, 4vw, 3rem); }
.fold + .fold { border-top: 0; }

/* The two offers */
.hotel > p:not([class]) { max-width: 30em; }
.offers-note { max-width: 40em; margin: clamp(1.25rem, 3vw, 2rem) 0 0; color: var(--muted); }
.hotel__more { width: 100%; margin-top: 1.1rem; font-size: .95rem; }
.hotel__more summary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.5rem;
  list-style: none;
  cursor: pointer;
  font: 600 .95rem/1.3 var(--sans);
  color: var(--forest-800);
}
.hotel__more summary::-webkit-details-marker { display: none; }
.hotel__more summary::before {
  content: "";
  flex: none;
  width: .7rem; height: .7rem;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform .4s var(--ease-out);
}
.hotel__more[open] summary::before { transform: rotate(45deg); }
.hotel__more summary:hover { color: var(--forest-700); }
.hotel__more summary:focus-visible { outline: 3px solid var(--copper-dark); outline-offset: 2px; }
.hotel__more-body { max-width: 34em; padding: .25rem 0 0; }
.hotel__more-body p { margin: 0; }
.hotel__more-body p + p { margin-top: .5rem; }

/* Other places to stay: a compact list, not another gallery */
.alt-list { list-style: none; margin: 0; padding: 0; display: grid; }
.alt-list li {
  display: grid;
  gap: .35rem 2rem;
  padding: .9rem 0;
  border-top: 1px solid var(--rule-light);
}
@media (min-width: 48rem) { .alt-list li { grid-template-columns: minmax(0, 1fr) auto; align-items: start; } .alt-list li .link-ext { margin-top: .2rem; } }
.alt-list p { margin: 0; }
.alt-list__name { font: 400 1.3rem/1.2 var(--serif); color: var(--forest-900); }
.alt-list__name small { display: block; margin-top: .15rem; font: 400 .85rem/1.4 var(--sans); color: var(--muted); }
.alt-list__main p + p { margin-top: .3rem; }

/* The arrival selector */
.arrive__form { display: grid; gap: .5rem; max-width: 30rem; margin: 0 0 1.75rem; }
.no-js .arrive__form { display: none; }
.arrive__form label { font: 400 1.35rem/1.2 var(--serif); color: var(--forest-900); }
.arrive__select {
  width: 100%;
  min-height: 3rem;
  padding: .65rem 2.8rem .65rem .9rem;
  font: 400 1.05rem/1.3 var(--sans);
  color: var(--ink);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%232a2b28' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right .9rem center / 1rem 1rem;
  border: 1px solid rgb(42 43 40 / .45);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.arrive__select:focus-visible { outline: 3px solid var(--forest-800); outline-offset: 2px; }
.arrive__hint { margin: .25rem 0 0; color: var(--muted); }
.arrive__hint[hidden] { display: none; }

/* Each origin: a native disclosure without JavaScript; with it, a plain section the selector shows */
details.origin { border-top: 1px solid var(--rule-light); }
details.origin:last-of-type { border-bottom: 1px solid var(--rule-light); }
.origin > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.1rem 0;
  list-style: none;
  cursor: pointer;
  color: var(--forest-900);
}
.origin > summary::-webkit-details-marker { display: none; }
.origin > summary::after {
  content: "";
  flex: none;
  width: 1rem; height: 1rem;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
}
details.origin[open] > summary::after { transform: rotate(45deg); }
.origin > summary:hover { color: var(--forest-700); }
.origin > summary:focus-visible { outline: 3px solid var(--copper-dark); outline-offset: 2px; }
.origin__title { margin: 0; font: 400 clamp(1.45rem, 2.4vw, 1.9rem)/1.2 var(--serif); color: inherit; }
details.origin .origin__body { padding: .25rem 0 1.75rem; }
section.origin .origin__title { margin: 0 0 1rem; }
.js .origin:not(.is-shown) { display: none; }
.origin__lede { max-width: 40em; margin: 0 0 1rem; color: var(--muted); }
.origin__note { max-width: 40em; margin: 1.25rem 0 0; color: var(--muted); }
.routes-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; align-items: start; }
@media (min-width: 60rem) { .routes-grid { grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); } .routes-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rt { display: flex; flex-direction: column; }
.rt__next { margin-top: .6rem !important; }
.rt > .rt__links { margin-top: .9rem; }
.rt__time { margin: .25rem 0 .6rem !important; font: 400 1.7rem/1.1 var(--serif); color: var(--forest-800); }
.rt__time small { display: block; margin-top: .3rem; font: 400 .85rem/1.4 var(--sans); color: var(--muted); }
.rt__changes { font: 600 .78rem/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--forest-800); }
.rt__tradeoff { margin-top: .6rem !important; }
.rt > .link-ext { display: inline-block; margin-top: .9rem; }
/* Without JavaScript the journey details are plain content under a label; the script makes the disclosure */
.rt__more-label { margin: 0 !important; font: 600 .95rem/1.3 var(--sans); color: var(--forest-800); }
.rt__more { margin-top: auto; padding-top: 1rem; font-size: .95rem; }
.rt__more summary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.5rem;
  list-style: none;
  cursor: pointer;
  font: 600 .95rem/1.3 var(--sans);
  color: var(--forest-800);
}
.rt__more summary::-webkit-details-marker { display: none; }
.rt__more summary::before {
  content: "";
  flex: none;
  width: .7rem; height: .7rem;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform .4s var(--ease-out);
}
.rt__more[open] summary::before { transform: rotate(45deg); }
.rt__more summary:hover { color: var(--forest-700); }
.rt__more summary:focus-visible { outline: 3px solid var(--copper-dark); outline-offset: 2px; }
.rt__more-body { padding-top: .25rem; }
.rt__more-body ol { margin: 0; padding-left: 1.2rem; }
.rt__more-body li + li { margin-top: .35rem; }
.rt__more-body p { margin: .6rem 0 0; }
.rt__links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.rt__links .link-ext { margin: 0; }
.final { margin-top: clamp(1.75rem, 3.5vw, 2.5rem); max-width: 44em; }
.final h3 { margin: 0 0 .5rem; font: 400 1.35rem/1.2 var(--serif); color: var(--forest-900); }
.final p { margin: 0; }
#around { margin-top: clamp(1.75rem, 3.5vw, 2.5rem); }

/* The map: drawn from OpenStreetMap data (tools/pitlochry-map). On small screens the frame scrolls
   sideways so the markers stay apart; the markers are sized in pixels, with the map, not with the text,
   and each one reveals its place name (the key sits beside the map on desktop, below it on phones). */
.map__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem 2.5rem; align-items: start; margin-bottom: 1.5rem; }
.map__grid > * { min-width: 0; }
@media (min-width: 60rem) { .map__grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); } .map__grid .places__list { grid-template-columns: minmax(0, 1fr); } }
.map { margin: 0; }
.map__scroll { overflow-x: auto; overflow-y: hidden; border: 1px solid var(--ivory-300); background: var(--ivory-200); -webkit-overflow-scrolling: touch; }
.map__scroll:focus-visible { outline: 3px solid var(--copper-dark); outline-offset: 2px; }
.map__canvas { position: relative; min-width: 560px; }
.map__img { display: block; width: 100%; height: auto; }
.map__marks { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.mark {
  --mark-size: 22px;
  position: absolute;
  width: var(--mark-size); height: var(--mark-size);
  /* Centred on its point by margins rather than a transform, so the dot is not a stacking context and the
     enlarged hit area below can sit beneath every dot. */
  margin: calc(var(--mark-size) / -2) 0 0 calc(var(--mark-size) / -2); padding: 0;
  display: grid; place-items: center;
  font: 600 11px/1 var(--sans);
  color: var(--ivory);
  text-decoration: none;
  background: var(--forest-800);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgb(0 0 0 / .35);
  cursor: pointer;
}
/* The touch target around each dot. With the script: a tap on the marker layer (or on the bridge below) within
   23 px of a dot's centre activates that marker, the nearest one winning where dots are close, so the ground
   between markers 2 and 3 (27 px apart on phones) is divided between them and neither has a 44-pixel target of
   its own there. The browser may also send a tap near a dot straight to the button, which activates the same way.
   Without the script: an invisible 46-pixel ring on each link (its inset is measured from the padding box, 18 px
   inside the 2 px border), stacked beneath every dot so no ring covers a neighbour's dot; between two rings the
   later marker's is on top. */
.js .mark { z-index: 1; } /* above the bridge */
.no-js .map__marks { z-index: 0; } /* a stacking context of its own, so the rings below sit beneath all its dots */
.no-js .mark::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; z-index: -1; }
/* The bridge: an invisible rectangle over an open label, its marker, and the gap between them, so a pointer
   crossing from one to the other is never off both. Placed and sized by the script. */
.map__bridge { position: absolute; margin: 0; padding: 0; background: transparent; }
.map__bridge[hidden] { display: none; }
.mark:hover, .mark[aria-expanded="true"] { background: var(--forest-700); }
.mark:focus-visible { outline: 3px solid var(--copper-dark); outline-offset: 2px; }
.mark--venue { --mark-size: 28px; font-size: 13px; background: var(--copper-dark); }
.mark--venue:hover, .mark--venue[aria-expanded="true"] { background: #a2602f; }
@media (min-width: 60rem) { .mark { --mark-size: 26px; font-size: 12px; } .mark--venue { --mark-size: 32px; font-size: 14px; } }
.map__tip {
  position: absolute;
  z-index: 2;
  max-width: 16rem; /* narrowed to the visible frame by the script */
  margin: 0;
  padding: .4rem .65rem;
  font: 600 .85rem/1.3 var(--sans);
  color: var(--ivory);
  background: var(--forest-900);
  border-radius: 3px;
  box-shadow: 0 2px 6px rgb(0 0 0 / .3);
  width: max-content;
  overflow-wrap: anywhere;
}
.map__tip[hidden] { display: none; }
.map__caption { margin: .6rem 0 0; font-size: .85rem; color: var(--muted); }

/* Where things are: a list with the distance basis, and location and directions links */
.places__lede { max-width: 44em; margin: 0 0 1rem; color: var(--muted); }
.places__list li:target { outline: 3px solid var(--copper-dark); outline-offset: 4px; }
.places__list { margin: 0; padding-left: 1.4rem; display: grid; gap: .55rem 2rem; }
@media (min-width: 48rem) { .places__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.places__list li { padding-left: .25rem; }
.places__list small { display: block; color: var(--muted); }
.map__links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 1.25rem 0 0; }

/* Local notes: a compact list under the map */
.local { display: grid; gap: .9rem 2rem; margin: 1.75rem 0 0; }
@media (min-width: 60rem) { .local { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.local div { display: grid; gap: .2rem; }
.local dt { font: 600 .78rem/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--copper-dark); }
.local dd { margin: 0; max-width: 40em; }
.local dd .link-ext { display: inline-block; margin-top: .3rem; }

/* Before you travel */
.before { max-width: 44em; }
.before__key { margin: 0 0 1.5rem; }
.before__key .link-ext { display: inline-block; margin-top: .25rem; }
.before__more h4 { margin: 1rem 0 .3rem; font: 400 1.25rem/1.2 var(--serif); color: var(--forest-900); }
.before__more h4:first-child { margin-top: 0; }
.before__more p { margin: 0; }
