/* ============================================================
   The Art of Fine Dining Etiquette
   The British School of Excellence — landing page

   A rosewood, champagne and ivory palette: candlelight at a
   formal table. Gold is an accent, never a fill for large areas.
   Every rule here is a translation of the styling that arrived
   inline on the original document, tokenised so the design can
   be edited in one place.

   1  Tokens
   2  Reset & document
   3  Recurring devices
   4  Buttons
   5  Top bar
   6  Hero
   7  Course overview
   8  Ideal for / outcomes
   9  Quotation band
   10 Curriculum
   11 Gallery strip
   12 Course format
   13 Booking
   14 Footer
   15 Print
   ============================================================ */

/* ============================================================
   1  Tokens
   ============================================================ */
:root {
  /* ---- Brand palette (the client's swatches, unchanged) --- */
  --pw-plum: #2E2119;
  --pw-wine: #433023;
  --pw-rosewood: #6B4B33;
  --pw-blush: #F8F1E5;
  --pw-ivory: #FDFAF4;
  --pw-pearl: #F8F3EA;
  --pw-stone: #EFE7D9;
  --pw-mauve: #5C4A3B;
  --pw-champagne: #C9A35C;
  --pw-gold-pale: #E8D7AE;

  /* The near-black behind the opening slide. Also the canvas
     colour, so an over-scroll never reveals white. */
  --pw-noir: #241A13;

  /* ---- Legible-on-light variants -------------------------- */
  /* The brand golds and taupes are beautiful on the dark fields
     but fail contrast as small text on cream: champagne on ivory
     is 2.3:1, well under the 4.5:1 that 10px type needs. These
     hold the same hue at a legible lightness and are used for
     text only — the pale originals still draw every hairline,
     border and ornament. */
  --champagne-ink: #88692D;  /* 4.9:1 on ivory — small caps, numerals */
  --champagne-mark: #AE853A; /* 3.2:1 on ivory — large decorative glyphs */
  --rose-ink: #86674A;       /* 5.0:1 on ivory — list numerals */
  --taupe-ink: #7E6A59;      /* 4.9:1 on ivory — captions, table labels */

  --fg-2: #3A2A1D;
  --rule-hair: rgba(46, 33, 25, 0.12);
  --rule-soft: rgba(46, 33, 25, 0.07);
  --rule-rose: rgba(107, 75, 51, 0.26);
  --grad-rosewood: linear-gradient(150deg, #241A13 0%, #433023 52%, #6B4B33 100%);

  /* ---- Type ---------------------------------------------- */
  --font-display: "Cormorant Garamond", Garamond, Georgia, serif;
  --font-body: Jost, "Helvetica Neue", Arial, sans-serif;
  /* ❧ and ✦ sit outside the Latin subsets that ship, so they
     would fall back to whatever the platform offers. Naming the
     symbol fonts explicitly keeps them from landing on a font
     with no glyph at all. */
  --font-symbol: "Cormorant Garamond", "Apple Symbols", "Segoe UI Symbol", "Noto Sans Symbols 2", serif;

  /* ---- Spaced small-caps tracking ------------------------- */
  /* The house device. Narrowed on small screens so a 320px
     phone never has to choose between clipping and overflow. */
  --track-brand: 0.16em;
  --track-hero: 0.34em;
  --track-eyebrow: 0.32em;
  --track-eyebrow-lg: 0.34em;
  --track-btn: 0.26em;
  --track-btn-sm: 0.24em;
  --track-label: 0.24em;
  --track-stat: 0.28em;
  --track-motto: 0.3em;

  /* ---- Rhythm -------------------------------------------- */
  --measure: 1160px;
  --gutter: clamp(20px, 5vw, 40px);
}

@media (max-width: 460px) {
  :root {
    --track-brand: 0.08em;
    --track-hero: 0.2em;
    --track-eyebrow: 0.2em;
    --track-eyebrow-lg: 0.2em;
    --track-btn: 0.16em;
    --track-btn-sm: 0.14em;
    --track-label: 0.14em;
    --track-stat: 0.18em;
    --track-motto: 0.18em;
  }
}

/* ============================================================
   2  Reset & document

   The canvas is painted noir so the very first frame the browser
   puts up already matches the opening slide — there is no light
   flash ahead of the hero, and an over-scroll at either end
   reveals the brand's near-black rather than a white band. The
   ivory belongs to <body>, which spans the document, so
   everything below the hero is warm ivory as designed.
   ============================================================ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  /* The canvas: what shows through an over-scroll at either end.
     Plum is the footer's colour, so the bottom rubber-band is
     seamless, and the top reads as a deliberate dark frame rather
     than a strip of white. */
  background: var(--pw-plum);
  color-scheme: only light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--pw-ivory);
  color: var(--fg-2);
  font-family: var(--font-body);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, figure, blockquote, ul, ol { margin: 0; }

