/* ── Fonts, self-hosted (1 Dec 2026): Marcellus and Playfair (the text family with optical sizes, not Playfair Display), SIL OFL, latin and latin-ext subsets of the files Google Fonts served ── */
/* latin-ext */
@font-face {
  font-family: 'Marcellus';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/Marcellus-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Marcellus';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/Marcellus-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Playfair';
  font-style: italic;
  font-weight: 300 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/Playfair-italic-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Playfair';
  font-style: italic;
  font-weight: 300 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/Playfair-italic-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Playfair';
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/Playfair-roman-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Playfair';
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/Playfair-roman-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Noto Sans Medium (500), static, for menu items and footer links (3 Dec 2026, her word); SIL OFL, latin and latin-ext subsets of the files Google Fonts served */
/* latin-ext */
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/NotoSans-500-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/NotoSans-500-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Noto Sans SemiBold (600), static, for button labels (3 Dec 2026, her word); SIL OFL, latin and latin-ext subsets of the files Google Fonts served */
/* latin-ext */
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/NotoSans-600-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/NotoSans-600-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

:root {
  --cream:           #F4F2F1; /* Emma's light beige, back at her word (26 Nov); was #F5F2ED paper */
  --paper-grain:     none; /* paper texture off at her word (26 Nov, "the colour we had before we changed it to paper"): flat light beige. To bring paper back: python3 tools/paper-relief.py --plain assets/paper-white-patch.png --tone <cream> --quality 94 --out site/images/paper-grain.webp, then url("/images/paper-grain.webp") 0 0 / 402px 162px here */
  --cream-dark:      #DCD4C6;
  --white:           #FFFFFF;
  --bg:              #FAFAFA; /* her page background (30 Nov, her hex; was #FBFBFA) */
  --grey-light:      #E0E0E0; /* hairlines; neutral since 30 Nov (was warm #E4E0D8) */
  --grey-mid:        #606060; /* secondary text, 6.0:1 on --bg, 5.6 on --cream; neutral since 30 Nov (her "no brownish"; was #645F58) */
  --grey-dark:       #383838; /* neutral since 30 Nov (was #3A3835) */
  --black:           #191919; /* headings; neutral since 30 Nov (was warm #1A1917) */
  --ink:             #000000; /* her buttons and menu (26 Nov mock-up) */
  --text-body:       #222222; /* her hero text and logo (26 Nov mock-up) */
  --red:             #E21D2E; /* her darker red (1 Dec, her pick over #FF4246, which was 3.3:1), the site's one red since 30 Nov (her word; --red-dark #D22529, --red-pale and --error-red #C0392B retired): 4.5:1 on --bg, 4.2:1 on --cream (large text only there), 4.7:1 on white */
  --footer-bg:       var(--cream);
  --footer-text:     rgba(0,0,0,.7);
  --footer-border:   rgba(0,0,0,.1);
  --blue-focus-pale: #8EC5FF; /* the focus ring on dark backgrounds, the closing photo (1 Dec, her pick over white): 3.3:1 on the photo, 2.7:1 on its lightest patches */
  --blue-focus:      #4A90D9; /* light blue for an active form field (30 Nov) and every focus ring (1 Dec), her word: red reads as an error; 3.1:1 on --bg, enough for a focus ring (3:1) */
  --yellow:          #FFE266; /* order modal "Save 25%" badges (5 Dec, her word "yellow and green", as in her draft); --black text 13.7:1 */
  --green-pale:      #C4EBC1; /* order modal "Save on delivery" badge (5 Dec, her word); --black text on it */
  --green:           #2F9E44; /* order modal field ticks (5 Dec, her word); 3.45:1 on white, enough for an icon (3:1) */
  --green-dark:      #23803A; /* order modal "Total savings" text (6 Dec, her mock-up's green); 5.0:1 on white, as --green is too light for text */

  --ff-display: 'Marcellus', Georgia, serif;   /* her display font (30 Nov): large titles only (hero, section and page titles, eyebrows, closing banner) and, since 3 Dec, the footer's brand name and column titles; Regular only; smaller titles are Playfair (30 Nov); Playfair Display is not used anywhere */
  --lh-title:   1.02;      /* her Marcellus spec: line height 102% */
  --ls-title:   -0.03em;   /* her Marcellus spec: letter spacing -3% */
  --fs-section-title: clamp(1.75rem, 5vw, 2.5rem);   /* section titles in capitals, a step below the 48px hero (30 Nov, her word); 28px on phones */
  --eyebrow-gap: 1.375rem;   /* eyebrow to its title: her mock-up has 34px from the eyebrow letters to the headline capitals */
  --ff-body:    'Playfair', Georgia, serif;           /* everything else: Playfair's text family, optical sizes on (26 Nov, her pick; was Inter) */
  --ff-ui:      'Noto Sans', system-ui, sans-serif;   /* menu items and footer links (Medium 500), buttons (SemiBold 600) (3 Dec 2026, her word), and the order modal's form labels, hints, notes and errors (Medium 500, all 11px; labels and hints in grey; 5 Dec, her word) */
  --fs-menu:    0.875rem;    /* 14px: header menu and phone drawer links (3 Dec, her word) */
  --fs-button:  0.75rem;     /* 12px: every .btn (3 Dec, her word) */
  --fs-body:    1.1875rem;   /* 19px, her spec (26 Nov) */
  --lh-body:    1.55;        /* measured from her hero mock-up */
  --fs-small:   1rem;        /* small text, 16px (30 Nov): notes under content, FAQ answers; always in --grey-mid */

  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12);

  --radius-sm: 6px;
  --radius-btn: 8px;   /* her buttons (26 Nov) */
  --radius-md: 12px;
  --radius-lg: 20px;

  --transition: 240ms ease;
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  background: var(--bg);
  color: var(--black);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  touch-action: manipulation;
}

:focus-visible {
  outline: 2px solid var(--blue-focus);   /* light blue like the form field (1 Dec, her word); red reads as an error */
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Utilities ───────────────────────────────────────────── */
.container {
  width: min(1180px, 100%);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

/* Keeps a compound on one line ("year-long" in the hero, 4 Dec, her word) */
.nowrap { white-space: nowrap; }

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

.sr-only--focusable:focus {
  position: fixed;
  top: 1rem; left: 1rem;
  width: auto; height: auto;
  padding: .75rem 1.25rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  z-index: 9999;
  text-decoration: none;
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  height: 48px;
  padding: 0 1.25rem;
  border-radius: var(--radius-btn);
  font-family: var(--ff-ui);
  font-size: var(--fs-button);
  font-weight: 600;   /* Noto Sans SemiBold (3 Dec, her word; was Playfair 19px semi-bold) */
  text-transform: uppercase;   /* all caps (3 Dec, her word; the HTML stays sentence case, so screen readers read words) */
  letter-spacing: -.01em;      /* -1%, her Figma value (3 Dec, her word; was .05em) */
  line-height: 1;
  touch-action: manipulation;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--ink);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--black);
}

.nav__actions .btn,
.nav__drawer .btn {
  height: 48px;
}

