@font-face {
  font-family: "Silkscreen";
  src: url("/fonts/silkscreen-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Silkscreen";
  src: url("/fonts/silkscreen-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #111126;
  --ink-soft: #1a1936;
  --surface: #f8f2dc;
  --surface-raised: #fff9e8;
  --text: #15142a;
  --text-soft: #5c5865;
  --line: #cbc0a5;
  --accent: #ee693f;
  --accent-deep: #b83f28;
  --accent-contrast: #fff9e8;
  --sun: #f5a524;
  --forest: #21734c;
  --shadow: #766852;
  --font-display: "Silkscreen", ui-monospace, monospace;
  --font-body: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --shell: min(1180px, calc(100vw - 48px));
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #111126;
    --surface-raised: #1a1936;
    --text: #f7f0d9;
    --text-soft: #b9b1b7;
    --line: #3a3853;
    --accent: #f1744e;
    --accent-deep: #d95635;
    --accent-contrast: #111126;
    --shadow: #070714;
  }
}

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

html {
  color-scheme: light dark;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  inset: 12px auto auto 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-family: var(--font-display);
  font-size: 12px;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.section-shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: var(--shell);
  min-height: 72px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-prompt,
.brand--footer span {
  color: var(--accent);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
}

.main-nav a {
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--text);
}

.main-nav a:active {
  transform: translateY(1px);
}

.main-nav .nav-x {
  padding: 9px 13px;
  border: 2px solid var(--text);
  color: var(--text);
  box-shadow: 4px 4px 0 var(--accent);
}

.menu-toggle {
  display: none;
  border: 2px solid var(--text);
  border-radius: 0;
  padding: 8px 10px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100dvh - 72px);
  max-height: 920px;
  overflow: hidden;
  display: grid;
  align-items: center;
  background: var(--ink);
  color: #f8f2dc;
}

.hero__art,
.hero__shade {
  position: absolute;
  inset: 0;
}

.hero__art {
  z-index: -3;
  background-image: url("/images/generated/dgeek-hero.webp");
  background-position: center;
  background-size: cover;
  image-rendering: pixelated;
  transform: scale(1.02);
}

.hero__shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(17, 17, 38, 0.97) 0%, rgba(17, 17, 38, 0.9) 38%, rgba(17, 17, 38, 0.25) 72%, rgba(17, 17, 38, 0.16) 100%),
    linear-gradient(0deg, rgba(17, 17, 38, 0.55), transparent 42%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.17;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 6px 6px;
  mask-image: linear-gradient(90deg, transparent 38%, black 100%);
}

.hero__content {
  width: var(--shell);
  margin-inline: auto;
  padding-block: 72px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.hero h1 {
  max-width: 840px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(42px, 6.3vw, 82px);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 1.05;
  text-wrap: balance;
}

.hero h1 span {
  color: var(--sun);
}

.hero__lede {
  max-width: 560px;
  margin: 26px 0 0;
  color: #d8d0c2;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.pixel-button {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 2px solid var(--accent);
  border-radius: 0;
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: 5px 5px 0 color-mix(in srgb, var(--accent-deep) 76%, var(--ink));
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.pixel-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 color-mix(in srgb, var(--accent-deep) 76%, var(--ink));
}

.pixel-button:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 color-mix(in srgb, var(--accent-deep) 76%, var(--ink));
}

.pixel-button--ghost {
  border-color: #f8f2dc;
  background: rgba(17, 17, 38, 0.64);
  color: #f8f2dc;
  box-shadow: 5px 5px 0 rgba(248, 242, 220, 0.26);
}

.pixel-button--ghost:hover {
  background: rgba(17, 17, 38, 0.88);
  box-shadow: 7px 7px 0 rgba(248, 242, 220, 0.26);
}

.pixel-button--small {
  min-height: 42px;
  padding: 10px 16px;
  font-size: 11px;
}

.signal-strip {
  overflow: hidden;
  border-block: 3px solid var(--ink);
  background: var(--sun);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1;
}

.signal-strip__track {
  width: max-content;
  display: flex;
  gap: 56px;
  padding-block: 17px;
  animation: signal-move 26s linear infinite;
}

