/*
  Crabhaus — shared design kit
  One token layer + one set of shared primitives for dry-run-issue.html
  and full-wire-feed.html. Page-specific layout lives in each page's
  own <style> block; this file holds only what both pages share.
*/

:root {
  color-scheme: light;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", Arial, sans-serif;
  --mono:
    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --canvas: #ffffff;
  --surface: #ffffff;
  --surface-subtle: #eef3f9;

  --ink: #101828;
  --text: #263449;
  --muted: #5c687a;
  --faint: #929cab; /* decorative only — never for meaningful text, icons, or arrows */

  --border: #cad2e0;
  --divider: #e1e6ef;
  --border-strong: #7d8ba0;

  --brand: #2357d9;
  --brand-hover: #1945b8;
  --brand-soft: #e4ebff;
  --focus: #2357d9;
  --shell: #c65d2e;

  --cat-labs: #bfeaf2;
  --cat-labs-ink: #0b4b57;
  --cat-agents: #c9d7ff;
  --cat-agents-ink: #203e85;
  --cat-research: #cdeedd;
  --cat-research-ink: #15543b;
  --cat-biz: #f4d77e;
  --cat-biz-ink: #654b00;
  --cat-tutorials: #f3cee0;
  --cat-tutorials-ink: #712e4a;
  --cat-notable: #ded3f6;
  --cat-notable-ink: #49317a;

  --success: #237a52;
  --error: #b42318;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --gutter: clamp(16px, 5vw, 40px);
  --section-gap: clamp(40px, 5vw, 48px);

  --measure-reading: 44rem;
  --measure-index: 50rem;
  --measure-prose: 38rem;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-accent: 3px 3px 0 var(--brand);
}
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.consent-line {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}
.consent-line input {
  flex: 0 0 auto;
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}
.subscribe-success {
  padding: 8px 0;
  color: var(--ink);
}
.subscribe-success p {
  margin: 4px 0 0;
  color: var(--muted);
}

/* ============ reset & base ============ */
* {
  box-sizing: border-box;
}
html {
  background: var(--canvas);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection {
  background: var(--brand-soft);
  color: var(--ink);
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
img {
  display: block;
  max-width: 100%;
}
.mono {
  font-family: var(--mono);
  font-feature-settings: "ss01";
}
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ============ focus ============ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============ skip links ============ */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  font: 600 13px/1.4 var(--mono);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: top 0.15s ease;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}
.skip-link + .skip-link {
  left: 220px;
}
.skip-link + .skip-link:focus {
  left: 12px;
  top: 58px;
}

/* ============ shell / measures ============ */
.shell {
  margin: 0 auto;
  padding: 0 var(--gutter) 80px;
}
.shell--reading {
  max-width: var(--measure-reading);
}
.shell--index {
  max-width: var(--measure-index);
}
@media (max-width: 480px) {
  .shell {
    padding-inline: 16px;
    padding-bottom: 56px;
  }
}

/* ============ masthead (one component, one scale, both pages) ============ */
.masthead {
  padding-top: clamp(22px, 5vw, 40px);
  display: flex;
  align-items: center;
  gap: 18px;
}
.masthead .stack {
  flex: 1 1 auto;
  min-width: 0;
}
.nameplate h1 {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(30px, 6.2vw, 42px);
  line-height: 0.98;
  letter-spacing: -0.026em;
  color: var(--ink);
  margin: 0;
}
.brand-name {
  color: var(--ink);
}
.claw-mark {
  display: inline-block;
  width: 14px;
  height: 18px;
  margin-inline: 2px;
  vertical-align: -4px;
  color: var(--shell);
  flex: 0 0 auto;
}
.claw-mark path,
.claw-mark rect {
  fill: currentColor;
}
.formerly-note {
  margin: 4px 0 0;
  color: var(--muted);
  font: 600 12px/1.4 var(--mono);
}
.tagline {
  margin: 9px 0 0;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 400;
  font-size: 15px;
  color: var(--muted);
  letter-spacing: -0.005em;
}
.folio {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.folio .byline {
  color: var(--border-strong);
  font-weight: 400;
}
.folio .live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
}
.folio .live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  font-style: normal;
}
.folio a.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 2px;
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}
.folio a.back:hover {
  text-decoration: underline;
}
.rule-2 {
  margin-top: 16px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--border);
  height: 4px;
}
@media (max-width: 480px) {
  .masthead {
    padding-top: 18px;
    align-items: flex-start;
    gap: 12px;
  }
  .nameplate h1 {
    font-size: 30px;
  }
  .tagline {
    margin-top: 6px;
    font-size: 14px;
  }
  .folio {
    margin-top: 8px;
    display: block;
    font-size: 10.5px;
    letter-spacing: 0.04em;
  }
  .folio .byline {
    display: block;
    margin-top: 4px;
  }
}