/* Smooth-scrolled anchors land under the sticky bar otherwise. */
section[id] { scroll-margin-top: 84px; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; border-style: none; }

a {
  color: var(--pw-rosewood);
  text-decoration: none;
  transition: color 200ms ease, background 200ms ease;
}
a:hover { color: var(--pw-wine); }

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--champagne-ink);
  outline-offset: 3px;
}
/* On the dark fields the ink gold would disappear. */
.hero :where(a):focus-visible,
.booking :where(a):focus-visible,
.site-footer :where(a):focus-visible {
  outline-color: var(--pw-gold-pale);
}

/* Screen-reader-only text: the "opens in a new tab" hints. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Keyboard-only escape hatch past the hero. */
.skip-link {
  position: fixed;
  left: 50%;
  top: 0;
  z-index: 200;
  transform: translate(-50%, -140%);
  padding: 14px 24px;
  background: var(--pw-ivory);
  color: var(--pw-plum);
  border: 1px solid var(--pw-rosewood);
  border-radius: 0 0 6px 6px;
  font-size: 12px;
  letter-spacing: var(--track-btn-sm);
  text-transform: uppercase;
  transition: transform 200ms ease;
}
.skip-link:focus-visible {
  transform: translate(-50%, 0);
  color: var(--pw-plum);
}

/* ============================================================
   3  Recurring devices
   ============================================================ */

/* Section shells. */
.sec {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 118px) var(--gutter) clamp(60px, 8vw, 100px);
}
.sec--format { padding-bottom: 40px; }
.sec--booking { padding: clamp(44px, 6vw, 70px) var(--gutter) clamp(64px, 9vw, 118px); }

/* The spaced small-caps eyebrow. */
.eyebrow {
  font-size: 10px;
  letter-spacing: var(--track-eyebrow);
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--champagne-ink);
  margin-bottom: 20px;
}
.eyebrow--gap { margin-bottom: 22px; }
.eyebrow--lg {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--track-eyebrow-lg);
  margin-bottom: 18px;
}
.eyebrow--on-dark {
  color: var(--pw-gold-pale);
  margin-bottom: 22px;
}

/* Display headings. */
.title {
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--pw-plum);
  margin: 0;
}
.title--overview {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  margin-bottom: 34px;
  text-wrap: pretty;
}
.title--fit {
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.04;
  margin-bottom: 20px;
  text-wrap: balance;
}
.title--outcomes {
  font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1.1;
  margin-bottom: 12px;
}
.title--curriculum {
  font-size: clamp(36px, 5.4vw, 56px);
  line-height: 1.06;
  margin-bottom: 26px;
}
.title--also {
  font-size: clamp(32px, 4.8vw, 50px);
  line-height: 1.06;
  margin-bottom: 24px;
  text-wrap: balance;
}
.title--format {
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.1;
  margin-bottom: 30px;
}
.title--booking {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.06;
  color: var(--pw-ivory);
  margin-bottom: 22px;
  text-wrap: pretty;
}

