:root {
  --ink: #19212b; --muted: #555f6c; --dim: #646f7c; --bg: #fff;
  --panel: #f4f6f8; --panel-2: #edf1f5; --line: #e2e6ea;
  --accent: #2457c5; --accent-light: #f0f5ff;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-underline-offset: 4px; }
button { cursor: pointer; }
svg { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 100; padding: 12px 18px; color: #fff; background: var(--accent); }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid var(--line); background: #fff; }
.header-inner { display: flex; align-items: center; gap: 24px; max-width: 1120px; min-height: 72px; margin: auto; padding: 10px 32px; }
.brand { display: inline-block; color: var(--ink); font-size: 1.375rem; font-weight: 750; letter-spacing: -.045em; line-height: 1.25; text-decoration: none; }
.brand > span { color: var(--accent); }
.primary-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.primary-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: .9375rem; text-decoration: none; }
.primary-nav a:hover, .primary-nav a[aria-current] { color: var(--ink); }
.primary-nav a[aria-current] { font-weight: 650; }
.search-trigger { display: grid; flex: none; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink); }
.search-trigger:hover { background: var(--panel); }
.home-shell { max-width: 1120px; padding: 0 32px; margin: auto; }
.publication-intro { padding: 46px 0 42px; }
.publication-intro h1 { margin: 0 0 13px; font-size: clamp(1.75rem, 3.1vw, 2.25rem); font-weight: 650; line-height: 1.25; letter-spacing: -.045em; }
.publication-intro p { margin: 0; font-size: 1.0625rem; color: var(--muted); line-height: 1.7; }
.article-feed { border-top: 1px solid var(--ink); }
.feed-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0 0; }
.feed-heading h2 { margin: 0; font-size: .875rem; font-weight: 650; }
.feed-heading > span { font-size: .8125rem; color: var(--dim); }
.article-row { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 38px; align-items: center; padding: 30px 0 34px; border-bottom: 1px solid var(--line); }
.article-image { display: block; text-decoration: none; border-radius: 4px; overflow: hidden; }
.router-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px 12px 14px; background: var(--panel); }
.router-pair > div { min-width: 0; text-align: center; }
.product-shot { height: 166px; overflow: hidden; }
.product-shot img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.65); }
.router-pair > div:nth-child(2) img { transform: scale(1.1); }
.router-pair span { display: block; color: var(--muted); font-size: .8125rem; font-weight: 550; line-height: 1.5; }
.article-summary { min-width: 0; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: .875rem; font-weight: 600; }
.article-summary h3 { max-width: 630px; margin: 0 0 12px; font-size: clamp(1.5rem, 2.65vw, 1.875rem); font-weight: 650; letter-spacing: -.035em; line-height: 1.2; }
.article-summary h3 a { text-decoration: none; }
.article-summary h3 a:hover { color: var(--accent); }
.article-excerpt { max-width: 600px; margin: 0 0 18px; color: var(--muted); font-size: 1.0625rem; line-height: 1.65; }
.story-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 18px; color: var(--dim); font-size: .8125rem; line-height: 1.6; }
.story-meta strong { color: var(--ink); font-weight: 600; }
.feed-end { margin: 0; padding: 38px 0 52px; color: var(--dim); font-size: .9375rem; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; max-width: 1056px; margin: 0 auto; padding: 26px 0 34px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--dim); }
.site-footer p { margin: 0; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; gap: 7px; text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.about-shell { max-width: 804px; margin: 0 auto; padding: 50px 32px 72px; }
.about-shell h1 { margin: 0 0 22px; font-size: clamp(2.25rem, 5vw, 3.25rem); font-weight: 650; letter-spacing: -.045em; line-height: 1.12; }
.about-shell .about-lede { color: var(--ink); font-size: 1.375rem; line-height: 1.5; }
.about-shell p { color: var(--muted); font-size: 1.125rem; line-height: 1.8; margin: 0 0 22px; }
.about-shell h2 { font-size: 1.375rem; line-height: 1.3; letter-spacing: -.025em; margin: 36px 0 16px; }
.about-shell a { color: var(--accent); }
dialog { color: var(--ink); border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 24px 90px #14243f30; }
dialog::backdrop { background: #18233765; }
body:has(dialog[open]) { overflow: hidden; }
.article-dialog { width: min(720px, calc(100% - 32px)); max-height: 88dvh; padding: 0; }
.dialog-close { position: sticky; top: 12px; z-index: 2; float: right; margin: 12px 12px 0 0; display: grid; width: 44px; height: 44px; place-items: center; font-size: 1.75rem; color: var(--muted); border: 1px solid var(--line); border-radius: 50%; background: #fff; }
#articleBody { padding: 60px clamp(24px, 6vw, 48px) 40px; }
.article-kicker { color: var(--accent); font-size: .875rem; font-weight: 600; }
#articleBody h2 { margin: 14px 0 20px; font-size: clamp(1.75rem, 5vw, 2.5rem); font-weight: 650; line-height: 1.18; letter-spacing: -.035em; }
.article-lede { color: var(--muted); font-size: 1.125rem; line-height: 1.8; }
.article-outline { margin: 24px 0; }
.outline-row { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 6px 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.outline-row b { color: var(--dim); font-size: .875rem; font-weight: 500; }
.outline-row strong { font-size: 1rem; }
.outline-row small { grid-column: 2; color: var(--muted); font-size: .875rem; }
.article-callout { margin-top: 26px; padding: 18px 20px; color: var(--muted); background: var(--panel); font-size: 1rem; line-height: 1.75; }
.search-dialog { width: min(700px, calc(100% - 32px)); max-height: 80dvh; margin-top: 10dvh; padding: 0; }
.search-box { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; padding: 8px 0; color: var(--ink); background: transparent; font-size: 1rem; }
.search-box:focus-within { box-shadow: inset 0 -2px var(--accent); }
.search-close { width: 44px; height: 44px; flex: none; border: 0; background: transparent; color: var(--muted); font-size: 1.75rem; }
.search-meta { padding: 14px 22px; color: var(--dim); font-size: .875rem; }
.search-results { padding: 0 10px 12px; }
.search-result { display: block; width: 100%; border: 0; border-radius: 4px; background: transparent; text-align: left; padding: 16px 14px; text-decoration: none; }
.search-result:hover { background: var(--panel); }
.search-result strong { display: block; margin: 4px 0; color: var(--ink); font-size: 1.0625rem; line-height: 1.45; }
.search-description { display: block; color: var(--muted); font-size: .875rem; line-height: 1.6; }
.search-result small { color: var(--accent); font-size: .8125rem; }
.empty-state { padding: 24px 14px; color: var(--muted); }
.empty-state strong { color: var(--ink); }
.empty-state p { margin: 8px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 1120px) { .site-footer { margin-inline: 32px; } }
@media (max-width: 800px) {
  .article-row { grid-template-columns: 260px minmax(0, 1fr); gap: 26px; }
  .product-shot { height: 158px; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 86px; }
  .header-inner { min-height: 64px; padding: 8px 18px; gap: 6px; flex-wrap: wrap; }
  .brand { font-size: 1.125rem; }
  .primary-nav { gap: 15px; }
  .primary-nav a { font-size: .875rem; }
  .search-trigger { width: 40px; }
  .home-shell { padding-inline: 22px; }
  .publication-intro { padding: 32px 0; }
  .publication-intro h1 { max-width: 470px; font-size: 1.75rem; line-height: 1.25; }
  .publication-intro p { font-size: 1rem; }
  .feed-heading { padding-top: 18px; }
  .article-row { grid-template-columns: minmax(0, 1fr); gap: 23px; padding: 24px 0 28px; }
  .router-pair { padding: 14px 16px; }
  .product-shot { height: clamp(160px, 44vw, 240px); }
  .article-summary h3 { font-size: 1.65rem; }
  .article-excerpt { font-size: 1rem; }
  .feed-end { padding: 30px 0 40px; }
  .site-footer { margin-inline: 22px; gap: 8px; padding: 18px 0 24px; }
  .about-shell { padding: 34px 22px 48px; }
}
@media (max-width: 359px) {
  .header-inner { column-gap: 4px; }
  .brand { font-size: 1rem; }
  .primary-nav { gap: 10px; }
  .search-trigger { width: 36px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.article-row-text { grid-template-columns: minmax(0, 1fr); }