/* ============ kicker badge (editorial hierarchy only — not category labels) ============ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 7px 14px 6px;
}
.badge .dash {
  width: 14px;
  height: 2px;
  background: #fff;
  flex-shrink: 0;
}

/* ============ category marker ============ */
/* feed section heading bar: 24x4px color bar, see page-specific .cat .lbl::before */
/* top-five number circle: 32px, category fill + matching ink */
.cat-word {
  display: block;
  margin: 1px 0 4px;
  font: 600 11px/1.2 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============ story link (shared row/feature behavior) ============ */
a:focus-visible.item-line,
a.item-line:focus-visible {
  outline-offset: 5px;
}
.go {
  font-family: var(--mono);
}

/* ============ editorial callout ("why it matters" / analysis) ============ */
.callout {
  margin-top: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}
.callout .analysis-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font: 600 11px/1.3 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-hover);
}
.callout .analysis-label .dash {
  width: 14px;
  height: 2px;
  background: var(--brand);
  flex-shrink: 0;
}
.callout p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text);
}
@media (min-width: 768px) {
  .callout {
    padding: 18px;
  }
}

/* ============ explainer card (hero) + teaser (compact sibling) ============ */
.explainer-card {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-accent);
  padding: 24px;
}
.explainer-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.explainer-top .voice {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-hover);
  font-weight: 600;
}
.explainer-card h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(24px, 3.2vw, 26px);
  letter-spacing: -0.016em;
  color: var(--ink);
  margin: 0 0 14px;
  line-height: 1.15;
}
.explainer-visual {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  margin: 2px 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--canvas);
}
.explainer-block {
  margin-top: 15px;
}
.explainer-block .eb-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-hover);
  font-weight: 600;
  margin: 0 0 5px;
}
.explainer-block p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
}
.explainer-block ul {
  margin: 6px 0 0;
  padding-left: 18px;
}
.explainer-block li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  margin-top: 5px;
}
.explainer-block li b {
  font-weight: 700;
}
.loop-list {
  list-style: none;
  padding: 0 !important;
  counter-reset: loop;
}
.loop-list li {
  counter-increment: loop;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 9px;
  align-items: start;
}
.loop-list li::before {
  content: counter(loop);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--border);
  border-radius: 50%;
  font: 700 11px var(--mono);
  background: var(--brand-soft);
  color: var(--brand-hover);
}
.explainer-takeaway {
  margin-top: 18px;
  padding: 13px 14px;
  background: var(--brand-soft);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm);
  font-size: 16px;
  line-height: 1.58;
  color: var(--text);
  font-style: normal;
}
.explainer-takeaway b {
  font-weight: 700;
}
@media (max-width: 480px) {
  .explainer-card {
    padding: 18px;
  }
}

