/* Pamela B. Lucas — site styles
   Tokens → base → chrome (header, awning, footer) → components → pages → utilities */

/* ---------- Tokens ---------- */
:root {
  --canvas: #fffbfc;
  --surface: #f7ecfa;
  --orchid: #d19de7;
  --orchid-soft: #e9d0f3;
  --orchid-deep: #9455b3;
  --teal: #8fd3cc;
  --teal-deep: #3f8f88;
  --blue: #9dbbe7;
  --blue-deep: #4f6fb3;
  --accent: #d60063;
  --accent-deep: #b73f6b;
  --ink: #423444;
  --ink-muted: #6f6275;
  --border: #e6d6ec;
  --success: #2e7d4f;
  --error: #b3261e;
  --white: #ffffff;

  --font-script: "Kaushan Script", "Brush Script MT", cursive;
  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Overpass", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --text-display: clamp(2.75rem, 2rem + 3.2vw, 4.5rem);
  --text-h1: clamp(2.25rem, 1.75rem + 2vw, 3.25rem);
  --text-h2: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
  --text-h3: 1.375rem;
  --text-script-lg: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  --text-body: 1.0625rem;
  --text-small: 0.9375rem;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6rem;

  --radius-sm: 6px;
  --radius-md: 12px;
  --gutter: 1rem;
  --max: 72rem;
  --measure: 64ch;
  --stripe: 44px;
  --focus: 0 0 0 2px var(--canvas), 0 0 0 4px var(--accent-deep);
}

@media (min-width: 40em) {
  :root { --gutter: 1.5rem; }
}
@media (min-width: 64em) {
  :root { --gutter: 2.5rem; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-body);
  line-height: 1.55;
  overflow-x: hidden;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 var(--space-4);
  letter-spacing: -0.005em;
  text-wrap: balance;
}
h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }

p { margin: 0 0 var(--space-4); max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.15em;
  transition: color 150ms ease;
}
a:hover { color: var(--accent-deep); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 3px; }

.script {
  font-family: var(--font-script);
  font-weight: 400;
  line-height: 1.15;
}

.lede { font-size: 1.1875rem; }
.sep { margin-inline: 0.2em; }
.muted { color: var(--ink-muted); }
.small { font-size: var(--text-small); }

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

.skip-link {
  position: absolute; left: var(--gutter); top: -4rem;
  background: var(--accent); color: var(--white);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  z-index: 100; text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: var(--space-3); color: var(--white); }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 48rem; }

.section { padding-block: var(--space-8); }
.awning-wrap + main > .section:first-child { padding-top: var(--space-7); }
.section--tight { padding-block: var(--space-7); }
.section--surface { background: var(--surface); }
.section--orchid { background: var(--orchid); }

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

/* ---------- Awning ----------
   Watercolour stripe image: public/assets/images/awning.png (tile of 8 stripes, transparent below the scallops).
   Width of one stripe on screen is --stripe; the tile is 1336x500 for 8 stripes, so height = 500/1336 * 8 * --stripe. */
.awning {
  height: calc(var(--stripe) * 2.994);
  background: url("/assets/images/awning.png") repeat-x top center / calc(var(--stripe) * 8) auto;
}
.awning-wrap { position: relative; z-index: 1; }

}

.stripe-divider {
  height: 14px;
  background: repeating-linear-gradient(
    90deg,
    var(--orchid) 0 var(--stripe),
    var(--canvas) var(--stripe) calc(var(--stripe) * 2)
  );
}
.section--surface + .stripe-divider,
.stripe-divider.on-surface {
  background: repeating-linear-gradient(90deg, var(--orchid) 0 var(--stripe), var(--surface) var(--stripe) calc(var(--stripe) * 2));
}

@media (max-width: 37.5em) {
  :root { --stripe: 32px; }
}

/* ---------- Header ---------- */
.site-header {
  background: var(--canvas);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 20;
}
@media (min-width: 56.25em) {
  .site-header { position: sticky; top: 0; }
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 4.25rem;
}
.wordmark {
  font-family: var(--font-script);
  font-size: 1.75rem;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  padding-block: var(--space-2);
}
.wordmark:hover { color: var(--accent); }

