:root {
  --paper: #f4f0e7;
  --paper-bright: #fffdf7;
  --ink: #11110f;
  --ink-soft: #5e5b54;
  --red: #9b1d1d;
  --red-dark: #6e1010;
  --red-pale: #f3d6d0;
  --line: rgba(17, 17, 15, .2);
  --line-strong: rgba(17, 17, 15, .55);
  --white: #fff;
  --sans: Arial, Helvetica, sans-serif;
  --serif: "Iowan Old Style", Baskerville, Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max: 1240px;
  --measure: 720px;
  --bg-canvas: var(--paper);
  --bg-surface: var(--paper-bright);
  --bg-surface-elevated: var(--paper-bright);
  --bg-surface-hover: var(--red-pale);
  --text-primary: var(--ink);
  --text-secondary: var(--ink-soft);
  --text-muted: var(--ink-soft);
  --text-link: var(--red);
  --accent-blue: var(--red);
  --accent-green: var(--ink);
  --accent-orange: var(--red-dark);
  --accent-red: var(--red);
  --accent-purple: var(--red-dark);
  --border-subtle: var(--line);
  --border-focus: var(--red);
  --border-glass: var(--line-strong);
  --container-max: var(--max);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--red); }
button, input, select { font: inherit; }
svg { display: block; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }

.skip-link {
  position: fixed; z-index: 100; top: 10px; left: 10px;
  padding: 10px 14px; background: var(--paper-bright); color: var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: 1.05;
  color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: .6rem; }
h3 { font-size: 1.45rem; margin-bottom: .4rem; }
p { color: var(--ink-soft); }
code {
  font-family: var(--mono);
  background: var(--paper-bright);
  border: 1px solid var(--line);
  padding: 1px 5px;
  font-size: .9em;
  color: var(--ink);
}

.site-header {
  position: sticky; top: 0; z-index: 30;
  border-bottom: 1px solid var(--ink);
  background: rgba(244, 240, 231, .97);
}
.header-inner {
  width: min(var(--max), calc(100% - 64px));
  min-height: 88px;
  margin: auto;
  display: grid;
  grid-template-columns: 240px 1fr auto;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink); width: max-content;
}
.brand:hover { text-decoration: none; }
.brand-logo { width: 52px; height: 52px; overflow: visible; color: var(--red); flex: 0 0 52px; }
.brand-logo path { fill: none; stroke: currentColor; stroke-width: 5.5; stroke-linecap: square; stroke-linejoin: miter; }
.brand-logo path:first-child { stroke-width: 6.5; }
.brand-logo .mark-block { fill: currentColor; stroke: none; }
.brand-wordmark {
  display: grid;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: -.035em;
  line-height: .91;
}
.brand-wordmark span:last-child { color: var(--red); }
.main-nav, .desktop-nav {
  justify-self: center;
  display: flex; align-items: center; gap: 22px;
}
.main-nav a, .desktop-nav a {
  position: relative;
  padding-block: 32px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  color: var(--ink);
}
.main-nav a::after, .desktop-nav a::after {
  content: "";
  position: absolute; right: 0; bottom: 0; left: 0;
  height: 5px; background: var(--red);
  transform: scaleX(0); transform-origin: left;
}
.main-nav a:hover::after, .main-nav a.active::after,
.desktop-nav a:hover::after, .desktop-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.search-btn, .icon-button, .menu-button {
  min-width: 44px; min-height: 44px;
  padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--ink); border-radius: 0;
  background: transparent; color: var(--ink);
  font-size: 13px; font-weight: 700;
  text-decoration: none; cursor: pointer;
}
.search-btn:hover, .icon-button:hover, .menu-button:hover {
  background: var(--red); color: var(--white); text-decoration: none;
}
.menu-button { display: none; }
.mobile-nav { border-top: 1px solid var(--ink); padding: 12px 24px 24px; background: var(--paper); }
.mobile-nav a {
  display: block; padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px; font-weight: 700; text-decoration: none; color: var(--ink);
}

.masthead { overflow: hidden; background: var(--red); color: var(--paper); }
.masthead-top {
  min-height: 54px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border-bottom: 1px solid rgba(255,255,255,.45);
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  width: min(var(--max), calc(100% - 64px));
  margin-inline: auto;
}
.masthead-wordmark {
  width: min(var(--max), calc(100% - 64px));
  margin: 5vw auto 3.5vw;
  font-family: var(--serif);
  font-size: clamp(72px, 13vw, 180px);
  font-weight: 400;
  letter-spacing: -.075em;
  line-height: .72;
  color: var(--paper);
}
.masthead-bottom {
  width: min(var(--max), calc(100% - 64px));
  margin-inline: auto;
  padding-block: 34px 44px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 64px;
  align-items: end;
  border-top: 1px solid rgba(255,255,255,.45);
}
.masthead-bottom h1 {
  max-width: 720px; margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  color: var(--paper);
}
.masthead-bottom p { max-width: 500px; margin: 0; color: var(--paper); font-size: 18px; }

