/* tokens.css */
/* Design tokens. Change the look of the whole site here. */

@font-face {
  font-family: "League Spartan";
  src: url("/assets/fonts/LeagueSpartan-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/SourceSerif4-Variable.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/SourceSerif4-Variable-Italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Brand palette (from the logo) */
  --color-cream: #FAF6EE;
  --color-paper: #EFE6D5;
  --color-paper-deep: #E4D6BC;
  --color-ink: #2B211B;
  --color-ink-muted: #6B5A4A;
  --color-lid: #D6784B;       /* decorative only: fails contrast for small text */
  --color-lid-deep: #9A4521;  /* buttons and links */
  --color-lid-deeper: #7A3517;
  --color-sleeve: #B38C62;
  --color-straw: #B97A56;
  --color-lemon: #FFF200;     /* sparingly; always with ink text */
  --color-leaf: #5B5420;
  --color-white: #FFFFFF;

  /* Semantic roles: components use these, not the raw palette */
  --color-bg: var(--color-cream);
  --color-surface: var(--color-white);
  --color-surface-alt: var(--color-paper);
  --color-text: var(--color-ink);
  --color-text-muted: var(--color-ink-muted);
  --color-link: var(--color-lid-deep);
  --color-link-hover: var(--color-lid-deeper);
  --color-accent: var(--color-lid);
  --color-highlight: var(--color-lemon);
  --color-border: var(--color-paper-deep);
  --color-focus: var(--color-lid-deep);

  /* Type */
  --font-display: "League Spartan", "Avenir Next", "Futura", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;

  /* Fluid type scale (~360px -> ~1280px viewport) */
  --step--1: clamp(0.875rem, 0.85rem + 0.1vw, 0.94rem);
  --step-0: clamp(1.06rem, 1.02rem + 0.2vw, 1.19rem);
  --step-1: clamp(1.25rem, 1.18rem + 0.35vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.36rem + 0.6vw, 1.95rem);
  --step-3: clamp(1.85rem, 1.6rem + 1.1vw, 2.6rem);
  --step-4: clamp(2.3rem, 1.85rem + 2vw, 3.6rem);
  --step-5: clamp(3rem, 2.1rem + 4vw, 5.6rem);

  --leading-tight: 1.1;
  --leading-snug: 1.3;
  --leading-body: 1.65;
  --tracking-display: -0.01em;
  --tracking-label: 0.08em;

  /* Spacing */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2rem;
  --space-xl: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  --space-2xl: clamp(3.5rem, 2.5rem + 4vw, 6rem);

  /* Shape and depth */
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;
  --radius-pill: 999px;
  --shadow-s: 0 1px 2px rgb(43 33 27 / 0.08);
  --shadow-m: 0 6px 24px -8px rgb(43 33 27 / 0.22);
  --border-width: 1px;

  /* Layout */
  --gutter: max(1rem, 4vw);
  --container: 72rem;
  --container-narrow: 46rem;
  --measure: 68ch;

  --transition: 160ms ease;
}

/* base.css */
/* Reset and element defaults. No classes here except a few global helpers. */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-l);
}

body {
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: var(--leading-body);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
h4 { font-size: var(--step-0); }

p, li, figcaption {
  text-wrap: pretty;
}

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

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

a {
  color: var(--color-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-link-hover);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--color-highlight);
  color: var(--color-ink);
}

/* Global helpers */
.skip-link {
  position: absolute;
  top: var(--space-2xs);
  left: var(--space-2xs);
  z-index: 100;
  padding: var(--space-2xs) var(--space-s);
  background: var(--color-ink);
  color: var(--color-cream);
  font-family: var(--font-display);
  border-radius: var(--radius-s);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
  color: var(--color-cream);
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* layout.css */
/* Layout primitives (l-*). Components handle their own internals. */

.l-container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.l-container--narrow {
  width: min(100% - 2 * var(--gutter), var(--container-narrow));
}

.l-stack > * + * {
  margin-block-start: var(--stack-space, var(--space-s));
}

.l-grid {
  display: grid;
  gap: var(--grid-gap, var(--space-l));
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--grid-min, 18rem)), 1fr));
}

/* components/badge.css */
/* .badge: small status label. Modifiers match game `status` values. */

.badge {
  display: inline-block;
  padding: 0.45em 0.85em 0.35em;
  border-radius: var(--radius-pill);
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: var(--tracking-label);
  line-height: 1;
  text-transform: uppercase;
}