.em-rose { font-style: italic; color: var(--pw-rosewood); }
.em-gold { font-style: italic; color: var(--pw-gold-pale); }

/* Running text. */
.prose {
  font-size: 17px;
  line-height: 1.8;
  color: var(--pw-mauve);
  margin-bottom: 22px;
  text-wrap: pretty;
}
.prose:last-child { margin-bottom: 0; }
.prose--lead {
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.74;
  color: var(--fg-2);
}
.prose--note {
  font-size: 15px;
  line-height: 1.6;
  color: var(--taupe-ink);
  margin-bottom: 30px;
}
.prose--also {
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.78;
  max-width: 46ch;
  margin-bottom: 0;
}

/* The engraved rule: two hairlines either side of a flourish. */
.ornament {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  margin: 34px 0;
}
.ornament--center {
  justify-content: center;
  margin: 0;
}
.ornament__img {
  height: 26px;
  width: auto;
  opacity: 0.85;
}
/* Inside the "Written for you if…" card the rule stands alone,
   left-aligned under the heading. */
.ornament__img--sm {
  height: 22px;
  width: auto;
  opacity: 0.9;
  display: block;
  margin: 0 0 34px;
}
.ornament__img--md { height: 24px; }

/* Two-column bodies. Each falls to one column when the narrower
   of the pair can no longer hold its minimum. */
.duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(40px, 6vw, 84px);
  align-items: start;
}

/* ============================================================
   4  Buttons
   ============================================================ */
.btn {
  display: inline-block;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: var(--track-btn);
  text-transform: uppercase;
  transition: background 200ms ease, color 200ms ease;
}

/* Rosewood pill — the top bar. */
.btn--rosewood {
  padding: 12px 26px;
  background: var(--pw-rosewood);
  color: var(--pw-ivory);
  font-size: 11px;
  letter-spacing: var(--track-btn-sm);
}
.btn--rosewood:hover,
.btn--rosewood:focus-visible {
  background: var(--pw-wine);
  color: var(--pw-ivory);
}

/* Champagne pill — the primary call to action. */
.btn--gold {
  padding: 20px 46px;
  background: var(--pw-champagne);
  color: var(--pw-plum);
}
.btn--gold:hover,
.btn--gold:focus-visible {
  background: var(--pw-gold-pale);
  color: var(--pw-plum);
}
.btn--gold-lg { padding: 21px 52px; }

/* Outlined pill on the dark fields. */
.btn--ghost {
  padding: 20px 40px;
  border: 1px solid rgba(232, 215, 174, 0.5);
  color: var(--pw-ivory);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: rgba(255, 250, 246, 0.1);
  color: var(--pw-ivory);
}

/* ============================================================
   5  Top bar
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(255, 250, 246, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule-hair);
}
/* Without a backdrop filter the bar would be translucent over
   photography, so it goes opaque instead. */
@supports not ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .topbar { background: var(--pw-ivory); }
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.topbar__seal {
  height: clamp(32px, 7vw, 42px);
  width: auto;
  display: block;
}
.topbar__name {
  font-size: clamp(10.5px, 2.6vw, 13px);
  font-weight: 700;
  letter-spacing: var(--track-brand);
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--pw-mauve);
}

.topbar__nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 28px;
}
.navlink {
  font-size: 12px;
  letter-spacing: var(--track-brand);
  text-transform: uppercase;
  color: var(--pw-mauve);
}
.navlink:hover,
.navlink:focus-visible { color: var(--pw-rosewood); }

@media (max-width: 600px) {
  .topbar { justify-content: center; text-align: center; }
}

