/* =========================================================================
   Failurepedia — editorial design system
   Sharp, data-forward tech & business publication.
   Type: IBM Plex Serif (display) · IBM Plex Sans (text/UI) · IBM Plex Mono (data)
   ========================================================================= */

/* Self-hosted IBM Plex (SIL OFL 1.1) — no third-party font requests. Files: /public/fonts. */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-serif-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Serif"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-serif-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Serif"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-serif-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Serif"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/ibm-plex-serif-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); }

:root {
  color-scheme: light dark;

  /* Neutrals */
  --ink: #0b0b0c;
  --ink-2: #1c1c1f;
  --muted: #565659;
  --faint: #86868b;
  --line: #e6e5e2;
  --line-strong: #0b0b0c;
  --paper: #ffffff;
  --surface: #ffffff;
  --panel: #f7f6f3;

  /* Editorial red — the single voice of the brand */
  --accent: #d81f11;
  --accent-press: #a5150a;

  /* Semantic tones */
  --high-fg: #0f6b46;
  --high-bg: #eaf5ef;
  --moderate-fg: #8a5a00;
  --moderate-bg: #fbf1da;
  --low-fg: #b3271a;
  --low-bg: #fbeae8;
  --neutral-fg: #35353a;
  --neutral-bg: #f1efec;

  --gold: #c49538;

  /* Type */
  --serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1200px;
  --gutter: 24px;

  font-family: var(--sans);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f4f3ef;
    --ink-2: #e2e1dc;
    --muted: #a2a19c;
    --faint: #77767a;
    --line: #2a2a2d;
    --line-strong: #f4f3ef;
    --paper: #0c0c0d;
    --surface: #121214;
    --panel: #17171a;

    --accent: #ff5a45;
    --accent-press: #ff7a68;

    --high-fg: #4bbd8b;
    --high-bg: #12271f;
    --moderate-fg: #e0a838;
    --moderate-bg: #2a2110;
    --low-fg: #ff7d6f;
    --low-bg: #2a1512;
    --neutral-fg: #c9c8c3;
    --neutral-bg: #202023;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
}

a {
  color: inherit;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* --- Shared width wrappers ------------------------------------------------ */
.site-header,
.topbar-inner,
.hero,
.page-hero,
.page-section,
.case-page,
.case-table,
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* =========================================================================
   Masthead
   ========================================================================= */
.accent-rule {
  height: 3px;
  background: var(--accent);
}

.topbar {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.topbar-tag {
  color: var(--muted);
}

.topbar-date {
  white-space: nowrap;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 2px;
  background: var(--accent);
  color: #fff;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
}

.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 23px;
  letter-spacing: -0.015em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  position: relative;
  padding: 4px 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
  transition: right 0.18s ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  right: 0;
}

/* =========================================================================
   Type primitives
   ========================================================================= */
.eyebrow {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1,
.page-hero h1,
.case-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.0;
  letter-spacing: -0.022em;
  color: var(--ink);
}

.hero p,
.page-hero p,
.case-hero > div > p {
  max-width: 62ch;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.text-link::after {
  content: "→";
  transition: transform 0.18s ease;
}

.text-link:hover::after {
  transform: translateX(3px);
}

/* =========================================================================
   Hero — front-page layout
   ========================================================================= */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.82fr);
  gap: 44px;
  align-items: start;
  padding-top: 52px;
  padding-bottom: 60px;
}

.hero-copy {
  padding-top: 6px;
}

.hero-copy h1 {
  margin-bottom: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 11px 20px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-primary:hover {
  background: var(--accent-press);
}

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

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

/* Featured module */
.feature-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 0;
  padding: 28px;
}

.feature-panel h2 {
  margin: 4px 0 12px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.feature-panel > p {
  margin: 0 0 18px;
  color: var(--muted);
}

/* =========================================================================
   Badges
   ========================================================================= */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 2px;
  border: 1px solid transparent;
  background: var(--neutral-bg);
  color: var(--neutral-fg);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-high {
  background: var(--high-bg);
  color: var(--high-fg);
}

.badge-moderate {
  background: var(--moderate-bg);
  color: var(--moderate-fg);
}

.badge-low {
  background: var(--low-bg);
  color: var(--low-fg);
}

/* =========================================================================
   Data / stat blocks
   ========================================================================= */
.compact-facts,
.fact-panel,
.row-facts {
  display: grid;
  gap: 0;
}

.compact-facts {
  grid-template-columns: repeat(3, 1fr);
  margin: 22px 0;
  border-top: 1px solid var(--line);
}

.compact-facts > div,
.fact-panel > div,
.row-facts > div {
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--line);
}

.compact-facts > div {
  padding: 12px 14px 12px 0;
  border-bottom: none;
}

dt {
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

/* =========================================================================
   Section headings
   ========================================================================= */
.page-section,
.case-section {
  padding-top: 48px;
  padding-bottom: 48px;
}

.case-section {
  padding-bottom: 0;
}

.section-heading {
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--line-strong);
}

.section-heading h2,
.page-hero h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.012em;
}

.section-heading .eyebrow {
  margin-bottom: 8px;
}

.section-heading .muted.small {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* =========================================================================
   Home — case grid
   ========================================================================= */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0;
  margin-top: 4px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.case-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  transition: background 0.16s ease;
}

.case-card:hover {
  background: var(--panel);
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
}

.case-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 23px;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.case-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

/* =========================================================================
   Cases index — rows
   ========================================================================= */
.page-hero {
  padding-top: 52px;
  padding-bottom: 24px;
}

.page-hero .eyebrow {
  margin-bottom: 12px;
}