.signal-strip__track span::after {
  content: "+";
  margin-left: 56px;
  color: var(--accent-deep);
}

@keyframes signal-move {
  to { transform: translateX(-50%); }
}

.latest,
.coverage,
.about,
.youtube,
.listing {
  padding-block: clamp(76px, 10vw, 132px);
}

/* The tools callout sits between two padded sections, so it only needs the
   trailing half of the rhythm. */
.tools {
  padding-block: 0 clamp(76px, 10vw, 132px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}

.section-heading h2,
.coverage__intro h2,
.about h2,
.youtube h2,
.page-hero h1 {
  max-width: 820px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 4.6vw, 58px);
  letter-spacing: -0.055em;
  line-height: 1.08;
  text-wrap: balance;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  white-space: nowrap;
}

.text-link span {
  color: var(--accent);
  transition: transform 160ms ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

.stories-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  grid-template-areas:
    "lead second"
    "lead third"
    "fourth fourth";
  gap: 24px;
}

.story-card {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border: 2px solid var(--line);
  background: var(--surface-raised);
  box-shadow: 8px 8px 0 color-mix(in srgb, var(--shadow) 28%, transparent);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.story-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: var(--accent);
}

.story-card:nth-child(1) { grid-area: lead; min-height: 624px; }
.story-card:nth-child(2) { grid-area: second; }
.story-card:nth-child(3) { grid-area: third; }
.story-card:nth-child(4) { grid-area: fourth; min-height: 260px; }

.story-card--green::before { background: var(--forest); }
.story-card--amber::before { background: var(--sun); }

.story-card:hover {
  border-color: var(--text);
  box-shadow: 12px 12px 0 color-mix(in srgb, var(--accent) 55%, transparent);
  transform: translate(-3px, -3px);
}

.story-card__link {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 34px;
  text-decoration: none;
}

.story-card__meta,
.article-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.story-card__meta span,
.article-header__meta a {
  color: var(--accent);
  font-weight: 900;
}

.story-card h3 {
  margin: 26px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(21px, 2.4vw, 38px);
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.story-card:not(:first-child) h3 {
  font-size: clamp(18px, 1.9vw, 26px);
}

.story-card p {
  max-width: 54ch;
  margin: 0 0 28px;
  color: var(--text-soft);
  line-height: 1.55;
}

.story-card .text-link {
  margin-top: auto;
}

.coverage {
  border-top: 2px solid var(--line);
}

.coverage__intro {
  max-width: 860px;
  margin-bottom: 54px;
}

.coverage__intro p {
  max-width: 610px;
  margin: 22px 0 0;
  color: var(--text-soft);
  font-size: 19px;
}

.coverage-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 0.75fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

.coverage-tile {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border: 2px solid var(--line);
  padding: 30px;
  background: var(--surface-raised);
  color: var(--text);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease;
}

.coverage-tile:hover {
  border-color: var(--text);
  transform: translateY(-5px);
}

.coverage-tile--ai {
  grid-row: span 2;
  min-height: 540px;
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--accent) 28%, var(--surface-raised)), var(--surface-raised) 62%);
}

.coverage-tile--tech {
  grid-column: span 2;
  min-height: 260px;
  background:
    repeating-linear-gradient(135deg, transparent 0 16px, color-mix(in srgb, var(--sun) 15%, transparent) 16px 18px),
    var(--surface-raised);
}

.coverage-tile__glyph {
  display: inline-grid;
  min-width: 68px;
  min-height: 58px;
  place-items: center;
  border: 3px solid currentColor;
  padding: 8px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 18px;
  box-shadow: 5px 5px 0 currentColor;
}

.coverage-tile h3 {
  max-width: 430px;
  margin: 50px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(19px, 2.1vw, 31px);
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.coverage-tile--ai h3 {
  margin-top: 180px;
}

.coverage-tile p {
  max-width: 44ch;
  margin: 0;
  color: var(--text-soft);
  line-height: 1.5;
}

.about {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1.2fr);
  align-items: center;
  gap: clamp(50px, 9vw, 120px);
}

.about__portrait {
  position: relative;
  isolation: isolate;
  padding: 22px;
  border: 3px solid var(--text);
  background: var(--surface-raised);
  box-shadow: 12px 12px 0 var(--accent);
  transform: rotate(-2deg);
}