.badge--kickstarter {
  background: var(--color-lemon);
  color: var(--color-ink);
}

.badge--available {
  background: var(--color-leaf);
  color: var(--color-cream);
}

.badge--in-development {
  background: var(--color-paper);
  color: var(--color-ink);
}

/* components/button.css */
/* .button: links and buttons that look like buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  min-height: 2.75rem;
  padding: 0.7em 1.4em 0.6em;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.button:hover {
  text-decoration: none;
}

.button:active {
  transform: translateY(1px);
}

.button--primary {
  background: var(--color-lid-deep);
  color: var(--color-white);
}

.button--primary:hover {
  background: var(--color-lid-deeper);
  color: var(--color-white);
}

.button--secondary {
  border-color: var(--color-ink);
  color: var(--color-ink);
  background: transparent;
}

.button--secondary:hover {
  background: var(--color-ink);
  color: var(--color-cream);
}

.button--ghost {
  padding-inline: 0.4em;
  color: var(--color-link);
  background: transparent;
}

.button--ghost:hover {
  color: var(--color-link-hover);
  text-decoration: underline;
}

.button--highlight {
  background: var(--color-lemon);
  color: var(--color-ink);
}

.button--highlight:hover {
  background: var(--color-white);
  color: var(--color-ink);
}

.button--large {
  min-height: 3.25rem;
  font-size: var(--step-0);
}

/* components/buy-links.css */
/* .buy-links: retailer buttons (Amazon, etc.) plus affiliate disclosure */

.buy-links {
  text-align: center;
}

.buy-links__title {
  font-size: var(--step-3);
}

.buy-links__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-s);
  margin-top: var(--space-m);
  padding: 0;
  list-style: none;
}

.buy-links__disclosure {
  max-width: 52ch;
  margin: var(--space-m) auto 0;
  font-size: var(--step--1);
  color: var(--color-text-muted);
}

/* components/contact-form.css */
/* .contact-form: retailer inquiry form */

.contact-form {
  margin-top: var(--space-xl);
  padding: var(--space-l);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-l);
  background: var(--color-surface);
  box-shadow: var(--shadow-s);
}

.contact-form__grid {
  display: grid;
  gap: var(--space-m);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.contact-form__actions {
  margin-top: var(--space-l);
}

/* components/cta-banner.css */
/* .cta-banner: the slim site-wide announcement above the header */

.cta-banner {
  background: var(--color-ink);
  color: var(--color-cream);
  font-family: var(--font-display);
  font-size: var(--step--1);
}

.cta-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-3xs) var(--space-s);
  padding-block: var(--space-2xs);
  text-align: center;
}

.cta-banner__link {
  color: var(--color-lemon);
  text-decoration: none;
  white-space: nowrap;
}

.cta-banner__link:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.cta-banner__link:focus-visible {
  outline-color: var(--color-lemon);
}

/* components/form.css */
/* .form__*: shared form field styles used by signup-form and contact-form */

.form__field {
  display: grid;
  gap: var(--space-3xs);
}

.form__field--full {
  grid-column: 1 / -1;
}

.form__label {
  font-family: var(--font-display);
  font-size: var(--step--1);
  letter-spacing: 0.02em;
}

.form__optional {
  color: var(--color-text-muted);
  font-family: var(--font-body);
  letter-spacing: 0;
}

.form__input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.6em 0.9em;
  border: 1.5px solid var(--color-sleeve);
  border-radius: var(--radius-s);
  background: var(--color-white);
  color: var(--color-ink);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form__input::placeholder {
  color: #8A7A6A;
}

.form__input:focus {
  outline: none;
  border-color: var(--color-lid-deep);
  box-shadow: 0 0 0 3px rgb(154 69 33 / 0.25);
}

.form__input--textarea {
  min-height: 9rem;
  resize: vertical;
}

/* Spam trap for bots: hidden from people and screen readers */
.form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* components/gallery.css */
/* .gallery: grid of game photos */

.gallery {
  display: grid;
  gap: var(--space-m);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  padding: 0;
  list-style: none;
}

.gallery__figure {
  height: 100%;
}

.gallery__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-m);
}

.gallery__caption {
  margin-top: var(--space-2xs);
  font-size: var(--step--1);
  color: var(--color-text-muted);
}