/* ============================================================
   6  Hero — the opening slide
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--pw-noir);
  isolation: isolate;
  min-height: clamp(600px, 92vh, 880px);
  /* svh is the small viewport height: it does not change as
     mobile browser chrome collapses, so the opening slide does
     not resize under the reader on the first scroll. */
  min-height: clamp(600px, 92svh, 880px);
}
.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(28, 26, 20, 0.58) 0%, rgba(28, 26, 20, 0.44) 40%, rgba(24, 22, 17, 0.82) 100%);
}
.hero__inner {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(64px, 9vw, 96px) var(--gutter) clamp(56px, 7vw, 78px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero__seal {
  height: clamp(72px, 14vw, 106px);
  width: auto;
  display: block;
  margin-bottom: 30px;
}
.hero__brand {
  font-size: clamp(10px, 2.4vw, 15px);
  font-weight: 600;
  letter-spacing: var(--track-hero);
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--pw-gold-pale);
  margin-bottom: 26px;
  text-wrap: balance;
}
.hero__stem {
  width: 1px;
  height: 62px;
  background: linear-gradient(180deg, rgba(220, 192, 137, 0.9), rgba(220, 192, 137, 0));
  margin-bottom: 26px;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 9.4vw, 96px);
  line-height: 1.04;
  color: var(--pw-ivory);
  margin-bottom: 30px;
  text-wrap: balance;
}
.hero__title em {
  font-style: italic;
  color: #E7DCBB;
}
.hero__kicker {
  font-size: 11px;
  letter-spacing: var(--track-hero);
  line-height: 1.5;
  text-transform: uppercase;
  color: rgba(255, 250, 246, 0.62);
  margin-bottom: 22px;
}
.hero__lede {
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.64;
  color: rgba(255, 250, 246, 0.84);
  max-width: 44ch;
  margin-bottom: 44px;
  text-wrap: pretty;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 52px;
}

/* The stat trio. Three across, or stacked — never two and an
   orphan, which is what an auto-fit track produced between
   430px and 530px. */
.hero__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  background: rgba(232, 215, 174, 0.28);
  border: 1px solid rgba(232, 215, 174, 0.28);
}
@media (min-width: 540px) {
  .hero__stats {
    grid-template-columns: repeat(3, 1fr);
    max-width: 602px;
  }
}
.stat {
  padding: 18px clamp(14px, 3vw, 30px);
  background: rgba(28, 26, 20, 0.42);
}
.stat__label {
  font-size: 10px;
  letter-spacing: var(--track-stat);
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--pw-gold-pale);
  margin-bottom: 9px;
}
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(21px, 3vw, 26px);
  line-height: 1.2;
  color: var(--pw-ivory);
}

/* ============================================================
   7  Course overview
   ============================================================ */
.overview__aside {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.overview__photo {
  width: 100%;
  height: clamp(260px, 42vw, 420px);
  object-fit: cover;
  display: block;
  box-shadow: 0 22px 50px rgba(46, 33, 25, 0.14);
}
.pullquote {
  background: var(--pw-blush);
  border-left: 3px solid var(--champagne-mark);
  padding: clamp(24px, 4vw, 34px);
}
.pullquote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 2.6vw, 24px);
  line-height: 1.5;
  color: var(--pw-rosewood);
  margin: 0;
  text-wrap: pretty;
}

/* ============================================================
   8  Ideal for / learning outcomes
   ============================================================ */
/* Full-bleed pearl band. The measure lives on the grid inside it, so
   the tint reaches both edges of the viewport without any element
   having to be wider than its parent. */