.about__portrait img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  image-rendering: pixelated;
}

.about__sun {
  position: absolute;
  z-index: -1;
  top: -40px;
  right: -44px;
  width: 116px;
  aspect-ratio: 1;
  background: var(--sun);
  clip-path: polygon(40% 0, 60% 0, 64% 24%, 78% 5%, 95% 20%, 76% 36%, 100% 40%, 100% 60%, 76% 64%, 95% 80%, 78% 95%, 64% 76%, 60% 100%, 40% 100%, 36% 76%, 22% 95%, 5% 80%, 24% 64%, 0 60%, 0 40%, 24% 36%, 5% 20%, 22% 5%, 36% 24%);
}

.about__copy p {
  max-width: 590px;
  margin: 24px 0 0;
  color: var(--text-soft);
  font-size: 19px;
}

.about__copy .pixel-button {
  margin-top: 32px;
}

.youtube {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: stretch;
  gap: 0;
}

.youtube__screen {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 4px solid var(--ink);
  background: var(--ink);
  box-shadow: 10px 10px 0 var(--accent);
}

.youtube__scanlines {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: repeating-linear-gradient(0deg, transparent 0 5px, rgba(17, 17, 38, 0.24) 5px 7px);
}

.youtube__play {
  position: absolute;
  z-index: 4;
  inset: 50% auto auto 50%;
  border: 3px solid #f8f2dc;
  padding: 15px 17px;
  background: var(--accent);
  color: #111126;
  box-shadow: 7px 7px 0 rgba(17, 17, 38, 0.7);
  font-family: var(--font-display);
  font-size: 13px;
  transform: translate(-50%, -50%);
}

.youtube__landscape {
  position: absolute;
  inset: 0;
  background-image: url("/images/reference/nik-banner.jpg");
  background-position: center;
  background-size: cover;
  image-rendering: pixelated;
  opacity: 0.76;
  transform: scale(1.12);
}

.youtube__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 3px solid var(--line);
  border-left: 0;
  padding: clamp(34px, 5vw, 64px);
  background: var(--surface-raised);
}

.youtube__copy p:not(.eyebrow) {
  margin: 22px 0 0;
  color: var(--text-soft);
}

.youtube h2 {
  font-size: clamp(26px, 3.2vw, 44px);
}

.soon-label {
  width: fit-content;
  margin-top: 30px;
  border: 2px dashed var(--accent);
  padding: 9px 12px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
}

.page-hero {
  padding-block: clamp(76px, 10vw, 130px) 70px;
}

.page-hero p:last-child {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--text-soft);
  font-size: 20px;
}

.listing {
  padding-top: 0;
}

.stories-grid--listing {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas: none;
}

.stories-grid--listing .story-card {
  grid-area: auto;
  min-height: 360px;
}

.pagination {
  margin-top: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.empty-state {
  border: 3px dashed var(--line);
  padding: clamp(36px, 8vw, 88px);
  text-align: center;
}

.empty-state h2,
.empty-state h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
}

.empty-state p {
  margin: 16px auto 28px;
  color: var(--text-soft);
}