@media (hover: hover) {
  .btn:hover { transform: translateY(-1px); }
  .btn-primary:hover { background: var(--grey-dark); box-shadow: var(--shadow-md); }
  .btn-outline:hover { background: var(--black); color: var(--white); }
}

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: relative;     /* scrolls away with the page (her word, 26 Nov); stays above the open drawer */
  z-index: 100;
  padding-block: 1.3125rem;   /* her header: the logo 21px from the top */
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav__logo { flex-shrink: 0; }
.nav__logo img { display: block; width: 160px; height: 48px; }   /* her logo, 160 x 48 */

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3.2vw, 2.5rem);   /* her 40px at 1280; tighter just above the burger */
  list-style: none;
}

.nav__links a {
  font-family: var(--ff-ui);
  font-size: var(--fs-menu);   /* Noto Sans Medium 14px, black (3 Dec, her word; was Playfair 18px) */
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  inset-block-end: -6px;
  inset-inline-start: 0;
  width: 0;
  height: 4px;
  background: var(--red);
  /* wavy line (3 Dec, her word; was a straight 1px line): an 8x4 wave tile as a mask, so the colour stays --red; still drawn in from the left.
     Inline as a data URI (6 Dec): Chrome blocks a mask file on a page opened from disk, which hid the line; the CSP allows img-src data: for it */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='4' viewBox='0 0 8 4'%3E%3Cpath d='M-4 2Q-2 4 0 2T4 2T8 2T12 2' fill='none' stroke='%23000' stroke-width='1.25'/%3E%3C/svg%3E") repeat-x 0 0 / 8px 4px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='4' viewBox='0 0 8 4'%3E%3Cpath d='M-4 2Q-2 4 0 2T4 2T8 2T12 2' fill='none' stroke='%23000' stroke-width='1.25'/%3E%3C/svg%3E") repeat-x 0 0 / 8px 4px;
  transition: width var(--transition);
}

@media (hover: hover) {
  .nav__links a:hover::after { width: 100%; }
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  cursor: pointer;
}

.nav__burger span {
  display: block;
  height: 1.5px;
  background: var(--black);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav__burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav__drawer {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--drawer-top, 90px);   /* set on opening to the menu's bottom edge (shared.js) */
  background: var(--bg);
  padding: 2rem 1.5rem;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 99;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}

.nav__drawer.open { transform: none; }

.nav__drawer .drawer-link {
  font-family: var(--ff-ui);
  font-size: var(--fs-menu);   /* the same as the header menu (3 Dec, her word; was Playfair 24px) */
  font-weight: 500;
  color: var(--black);
  padding-block: .75rem;
  border-bottom: 1px solid var(--grey-light);
  min-height: 48px;
  display: flex;
  align-items: center;
}

.nav__drawer .btn {
  margin-top: .5rem;
  justify-content: center;
  width: 100%;
}

.nav.drawer-open {
  box-shadow: 0 1px 0 var(--grey-light);
}

.nav__actions .btn { white-space: nowrap; }   /* the label never wraps in the header */

/* Just above the burger the four links ("Gift a story" since 5 Dec) and the button need tighter gaps to fit on one row. */
@media (min-width: 769px) and (max-width: 860px) {
  .nav__inner { gap: 1.5rem; }
  .nav__links { gap: 1rem; }
}

@media (max-width: 768px) {
  .nav__links, .nav__actions .btn { display: none; }
  .nav__burger { display: flex; }
  .nav__drawer { display: flex; visibility: hidden; }
  .nav__drawer.open { visibility: visible; }
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--footer-bg) var(--paper-grain);
  color: var(--footer-text);
  padding-block: clamp(2.5rem, 6vw, 3.5rem) 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--footer-border);
}

.footer__brand-name {
  font-family: var(--ff-display);   /* Marcellus 24px (3 Dec, her word; was Playfair) */
  font-size: 1.5rem;
  color: var(--black);
  margin-bottom: 0;   /* tagline closer (3 Dec, her word; was .75rem): its line spacing alone leaves the same gap as column title to first link */
}

.footer__col-title {
  font-family: var(--ff-display);   /* Marcellus 18px (3 Dec, her word; was Playfair 16px 500) */
  font-size: 1.125rem;
  font-weight: 400;                 /* Marcellus has one weight; 500 would be faked */
  color: var(--black);
  margin-bottom: .5rem;   /* closer to its links (3 Dec, her word; was 1.25rem): about twice the space between link rows */
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .375rem;        /* 6px + the 18px line = rows 24px apart (3 Dec, her word "try 24"; was 33px) */
  font-family: var(--ff-ui);   /* on the list too, so each row's line box is Noto's alone and the pitch stays exact */
  font-size: .75rem;   /* 12px, set on the list so each row's line box shrinks too (3 Dec, her word "try 12"; was 14px) */
  line-height: 1.5;    /* 18px line; the 24px pitch meets the 24px target-spacing minimum exactly */
}

.footer__links a {
  font: inherit;
  font-family: var(--ff-ui);   /* Noto Sans Medium (3 Dec, her word; was Playfair 16px) */
  font-weight: 500;
  color: var(--footer-text);
  transition: color var(--transition);
  display: inline-block;   /* the link's box is the whole 18px line, not the 17px text (6 Dec, her word); the 24px pitch is unchanged */
  vertical-align: top;
}

@media (hover: hover) {
  .footer__links a:hover { color: var(--red); }   /* red on hover, like the site's other links (6 Dec, her word; was black) */
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  font-size: .875rem;
  color: rgba(0,0,0,.6);
}

@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer__grid > :first-child { grid-column: 1 / -1; padding-bottom: 1rem; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

/* ── Page layout ─────────────────────────────────────────── */
.page-hero {
  padding-block: clamp(3rem, 7vw, 5rem);
}

.page-hero__label {
  font-family: var(--ff-display);
  font-size: .9375rem;   /* her eyebrow (30 Nov mock-up): Marcellus 15px, capitals, no extra spacing */
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: var(--eyebrow-gap);
}

.page-hero__title {
  font-family: var(--ff-display);
  font-size: var(--fs-section-title);   /* the h2 size on support pages (1 Dec, her word) */
  font-weight: 400;
  line-height: var(--lh-title);
  color: var(--black);
  letter-spacing: var(--ls-title);
  text-transform: uppercase;   /* like the hero (1 Dec, her word); the source stays in sentence case */
}

.page-content {
  padding-block: clamp(3rem, 8vw, 6rem);
}

.page-hero + .page-content { padding-top: 1rem; }   /* the hero's own bottom padding is the gap */

/* Section numbering */
/* Back-link in the page hero (theme pages) */
.page-hero__back {
  display: inline-block;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

@media (hover: hover) {
  .page-hero__back:hover { border-bottom-color: currentColor; }
}

/* Discover more */
.discover {
  margin-top: clamp(3rem, 8vw, 5rem);
  padding-top: clamp(2rem, 5vw, 3rem);
  border-top: 1px solid var(--cream-dark);
}

.discover__title {
  font-family: var(--ff-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 400;
  color: var(--black);
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
}

/* Lead paragraph on a theme page */

/* Split hero on a theme page: text left, the article's own Ackermann plate right */
.page-hero__split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}

.page-hero__media {
  margin: 0;
  max-width: 420px;
  justify-self: start;
}

.page-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--cream-dark);
}

@media (min-width: 768px) {
  .page-hero__split {
    grid-template-columns: 1fr 1fr;
  }

  .page-hero__media {
    max-width: none;
    justify-self: stretch;
  }
}