.explainer-teaser {
  margin: var(--section-gap) 0 0;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-md);
  box-shadow: none;
}
.explainer-teaser p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text);
}
.explainer-teaser p + p {
  margin-top: 8px;
}
.explainer-teaser a {
  font-weight: 600;
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.explainer-teaser a:hover {
  color: var(--brand-hover);
}

/* ============ Field Notes / diagram media ============ */
.briefing-card {
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 34px rgba(16, 24, 40, 0.09);
}
.briefing-main {
  padding: 38px 40px 34px;
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.briefing-meta {
  margin: 0;
  font: 600 10px/1.3 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand);
}
.briefing-main h2 {
  margin: 22px 0 54px;
  font: 700 clamp(30px, 4.2vw, 40px)/1 var(--display);
  letter-spacing: -0.032em;
  color: var(--ink);
}
.briefing-signals {
  margin-top: auto;
}
.briefing-signal {
  display: grid;
  grid-template-columns: 27px 74px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid var(--border);
}
.briefing-number {
  font: 600 10px var(--mono);
  color: var(--brand);
}
.briefing-category {
  justify-self: start;
  border-radius: var(--radius-pill);
  padding: 5px 8px;
  font: 600 9px/1 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--brand-soft);
  color: var(--brand-hover);
}
.briefing-category.c-labs {
  background: var(--cat-labs);
  color: var(--cat-labs-ink);
}
.briefing-category.c-agents {
  background: var(--cat-agents);
  color: var(--cat-agents-ink);
}
.briefing-category.c-research {
  background: var(--cat-research);
  color: var(--cat-research-ink);
}
.briefing-category.c-biz {
  background: var(--cat-biz);
  color: var(--cat-biz-ink);
}
.briefing-signal strong {
  font-size: 13px;
  line-height: 1.32;
  color: var(--ink);
}
.briefing-learn {
  position: relative;
  isolation: isolate;
  padding: 38px 32px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--brand);
  color: #fff;
}
.briefing-learn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(
    ellipse at 88% 18%,
    transparent 0 16px,
    rgba(255, 255, 255, 0.11) 17px 18px
  );
  z-index: -1;
}
.briefing-learn-label {
  margin: 0;
  font: 600 10px/1.3 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #fff;
}
.briefing-learn h3 {
  margin: 9px 0 0;
  font: 700 clamp(22px, 3vw, 27px)/1.08 var(--display);
  letter-spacing: -0.02em;
  color: #fff;
}
.briefing-learn h3 + p {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #dce5ff;
}
@media (max-width: 600px) {
  .briefing-card {
    grid-template-columns: 1fr;
  }
  .briefing-main {
    padding: 28px 24px 24px;
  }
  .briefing-main h2 {
    margin: 17px 0 26px;
    font-size: 32px;
  }
  .briefing-signal {
    grid-template-columns: 24px 70px minmax(0, 1fr);
    gap: 8px;
    padding: 12px 0;
  }
  .briefing-signal strong {
    font-size: 14px;
  }
  .briefing-learn {
    min-height: 290px;
    padding: 28px 24px 26px;
  }
  .briefing-learn h3 {
    font-size: 27px;
  }
  .briefing-learn h3 + p {
    font-size: 14px;
  }
}
.field-notes-eyebrow {
  display: block;
  margin: 0 0 8px;
  font: 600 11px/1.3 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-hover);
}
.edition-visual {
  margin: 0;
  width: 100%;
}
.edition-visual img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.media-expand {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  margin-top: 10px;
  padding: 8px 4px;
  font: 600 12px var(--mono);
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.media-expand:hover {
  color: var(--brand-hover);
}

/* ============ subscribe card ============ */
.subscribe {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.subscribe h4 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.014em;
  color: var(--ink);
  margin: 0 0 8px;
}
.subscribe .pitch {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}
.sub-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.sub-field {
  flex: 1 1 220px;
  min-width: 0;
}
.sub-field label {
  display: block;
  margin: 0 0 6px;
  font: 600 12px/1.3 var(--mono);
  color: var(--text);
}
.sub-row input {
  width: 100%;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  min-height: 48px;
  padding: 12px 14px;
}
.sub-row input::placeholder {
  color: var(--muted);
}
.sub-row button {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--brand);
  min-height: 48px;
  border: 1px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 12px 22px;
  cursor: pointer;
}
.sub-row button:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
}
.sub-row button[disabled] {
  opacity: 0.65;
  cursor: wait;
}
.sub-row button.is-success {
  opacity: 1;
  cursor: default;
  background: var(--success);
  border-color: var(--success);
}
.form-status {
  min-height: 0;
  margin: 10px 0 0;
  font: 600 13px/1.5 var(--mono);
  color: var(--muted);
}
.form-status:empty {
  margin: 0;
}
.form-status[data-state="error"] {
  color: var(--error);
}
.form-status[data-state="success"] {
  color: var(--success);
}
.form-status[data-state="progress"] {
  color: var(--muted);
}
.soft-cta {
  margin: 20px 0 0;
  text-align: center;
  font-size: 15px;
}
.soft-cta a,
.text-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 4px;
  color: var(--brand-hover);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.share-row {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.text-action {
  border: 0;
  background: transparent;
  font: 700 12px var(--mono);
  cursor: pointer;
  color: var(--brand-hover);
}
@media (max-width: 480px) {
  .subscribe {
    padding: 20px 18px;
  }
  .sub-row button {
    flex: 1 1 100%;
  }
}

/* ============ per-issue survey ============ */
.survey {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: var(--section-gap, 32px);
}
.survey h4 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.014em;
  color: var(--ink);
  margin: 10px 0 16px;
}
.survey-choices {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.survey-choices button {
  flex: 1 1 150px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--surface-subtle);
  min-height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  cursor: pointer;
}
@media (hover: hover) {
  .survey-choices button:hover:not(.is-selected) {
    border-color: var(--brand);
    color: var(--brand);
  }
}
.survey-choices button:disabled {
  cursor: default;
  opacity: 0.6;
}
.survey-choices button.is-selected {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand-hover);
  opacity: 1;
  box-shadow: inset 0 0 0 1px var(--brand);
}
.survey-choices button.is-selected::before {
  content: "✓ ";
}
.survey-reply {
  margin-top: 16px;
}
.survey-reply label {
  display: block;
  margin: 0 0 6px;
  font: 600 12px/1.3 var(--mono);
  color: var(--text);
}
.survey-reply textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  resize: vertical;
}
.survey-reply button {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--brand);
  min-height: 40px;
  border: 1px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  cursor: pointer;
}
.survey-reply button:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
}
.survey-status {
  min-height: 0;
  margin: 12px 0 0;
  font: 600 13px/1.5 var(--mono);
  color: var(--muted);
}
.survey-status:empty {
  margin: 0;
}
.survey-status[data-state="success"] {
  color: var(--success);
}
.survey-status[data-state="error"] {
  color: var(--error);
}