.article-shell {
  width: min(880px, calc(100vw - 48px));
  margin-inline: auto;
  padding-block: clamp(70px, 10vw, 128px);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 24px;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.breadcrumbs a {
  color: var(--accent-deep);
  text-underline-offset: 3px;
}

.breadcrumbs [aria-current="page"] {
  overflow: hidden;
  max-width: min(52ch, 60vw);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-header {
  padding-bottom: 52px;
  border-bottom: 3px solid var(--text);
}

.article-header__meta a {
  text-decoration: none;
}

.article-header h1 {
  margin: 28px 0 20px;
  font-family: var(--font-display);
  font-size: clamp(38px, 6.2vw, 72px);
  letter-spacing: -0.06em;
  line-height: 1.06;
  text-wrap: balance;
}

.article-header > p {
  max-width: 700px;
  margin: 0;
  color: var(--text-soft);
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.5;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.article-author img {
  width: 56px;
  aspect-ratio: 1;
  border: 2px solid var(--text);
  object-fit: cover;
  image-rendering: pixelated;
}

.article-author div {
  display: grid;
  line-height: 1.35;
}

.article-author strong {
  font-family: var(--font-mono);
  font-size: 13px;
}

.article-author strong a {
  color: inherit;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.article-author span {
  color: var(--text-soft);
  font-size: 13px;
}

.article-body {
  padding-block: 44px 30px;
  font-size: 19px;
  line-height: 1.8;
}

.article-body h2,
.article-body h3 {
  margin: 2.2em 0 0.7em;
  font-family: var(--font-display);
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.article-body h2 { font-size: clamp(25px, 3.4vw, 36px); }
.article-body h3 { font-size: clamp(21px, 2.8vw, 29px); }

.article-body p,
.article-body ul,
.article-body ol {
  margin: 0 0 1.45em;
}

.article-body a {
  color: var(--accent-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.article-body blockquote {
  margin: 2em 0;
  border-left: 6px solid var(--accent);
  padding: 16px 0 16px 26px;
  color: var(--text-soft);
  font-size: 1.1em;
}

.article-body code {
  padding: 0.1em 0.32em;
  background: var(--surface-raised);
  color: var(--accent-deep);
  font-family: var(--font-mono);
  font-size: 0.88em;
}

.article-body pre {
  overflow-x: auto;
  border: 2px solid var(--line);
  padding: 24px;
  background: var(--ink);
  color: #f8f2dc;
}

.article-body pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.article-footer {
  margin-top: 42px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
  border-top: 2px solid var(--line);
  padding-top: 32px;
}

.article-footer p {
  width: 100%;
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
}

.site-footer {
  border-top: 3px solid var(--ink);
  background: var(--ink);
  color: #f8f2dc;
}

.footer-shell {
  width: var(--shell);
  min-height: 270px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: center;
  gap: 34px 70px;
  padding-block: 58px;
}

.brand--footer {
  color: #f8f2dc;
}

.footer-shell > div:first-child p {
  max-width: 430px;
  margin: 18px 0 0;
  color: #bdb6ae;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}

.footer-links a {
  color: #f8f2dc;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  color: #8c8690;
  font-family: var(--font-mono);
  font-size: 11px;
}

@media (max-width: 900px) {
  :root { --shell: min(100% - 32px, 760px); }

  .menu-toggle { display: inline-flex; }

  .main-nav {
    position: absolute;
    inset: 72px 16px auto;
    display: none;
    align-items: stretch;
    gap: 0;
    border: 2px solid var(--text);
    padding: 12px;
    background: var(--surface-raised);
    box-shadow: 8px 8px 0 var(--accent);
  }

  .main-nav[data-open] { display: grid; }

  .main-nav a {
    padding: 12px;
    color: var(--text);
  }

  .main-nav .nav-x { margin-top: 4px; }

  .hero {
    min-height: calc(100dvh - 72px);
    max-height: none;
  }

  .hero__art { background-position: 58% center; }

  .hero__shade {
    background: linear-gradient(90deg, rgba(17, 17, 38, 0.98), rgba(17, 17, 38, 0.72));
  }

  .hero__content { padding-block: 64px; }

  .stories-grid {
    grid-template-columns: 1fr;
    grid-template-areas: none;
  }

  .story-card,
  .story-card:nth-child(1),
  .story-card:nth-child(2),
  .story-card:nth-child(3),
  .story-card:nth-child(4) {
    grid-area: auto;
    min-height: 330px;
  }

  .coverage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .coverage-tile--ai,
  .coverage-tile--tech {
    grid-column: auto;
    grid-row: auto;
    min-height: 330px;
  }

  .coverage-tile--ai { grid-column: span 2; }
  .coverage-tile--ai h3 { margin-top: 70px; }

  .about {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 44px;
  }

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

  .youtube__copy {
    border: 3px solid var(--line);
    border-top: 0;
  }
}

@media (max-width: 680px) {
  :root { --shell: calc(100vw - 32px); }

  body { font-size: 16px; }

  .hero h1 {
    max-width: 520px;
    font-size: clamp(36px, 11vw, 58px);
    line-height: 1.08;
  }

  .hero__lede { max-width: 34ch; }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .story-card__link { padding: 28px 24px; }

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

  .coverage-tile,
  .coverage-tile--ai,
  .coverage-tile--tech {
    grid-column: auto;
    min-height: 300px;
  }

  .coverage-tile--ai h3,
  .coverage-tile h3 { margin-top: 76px; }

  .about {
    grid-template-columns: 1fr;
    padding-inline: 0;
  }

  .about__portrait { width: calc(100% - 32px); }

  .youtube { width: 100%; }
  .youtube__screen { min-height: 330px; border-inline: 0; }
  .youtube__copy { border-inline: 0; padding-inline: 24px; }

  .stories-grid--listing { grid-template-columns: 1fr; }

  .article-shell { width: calc(100vw - 32px); }

  .article-header h1 { font-size: clamp(34px, 10vw, 52px); }

  .article-body { font-size: 17px; }

  .footer-shell {
    grid-template-columns: 1fr;
  }

  .copyright { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .signal-strip__track { transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--surface);
    backdrop-filter: none;
  }
}

/* ---------------------------------------------------------------------------
   Tools — /tools/ index, tool page headers and the homepage tools callout.
   Widget-specific styles live in per-tool stylesheets (see extraCSS).
   --------------------------------------------------------------------------- */

.tool-header {
  padding-bottom: 40px;
}

.tool-header h1 {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: clamp(32px, 7vw, 52px);
  line-height: 1.12;
}

.tool-header > p:last-child {
  max-width: 62ch;
  margin: 20px 0 0;
  color: var(--text-soft);
  font-size: 19px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
}

.tool-card {
  display: block;
  padding: 32px 30px;
  border: 3px solid var(--text);
  background: var(--surface-raised);
  box-shadow: 7px 7px 0 color-mix(in srgb, var(--shadow) 58%, transparent);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.tool-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 10px 10px 0 color-mix(in srgb, var(--shadow) 58%, transparent);
}

.tool-card__tag {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent-deep);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.tool-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.2;
}

.tool-card p {
  margin: 14px 0 20px;
  color: var(--text-soft);
  font-size: 16px;
}

/* Homepage callout */

.tools-cta {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px 56px;
  padding: clamp(34px, 5vw, 58px);
  border: 3px solid var(--text);
  background: var(--surface-raised);
  box-shadow: 9px 9px 0 color-mix(in srgb, var(--shadow) 58%, transparent);
}

.tools-cta h2 {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.16;
}

.tools-cta__copy > p {
  max-width: 48ch;
  margin: 18px 0 0;
  color: var(--text-soft);
}

.tools-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
}

.tools-cta__demo {
  padding: 26px 24px;
  border: 2px dashed var(--line);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.tools-cta__demo span {
  display: block;
  margin-bottom: 10px;
  color: var(--text-soft);
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.tools-cta__demo b {
  color: var(--accent-deep);
  font-weight: 700;
}

/* Tables inside long-form content, used by the tool explainers. */

.article-body table {
  width: 100%;
  margin: 32px 0;
  border-collapse: collapse;
  font-size: 16px;
}

.article-body th,
.article-body td {
  padding: 12px 14px;
  border: 2px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article-body th {
  background: color-mix(in srgb, var(--line) 30%, transparent);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-body td code {
  white-space: nowrap;
}

.tool-faq {
  margin: 30px 0 0;
}

.tool-faq dt {
  margin-top: 30px;
  font-size: 19px;
  font-weight: 700;
}

.tool-faq dd {
  margin: 10px 0 0;
  color: var(--text-soft);
}

@media (max-width: 900px) {
  .tools-cta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .tool-grid { grid-template-columns: 1fr; }

  .tool-card {
    padding: 26px 22px;
    box-shadow: 5px 5px 0 color-mix(in srgb, var(--shadow) 58%, transparent);
  }

  .tools-cta {
    box-shadow: 5px 5px 0 color-mix(in srgb, var(--shadow) 58%, transparent);
  }

  /* Narrow screens: let a wide table scroll inside itself rather than
     forcing the whole page to scroll sideways. */
  .article-body table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    font-size: 15px;
  }

  .article-body th,
  .article-body td { padding: 10px 11px; }
}
