@charset "utf-8";

/* ==========================================================================
   Work Boot Critic
   Direction: the boot box and the safety stamp. Kraft board, stencilled ink,
   oiled leather, and a safety amber that is only ever used to carry meaning.
   The signature element is the spec plate on every review.
   ========================================================================== */

/* --------------------------------------------------------------- typefaces */
@font-face {
  font-family: 'Archivo Black';
  src: url('/assets/fonts/archivo-black.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Sans';
  src: url('/assets/fonts/plex-sans-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Sans';
  src: url('/assets/fonts/plex-sans-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('/assets/fonts/plex-mono-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------------ tokens */
:root {
  --font-display: 'Archivo Black', 'Arial Black', 'Helvetica Neue', sans-serif;
  --font-body: 'Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Type scale — 1.25 ratio, fluid between 22rem and 80rem viewports. */
  --step--1: clamp(0.83rem, 0.80rem + 0.14vw, 0.90rem);
  --step-0: clamp(1.00rem, 0.95rem + 0.22vw, 1.13rem);
  --step-1: clamp(1.25rem, 1.17rem + 0.38vw, 1.48rem);
  --step-2: clamp(1.56rem, 1.42rem + 0.66vw, 1.95rem);
  --step-3: clamp(1.95rem, 1.72rem + 1.09vw, 2.57rem);
  --step-4: clamp(2.44rem, 2.07rem + 1.75vw, 3.38rem);
  --step-5: clamp(3.05rem, 2.48rem + 2.72vw, 4.45rem);

  /* Spacing — 4px base. */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  --radius-sm: 2px;
  --radius: 4px;
  --radius-lg: 10px;

  --wrap: 72rem;
  --measure: 38rem;

  --ease-out: cubic-bezier(0.16, 0.84, 0.44, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Light: kraft board and stencil ink. */
  --paper: #f1ebe0;
  --surface: #f9f6f0;
  --surface-2: #e7dfd0;
  --ink: #1c1712;
  --ink-soft: #4a4136;
  --muted: #6d6253;
  --line: #d5c9b5;
  --line-strong: #b8a68c;
  --leather: #7a4a21;
  --leather-ink: #ffffff;
  --amber: #a35f04;
  --amber-bright: #d98407;
  --stamp-bg: #24201a;
  --stamp-ink: #f3ead9;
  --shadow: 0 1px 2px rgb(28 23 18 / 0.06), 0 6px 16px -8px rgb(28 23 18 / 0.16);
  --shadow-lift: 0 2px 4px rgb(28 23 18 / 0.08), 0 14px 28px -12px rgb(28 23 18 / 0.26);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15110d;
    --surface: #1e1913;
    --surface-2: #29221a;
    --ink: #f2ece1;
    --ink-soft: #d6cabb;
    --muted: #a3937c;
    --line: #362d23;
    --line-strong: #4a3d2f;
    --leather: #c4844a;
    --leather-ink: #1a140e;
    --amber: #e8a13a;
    --amber-bright: #f0b355;
    --stamp-bg: #0f0c09;
    --stamp-ink: #e8dcc6;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 6px 16px -8px rgb(0 0 0 / 0.6);
    --shadow-lift: 0 2px 4px rgb(0 0 0 / 0.45), 0 14px 28px -12px rgb(0 0 0 / 0.7);
  }
}

/* The viewer's own toggle must win over the media query, in both directions. */
:root[data-theme='dark'] {
  --paper: #15110d;
  --surface: #1e1913;
  --surface-2: #29221a;
  --ink: #f2ece1;
  --ink-soft: #d6cabb;
  --muted: #a3937c;
  --line: #362d23;
  --line-strong: #4a3d2f;
  --leather: #c4844a;
  --leather-ink: #1a140e;
  --amber: #e8a13a;
  --amber-bright: #f0b355;
  --stamp-bg: #0f0c09;
  --stamp-ink: #e8dcc6;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 6px 16px -8px rgb(0 0 0 / 0.6);
  --shadow-lift: 0 2px 4px rgb(0 0 0 / 0.45), 0 14px 28px -12px rgb(0 0 0 / 0.7);
}
:root[data-theme='light'] {
  --paper: #f1ebe0;
  --surface: #f9f6f0;
  --surface-2: #e7dfd0;
  --ink: #1c1712;
  --ink-soft: #4a4136;
  --muted: #6d6253;
  --line: #d5c9b5;
  --line-strong: #b8a68c;
  --leather: #7a4a21;
  --leather-ink: #ffffff;
  --amber: #a35f04;
  --amber-bright: #d98407;
  --stamp-bg: #24201a;
  --stamp-ink: #f3ead9;
  --shadow: 0 1px 2px rgb(28 23 18 / 0.06), 0 6px 16px -8px rgb(28 23 18 / 0.16);
  --shadow-lift: 0 2px 4px rgb(28 23 18 / 0.08), 0 14px 28px -12px rgb(28 23 18 / 0.26);
}

/* ------------------------------------------------------------------- reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,
picture,
video,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}
ul,
ol {
  padding: 0;
  margin: 0;
}
figure {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

a {
  color: inherit;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}
@media (min-width: 48rem) {
  .wrap {
    width: min(100% - 4rem, var(--wrap));
  }
}

.visually-hidden {
  position: absolute;
  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(--sp-4);
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  transition: top 180ms var(--ease-out);
}
.skip-link:focus {
  top: var(--sp-4);
}

:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ------------------------------------------------------------------ header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: 4.25rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  color: var(--ink);
}
.logo__mark {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  background: var(--stamp-bg);
  color: var(--stamp-ink);
  padding: 0.4em 0.55em;
  border-radius: var(--radius-sm);
  line-height: 1;
}
.logo__text {
  font-family: var(--font-display);
  font-size: 1.06rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.logo__text-b {
  color: var(--leather);
}

.site-nav__list {
  list-style: none;
  display: flex;
  gap: var(--sp-5);
  align-items: center;
}
.site-nav__list a {
  text-decoration: none;
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: var(--sp-2) 0;
  position: relative;
  transition: color 180ms var(--ease-out);
}
.site-nav__list a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease-out);
}
.site-nav__list a:hover,
.site-nav__list a[aria-current] {
  color: var(--ink);
}
.site-nav__list a:hover::after,
.site-nav__list a[aria-current]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: var(--sp-2);
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
  font-size: var(--step--1);
  font-weight: 600;
  text-transform: uppercase;
  padding: var(--sp-2) var(--sp-3);
  cursor: pointer;
  min-height: 44px;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform 200ms var(--ease-out), opacity 200ms var(--ease-out);
}
.nav-toggle__bars {
  position: relative;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: '';
  position: absolute;
  left: 0;
}
.nav-toggle__bars::before {
  top: -5px;
}
.nav-toggle__bars::after {
  top: 5px;
}
.nav-toggle[aria-expanded='true'] .nav-toggle__bars {
  background: transparent;
}
.nav-toggle[aria-expanded='true'] .nav-toggle__bars::before {
  transform: translateY(5px) rotate(45deg);
}
.nav-toggle[aria-expanded='true'] .nav-toggle__bars::after {
  transform: translateY(-5px) rotate(-45deg);
}

@media (max-width: 47.99rem) {
  .nav-toggle {
    display: inline-flex;
  }
  .site-nav__list {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: var(--sp-2) 1.25rem var(--sp-4);
    display: none;
  }
  .site-nav__list.is-open {
    display: flex;
  }
  .site-nav__list a {
    padding: var(--sp-3) 0;
    border-bottom: 1px solid var(--line);
    font-size: var(--step-0);
  }
  .site-nav__list a::after {
    display: none;
  }
}

/* -------------------------------------------------------------------- hero */
.hero {
  padding: var(--sp-8) 0 var(--sp-7);
  background:
    radial-gradient(80rem 32rem at 12% -10%, color-mix(in srgb, var(--leather) 16%, transparent), transparent 70%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}
.hero__title {
  font-size: var(--step-5);
  margin-block: var(--sp-4) var(--sp-5);
  max-width: 16ch;
}
.hero__title em {
  font-style: normal;
  color: var(--leather);
  position: relative;
  white-space: nowrap;
}
/* A stencilled underline that draws once, pointing the eye at the thesis. */
.hero__title em::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.1em;
  background: var(--amber);
  transform-origin: left;
  animation: rule-in 900ms var(--ease-out) 420ms both;
}
@keyframes rule-in {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
.hero__lede {
  font-size: var(--step-1);
  color: var(--ink-soft);
  max-width: var(--measure);
  margin: 0 0 var(--sp-6);
  text-wrap: pretty;
}

.hero__types ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: var(--sp-3);
}
.hero__types a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-2);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4);
  transition: transform 200ms var(--ease-out), border-color 200ms var(--ease-out),
    box-shadow 200ms var(--ease-out);
}
.hero__types a:hover {
  transform: translateY(-3px);
  border-color: var(--leather);
  box-shadow: var(--shadow-lift);
}
.hero__type-name {
  font-family: var(--font-display);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.hero__type-count {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--muted);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0;
}
.eyebrow--hero {
  color: var(--leather);
}

/* ------------------------------------------------------------- breadcrumbs */
.breadcrumbs {
  padding-block: var(--sp-4) 0;
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  font-size: var(--step--1);
  color: var(--muted);
}
.breadcrumbs li + li::before {
  content: '/';
  margin-right: var(--sp-2);
  color: var(--line-strong);
}
.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ------------------------------------------------------------- hub headers */
.hub-header {
  padding-block: var(--sp-6) var(--sp-5);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--sp-7);
}
.hub-header h1 {
  font-size: var(--step-4);
  margin-block: var(--sp-3) var(--sp-4);
}
.hub-header__blurb {
  font-size: var(--step-1);
  color: var(--ink-soft);
  max-width: var(--measure);
  margin: 0;
  text-wrap: pretty;
}
.hub-header__count {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--muted);
  margin: var(--sp-4) 0 0;
}