.audience-board { display: grid; grid-template-columns: repeat(4, 1fr); border-inline: 1px solid var(--ink); }
.audience-board a {
  min-height: 250px; padding: 28px;
  display: grid; grid-template-rows: auto 1fr auto;
  border-right: 1px solid var(--ink);
  text-decoration: none; color: var(--ink);
}
.audience-board a:last-child { border-right: 0; }
.audience-board a:hover { background: var(--red-pale); }
.audience-board span { color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.audience-board strong { align-self: center; font-family: var(--serif); font-size: 30px; font-weight: 400; letter-spacing: -.03em; line-height: 1; }
.audience-board small { color: var(--ink-soft); font-size: 13px; }

.ticker { border-block: 1px solid var(--ink); background: var(--paper-bright); }
.ticker-inner {
  width: min(var(--max), calc(100% - 64px));
  margin: auto; min-height: 62px;
  display: flex; align-items: center; gap: 28px; overflow-x: auto;
}
.ticker span { color: var(--red); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ticker a { font-family: var(--serif); font-size: 16px; color: var(--ink); }

.container, .narrow-container { width: min(var(--max), calc(100% - 64px)); margin: 0 auto; padding: 48px 0 88px; }
.narrow-container { width: min(var(--measure), calc(100% - 64px)); }

.hero { padding: 0; text-align: left; max-width: none; }
.eyebrow-pill, .article-eyebrow, .section-kicker, .tool-badge, .card-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--red);
  font-size: 11px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  background: none; border: 0; padding: 0; border-radius: 0;
}
.hero-subtitle { font-size: 1.15rem; max-width: 40rem; margin: 0 0 28px; }
.hero-actions, .button-row { display: flex; flex-wrap: wrap; gap: 12px; }

.btn, .button {
  min-height: 49px; padding: 12px 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--red); border-radius: 0;
  background: transparent; color: var(--red);
  font-size: 14px; font-weight: 750; text-decoration: none; cursor: pointer;
}
.btn-primary, .button.primary { background: var(--red); color: var(--white); }
.btn:hover, .button:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); text-decoration: none; }
.btn-secondary { background: transparent; color: var(--red); }

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--ink);
  margin: 0 0 56px;
}
.metric-card {
  padding: 22px 20px;
  border-right: 1px solid var(--ink);
  background: var(--paper-bright);
  border-radius: 0;
}
.metric-card:last-child { border-right: 0; }
.metric-card:hover { border-color: var(--ink); }
.metric-label { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.metric-value { font-family: var(--serif); font-size: 2rem; font-weight: 400; letter-spacing: -.04em; color: var(--ink); }
.metric-sub { font-size: 13px; }

.tool-card {
  background: var(--ink); color: var(--paper);
  border: 0; border-radius: 0; padding: 48px;
  margin: 0; box-shadow: none; position: relative; overflow: visible;
}
.tool-card::before { display: none; }
.tool-card h3, .tool-header h3 { color: var(--paper); font-size: clamp(36px, 4vw, 52px); }
.tool-desc { color: #c8c5bd; }
.tool-badge { color: var(--red-pale); }
.select-wrapper select {
  width: 100%; max-width: 520px;
  padding: 14px 16px;
  border: 1px solid var(--paper); border-radius: 0;
  background: transparent; color: var(--paper);
}
.select-wrapper select option { color: var(--ink); }
.device-result-card {
  margin-top: 24px; padding: 24px 0 0;
  border-top: 1px solid rgba(255,255,255,.45);
  background: none; border-radius: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px;
}
.result-label { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--red-pale); }
.result-val { font-family: var(--serif); font-size: 1.2rem; color: var(--paper); }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 0; border: 0; border-radius: 0;
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: none; color: var(--red); width: fit-content;
}
.badge::before { display: none; }
.badge-active, .badge-ai { color: var(--red); }
.badge-legacy, .badge-obsolete { color: var(--ink-soft); }

.table-scroll { width: 100%; overflow-x: auto; border: 1px solid var(--ink); border-radius: 0; background: var(--paper-bright); margin: 24px 0; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: .94rem; }
.data-table th, .data-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.data-table th {
  background: var(--paper); color: var(--red);
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.data-table tbody tr:hover { background: var(--red-pale); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; border-top: 1px solid var(--ink); }
.card {
  min-width: 0; padding: 24px 28px 28px 0;
  background: none; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0;
  display: flex; flex-direction: column; color: inherit; text-decoration: none;
}
.card:nth-child(3n+2), .card:nth-child(3n+3) { padding-left: 28px; border-left: 1px solid var(--ink); }
.card:hover { transform: none; box-shadow: none; text-decoration: none; }
.card:hover .card-title { color: var(--red); }
.card-title { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; color: var(--ink); }
.card-desc { color: var(--ink-soft); font-size: .95rem; flex: 1; }
.card-meta {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: auto; padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--red);
}