.nav { display: none; }
.nav__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: var(--space-5);
}
.nav__link {
  display: inline-block;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  padding: var(--space-2) 0;
  border-bottom: 2px solid transparent;
  transition: border-color 150ms ease, color 150ms ease;
}
.nav__link:hover { color: var(--accent); }
.nav__link[aria-current="page"] { border-bottom-color: var(--ink); }

.menu-button {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font: inherit; font-weight: 700;
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 999px;
  padding: var(--space-2) var(--space-4);
  min-height: 44px;
  cursor: pointer;
}
.menu-button[aria-expanded="true"] { background: var(--ink); color: var(--canvas); }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.mobile-menu[data-open="true"] { display: block; }
.mobile-menu__list {
  list-style: none; margin: 0; padding: var(--space-3) 0;
}
.mobile-menu__list a {
  display: block;
  padding: var(--space-3) var(--gutter);
  color: var(--ink); text-decoration: none; font-weight: 700;
  font-size: 1.125rem;
}
.mobile-menu__list a[aria-current="page"] { color: var(--accent); }
.mobile-menu__cta { padding: var(--space-3) var(--gutter) var(--space-5); }

@media (min-width: 56.25em) {
  .nav { display: block; }
  .menu-button, .mobile-menu { display: none !important; }
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font: inherit; font-weight: 700; font-size: 1rem;
  text-decoration: none; text-align: center;
  padding: 0.75rem 1.5rem;
  min-height: 44px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 100ms ease;
}
.button:active { transform: translateY(1px); }
.button--primary { background: var(--accent); color: var(--white); border-color: var(--accent); }
.button--primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--white); }
.button--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.button--outline:hover { background: var(--ink); color: var(--canvas); }
.button--light { background: var(--white); color: var(--ink); border-color: var(--white); }
.button--light:hover { background: var(--surface); color: var(--ink); }
.button[disabled], .button[aria-disabled="true"] {
  background: var(--ink-muted); border-color: var(--ink-muted); color: var(--white);
  cursor: not-allowed;
}
.button--sm { padding: 0.5rem 1rem; min-height: 40px; font-size: var(--text-small); }

.text-link {
  font-weight: 700;
  display: inline-flex; align-items: center; gap: var(--space-1);
}

/* ---------- Featured book / book layout ---------- */
/* Home page: impressionist café storefront painted in Krita (design/cafe-storefront.kra, 2400×1200, site palette) behind the featured book.
   Starts under the awning; a light page-colour veil keeps the cover and title readable. */
.feature-stage {
  position: relative;
  isolation: isolate;
  /* The painting's shop windows start at its top edge, so anchoring it to the top puts the glass
     directly under the site awning; cover fills the whole section at every width. */
  background: var(--canvas) url("/assets/images/cafe-storefront.jpg") center top / cover no-repeat;
}
/* Pull the painting up under the awning so the scallops hang over the café scene. */
.awning-wrap + main > .feature-stage:first-child {
  margin-top: calc(var(--stripe) * -2.994);
  padding-top: calc(var(--stripe) * 2.994 + var(--space-7));
}
@supports (background-image: url("a.webp")) {
  .feature-stage { background-image: url("/assets/images/cafe-storefront.webp"); }
}
.feature-stage::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(255, 251, 252, 0.1), rgba(255, 251, 252, 0.25) 40%, rgba(255, 251, 252, 0.3));
}

.book-feature {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}
.book-feature__cover { justify-self: center; width: 100%; max-width: 340px; }
/* Soft cream glow behind the text so it stays readable over the painting. */
.feature-stage .book-feature > div:last-child { position: relative; }
.feature-stage .book-feature > div:last-child::before {
  content: "";
  position: absolute; inset: -3rem -4rem; z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 251, 252, 0.82), rgba(255, 251, 252, 0.6) 65%, rgba(255, 251, 252, 0));
}