/* ============ compact publication footer (shared, no disclaimer copy) ============ */
.site-footer {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid var(--divider);
}
.site-footer .footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-footer .footer-brand {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.footer-byline-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-crab {
  width: 42px;
  height: auto;
  flex: 0 0 auto;
}
.footer-brand p {
  margin: 2px 0;
}
.footer-brand .footer-origin {
  margin-top: 5px;
  max-width: 56ch;
  font: 400 11px/1.45 var(--sans);
  color: var(--muted);
}
.site-footer .footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer .footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
  font: 500 13px/1.4 var(--sans);
  color: var(--muted);
  text-decoration: none;
}
.site-footer .footer-nav a:hover {
  color: var(--brand-hover);
  text-decoration: underline;
}
@media (max-width: 480px) {
  .site-footer .footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ============ archive ============ */
#learn-one-thing {
  scroll-margin-top: var(--space-6);
}
.archive-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  border-bottom: 1px solid var(--border);
  margin-top: var(--section-gap);
}
.archive-tab {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  min-height: 44px;
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
}
.archive-tab[aria-selected="true"] {
  color: var(--brand-hover);
  border-bottom-color: var(--brand);
}
.archive-panel {
  margin-top: var(--space-8);
}
.archive-item {
  border-top: 1px solid var(--divider);
  padding: var(--space-6) 0;
}
.archive-item:first-child {
  border-top: none;
}
.archive-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 var(--space-2);
}
.archive-item h2,
.archive-topic-item h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(19px, 2.4vw, 23px);
  line-height: 1.2;
  margin: 0 0 var(--space-2);
}
.archive-item h2 a,
.archive-topic-item h3 a {
  color: var(--ink);
  text-decoration: none;
}
.archive-item h2 a:hover,
.archive-topic-item h3 a:hover {
  color: var(--brand-hover);
  text-decoration: underline;
}
.archive-topic-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.archive-topic-item {
  border-top: 1px solid var(--divider);
  padding: var(--space-5) 0;
}
.archive-topic-item:first-child {
  border-top: none;
}
.archive-topic-item p {
  margin: var(--space-2) 0 0;
  color: var(--muted);
}
.archive-builds-on a {
  color: var(--brand-hover);
}
.archive-earlier {
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 2px solid var(--ink);
}
.archive-earlier h3 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 var(--space-4);
}
@media (max-width: 480px) {
  .archive-tab {
    flex: 1 1 auto;
    text-align: center;
    padding: var(--space-3) var(--space-2);
  }
}

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