/* Topic cards (Regency World) */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(.85rem, 1.8vw, 1.35rem);
  margin-bottom: clamp(3rem, 8vw, 5rem);
  list-style: none;
  padding: 0;
}

@media (max-width: 900px) {
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .topic-grid { grid-template-columns: 1fr; }
}

.topic-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 4 / 5;
  padding: clamp(1.1rem, 2.2vw, 1.6rem);
  border-radius: 14px;
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
  /* period-colour ground shows while the plate loads */
  background: linear-gradient(158deg, var(--card-a, #E9E1EF), var(--card-b, #D3C4DE));
  transition: transform var(--transition), box-shadow var(--transition);
}

/* Depth: soft highlight top-left, scrim along the bottom for text contrast */
.topic-card__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.topic-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.42) 26%, rgba(0,0,0,.06) 55%, transparent 75%);
}

.topic-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topic-card__title {
  font-family: var(--ff-display);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.18;
  color: var(--white);
  text-shadow: 0 1px 6px rgba(0,0,0,.45);
  text-wrap: balance;
}

.topic-card__arrow {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  display: grid;
  place-items: center;
  transition: transform var(--transition);
}

@media (hover: hover) {
  .topic-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
  .topic-card:hover .topic-card__arrow { transform: translateX(3px); }
  .topic-card:hover .topic-card__img { transform: scale(1.04); }
}

.topic-card:focus-visible {
  outline: 2px solid var(--blue-focus);
  outline-offset: 3px;
}