/* components/game-card.css */
/* .game-card: one game in the grid; the whole card is a link */

.game-card {
  container-type: inline-size;
}

.game-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-l);
  background: var(--color-surface);
  color: var(--color-text);
  text-decoration: none;
  box-shadow: var(--shadow-s);
  transition: transform var(--transition), box-shadow var(--transition);
}

.game-card__link:hover {
  color: var(--color-text);
  transform: translateY(-3px);
  box-shadow: var(--shadow-m);
}

.game-card__media {
  position: relative;
}

.game-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.game-card__badge {
  position: absolute;
  top: var(--space-s);
  left: var(--space-s);
}

.game-card__body {
  display: grid;
  gap: var(--space-2xs);
  padding: var(--space-m);
}

.game-card__title {
  font-size: var(--step-2);
}

.game-card__link:hover .game-card__title {
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.15em;
}

.game-card__tagline {
  color: var(--color-text-muted);
  line-height: var(--leading-snug);
}

.game-card__meta {
  margin-top: var(--space-2xs);
  font-family: var(--font-display);
  font-size: var(--step--1);
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
}

/* components/game-grid.css */
/* .game-grid: responsive grid of game cards */

.game-grid {
  display: grid;
  gap: var(--space-l);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
}

/* components/game-stats.css */
/* .game-stats: players / time / age strip */

.game-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-s) var(--space-xl);
  padding: var(--space-m) var(--space-l);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-l);
  background: var(--color-surface);
}

.game-stats__item {
  text-align: center;
}

.game-stats__label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.game-stats__value {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.2;
}

/* components/hero.css */
/* .hero: top-of-page call to action. --home uses the mascot, --game uses the game's hero photo. */

.hero {
  padding-block: var(--space-2xl);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 60rem) {
  .hero__inner {
    grid-template-columns: 1.1fr 1fr;
  }
}

.hero__content > * + * {
  margin-top: var(--space-m);
}

.hero__eyebrow {
  font-family: var(--font-display);
  font-size: var(--step--1);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.hero__title {
  font-size: var(--step-4);
}

.hero__title--display {
  font-size: var(--step-5);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

/* The lid-orange underline: decorative, so contrast rules don't apply */
.hero__title--display::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 0.4rem;
  margin-top: var(--space-m);
  border-radius: var(--radius-pill);
  background: var(--color-accent);
}

.hero__lead {
  max-width: 34ch;
  font-size: var(--step-2);
  line-height: var(--leading-snug);
  color: var(--color-text-muted);
}

.hero__callout {
  padding-top: var(--space-m);
}

/* Lemon "highlighter" behind the callout: the one pop of lemon per view */
.hero__callout-text {
  display: inline;
  font-family: var(--font-display);
  font-size: var(--step-1);
  padding: 0.05em 0.25em;
  background: linear-gradient(transparent 55%, var(--color-lemon) 55%);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  margin-top: var(--space-m);
}

.hero__media--logo {
  display: grid;
  place-items: center;
}

.hero__logo {
  width: clamp(10rem, 30vw, 22rem);
  filter: drop-shadow(0 18px 30px rgb(43 33 27 / 0.18));
}

.hero__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-m);
}

.hero--game {
  background: linear-gradient(180deg, var(--color-paper) 0%, var(--color-bg) 100%);
}

/* components/page-header.css */
/* .page-header: title block for simple pages and blog posts */

.page-header {
  margin-bottom: var(--space-xl);
}

.page-header__eyebrow {
  margin-bottom: var(--space-s);
  font-family: var(--font-display);
  font-size: var(--step--1);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.page-header__eyebrow a {
  text-decoration: none;
}

.page-header__title {
  font-size: var(--step-4);
}

.page-header__title::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 0.3rem;
  margin-top: var(--space-m);
  border-radius: var(--radius-pill);
  background: var(--color-accent);
}

.page-header__lead {
  margin-top: var(--space-m);
  font-size: var(--step-1);
  line-height: var(--leading-snug);
  color: var(--color-text-muted);
}

.page-header__meta {
  margin-top: var(--space-s);
  font-family: var(--font-display);
  font-size: var(--step--1);
  color: var(--color-text-muted);
}

.page-header__media {
  margin-bottom: var(--space-xl);
}

.page-header__media img {
  width: 100%;
  border-radius: var(--radius-l);
}