.band-fit {
  background: var(--pw-pearl);
  border-top: 1px solid var(--rule-hair);
  border-bottom: 1px solid var(--rule-hair);
}
.fit__grid {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(60px, 8vw, 104px) var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr));
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}
.fit__card {
  position: relative;
  background: linear-gradient(168deg, #FFFFFF 0%, var(--pw-blush) 100%);
  border: 1px solid var(--rule-hair);
  border-radius: 16px;
  padding: clamp(32px, 5vw, 54px) clamp(26px, 4.5vw, 48px) clamp(32px, 5vw, 50px);
  box-shadow: 0 18px 48px rgba(46, 33, 25, 0.07);
}
/* The inset gold keyline, drawn 12px inside the card edge. */
.fit__frame {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(201, 163, 92, 0.28);
  border-radius: 10px;
  pointer-events: none;
}
.fit__body { position: relative; }

.ticklist {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.tick {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 18px;
  align-items: start;
}
.tick__mark {
  font-family: var(--font-symbol);
  font-size: 30px;
  line-height: 1;
  color: var(--champagne-mark);
  padding-top: 4px;
}
.tick__text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(18px, 2.1vw, 20px);
  line-height: 1.46;
  color: var(--fg-2);
  text-wrap: pretty;
}

.numlist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 14px 30px;
}
.num {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: baseline;
  padding: 13px 0;
  border-top: 1px solid var(--rule-soft);
}
.num__index {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--rose-ink);
}
.num__text {
  font-size: 18px;
  line-height: 1.56;
  color: var(--fg-2);
  text-wrap: pretty;
}

/* ============================================================
   9  Quotation band
   ============================================================ */
.band {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--pw-plum);
  isolation: isolate;
  min-height: clamp(360px, 50vw, 460px);
}
.band__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.band__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, rgba(46, 33, 25, 0.9) 0%, rgba(67, 48, 35, 0.7) 60%, rgba(107, 75, 51, 0.4) 100%);
}
.band__inner {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(60px, 9vw, 96px) var(--gutter);
  text-align: center;
}
.band__mark {
  font-family: var(--font-symbol);
  font-size: 22px;
  line-height: 1;
  color: var(--pw-gold-pale);
  margin-bottom: 26px;
}
.band__quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(23px, 3.6vw, 38px);
  line-height: 1.42;
  color: var(--pw-ivory);
  margin: 0;
  text-wrap: pretty;
}

/* ============================================================
   10  Curriculum
   ============================================================ */
.curriculum__head {
  text-align: center;
  margin-bottom: 66px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(310px, 100%), 1fr));
  gap: 26px;
}
.card {
  background: #FFFFFF;
  border: 1px solid var(--rule-hair);
  border-radius: 14px;
  padding: clamp(26px, 3.4vw, 38px);
  box-shadow: 0 10px 30px rgba(46, 33, 25, 0.05);
  transition: box-shadow 260ms ease, transform 260ms ease;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 20px 46px rgba(46, 33, 25, 0.12);
  transform: translateY(-3px);
}
.card__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.card__numeral {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--champagne-ink);
}
.card__rule {
  flex: 1;
  height: 1px;
  background: var(--rule-hair);
}
.card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 2.9vw, 29px);
  line-height: 1.2;
  color: var(--pw-plum);
  margin-bottom: 16px;
  text-wrap: pretty;
}
.card__text {
  font-size: 16px;
  line-height: 1.72;
  color: var(--pw-mauve);
  text-wrap: pretty;
}

/* ============================================================
   11  Gallery strip

   Two byte-identical runs of 28 plates drift left by exactly
   half the track's width, which puts the second run where the
   first began — an invisible seam. The -50% in the keyframe
   depends on the runs being identical: change one and you must
   change both.

   The strip is a direct child of the section, so it is full
   width by nature. The original escaped its 1160px container
   with `width: 100vw`, which is wider than the viewport once a
   desktop scrollbar is present — the page then needed
   `overflow-x: clip` to hide the overflow, and that in turn
   broke the sticky top bar in any browser without `clip`
   support.
   ============================================================ */
.band-gallery {
  background: var(--pw-blush);
  border-top: 1px solid var(--rule-hair);
  padding: clamp(60px, 8vw, 104px) 0;
}
.gallery__strip {
  position: relative;
  overflow: hidden;
  background: var(--pw-stone);
}
.gallery__track {
  display: flex;
  width: max-content;
  padding: 18px 0;
  animation: fd-drift 150s linear infinite;
  will-change: transform;
}
/* Hovering or tabbing in holds the strip still so a caption can
   actually be read. */