/* Regency palette: period colours, pale grounds with a deeper foot */
.topic-card--a { --card-a: #E9E1EF; --card-b: #D3C4DE; } /* pale lilac */
.topic-card--b { --card-a: #E2EBE0; --card-b: #C6D6C2; } /* eau de nil */
.topic-card--c { --card-a: #DEE9F1; --card-b: #C2D5E3; } /* Wedgwood blue */
.topic-card--d { --card-a: #F2EAD2; --card-b: #E0D3A8; } /* straw */
.topic-card--e { --card-a: #F0DFDC; --card-b: #DEC3BE; } /* dusty rose */
.topic-card--f { --card-a: #EFE3D8; --card-b: #DCC6B4; } /* pale terracotta */

/* References list */
.references {
  max-width: 72ch;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: clamp(1.5rem, 4vw, 2rem);
  border-top: 1px solid var(--cream-dark);
}

.references__title {
  font-family: var(--ff-display);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  color: var(--black);
  margin-bottom: 1rem;
}

.references__note {
  font-family: var(--ff-body);
  font-size: .8125rem;
  color: var(--grey-mid);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.references__list {
  font-family: var(--ff-body);
  font-size: .8125rem;
  line-height: 1.65;
  color: var(--grey-mid);
  padding-left: 1.35rem;
}

.references__list li { margin-bottom: .5rem; }

.regency-outro {
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: clamp(1.5rem, 4vw, 2rem);
  border-top: 1px solid var(--cream-dark);
  font-style: italic;
}

/* Inline source chip — small pill link after a claim, lets the reader check the source */
.source-chip {
  display: inline-flex;
  align-items: center;
  gap: .3em;
  margin-left: .4em;
  padding: .15em .7em;
  background: var(--cream-dark);
  border-radius: 999px;
  font-family: var(--ff-body);
  font-size: .72rem;
  font-weight: 500;
  font-style: normal;
  color: var(--grey-mid);
  text-decoration: none;
  white-space: nowrap;
  vertical-align: .1em;
  transition: color .2s ease, background-color .2s ease;
}

.source-chip svg { width: .75em; height: .75em; flex-shrink: 0; }

@media (hover: hover) {
  .source-chip:hover {
    color: var(--red);
    background: #E4DED4;
  }
}

.text-link {
  color: inherit;   /* the colour of the text around it (1 Dec, her word); the underline marks it */
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* An answer opened from the address (legal.html#cookies) stops a little below the top edge */
.accordion__item[id] { scroll-margin-top: 2rem; }

/* A button that reads as a text link: "cookie settings" in the privacy page's Cookies answer (4 Dec) */
.text-link--button {
  font: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

@media (hover: hover) {
  .text-link:hover { color: var(--red); }   /* red on hover, like the FAQ questions */
}

/* ── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  .nav__drawer { transition: none; }
}

/* ── Contact cards ────────────────────────────────────────── */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 860px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .contact-cards { grid-template-columns: 1fr; }
}

.contact-card {
  background: var(--cream) var(--paper-grain);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}

.contact-info__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  flex-shrink: 0;
  margin-bottom: .5rem;
}

.contact-info__label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .25rem;
}

.contact-info__value {
  font-size: .9375rem;
  color: var(--grey-dark);
  line-height: 1.6;
}

/* ── Accordion: FAQ, delivery & returns, privacy & terms ──── */
.accordion-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  column-gap: 4rem;
  margin-bottom: 4.5rem;
}

.accordion-group:last-child { margin-bottom: 0; }   /* the page's own bottom padding is the gap to the footer */

.accordion-group__title {
  font-family: var(--ff-body);
  font-size: 1.25rem;
  font-weight: 700;   /* bold (1 Dec, her pick over 600); Playfair is variable 300-800 */
  letter-spacing: -0.01em;   /* -1% (1 Dec, her word) */
  line-height: 1.33;   /* same line box as a question, so the two sit level */
  color: var(--black);
  padding-top: 1.75rem;
}

/* Minimal list to her reference (27 Nov): no fills, no icon, a hairline under each question */
.accordion__item {
  border-bottom: 1px solid var(--grey-light);
}

.accordion__trigger {
  display: block;
  width: 100%;
  padding: 1.75rem 0;
  text-align: left;
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.4;
  color: var(--black);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition);
}

.accordion__trigger:hover { color: var(--red); }

.accordion__item.open .accordion__trigger { color: var(--red); }   /* an open question stays red (1 Dec, her word) */

.accordion__item.open .accordion__trigger { padding-bottom: .625rem; }

.accordion__body {
  max-width: 60ch;
  max-height: 0;
  overflow: hidden;
  font-size: var(--fs-small);
  color: var(--grey-mid);
  line-height: var(--lh-body);
  opacity: 0;
}

.accordion__item.open .accordion__body {
  padding-bottom: 1.75rem;   /* shared.js opens each answer to its own height */
  opacity: 1;
}

/* Longer answers (delivery, privacy, terms): paragraphs, lists, links */
.accordion__body > * + * { margin-top: .75em; }
.accordion__body ul { padding-left: 1.25em; list-style: disc; }
.accordion__body li + li { margin-top: .35em; }
.accordion__body a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }   /* text colour (1 Dec, her word) */
@media (hover: hover) {
  .accordion__body a:hover { color: var(--red); }
}
.accordion__body strong { color: var(--black); font-weight: 600; }

@media (max-width: 768px) {
  .accordion-group { display: block; }
  .accordion-group__title { padding-top: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .accordion__trigger {
    transition: color var(--transition), padding-bottom 280ms ease;
  }
  .accordion__body {
    transition: max-height 280ms ease, padding-bottom 280ms ease, opacity 220ms ease;
  }
}

/* ── 404 error page ───────────────────────────────────────── */
.error-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(6rem, 14vw, 11rem) 2rem;
}

.error-page__eyebrow {
  font-family: var(--ff-display);
  font-size: clamp(4rem, 15vw, 8rem);
  font-weight: 400;
  color: var(--cream-dark);
  line-height: 1;
  margin-bottom: 2rem;
}

.error-page__title {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 400;
  color: var(--black);
  margin-bottom: 3rem;
  line-height: var(--lh-title);
  letter-spacing: var(--ls-title);
  text-wrap: balance;
}

.error-page__links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Animate-in (IntersectionObserver) ──────────────────── */
.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.animate-in.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .animate-in { opacity: 1; transform: none; transition: none; }
}

/* ── Animation delay utilities ───────────────────────────── */
.anim-delay-1 { transition-delay: .06s; }
.anim-delay-2 { transition-delay: .08s; }
.anim-delay-3 { transition-delay: .12s; }
.anim-delay-4 { transition-delay: .14s; }
.anim-delay-5 { transition-delay: .16s; }
.anim-delay-6 { transition-delay: .22s; }
.anim-delay-7 { transition-delay: .24s; }

/* ── Landing page section typography ────────────────────── */
.eyebrow {
  font-family: var(--ff-display);
  font-size: .9375rem;   /* her eyebrow (30 Nov mock-up): Marcellus 15px, capitals, no extra spacing */
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: var(--eyebrow-gap);
}

.section-title {
  font-family: var(--ff-display);
  font-size: var(--fs-section-title);
  font-weight: 400;
  line-height: var(--lh-title);
  color: var(--black);
  letter-spacing: var(--ls-title);
  text-transform: uppercase;   /* like the hero (30 Nov); the source stays in sentence case */
}

.section-subtitle {
  font-size: var(--fs-body);
  color: var(--grey-mid);
  max-width: 52ch;
  margin-top: .75rem;
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  background: var(--bg);
  padding-block-start: 2rem;   /* her mock-up: the envelope's top 122px from the page top at 1280, under the 90px menu */
  padding-block-end: 0;   /* Stories follows on the same --bg and supplies the shared gap (4 Dec: the at-a-glance band, cream, moved into the hero, her word) */
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.hero__content {
  max-width: 504px;   /* 452px in her Figma; widened 4 Dec (her word) so the 56px title fits on two lines */
  container-type: inline-size;   /* the headline sizes to this column */
}

/* Her split on wide screens (Figma, 26 Nov): a text column, the envelope takes the rest. 452px in her Figma,
   504px since 4 Dec so the 56px title fits (the envelope 500 at 1280, was 552). 5 Dec, her word ("option B"): the title keeps
   56px and the envelope is 591px, running past the content's right edge into the page margin, never closer than 10px to
   the window (10px at 1280, 87px at 1440). 100cqi is the hero's width, so the margin beside the content is
   (100cqi - 1180px) / 2 + 3rem, or the container's 3rem padding when the window is narrower. */
@media (min-width: 1100px) {
  .hero { container-type: inline-size; }
  .hero__grid { grid-template-columns: minmax(0, 504px) minmax(0, 1fr); align-items: start; }
  .hero__content { margin-top: 122px; }   /* fixed where centring had it on 5 Dec, 244px from the page top; not centred any more (her word) */
  .hero__image-wrap { width: min(591px, calc(100% + max(3rem, (100cqi - 1180px) / 2 + 3rem) - 10px)); }
}

.hero__title {
  font-family: var(--ff-display);
  font-size: min(3.5rem, 11.1cqi); /* 56px (4 Dec, her word; was her 48px); below that, sized to its own column so each line of "SCIENCE BY MAIL / FOR YOUNG MINDS" (1 Dec) stays whole: in Marcellus capitals at -3% the longest, FOR YOUNG MINDS, is 8.81em, so 100cqi / 9.0. Re-measure if the words, case or font change. */
  text-transform: uppercase;   /* her mock-up (30 Nov); the source stays in sentence case */
  font-weight: 400;
  line-height: var(--lh-title);
  color: var(--black);
  margin-bottom: 1.5rem;
  letter-spacing: var(--ls-title);
}

/* Her red words in headings (26 Nov). */
.accent { color: var(--red); }

.hero__sub {
  font-size: 1.3125rem;   /* 21px, her word (5 Dec; was body size, 19px) */
  color: var(--text-body);
  line-height: var(--lh-body);
}

.hero__sub + .hero__sub { margin-top: calc(var(--lh-body) * .5em); }   /* half a line, about 15px (her word, 26 Nov: "make the paragraph break smaller") */

.hero__actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .875rem;
  align-items: center;
}

.hero__facts {   /* the three ticked facts under the button, one under another (4 Dec, her word: moved from the cream band; the note that sat here went) */
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-body);   /* as big as the hero text and its colour (her word, 5 Dec; was --fs-small in --grey-dark, as the plan cards' ticks) */
  line-height: 1.4;
  color: var(--text-body);
}

.hero__facts li {   /* tick hung left of the fact, its lines aligned beside it */
  display: flex;
  align-items: flex-start;
}

.hero__facts-icon {   /* her drawn tick (images/icon-check.svg, #222 in the file, 5 Dec), sized with the facts' text (her word, 5 Dec; was Lucide's, 16px in --grey-mid) */
  flex-shrink: 0;
  width: 1em;   /* 19px, as the text */
  height: 1em;
  margin-top: .2em;   /* (1.4em line - 1em tick) / 2: centred on the first line */
  margin-right: .5rem;
}

/* Her envelope is a cut-out on transparency: no frame, no shadow. */
.hero__image-wrap { position: relative; }   /* the caption under the envelope, and its 3.5rem of room, went on 4 Dec (her word) */

.hero__image-wrap picture {
  display: block;
  line-height: 0;
  font-size: 0;
}

.hero__image {
  display: block;
  width: 100%;
  height: auto;
}

/* Her butterfly (26 Nov) on the envelope's left edge, measured from her mock-up as a share of
   the envelope, so it keeps its place at every width. tools/butterfly.py turns the drawing
   upright and cuts it into two wings and the body; the frame turns it back, and each wing
   tilts towards the viewer about the body line: "opening a little, closing". */
.butterfly {
  position: absolute;
  left: -4.74%;
  top: 54.51%;
  width: 28.97%;
  aspect-ratio: 636 / 620;   /* the drawing's box */
  pointer-events: none;
}

.butterfly__frame {
  position: absolute;
  left: .786%;               /* where the upright frame sits in the drawing's box (printed by the tool) */
  top: 17.258%;
  width: 114.623%;
  height: 78.548%;
  transform-origin: 50.48% 33.47%;   /* the head */
  transform: rotate(40.3deg);
  perspective: 700px;
  perspective-origin: 50.48% 50%;
}

.butterfly__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.butterfly__wing { transform-origin: 50.48% 50%; }   /* the body line */

@media (prefers-reduced-motion: no-preference) {
  /* beats from the first frame; index.js restarts the beat once the three pictures are decoded, so it is never hidden */
  .butterfly__wing--left  { animation: wing-left 5s ease-in-out infinite; }
  .butterfly__wing--right { animation: wing-right 5s ease-in-out infinite; }
}

/* A slow close and open, a smaller one, then rest. */
@keyframes wing-left {
  0%, 40%, 100% { transform: rotateY(0); }
  12% { transform: rotateY(50deg); }
  24% { transform: rotateY(4deg); }
  32% { transform: rotateY(30deg); }
}

@keyframes wing-right {
  0%, 40%, 100% { transform: rotateY(0); }
  12% { transform: rotateY(-50deg); }
  24% { transform: rotateY(-4deg); }
  32% { transform: rotateY(-30deg); }
}

@media (max-width: 768px) {
  .hero__grid { grid-template-columns: 1fr; }   /* phones: text first, then the envelope (her word, 26 Nov) */
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

/* ── HOW IT WORKS ────────────────────────────────────────── */
.how {
  background: var(--cream) var(--paper-grain);
  padding-block: clamp(5rem, 10vw, 8rem);
}

.how__header {
  text-align: center;
  margin-bottom: 3rem;
}

.how__steps {
  --how-track: 7rem;
  --how-pitch: 10rem;   /* 160px on wide screens, her word (5 Dec: "squeeze the steps", then "tighten the desktop spacing too"; was 13rem): the line scales with it; the steps alternate sides, so step 2 starts as step 1 ends */
  list-style: none;
  position: relative;
  display: grid;
  grid-template-columns: 1fr var(--how-track) 1fr;
  grid-template-rows: var(--how-pitch) var(--how-pitch) auto;   /* fixed pitch: the one drawn line runs over the rows; the last row fits step 3, so the button keeps its distance */
}

/* Her Figma drawings (steps-road.svg and steps-ellipse.svg; redrawn 5 Dec, her line now turning towards
   step 2), paths verbatim in one hidden sprite that both lines <use>: her dots are 182 units apart, so one
   unit is a 182nd of the pitch and the drawing scales with the rem layout. The viewBox is padded 6 units so
   the end dots are not clipped. */
.how__line {
  --how-unit: calc(var(--how-pitch) / 182);
  position: absolute;
  top: calc(1.5rem - 6.753 * var(--how-unit));   /* dot 1 (y 0.753, 6 units of padding) 1.5rem below the top of row 1 */
  left: calc(50% - 47.5 * var(--how-unit));      /* centred in the track */
  width: calc(95 * var(--how-unit));
  height: calc(376 * var(--how-unit));
  overflow: visible;
  color: var(--text-body);
  fill: currentColor;
}
.how__road-line {   /* her drawn stroke */
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;   /* 2px on screen at any scale, so it holds on phones where the line is squeezed */
}
.how__road-fill, #how-dot { fill: currentColor; }   /* her smoothed outline of the same line, and her dot */
.how__line--narrow { display: none; }

.how__step { grid-column: 3; padding-left: 1.5rem; }
.how__step:nth-of-type(1) { grid-row: 1; }
.how__step:nth-of-type(2) { grid-row: 2; grid-column: 1; justify-self: end; padding: 0 1.5rem 0 0; }
.how__step:nth-of-type(3) { grid-row: 3; }

.how__num {
  display: block;
  font-family: var(--ff-body);
  font-size: 3rem;
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: lining-nums;
  color: var(--black);
}

.how__title {
  margin-top: .875rem;
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  font-weight: 800;   /* extra bold (30 Nov, her word) */
  color: var(--black);
}

.how__text {
  margin-top: .375rem;
  max-width: 11em;
  color: var(--text-body);
  line-height: var(--lh-body);
}

.how__cta {
  text-align: center;
  margin-top: 3.375rem;   /* 54px below step 3's text, as before the steps were squeezed (her word, 5 Dec) */
}

@media (max-width: 768px) {
  .how__steps {
    --how-track: 3rem;
    --how-pitch: 11.5rem;   /* 184px: one column, so the 156px steps keep 28px between them (5 Dec) */
    grid-template-columns: 1fr;
  }
  .how__line { left: 0; width: calc(44 * var(--how-unit)); }   /* her line squeezed to 0.4 of its width (the dots stay round) */
  .how__line--wide { display: none; }
  .how__line--narrow { display: block; }
  .how__step,
  .how__step:nth-of-type(n) {
    grid-column: 1;
    justify-self: stretch;
    padding: 0 0 0 4.5rem;   /* track, then 1.5rem */
  }
}

/* ── GIFT ────────────────────────────────────────────────── */
/* Emma's layout, at her word (26 Nov): a centred title and line, then the image beside three
   cards, each a dark circle with a small icon, a title and a few lines; the button below.
   Sizes from her mock-up. Phones: the cards (text) before the image. */
.gift {
  padding-block: clamp(5rem, 10vw, 8rem);
  background: var(--bg);
}

.gift__header {
  text-align: center;
  margin-bottom: 3.5rem;   /* as the pricing title to its cards, now the line under the title is gone (30 Nov, her word) */
}

.gift__title {
  font-family: var(--ff-display);
  font-size: var(--fs-section-title);
  font-weight: 400;
  line-height: var(--lh-title);
  color: var(--black);
  letter-spacing: var(--ls-title);
  text-transform: uppercase;   /* like the hero (30 Nov); the source stays in sentence case */
}

.gift__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;   /* the envelope centred against the cards (30 Nov, her word; was top) */
}

.gift__image-wrap picture {
  display: block;
  line-height: 0;
  font-size: 0;
}

.gift__img {
  display: block;
  width: 100%;
  height: auto;
}

.gift__cards {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.gift__card {   /* icon and title share the first row, so the icon centres on the title however many lines it takes */
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);   /* her icons at 28px (5 Dec; 48px until then) */
  column-gap: 2rem;
  row-gap: .5rem;
}

.gift__card > div { display: contents; }

.gift__icon {   /* her hand-drawn icons, #222 strokes, no circle (4 Dec, her word) */
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  width: 28px;   /* her files are 28 x 28 since 5 Dec, served exactly as she exported them */
  height: 28px;
  margin-block: calc((1.5rem * 1.2 - 28px) / 2);   /* counts as one title line, so it never deepens the row */
}

.gift__card-title { grid-column: 2; grid-row: 1; }
.gift__card-text { grid-column: 2; grid-row: 2; }

.gift__card-title {
  font-family: var(--ff-display);   /* Marcellus, as her mock-up (4 Dec, her word) */
  font-size: 1.5rem;   /* her 24px */
  font-weight: 400;
  line-height: 1.2;
  color: var(--black);
  text-wrap: balance;   /* on phones "times" was left alone on the second line */
}

.gift__card-text { color: var(--text-body); }

.gift__cta {
  text-align: center;
  margin-top: 4rem;
}

@media (max-width: 768px) {
  .gift__grid { grid-template-columns: 1fr; }
  .gift__cards { order: -1; }
}

@media (max-width: 480px) {
  .gift__card { column-gap: 1.25rem; }
  .gift__cta .btn { width: 100%; justify-content: center; }   /* as the hero's button on phones */
}

/* ── THE STORIES (5 Dec, her mock-up) ─────────────────────── */
/* Three envelopes on --bg: Lovelace, Darwin, Newton; Darwin's is the one on sale (her #222, a rule, the series name and
   "Explore the story"), the other two are in her grey #8D8C8B with her asterisk and "Coming soon". Darwin comes first in
   the source, so phones (and screen readers) meet him first; on wide screens he takes the middle column. Stories is
   followed by Gift on the same --bg, so it has no bottom padding (the shared gap is Gift's). */
.stories {
  background: var(--bg);
  padding-block: clamp(5rem, 10vw, 8rem) 2rem;   /* Gift follows on the same colour and supplies the shared gap; 2rem more on top of it, her word (5 Dec): 160px from the button to Gift's eyebrow at 1280 */
}

.stories__header {
  text-align: center;
  margin-bottom: 2.25rem;
}

.stories__title {
  font-family: var(--ff-display);
  font-size: var(--fs-section-title);
  font-weight: 400;
  line-height: var(--lh-title);
  color: var(--black);
  letter-spacing: var(--ls-title);
  text-transform: uppercase;   /* the source stays in sentence case */
}

.stories__list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: .75rem;   /* her envelopes nearly touch: their transparent margins make the visible gap about 28px */
  align-items: start;
  max-width: 60rem;
  margin-inline: auto;
}
.stories__card { grid-row: 1; display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--text-body); }
.stories__card--now { grid-column: 2; position: relative; }