.section-head {
  font-size: var(--step-2);
  margin: 0 0 var(--sp-4);
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
}
.section-head a {
  text-decoration: none;
}
.section-head a:hover {
  color: var(--leather);
}
.section-head__count {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--muted);
  font-weight: 400;
}
.section-lede {
  color: var(--ink-soft);
  max-width: var(--measure);
  margin: -0.5rem 0 var(--sp-5);
}
.band {
  padding-block: var(--sp-6);
}

/* ------------------------------------------------------------------- cards */
.cardgrid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: var(--sp-4);
}
.cardgrid--tight {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
}
.card {
  display: flex;
}
.card__link {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  width: 100%;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-4);
  transition: transform 220ms var(--ease-out), border-color 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out);
}
.card__link:hover {
  transform: translateY(-3px);
  border-color: var(--leather);
  box-shadow: var(--shadow-lift);
}
.card__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0;
}
.card__title {
  font-size: var(--step-1);
  line-height: 1.15;
  margin: 0;
}
.card__desc {
  font-size: var(--step--1);
  color: var(--ink-soft);
  margin: 0;
  text-wrap: pretty;
}
.card__meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin: auto 0 0;
  padding-top: var(--sp-2);
}
.card__tags {
  margin: auto 0 0;
  padding-top: var(--sp-2);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
}
.tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.15em 0.45em;
}
.card--feature {
  grid-column: span 2;
}
.card--feature .card__title {
  font-size: var(--step-2);
}
@media (max-width: 40rem) {
  .card--feature {
    grid-column: span 1;
  }
}
.card--type .card__desc {
  font-size: var(--step--1);
}