@media (min-width: 48em) { .book-feature__cover { justify-self: start; } }
.book-feature__status { font-size: var(--text-script-lg); color: var(--accent); margin: 0 0 var(--space-1); }
.book-feature__title {
  font-style: italic;
  font-weight: 700;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  font-size: clamp(2.75rem, 2rem + 3vw, 4.25rem);
  line-height: 1.02;
  color: var(--accent);
  margin-bottom: var(--space-3);
  text-wrap: pretty;
}
.book-feature .cover {
  box-shadow: -26px 28px 30px -6px rgba(66, 52, 68, 0.38);
  border-radius: 3px;
}
.book-feature .cover:hover { box-shadow: -26px 28px 30px -6px rgba(66, 52, 68, 0.38); }
.series-row__title, .book-list__item h2 { text-wrap: pretty; }
.book-feature__series { color: var(--ink-muted); font-weight: 700; margin-bottom: var(--space-4); }
.feature-stage .book-feature__series { color: var(--ink); } /* full ink over the painting for contrast */
.book-feature__actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4);
  margin-top: var(--space-4);
}
.book-feature__note a { color: var(--ink); }

/* decorated button: flourish perched on a rounded button, as on the reference site */
.fancy-cta { display: inline-flex; flex-direction: column; align-items: center; }
.fancy-cta .flourish { width: 230px; height: 46px; color: var(--accent); margin-bottom: -6px; stroke-width: 2.2; }
.button--fancy {
  min-width: 230px;
  padding: 0.9rem 2rem;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.9375rem;
}
.book-feature__note { margin-top: var(--space-2); }
@media (min-width: 48em) {
  .book-feature { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: var(--space-8); }
}

.cover {
  --cover-color: var(--orchid);
  --cover-deep: var(--orchid-deep);
  position: relative;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 938 / 1500;
  box-shadow: 8px 8px 0 var(--cover-deep);
  background: var(--orchid-soft);
  border-radius: 2px;
  overflow: hidden;
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover--lg { max-width: 340px; }
.cover-credit { margin-top: var(--space-4); text-align: center; }
.cover--sm { max-width: 190px; box-shadow: 5px 5px 0 var(--cover-deep); }
.cover--teal { --cover-color: var(--teal); --cover-deep: var(--teal-deep); }
.cover--blue { --cover-color: var(--blue); --cover-deep: var(--blue-deep); }
.cover--placeholder {
  background: var(--cover-color);
  color: var(--ink);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  padding: 12% 10%;
  border: 1px solid var(--cover-deep);
}
.cover--placeholder .cover__series { font-weight: 700; font-size: clamp(0.55rem, 4.2cqw, 0.85rem); letter-spacing: 0.02em; margin-bottom: 10%; }
.cover--placeholder .cover__title { font-family: var(--font-script); font-size: clamp(1rem, 8.5cqw, 2rem); line-height: 1.1; margin-bottom: 8%; }
.cover--placeholder .cover__meta { font-weight: 700; font-size: clamp(0.6rem, 4.5cqw, 0.9rem); }
.cover--placeholder .cover__doodle { width: 28%; height: auto; margin-top: 10%; color: var(--ink); opacity: 0.7; }
.cover--placeholder .cover__author { position: absolute; bottom: 7%; left: 0; right: 0; font-weight: 700; font-size: clamp(0.55rem, 4cqw, 0.75rem); }
.cover { container-type: inline-size; }

/* ---------- Intro (Hi, I'm Pamela) ---------- */
.intro {
  background: var(--orchid);
  padding-block: var(--space-8);
}
.intro__grid {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}
.intro__card {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}
.intro__card h1, .intro__card h2 { margin-bottom: var(--space-4); }
.intro__card .button { margin-top: var(--space-4); }

.polaroids {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  padding-block: var(--space-4);
}
.polaroid {
  background: var(--white);
  padding: 10px 10px 42px;
  box-shadow: 0 10px 24px rgba(66, 52, 68, 0.18);
  border-radius: 2px;
}
.polaroid__frame {
  aspect-ratio: 4 / 5;
  background: var(--orchid-soft);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.polaroid__frame img { width: 100%; height: 100%; object-fit: cover; }
.polaroid__frame--square { aspect-ratio: 1; }
.polaroids--single { grid-template-columns: 1fr; justify-items: center; }
.polaroids--single .polaroid { width: min(100%, 280px); transform: rotate(-3deg); }
.polaroid--a { transform: rotate(-4deg); }
.polaroid--b { transform: rotate(3deg); margin-top: var(--space-6); }
@media (min-width: 56.25em) {
  .intro__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-8); }
  .polaroids { padding-inline: var(--space-4); }
}
@media (prefers-reduced-motion: no-preference) {
  .polaroid { transition: transform 200ms ease; }
  .polaroid:hover { transform: rotate(0deg) scale(1.02); }
}