.page-header__back {
  margin-top: var(--space-xl);
  font-family: var(--font-display);
}

/* components/pager.css */
/* .pager: newer/older navigation on the blog index */

.pager {
  display: flex;
  justify-content: space-between;
  gap: var(--space-s);
  margin-top: var(--space-xl);
  padding-top: var(--space-m);
  border-top: var(--border-width) solid var(--color-border);
}

/* components/play-online.css */
/* .play-online: callout linking to a game's online implementation */

.play-online {
  position: relative;
  padding: var(--space-xl) var(--space-l);
  border-radius: var(--radius-l);
  background: var(--color-ink);
  color: var(--color-cream);
  text-align: center;
  overflow: hidden;
}

/* Decorative lid-orange bar across the top */
.play-online::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--color-accent);
}

.play-online__title {
  font-size: var(--step-3);
  color: var(--color-cream);
}

.play-online__blurb {
  max-width: 52ch;
  margin: var(--space-s) auto 0;
  color: var(--color-paper);
}

.play-online__actions {
  margin-top: var(--space-l);
}

.play-online :focus-visible {
  outline-color: var(--color-lemon);
}

/* components/post-card.css */
/* .post-card: blog post teaser */

.post-card {
  display: grid;
  gap: var(--space-s);
  align-content: start;
}

.post-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-m);
}

.post-card__body {
  display: grid;
  gap: var(--space-2xs);
}

.post-card__date {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.post-card__title {
  font-size: var(--step-2);
}

.post-card__link {
  color: var(--color-text);
  text-decoration: none;
}

.post-card__link:hover {
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 3px;
}

.post-card__summary {
  color: var(--color-text-muted);
}

/* components/post-list.css */
/* .post-list: stacked list (blog index) or --grid (home page) */

.post-list {
  display: grid;
  gap: var(--space-xl);
}

.post-list > .post-card + .post-card {
  padding-top: var(--space-xl);
  border-top: var(--border-width) solid var(--color-border);
}

.post-list--grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  gap: var(--space-l);
}

.post-list--grid > .post-card + .post-card {
  padding-top: 0;
  border-top: 0;
}

/* components/prose.css */
/* .prose: styles for rendered Markdown (blog posts, game overviews, simple pages) */

.prose {
  max-width: var(--measure);
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose > :is(h2, h3, h4) {
  margin-top: 1.8em;
}

.prose > :is(h2, h3, h4) + * {
  margin-top: 0.6em;
}

.prose h2 { font-size: var(--step-2); }
.prose h3 { font-size: var(--step-1); }

.prose ul,
.prose ol {
  padding-left: 1.4em;
}

.prose li + li {
  margin-top: 0.4em;
}

.prose li::marker {
  color: var(--color-accent);
}

.prose strong {
  font-weight: 650;
}

.prose blockquote {
  padding: var(--space-2xs) 0 var(--space-2xs) var(--space-m);
  border-left: 4px solid var(--color-accent);
  font-size: var(--step-1);
  font-style: italic;
  color: var(--color-text-muted);
}

.prose :is(img, picture) {
  border-radius: var(--radius-m);
}

.prose figure figcaption {
  margin-top: var(--space-2xs);
  font-size: var(--step--1);
  color: var(--color-text-muted);
}

.prose hr {
  width: 4rem;
  margin: var(--space-xl) auto;
  border: 0;
  border-top: 3px solid var(--color-accent);
}

.prose code {
  padding: 0.1em 0.35em;
  border-radius: var(--radius-s);
  background: var(--color-paper);
  font-size: 0.9em;
}

.prose pre {
  padding: var(--space-s);
  overflow-x: auto;
  border-radius: var(--radius-m);
  background: var(--color-ink);
  color: var(--color-cream);
}

.prose pre code {
  padding: 0;
  background: none;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step--1);
}

.prose th,
.prose td {
  padding: var(--space-2xs) var(--space-xs);
  border-bottom: var(--border-width) solid var(--color-border);
  text-align: left;
}

.prose th {
  font-family: var(--font-display);
}

/* components/retailer-band.css */
/* .retailer-band: "Are you a retailer?" strip on the home page */

.retailer-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  padding: var(--space-l);
  border: var(--border-width) solid var(--color-border);
  border-left: 6px solid var(--color-accent);
  border-radius: var(--radius-m);
  background: var(--color-surface);
}