/* The whole Darwin card opens his story page (her word, 5 Dec): the link is his name, and its ::after
   covers the card; the button sits above it and goes to the same page. */
.stories__link { color: inherit; text-decoration: none; transition: color var(--transition); }
.stories__link::after { content: ""; position: absolute; inset: 0; }
.stories__link:focus-visible { outline: none; }
.stories__link:focus-visible::after { outline: 2px solid var(--blue-focus); outline-offset: 3px; border-radius: var(--radius-sm); }
@media (hover: hover) {
  .stories__card--now:hover .stories__link { color: var(--red); }   /* red on hover, as the site's links */
}
.stories__card--soon { color: #8D8C8B; }   /* her grey for the stories still to come (5 Dec) */
.stories__card--soon:nth-child(2) { grid-column: 1; }
.stories__card--soon:nth-child(3) { grid-column: 3; }

.stories__pic {   /* one box for all three: Lovelace's canvas is a little shorter, so each sits on the box's bottom edge and the captions line up */
  display: flex;
  align-items: flex-end;
  width: 100%;
  aspect-ratio: 1458 / 1152;
  line-height: 0;
  font-size: 0;
}
.stories__img { display: block; width: 100%; height: auto; }

.stories__name {
  margin-top: .5rem;
  font-family: var(--ff-display);
  font-size: 1.75rem;   /* 28px, her mock-up */
  font-weight: 400;
  line-height: 1.2;
  color: inherit;
}
.stories__from {
  display: block;
  font-family: var(--ff-body);
  font-size: var(--fs-small);   /* 16px, her mock-up (5 Dec; was body size in the old Coming soon cards) */
  line-height: 1.4;
}
.stories__card--now .stories__name::after {   /* her rule under Darwin's name */
  content: "";
  display: block;
  width: 72px;
  height: 1px;
  margin: .75rem auto .625rem;
  background: #737373;
}
.stories__subtitle { font-size: var(--fs-body); line-height: 1.4; color: inherit; }
.stories__btn { position: relative; z-index: 1; margin-top: 1.5rem; }   /* above the card link */
.stories__asterisk { width: 10px; height: 11px; margin-top: .5rem; fill: currentColor; }   /* her drawn asterisk (assets/asterisk.svg), path verbatim */
.stories__soon { margin-top: .75rem; font-size: var(--fs-small); font-style: italic; line-height: 1.4; color: inherit; }

@media (max-width: 768px) {   /* one column, Darwin first */
  .stories__list { grid-template-columns: minmax(0, 20rem); justify-content: center; row-gap: 3rem; }
  .stories__card, .stories__card--soon:nth-child(n) { grid-column: 1; grid-row: auto; }
}

/* ── PRICING ─────────────────────────────────────────────── */
.pricing {
  background: var(--bg);
  padding-block: clamp(5rem, 10vw, 8rem);
}

.pricing__header {
  text-align: center;
  /* absorbs the spacing previously provided by the removed .pricing__sub element */
  margin-bottom: 3.5rem;
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);   /* three plans since 3 Dec (Bundle added, her word) */
  gap: 1.5rem;
  align-items: stretch;
  max-width: 1092px;   /* each card keeps the 348px it had in the two-card grid */
  margin-inline: auto;
}