.case-table {
  display: grid;
  gap: 0;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.case-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.42fr);
  gap: 32px;
  padding: 28px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.16s ease;
}

.case-row:hover {
  background: var(--panel);
}

.case-row h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.case-row p {
  margin: 0 0 14px;
  max-width: 60ch;
  color: var(--muted);
  font-size: 16px;
}

.row-facts {
  align-content: start;
  grid-template-columns: 1fr;
}

.row-facts > div {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.row-facts > div:first-child {
  padding-top: 0;
}

/* =========================================================================
   Case detail — hero
   ========================================================================= */
.case-page {
  padding-top: 44px;
  padding-bottom: 64px;
}

.case-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 40px;
  padding-top: 8px;
  padding-bottom: 40px;
  border-bottom: 2px solid var(--line-strong);
}

.case-hero h1 {
  margin-bottom: 16px;
}

.case-hero > div > p {
  margin: 0 0 20px;
}

.fact-panel {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 0 24px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
}

/* =========================================================================
   Narrative + analysis grids
   ========================================================================= */
.story-grid,
.analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.story-grid > section,
.analysis-grid > section {
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.story-grid h3,
.analysis-grid h3 {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.story-grid p,
.analysis-grid p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.story-grid p:last-child,
.analysis-grid p:last-child {
  margin-bottom: 0;
}

.analysis-grid p strong {
  color: var(--ink);
}

/* =========================================================================
   Failure Anatomy — timeline
   ========================================================================= */
.anatomy-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.anatomy-node {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  position: relative;
}

.anatomy-node + .anatomy-node {
  margin-top: 16px;
}

.node-date {
  padding-top: 16px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.node-body {
  position: relative;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  background: var(--surface);
}

.node-body h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.node-body p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15.5px;
}

.node-body::before {
  content: "";
  position: absolute;
  top: 22px;
  left: -8px;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border: 2px solid var(--paper);
  border-radius: 999px;
}

/* =========================================================================
   Evidence — claims & sources
   ========================================================================= */
.claim-list {
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.claim-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}

.claim-num {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
}

.claim-body .claim-text {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 16px;
}

.claim-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.claim-type {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--faint);
}

.claim-srcs {
  font-size: 13px;
}

.claim-srcs .src-ref a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.claim-srcs .src-ref a:hover {
  text-decoration: underline;
}

.claim-srcs .src-ref:not(:last-child)::after {
  content: "; ";
  color: var(--faint);
}

.src-ref--missing {
  color: var(--low-fg);
  font-style: italic;
}

.evidence-subhead {
  margin: 8px 0 14px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.source-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.source-item {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}

.source-item h4 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 17px;
}

.source-item h4 a {
  text-decoration: none;
}

.source-item h4 a:hover {
  color: var(--accent);
}

.source-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.source-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
}

.cited-by {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.cite-back {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

/* =========================================================================
   Inline citations
   ========================================================================= */
.cite {
  font-size: 0.72em;
  line-height: 0;
  white-space: nowrap;
  margin-left: 1px;
}

.cite-mark {
  padding: 0 1px;
  font-family: var(--mono);
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}

.cite-mark:hover {
  color: var(--accent);
}

.cite-mark--high {
  color: var(--ink);
}

.cite-mark--moderate {
  color: var(--moderate-fg);
  text-decoration: underline dotted var(--gold);
  text-underline-offset: 2px;
}

.cite-mark--low {
  color: var(--low-fg);
  text-decoration: underline dotted var(--accent);
  text-underline-offset: 2px;
}

.claim-item:target,
.source-item:target {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  scroll-margin-top: 24px;
}

/* =========================================================================
   Prose (methodology)
   ========================================================================= */
.prose {
  max-width: 760px;
  margin-inline: 0;
}

.prose h2 {
  margin: 40px 0 12px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.012em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
  margin-top: 72px;
  background: var(--ink);
  color: var(--paper);
  border-top: 3px solid var(--accent);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  padding-top: 48px;
  padding-bottom: 48px;
}

.brand--footer {
  color: var(--paper);
  margin-bottom: 14px;
}

.footer-brand p {
  margin: 0;
  max-width: 42ch;
  color: color-mix(in srgb, var(--paper) 62%, transparent);
  font-size: 15px;
}

.footer-nav,
.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-heading {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--paper) 50%, transparent);
  margin-bottom: 4px;
}

.footer-nav a {
  color: color-mix(in srgb, var(--paper) 82%, transparent);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  width: fit-content;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-meta p {
  margin: 0;
  color: color-mix(in srgb, var(--paper) 70%, transparent);
  font-size: 14px;
}

.footer-fine {
  font-family: var(--mono);
  font-size: 12px;
  color: color-mix(in srgb, var(--paper) 45%, transparent) !important;
}

/* In dark mode the footer ink is light — flip text back to a dark ink. */
@media (prefers-color-scheme: dark) {
  .site-footer {
    background: #050506;
  }
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .hero,
  .case-hero,
  .case-row,
  .story-grid,
  .analysis-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 32px;
    padding-top: 36px;
  }

  .case-grid {
    grid-template-columns: 1fr;
  }

  .compact-facts {
    grid-template-columns: 1fr 1fr;
  }

  .topbar-tag {
    display: none;
  }

  .case-row {
    gap: 18px;
  }

  .anatomy-node {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .node-date {
    padding-top: 0;
  }

  .node-body {
    border-left: 3px solid var(--accent);
  }

  .node-body::before {
    display: none;
  }

  .source-item {
    flex-direction: column;
  }

  .source-meta {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .compact-facts,
  .fact-panel {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