.gallery__track:hover { animation-play-state: paused; }

@keyframes fd-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.plate {
  position: relative;
  flex: 0 0 auto;
  /* The 18px separation is a margin rather than the track's `gap` on
     purpose. `gap` puts 55 gaps between 56 plates, so half the track's
     width falls half a gap short of where the second run begins and the
     loop hops at the seam. As a trailing margin each plate is
     self-contained, half the track is exactly 28 plates, and -50% lands
     plate 29 precisely where plate 1 was. */
  margin-right: 18px;
}
.plate__img {
  width: clamp(250px, 58vw, 420px);
  height: clamp(200px, 34vw, 300px);
  object-fit: cover;
  object-position: center center;
  display: block;
  border: 1px solid rgba(232, 215, 174, 0.55);
}
/* Plates whose subject sits high in the frame. */
.plate__img--top { object-position: center 12%; }

.plate__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 44px 16px 14px;
  background: linear-gradient(180deg, rgba(36, 26, 19, 0) 0%, rgba(36, 26, 19, 0.8) 100%);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.32;
  color: var(--pw-ivory);
  text-wrap: pretty;
}

.gallery__fade {
  position: absolute;
  top: 0;
  width: clamp(50px, 12vw, 140px);
  height: 100%;
  pointer-events: none;
}
.gallery__fade--start {
  left: 0;
  background: linear-gradient(90deg, var(--pw-blush) 0%, rgba(248, 241, 229, 0) 100%);
}
.gallery__fade--end {
  right: 0;
  background: linear-gradient(270deg, var(--pw-blush) 0%, rgba(248, 241, 229, 0) 100%);
}

.gallery__also {
  max-width: var(--measure);
  margin: clamp(46px, 6vw, 72px) auto 0;
  padding: clamp(38px, 5vw, 56px) var(--gutter) 0;
  border-top: 1px solid var(--rule-hair);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(36px, 5vw, 70px);
  align-items: start;
}
.taglist {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
}
.tag {
  display: inline-block;
  padding: 13px 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--rule-rose);
  border-radius: 999px;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--pw-rosewood);
}

/* Someone who has asked their device not to animate should not
   simply be left with a frozen half-picture: the strip becomes an
   ordinary horizontal scroller, and the duplicate run — which
   exists only to make the loop seamless — is dropped so there are
   28 plates to scroll rather than 56.  overflow-y is pinned to
   hidden because `overflow-x: auto` alone computes the other axis
   to auto too, which can raise a stray vertical scrollbar. */
@media (prefers-reduced-motion: reduce) {
  .gallery__strip {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .gallery__track {
    animation: none;
    will-change: auto;
  }
  .gallery__track > .plate[aria-hidden="true"] { display: none; }
  .card { transition: box-shadow 260ms ease; }
  .card:hover,
  .card:focus-within { transform: none; }
}

/* ============================================================
   12  Course format
   ============================================================ */
.format__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(44px, 6vw, 76px);
}
.spec {
  display: grid;
  grid-template-columns: minmax(96px, 130px) 1fr;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid var(--rule-soft);
  align-items: baseline;
}
.spec__label {
  font-size: 10px;
  letter-spacing: var(--track-label);
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--taupe-ink);
}
.spec__value {
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--fg-2);
}

.includes {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.inc {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 14px;
  align-items: baseline;
}
.inc__mark {
  font-family: var(--font-symbol);
  font-size: 12px;
  color: var(--champagne-ink);
}
.inc__text {
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--fg-2);
  text-wrap: pretty;
}

.note {
  margin-top: 30px;
  padding: 24px 26px;
  background: var(--pw-pearl);
  border: 1px solid var(--rule-hair);
  border-radius: 14px;
}
.note p {
  font-size: 15px;
  line-height: 1.68;
  color: var(--pw-mauve);
  margin: 0;
  text-wrap: pretty;
}