.pricing-card {
  background: var(--footer-bg) var(--paper-grain);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem 2.25rem;   /* 48px above the plan name, room under the Best value badge (30 Nov, her word; was 36px) */
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  transition: transform var(--transition);
  text-align: center;
  cursor: pointer;
}

.pricing-card__badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);   /* centred on the card's top edge at any text size */
  background: var(--black);
  color: var(--white);
  font-size: var(--fs-small);   /* same size as /mo, /year and the delivery note (30 Nov, her word) */
  font-weight: 500;
  letter-spacing: .03em;
  padding: .3rem 1rem;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-card__badge--red { background: var(--red); }   /* Bundle's Best value (4 Dec, her word, a try); white on --red is 4.7:1 */

.pricing-card__name {
  font-family: var(--ff-body);
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 700;   /* bold (30 Nov, her word; extra bold tried first) */
  line-height: 1.25;
  letter-spacing: -.02em;   /* -2%, as in Figma (30 Nov, her word) */
}

.pricing-card__desc {
  font-size: var(--fs-small);   /* 16px like / month and the ticks (4 Dec, her word; was 19px) */
  color: var(--grey-mid);
  line-height: 1.5;
  margin-top: -.75rem;   /* sits close under the plan name: 4px instead of the card's 16px gap (30 Nov, her word) */
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .2rem;
  margin-top: 1.25rem;   /* 36px under the subtitle, was 24px (30 Nov, her word) */
}

.pricing-card__amount {
  font-family: var(--ff-body);   /* Playfair, as the card's other figures (30 Nov, her word) */
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: lining-nums;   /* full-height figures, as the How it works numbers */
}
.pricing-card__amount--accent {
  color: var(--red);   /* the Full year price in her red (30 Nov, her word); 4.2:1 on the card (#E21D2E, 1 Dec), fine at this size, never for small text there */
}

.pricing-card__per {
  font-size: var(--fs-small);
  color: var(--grey-mid);
}

.pricing-card__price-label {
  font-size: var(--fs-body);   /* regular size (30 Nov, her word) */
  color: var(--grey-mid);
  margin-top: -.75rem;   /* 4px under the large monthly price (30 Nov, her word; was 12px) */
}

.pricing-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .625rem;
  flex: 1;
  justify-content: flex-start;   /* ticks start level across the cards, so they compare line by line; a card with fewer ticks keeps the space under them, before the button (4 Dec, her word; were set just above the button) */
  text-align: center;   /* centred like the rest of the card (30 Nov, her word; was left) */
  margin-top: clamp(1.1875rem, .625rem + 1vw, 1.375rem);   /* yearly line to ticks = subtitle to price, as the price grows (30 Nov, her word; was .5rem) */
  margin-bottom: .75rem;   /* 28px from the ticks to the button, was 16px (30 Nov, her word) */
}

.pricing-card__feature {
  display: block;   /* tick inline, so a line that wraps stays centred with the tick beside its first word (4 Dec) */
  font-size: var(--fs-small);   /* 16px, the size of / month and / year (4 Dec, her word; was 19px body) */
  color: var(--grey-dark);
}