/* ---------- Series row ---------- */
.series-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6) var(--space-6);
  list-style: none; margin: 0; padding: 0;
  overflow-x: clip; /* the 3D cover's shadow must not widen the page on phones */
}
.series-row__item { text-align: center; width: 240px; }
.series-row__item--3d { width: 280px; }
.cover-3d { position: relative; height: calc(220px * 1500 / 938); }
.cover-3d img { position: absolute; left: 8%; bottom: 0; width: 107%; max-width: none; height: auto; transition: transform 0.2s ease; }
.series-row__item a.cover-link:hover .cover-3d img { transform: translateY(-4px); }
.series-row__item a.cover-link:focus-visible .cover-3d { box-shadow: var(--focus); }
.series-row__item .cover { margin-inline: auto; max-width: 220px; }
.series-row__item a.cover-link { display: block; text-decoration: none; color: inherit; }
.series-row__item a.cover-link:hover .cover { box-shadow: 10px 10px 0 var(--accent); }
.series-row__item a.cover-link:focus-visible { box-shadow: none; }
.series-row__item a.cover-link:focus-visible .cover { box-shadow: var(--focus); }
.series-row__title { font-family: var(--font-heading); font-weight: 600; font-size: 1.125rem; margin: var(--space-4) 0 var(--space-1); }
.series-row__status { color: var(--ink-muted); font-weight: 700; font-size: var(--text-small); margin: 0; }
.series-row__status--live { color: var(--accent); }
.section-heading { text-align: center; margin-bottom: var(--space-6); }
.section-heading p { margin-inline: auto; }
.section-cta { text-align: center; margin-top: var(--space-7); max-width: none; }

/* ---------- Book list (books page) ---------- */
.book-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-8); }
.book-list__item { display: grid; gap: var(--space-5); align-items: start; }
.book-list__item .cover { justify-self: center; max-width: 220px; }
.book-list__series { color: var(--ink-muted); font-weight: 700; margin-bottom: var(--space-3); }
.book-list__live { color: var(--accent); }
.book-list__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); margin-top: var(--space-4); }
@media (min-width: 40em) {
  .book-list__item { grid-template-columns: 220px minmax(0, 1fr); gap: var(--space-7); }
}

/* ---------- Book page ---------- */
.back-link { display: inline-flex; align-items: center; gap: var(--space-1); font-weight: 700; margin-bottom: var(--space-6); }
.book-meta { color: var(--ink-muted); font-size: var(--text-small); font-weight: 700; margin-bottom: var(--space-5); }
.book-blurb { max-width: var(--measure); }
.book-blurb p { margin-bottom: var(--space-4); }
.blurb-opener {
  background: var(--surface);
  border-left: 4px solid var(--orchid);
  padding: var(--space-4) var(--space-5);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: var(--space-5);
}
.blurb-opener p:last-child { margin-bottom: 0; }
.cookie { display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -0.15em; margin-inline: 0.1em; }
.tropes { margin-top: var(--space-5); font-weight: 700; max-width: var(--measure); }
.tropes span { color: var(--ink-muted); font-weight: 400; }
.tropes-list { display: inline; list-style: none; margin: 0; padding: 0; }
.tropes-list li { display: inline; }
.tropes-list li:not(:last-child)::after { content: " · "; color: var(--ink-muted); }
.book-page { padding-block: var(--space-7) var(--space-8); }
.book-page .book-feature { align-items: start; }