/* ------------------------------------------------------------------- chips */
.linkrow,
.chips__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  text-decoration: none;
  font-size: var(--step--1);
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: var(--sp-2) var(--sp-4);
  min-height: 40px;
  transition: background 180ms var(--ease-out), border-color 180ms var(--ease-out),
    color 180ms var(--ease-out);
}
.chip:hover {
  background: var(--leather);
  border-color: var(--leather);
  color: var(--leather-ink);
}
.chip--lg {
  font-size: var(--step-0);
  padding: var(--sp-3) var(--sp-5);
}
.chip__count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}
.chip:hover .chip__count {
  color: inherit;
}
.chips {
  margin-block: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}
.chips__head {
  font-size: var(--step-1);
  margin: 0 0 var(--sp-3);
}

/* -------------------------------------------------------- review + article */
.review,
.guide {
  padding-block: var(--sp-5) var(--sp-7);
}
.review__header,
.guide__header {
  max-width: var(--measure);
  margin-bottom: var(--sp-6);
}
.review__header h1,
.guide__header h1 {
  font-size: var(--step-4);
  margin-block: var(--sp-3) var(--sp-4);
}
.review__standfirst,
.guide__standfirst {
  font-size: var(--step-1);
  color: var(--ink-soft);
  margin: 0;
  text-wrap: pretty;
}
.guide__meta,
.review__meta {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--muted);
  margin: var(--sp-4) 0 0;
}
.review__footer {
  margin-top: var(--sp-6);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}

/* ----------------------------------------------------- SIGNATURE spec plate
   Styled after the rating stamp printed inside a boot tongue: mono type,
   stencilled label, hard edges. Its job is to let someone who does not know
   the category read the whole specification in one glance.
   ------------------------------------------------------------------------ */