.retailer-band__title {
  font-size: var(--step-2);
}

.retailer-band__text {
  margin-top: var(--space-2xs);
  max-width: 52ch;
  color: var(--color-text-muted);
}

/* components/section.css */
/* .section: vertical rhythm for page bands */

.section {
  padding-block: var(--space-2xl);
}

/* Keep breathing room above the footer when the page ends on a plain section */
.page__main > .section:last-child:not(.section--accent, .section--alt) {
  padding-bottom: calc(var(--space-2xl) * 1.5);
}

.section--tight {
  padding-block: var(--space-l);
}

.section--alt {
  background: var(--color-surface-alt);
}

.section--accent {
  background: var(--color-paper);
  border-block: var(--border-width) solid var(--color-border);
}

.section__header {
  margin-bottom: var(--space-xl);
  max-width: var(--measure);
}

.section__header--split {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-s);
  max-width: none;
}

.section__title {
  font-size: var(--step-3);
  margin-bottom: var(--space-m);
}

.section__header .section__title {
  margin-bottom: 0;
}

.section__intro {
  margin-top: var(--space-xs);
  color: var(--color-text-muted);
  font-size: var(--step-1);
  line-height: var(--leading-snug);
}

/* components/signup-form.css */
/* .signup-form: newsletter signup band */

.signup-form {
  text-align: center;
}

.signup-form__title {
  font-size: var(--step-3);
}

.signup-form__intro {
  max-width: 48ch;
  margin: var(--space-s) auto 0;
  color: var(--color-text-muted);
}

.signup-form__form {
  max-width: 32rem;
  margin: var(--space-l) auto 0;
}

.signup-form__label {
  display: block;
  margin-bottom: var(--space-2xs);
  font-family: var(--font-display);
  font-size: var(--step--1);
}

.signup-form__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
}

.signup-form__input {
  flex: 1 1 14rem;
}

.signup-form__row .button {
  flex: 1 0 auto;
}

@media (min-width: 30rem) {
  .signup-form__row .button {
    flex-grow: 0;
  }
}

.signup-form__fineprint {
  margin-top: var(--space-s);
  font-size: var(--step--1);
  color: var(--color-text-muted);
}

/* components/site-footer.css */
/* .site-footer */

.site-footer {
  padding-block: var(--space-xl) var(--space-l);
  background: var(--color-ink);
  color: var(--color-paper);
  font-size: var(--step--1);
}

.site-footer__inner {
  display: grid;
  gap: var(--space-l);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.site-footer__name {
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--color-cream);
}

.site-footer__tagline {
  color: var(--color-paper-deep);
}

.site-footer__list {
  display: grid;
  gap: var(--space-3xs);
  padding: 0;
  list-style: none;
}

.site-footer__link {
  color: var(--color-cream);
}

.site-footer__link:hover {
  color: var(--color-lemon);
}

.site-footer__link:focus-visible {
  outline-color: var(--color-lemon);
}

.site-footer__contact > * + * {
  margin-top: var(--space-2xs);
}

.site-footer__legal {
  grid-column: 1 / -1;
  padding-top: var(--space-m);
  border-top: var(--border-width) solid rgb(250 246 238 / 0.15);
  color: var(--color-paper-deep);
}

/* components/site-header.css */
/* .site-header: logo + main nav. Wraps to two rows on narrow screens, no JS menu needed. */

.site-header {
  border-bottom: var(--border-width) solid var(--color-border);
  background: var(--color-bg);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2xs) var(--space-l);
  padding-block: var(--space-s);
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-ink);
  text-decoration: none;
}

.site-header__brand:hover {
  color: var(--color-ink);
}

.site-header__logo {
  width: 32px;
  height: auto;
}

.site-header__name {
  font-family: var(--font-display);
  font-size: var(--step-1);
  letter-spacing: var(--tracking-display);
  line-height: 1;
  padding-top: 0.15em; /* optical alignment with the cup */
}

.site-header__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3xs) var(--space-m);
  padding: 0;
  list-style: none;
}

.site-header__link {
  display: inline-block;
  padding-block: var(--space-3xs);
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: var(--step--1);
  letter-spacing: 0.02em;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.site-header__link:hover,
.site-header__link[aria-current="page"] {
  color: var(--color-ink);
  border-bottom-color: var(--color-accent);
}