/* ---------- Cover strip (about page) ---------- */
.cover-strip {
  display: flex; gap: var(--space-5); justify-content: center; flex-wrap: wrap;
  list-style: none; margin: 0; padding: 0;
}
.cover-strip li { width: 160px; }
.cover-strip .cover { max-width: 160px; box-shadow: 5px 5px 0 var(--cover-deep); }
.cover-strip a { display: block; color: inherit; text-decoration: none; }
.cover-strip a:hover .cover { box-shadow: 7px 7px 0 var(--accent); }
.cover-strip a:focus-visible { box-shadow: none; }
.cover-strip a:focus-visible .cover { box-shadow: var(--focus); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; gap: var(--space-7); }
.dm-buttons { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.dm-buttons .button { display: inline-flex; align-items: center; gap: var(--space-2); }
.dm-handle { margin-top: var(--space-3); color: var(--ink-muted); }
/* "Follow for news" block on the coming-soon book pages */
.follow-news { background: var(--surface); border-radius: var(--radius-md); padding: var(--space-5); margin-top: var(--space-6); }
.follow-news h3 { font-size: var(--text-h3); margin-top: 0; }
.follow-news .dm-buttons { margin-top: var(--space-4); }
.contact-aside .social-row { justify-content: flex-start; margin-top: var(--space-4); }
.contact-aside h2 { margin-bottom: var(--space-2); font-size: var(--text-h3); }
.contact-aside > h2:first-child { margin-top: 0.55rem; }
@media (min-width: 56.25em) {
  .contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-8); }
}

/* ---------- Social ---------- */
.social-row { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; list-style: none; margin: 0; padding: 0; }
.social-row a {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 44px; padding: var(--space-2) var(--space-3);
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: var(--text-small);
  border-radius: var(--radius-sm);
}
.social-row a:hover { color: var(--accent); background: var(--surface); }
.social-row .icon { width: 1.35rem; height: 1.35rem; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 0; border-top: 1px solid var(--border); }
.site-footer__brand { text-align: center; padding-block: var(--space-7) var(--space-5); }
.site-footer__brand .wordmark { font-size: clamp(2.25rem, 2rem + 2vw, 3.5rem); display: inline-block; }
.site-footer__tag { color: var(--ink-muted); margin: var(--space-2) auto 0; }
.site-footer__nav { background: var(--ink); color: var(--canvas); padding-block: var(--space-4); }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2) var(--space-5); }
.site-footer__nav a { color: inherit; text-decoration: none; font-weight: 700; padding: var(--space-2) 0; display: inline-block; }
.site-footer__nav a:hover { color: var(--orchid); }
.site-footer__social-row { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2) var(--space-4); }
.site-footer__social-row a { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-small); font-weight: 400; color: var(--orchid-soft); min-height: 44px; }
.site-footer__social-row a:hover { color: var(--white); }
.site-footer__social-row .icon { width: 1.2rem; height: 1.2rem; }
.site-footer__legal {
  border-top: 1px solid var(--border);
  padding-block: var(--space-4);
  font-size: var(--text-small);
  color: var(--ink-muted);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2) var(--space-5);
}
.site-footer__legal a { color: inherit; }

/* ---------- Prose / simple pages ---------- */
.prose h2 { font-size: 1.5rem; margin-top: var(--space-6); }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: var(--space-2); }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-block: var(--space-9); }
.notfound .script { font-size: var(--text-display); color: var(--accent); margin-bottom: var(--space-4); }
.notfound__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; margin-top: var(--space-5); }

/* ---------- Utilities ---------- */
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.center p { margin-inline: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* header CTA only on wide screens; mobile menu carries it */
.nav__cta { display: none; }
@media (min-width: 56.25em) { .nav__cta { display: inline-flex; } }