.pricing-card__feature--saving { color: var(--red); }   /* the savings in red: Full year prepaid and Bundle (6 Dec, her word); 4.2:1 on the card, below 4.5:1 for 16px text, her choice; their ticks red too, images/icon-check-red.svg, fill = --red (her word, 6 Dec) */

.pricing-card__feature-icon {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: -.25em;   /* the mark centred on the lower-case letters, as at 16px */
  margin-right: .5625rem;   /* 12px from the drawn mark to the text: the SVG pads it 3px; her drawn tick (images/icon-check.svg, #222 in the file, 5 Dec; was Lucide's in --grey-mid) */
  width: 20px;   /* 20px, was 16px: a bigger tick, text unchanged (6 Dec, her word) */
  height: 20px;
}

.pricing-card__cta {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

@media (max-width: 1024px) {   /* three cards stack at 1024px and below: narrower, a tick leaves one word on a line (3-4 Dec) */
  .pricing__grid { grid-template-columns: 1fr; row-gap: 2.5rem; max-width: 560px; }
  .pricing-card__price-label--blank { display: none; }   /* stacked, nothing to line up with */   /* 40px between stacked cards: room above the Best value badge (30 Nov, her word; was 24px) */
}

@media (hover: hover) {
  .pricing-card:hover { transform: translateY(-4px); }   /* no shadow (30 Nov, her word): the card's top edge stays visible */
}

/* Her line under the plans (26 Nov). */
.pricing__note {
  margin-top: 2rem;
  text-align: center;
  font-size: var(--fs-body);   /* 19px, body size (3 Dec, her word; was 16px) */
  line-height: var(--lh-body);
  color: var(--grey-mid);
}   /* under the cards, as every plan has delivery costs (4 Dec, her word; on two cards for a few hours) */

/* ── CTA BANNER ──────────────────────────────────────────── */
/* Her mock-up (26 Nov): her chart photo at its own shape, a 40% black layer, the words centred over it.
   Sizes measured from the mock-up at 1440 wide. */
.cta-banner {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: max(22rem, 34.12vw);   /* the photo's own shape (2556 x 872); phones keep room for the words and crop the photo at the sides */
  overflow: hidden;
  background: var(--black);   /* until the photo loads */
  text-align: center;
}

.cta-banner__art,
.cta-banner__art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cta-banner__art { z-index: -1; }
.cta-banner__art img { object-fit: cover; }

.cta-banner__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .4);
}

/* A line break only on the smallest phones: below 366px the closing title's first line no longer fits,
   so it breaks after "At last," as well, into three even lines, not one with "reason" alone (4 Dec, her break) */
.br-narrow { display: none; }
@media (max-width: 365px) { .br-narrow { display: inline; } }

.cta-banner__title {
  margin: 0 0 clamp(2rem, 4vw, 3.5rem);
  font-family: var(--ff-display);
  font-size: var(--fs-section-title);
  font-weight: 400;
  line-height: var(--lh-title);
  color: var(--white);
  letter-spacing: var(--ls-title);
  text-transform: uppercase;   /* like the hero (30 Nov); the source stays in sentence case */
}

/* The light blue ring is lost on a dark background (1.8:1); pale blue shows (1 Dec, her pick). */
.cta-banner__btn:focus-visible { outline-color: var(--blue-focus-pale); }

/* ── MODAL ───────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden; /* keeps the closed modal out of the tab order */
  pointer-events: none;
  transition: opacity .25s ease, visibility 0s linear .25s;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .25s ease;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 6vw, 3rem);
  width: min(480px, 100%);
  position: relative;
  transform: translateY(16px) scale(.97);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.modal-backdrop.open .modal {
  transform: none;
}

.modal__close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-mid);
  transition: background var(--transition), color var(--transition);
}

@media (hover: hover) {
  .modal__close:hover { background: var(--grey-light); color: var(--black); }
}