.article-header { margin-bottom: 28px; padding-top: 12px; border-top: 7px solid var(--red); }
.article-byline { display: flex; flex-wrap: wrap; gap: 12px; font-size: .88rem; color: var(--ink-soft); margin-top: 12px; }
.answer-box {
  background: var(--paper-bright);
  border: 1px solid var(--ink);
  border-left: 7px solid var(--red);
  border-radius: 0;
  padding: 22px 24px;
  margin: 28px 0;
}
.answer-box .box-label { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--red); text-transform: uppercase; margin-bottom: 8px; }
.answer-box p { color: var(--ink); font-size: 1.08rem; }

.prose { max-width: var(--measure); }
.prose section { margin: 32px 0; }
.prose h2 { font-size: 1.8rem; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--ink); }
.prose p, .prose li { margin-bottom: 12px; }
.prose ul, .prose ol { margin: 12px 0 20px 22px; color: var(--ink-soft); }

.faq-block { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--ink); }
.faq-item { margin-bottom: 22px; }
.sources-block {
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid var(--ink);
  background: none; border-radius: 0;
}
.sources-block ul { list-style: none; }

.timeline { margin: 40px 0; padding-left: 28px; border-left: 2px solid var(--ink); }
.timeline::before { display: none; }
.timeline-item { margin-bottom: 32px; }
.timeline-dot { display: none; }
.timeline-year { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--red); text-transform: uppercase; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 0; margin: 24px 0; border: 1px solid var(--ink); }
.filter-btn {
  background: var(--paper); border: 0; border-right: 1px solid var(--ink); border-radius: 0;
  color: var(--ink); padding: 10px 16px; font-size: 12px; font-weight: 700; cursor: pointer;
}
.filter-btn:last-child { border-right: 0; }
.filter-btn:hover { background: var(--red-pale); }
.filter-btn.active { background: var(--red); color: var(--white); }

.search-box {
  width: 100%; padding: 16px 18px;
  font-size: 1.1rem;
  background: var(--paper-bright);
  border: 1px solid var(--ink); border-radius: 0;
  color: var(--ink); outline: none; margin-bottom: 24px;
}

.site-footer { margin-top: auto; background: var(--ink); color: #c8c5bd; }
.footer-inner { width: min(var(--max), calc(100% - 64px)); margin: auto; padding: 64px 0 36px; }
.footer-top { display: grid; grid-template-columns: 1.2fr 2.2fr; gap: 48px; margin-bottom: 36px; }
.footer-tagline { margin-top: 12px; max-width: 360px; color: #c8c5bd; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-col h4 { font-family: var(--sans); font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--paper); margin-bottom: 14px; }
.footer-col a { display: block; color: #c8c5bd; font-size: .9rem; margin-bottom: 8px; text-decoration: none; }
.footer-col a:hover { color: var(--paper); }
.footer-legal { border-top: 1px solid rgba(255,255,255,.35); padding-top: 22px; font-size: .8rem; }
.legal-notice { color: #c8c5bd; }
.legal-meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.site-footer .brand-logo { color: var(--paper); }
.site-footer .brand-wordmark { color: var(--paper); }
.site-footer .brand-wordmark span:last-child { color: var(--red-pale); }

.compatibility-widget.widget-compact { margin: 24px 0; padding: 28px; }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: 1fr auto; width: min(100% - 32px, var(--max)); }
  .main-nav { display: none; }
  .menu-button { display: inline-flex; }
  .audience-board, .metrics-strip, .grid { grid-template-columns: 1fr 1fr; }
  .audience-board a { border-bottom: 1px solid var(--ink); min-height: 200px; }
  .card:nth-child(3n+2), .card:nth-child(3n+3) { padding-left: 0; border-left: 0; }
  .card:nth-child(2n) { padding-left: 20px; border-left: 1px solid var(--ink); }
  .masthead-bottom, .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .audience-board, .metrics-strip, .grid { grid-template-columns: 1fr; }
  .audience-board a, .metric-card { border-right: 0; border-bottom: 1px solid var(--ink); }
  .card:nth-child(2n) { padding-left: 0; border-left: 0; }
  .container, .narrow-container, .masthead-wordmark, .masthead-top, .masthead-bottom, .footer-inner, .ticker-inner {
    width: min(100% - 32px, var(--max));
  }
  .tool-card { padding: 28px 18px; }
  .masthead-wordmark { font-size: clamp(56px, 18vw, 96px); }
}