/* ============================================================
   13  Booking
   ============================================================ */
.booking__panel {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--grad-rosewood);
  isolation: isolate;
}
.booking__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
  z-index: -1;
}
.booking__inner {
  position: relative;
  padding: clamp(38px, 6vw, 84px) clamp(24px, 5vw, 70px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(38px, 5vw, 70px);
  align-items: center;
}
.price {
  border: 1px solid rgba(232, 215, 174, 0.3);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(46, 33, 25, 0.42);
  padding: clamp(26px, 4vw, 38px) clamp(22px, 3.4vw, 34px);
}
.price__label {
  font-size: 10px;
  letter-spacing: var(--track-btn);
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--pw-gold-pale);
  margin-bottom: 14px;
}
.price__row {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.price__figure {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 76px);
  line-height: 1;
  color: var(--pw-ivory);
}
.price__rule {
  height: 1px;
  background: rgba(232, 215, 174, 0.28);
  margin: 24px 0 20px;
}
.price__note {
  font-size: 15px;
  line-height: 1.66;
  color: rgba(255, 250, 246, 0.78);
}
.booking__lede {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 250, 246, 0.82);
  margin-bottom: 34px;
  text-wrap: pretty;
}
.booking__meta {
  font-size: 13px;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: rgba(255, 250, 246, 0.62);
  margin-top: 20px;
}

/* ============================================================
   14  Footer
   ============================================================ */
.site-footer {
  background: var(--pw-plum);
  color: rgba(255, 250, 246, 0.7);
}
.site-footer__inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(52px, 7vw, 74px) var(--gutter) clamp(44px, 6vw, 60px);
  text-align: center;
}
.footer__seal {
  height: 76px;
  width: auto;
  margin: 0 auto 26px;
  display: block;
}
.footer__name {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--pw-ivory);
  margin-bottom: 10px;
}
.footer__motto {
  font-size: 10px;
  letter-spacing: var(--track-motto);
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--pw-gold-pale);
  margin-bottom: 34px;
}
.footer__contact {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 30px;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 40px;
  word-break: break-word;
}
.footer__sep {
  color: rgba(232, 215, 174, 0.4);
}
/* The footer links were the same colour as the phone number
   beside them, so nothing but a hover distinguished a link from
   plain text. They are underlined now. */
.footer__link {
  color: rgba(255, 250, 246, 0.7);
  text-decoration: underline;
  text-decoration-color: rgba(232, 215, 174, 0.45);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.footer__link:hover,
.footer__link:focus-visible {
  color: var(--pw-gold-pale);
  text-decoration-color: var(--pw-gold-pale);
}

/* ============================================================
   15  Print

   Paper wants ink on white, not a near-black hero.
   ============================================================ */
@media print {
  html, body { background: #FFFFFF; color: #000000; }
  .topbar,
  .skip-link,
  .gallery__strip,
  .hero__media,
  .hero__scrim,
  .band__media,
  .band__scrim,
  .booking__media,
  .ornament,
  .ornament__img--sm { display: none; }
  .hero,
  .band,
  .booking__panel,
  .site-footer { background: #FFFFFF; min-height: 0; }
  .hero__title,
  .title--booking,
  .band__quote p,
  .price__figure,
  .stat__value,
  .footer__name { color: #000000; }
  .hero__brand,
  .hero__kicker,
  .hero__lede,
  .booking__lede,
  .price__note,
  .booking__meta,
  .stat__label,
  .price__label,
  .footer__motto,
  .site-footer,
  .footer__link { color: #333333; }
  .btn { border: 1px solid #000000; color: #000000; background: none; }
  .card,
  .fit__card { box-shadow: none; break-inside: avoid; }
  .sec, .fit__grid, .band__inner, .site-footer__inner { padding-block: 18px; }
}