.modal__title {
  font-family: var(--ff-body);
  font-size: 1.5rem;   /* the smaller-title size, as card titles */
  font-weight: 400;
  line-height: 1.2;
  text-wrap: balance;
  margin-bottom: 1.75rem;   /* the gap the line under it had (6 Dec, her word: that line is now the title) */
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.modal__input {
  width: 100%;
  padding: .8125rem 1rem;
  border: 1.5px solid var(--grey-light);
  border-radius: var(--radius-sm);
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  color: var(--black);
  background: var(--bg);   /* the page colour #FAFAFA (30 Nov, her word; was light beige) */
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.modal__input::placeholder { color: var(--grey-mid); }

.modal__input:focus {
  border-color: var(--blue-focus);
  box-shadow: 0 0 0 3px rgba(74,144,217,.25);
}

.modal__submit {
  width: 100%;
  justify-content: center;
  padding-block: .875rem;
}

.modal__thanks {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.modal__thanks-title {
  font-family: var(--ff-body);
  font-size: 1.5rem;
  font-weight: 400;
}

.modal__thanks-text {
  font-size: var(--fs-body);
  color: var(--grey-mid);
  text-wrap: balance;
}

.modal--submitted .modal__eyebrow,
.modal--submitted .modal__title,
.modal--submitted .modal__form { display: none; }

.modal--submitted .modal__thanks { display: flex; }

.modal__input--error {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(226,29,46,.12);   /* --red at 12% (retired #C0392B was here) */
}

.modal__input-error {
  font-size: var(--fs-small);
  color: var(--red);
  text-align: left;
  margin-top: -.25rem;
}

.modal__stories {
  border: 0;
  padding: 0;
  margin: 11px 0 15px;   /* the boxes 32px under the field and 36px over the button, as seen: each 36px row holds an 18px box, 9px either side, plus the form's 12px gap (6 Dec, her words: "too cramped", round numbers, then "too close to the input field") */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 1.25rem;
}

/* "Which stories should we tell you about?" off screen (6 Dec, her word); kept for screen readers, as it names the tick boxes */
.modal__stories-legend {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Tick boxes hidden for now (6 Dec, her word: "we don't need them right now"). Darwin stays ticked underneath, so every
   sign-up is sent as Darwin; the button sits 24px under the field. To bring them back, delete this block. */
.modal__stories { display: none; }
.modal__submit { margin-top: .75rem; }

.modal__check {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.25rem;   /* hit target well over 24px */
  font-size: var(--fs-body);
  color: var(--black);
  cursor: pointer;
}

.modal__check input {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--black);
  cursor: pointer;
}

.modal__honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.modal__privacy {
  font-size: var(--fs-small);
  color: var(--grey-mid);
  text-align: center;
  margin-top: .75rem;   /* 24px under the button with the form's gap (30 Nov, her word) */
}

.modal__error {
  font-size: var(--fs-small);
  color: var(--red);
  text-align: center;
}

/* ── Cookie consent banner ───────────────────────────────── */
.cookie-banner {
  position: fixed;
  inset-block-end: 0;
  inset-inline: 0;
  z-index: 150; /* above nav (100), below the waitlist modal (200) */
  background: var(--cream) var(--paper-grain);
  border-top: 1px solid var(--grey-light);
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
  padding: 1rem 1.5rem;
}

.cookie-banner__inner {
  max-width: 900px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-banner__text {
  flex: 1;
  font-size: .9rem;
  /* grey-dark, not grey-mid: small text on cream needs >= 4.5:1 contrast */
  color: var(--grey-dark);
  min-width: 200px;
}

/* Reject and Accept are the same button, same size (1 Dec, her word: the standard
   banner; EU guidance asks that refusing be as easy and as visible as accepting) */
.cookie-banner__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;   /* both buttons as wide as the wider label */
  gap: .75rem;
  flex-shrink: 0;
}

.cookie-banner__actions .btn { justify-content: center; }

.cookie-banner[hidden] { display: none; }

@media (max-width: 480px) {
  .cookie-banner__inner { flex-direction: column; align-items: flex-start; }
  .cookie-banner__actions { width: 100%; }
}

/* Hidden <svg> holding her drawings for <use> (How it works, the slideshow controls): takes no room, never a grid cell */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ── STORY PAGE: DARWIN (draft, 4 Dec) ── */
/* darwin.html only (body.story-page); nothing above is changed. Hero, plans and "What's inside" all sit on --bg,
   so they share one gap: an upper section has no bottom padding, the lower one keeps its top padding. */
.story-page .sp-hero {
  background: var(--bg);
  padding-block: 2rem 0;   /* as the home hero's top; no bottom padding, the plans follow on the same colour */
}

.sp-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 26rem) minmax(0, 1fr);   /* her mock-up: text about 40% (416px, wide enough for the 56px title), image the rest */
  column-gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;   /* text and image centred against each other (5 Dec, her word); the stacked phone layout below is unaffected */
}

.sp-hero__content {
  container-type: inline-size;   /* the title sizes to this column */
}

.sp-hero__title {
  font-family: var(--ff-display);
  font-size: min(3.5rem, 13.6cqi);   /* 56px as the home hero; below that sized to its column: the longest line, THE VOYAGE OF, is 7.22em in Marcellus capitals at -3%, so 100cqi / 7.35. Re-measure if the words change. */
  text-transform: uppercase;
  font-weight: 400;
  line-height: var(--lh-title);
  color: var(--black);
  margin-bottom: 1.5rem;
  letter-spacing: var(--ls-title);
}

/* "Beagle" in Playfair italic inside the story title (6 Dec, her word): the home Stories card and the story page's title */
.title-beagle {
  font-family: var(--ff-body);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}
.sp-hero__title .title-beagle {   /* her Figma (6 Dec): Light Italic in its own case, 68px in her 56px title, line height 102% (the title's), letter spacing -8% */
  font-size: 1.2143em;   /* 68 / 56, so it scales with the title on narrow screens */
  text-transform: none;
  font-weight: 300;
  letter-spacing: -0.08em;
}

.sp-hero__text {
  font-size: var(--fs-body);
  color: var(--text-body);
  line-height: var(--lh-body);
}
.sp-hero__text + .sp-hero__text { margin-top: calc(var(--lh-body) * .5em); }   /* half a line, as in the home hero; her sources line (5 Dec) */

.sp-hero__image-wrap {
  justify-self: end;
  width: 100%;   /* fills its column below 1100px */
}

/* As the home envelope (her word, 5 Dec): from 1100px the picture runs past the content's right edge into the
   page margin, never closer than 10px to the window: 679px at 1280 (its column 591 + 88), and 679px from there
   on, so it ends where the home envelope does at every width. 100cqi is the hero's width; the margin beside the
   content is (100cqi - 1180px) / 2 + 3rem, or the container's 3rem padding when the window is narrower. */
@media (min-width: 1100px) {
  .story-page .sp-hero { container-type: inline-size; }
  .sp-hero__grid { align-items: start; }
  .sp-hero__content { margin-top: 122px; }   /* starts where the home hero text does, 244px from the page top (her word, 5 Dec) */
  .sp-hero__image-wrap { justify-self: start; width: min(679px, calc(100% + max(3rem, (100cqi - 1180px) / 2 + 3rem) - 10px)); }
}

.sp-hero__image-wrap picture { display: block; line-height: 0; font-size: 0; }

.sp-hero__image {
  display: block;
  width: 100%;
  height: auto;
}

.story-page #plans { padding-block-end: 0; }   /* "What's inside" follows on the same colour */

.story-page .sp-inside {
  background: var(--bg);
  padding-block: clamp(5rem, 10vw, 8rem);
}

.sp-inside__header {
  text-align: center;
  margin-bottom: 3.5rem;   /* as the plans' title to its cards */
}

.sp-inside__figure {
  max-width: 1092px;   /* the width of the plan cards */
  margin-inline: auto;
}

.sp-inside__img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .sp-hero__grid { grid-template-columns: minmax(0, 1fr); row-gap: 2.5rem; }   /* text first, then the image */
  .sp-hero__image-wrap { justify-self: center; width: min(100%, 28rem); }
}

/* Her approved contents line under "Peek inside the envelope" (4 Dec). */
.sp-inside__text {
  max-width: 40rem;
  margin: 1.5rem auto 0;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-body);
}

/* ── Picture slideshow in "Peek inside the envelope" (4 Dec 2026): a scroll-snap row, so swiping is native; slideshow.js adds buttons, dots and arrow keys ── */
.sp-slides {
  max-width: 1092px;   /* the width of the plan cards */
  margin-inline: auto;
}

.sp-slides__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  aspect-ratio: 4096 / 2908;   /* one shape for both pictures (the taller), so nothing moves between slides */
  /* no border, background or rounded corners: the pictures sit straight on the page (her word, 5 Dec) */
  gap: 1.5rem;   /* 24px between the pictures, seen while they slide (her word, 5 Dec; 16px for a moment); slideshow.js steps by picture + gap */
  cursor: pointer;   /* a click on the picture shows the next one */
}
.sp-slides__track::-webkit-scrollbar { display: none; }
.sp-slides__track:focus-visible {
  outline: 2px solid var(--blue-focus);
  outline-offset: -4px;   /* inside, so the box never resizes */
}
@media (prefers-reduced-motion: no-preference) {
  .sp-slides__track { scroll-behavior: smooth; }
}

.sp-slides__slide {
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.sp-slides__slide picture { display: block; width: 100%; height: 100%; }
.sp-slides__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sp-slides__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  height: 44px;
  margin-top: 1.25rem;
}
.sp-slides:not([data-ready]) .sp-slides__controls { visibility: hidden; }

.sp-slides__btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  color: var(--text-body);   /* her drawn arrows are #222 (5 Dec) */
  cursor: pointer;
  border-radius: var(--radius-sm);   /* shapes the focus ring only: the arrows have no circle (her word, 4 Dec) */
  transition: color var(--transition);
}
.sp-slides__btn svg { width: 24px; height: 24px; fill: currentColor; }   /* her drawn chevrons (assets/chevron-*.svg, 5 Dec), paths verbatim */
@media (hover: hover) {
  .sp-slides__btn:hover { color: var(--black); }
}

.sp-slides__dots { display: flex; }
.sp-slides__dot {
  display: grid;
  place-items: center;
  width: 48px;
  height: 44px;
  cursor: pointer;
}
.sp-slides__dash {   /* her drawn dash (assets/dash.svg, 5 Dec), path verbatim; the current one red, the others her grey, all one size */
  width: 38px;
  height: 6px;
  fill: currentColor;
  color: #D0D0CF;   /* the grey in her file */
  transition: color var(--transition);
}
.sp-slides__dot[aria-current="true"] .sp-slides__dash { color: var(--red); }
.sp-slides__dot:focus-visible { border-radius: var(--radius-sm); }