.specplate {
  background: var(--stamp-bg);
  color: var(--stamp-ink);
  border-radius: var(--radius);
  padding: var(--sp-5);
  margin-block: var(--sp-6);
  max-width: 34rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.specplate::before {
  content: '';
  position: absolute;
  inset: var(--sp-2);
  border: 1px dashed color-mix(in srgb, var(--stamp-ink) 26%, transparent);
  border-radius: var(--radius-sm);
  pointer-events: none;
}
.specplate__head {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: color-mix(in srgb, var(--stamp-ink) 62%, transparent);
  margin: 0 0 var(--sp-4);
}
.specplate__grid {
  margin: 0;
  display: grid;
  gap: 0;
}
.specplate__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid color-mix(in srgb, var(--stamp-ink) 14%, transparent);
}
.specplate__row:last-of-type {
  border-bottom: 0;
}
.specplate__row dt {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: color-mix(in srgb, var(--stamp-ink) 66%, transparent);
}
.specplate__row dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--step-0);
  font-weight: 500;
  text-align: right;
}
/* Amber marks a feature the boot actually has — meaning, never decoration. */
.specplate__row.is-yes dd {
  color: var(--amber-bright);
}
.specplate__note {
  font-size: 0.78rem;
  line-height: 1.5;
  color: color-mix(in srgb, var(--stamp-ink) 58%, transparent);
  margin: var(--sp-4) 0 0;
}

/* ------------------------------------------------------------------- prose */
.prose {
  max-width: var(--measure);
}
.prose > * + * {
  margin-top: var(--sp-4);
}
.prose h2 {
  font-size: var(--step-2);
  margin-top: var(--sp-7);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}
.prose h3 {
  font-size: var(--step-1);
  margin-top: var(--sp-6);
}
.prose h4 {
  font-size: var(--step-0);
  margin-top: var(--sp-5);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.prose p {
  margin: 0;
  text-wrap: pretty;
}
.prose a {
  color: var(--leather);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 160ms var(--ease-out);
}
.prose a:hover {
  color: var(--amber);
}
.prose ul,
.prose ol {
  padding-left: 1.25rem;
  display: grid;
  gap: var(--sp-2);
}
.prose li {
  padding-left: var(--sp-1);
}
.prose li::marker {
  color: var(--leather);
}
.prose img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin-block: var(--sp-5);
  width: 100%;
}
.prose blockquote {
  margin: var(--sp-5) 0;
  padding: var(--sp-2) 0 var(--sp-2) var(--sp-5);
  border-left: 3px solid var(--leather);
  color: var(--ink-soft);
  font-size: var(--step-1);
}
.prose strong {
  font-weight: 600;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin-block: var(--sp-6);
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface-2);
  padding: 0.1em 0.35em;
  border-radius: var(--radius-sm);
}

/* Migrated tables can be wide; they scroll inside themselves, never the page. */
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step--1);
  margin-block: var(--sp-5);
}
.prose table th,
.prose table td {
  border: 1px solid var(--line);
  padding: var(--sp-3);
  text-align: left;
  vertical-align: top;
}
.prose table th {
  background: var(--surface-2);
  font-weight: 600;
}
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-block: var(--sp-5);
}
.table-scroll > table {
  margin-block: 0;
  min-width: 34rem;
}

/* ----------------------------------------------------------------- related */
.related {
  padding-block: var(--sp-7);
  border-top: 1px solid var(--line);
  margin-top: var(--sp-6);
}
.related h2 {
  font-size: var(--step-2);
  margin-bottom: var(--sp-5);
}
.related h3 {
  font-size: var(--step-0);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: var(--sp-3);
}
.related__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: var(--sp-6);
}
.linklist {
  list-style: none;
  display: grid;
  gap: var(--sp-2);
}
.linklist a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.linklist a:hover {
  color: var(--leather);
  border-bottom-color: var(--leather);
}
.morelink {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--leather);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}
.morelink::after {
  content: '\2192';
  transition: transform 200ms var(--ease-out);
}
.morelink:hover::after {
  transform: translateX(4px);
}

/* ------------------------------------------------------------------ footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding-block: var(--sp-7) var(--sp-5);
  margin-top: var(--sp-8);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: var(--sp-6);
}
.site-footer__tagline {
  color: var(--muted);
  font-size: var(--step--1);
  margin: var(--sp-3) 0 0;
  max-width: 22ch;
}
.site-footer__head {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 var(--sp-3);
}
.site-footer__col ul {
  list-style: none;
  display: grid;
  gap: var(--sp-2);
}
.site-footer__col a {
  text-decoration: none;
  font-size: var(--step--1);
  color: var(--ink-soft);
  transition: color 160ms var(--ease-out);
}
.site-footer__col a:hover {
  color: var(--leather);
  text-decoration: underline;
}
.site-footer__legal {
  margin: var(--sp-7) 0 0;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}

/* ------------------------------------------------------------------ motion */
/* Grouped reveals stagger so the eye is led through, rather than flashed at. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(14px);
  }
  .js .reveal.is-in {
    opacity: 1;
    transform: none;
    transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero__title em::after {
    transform: scaleX(1);
  }
}

@media print {
  .site-header,
  .site-footer,
  .related,
  .chips {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
}
