:root {
  --paper:       #fafaf8;
  --paper-2:     #f3f3ef;
  --ink:         #0f0f0d;
  --ink-soft:    #3a3a36;
  --grey:        #9a9a92;
  --grey-2:      #c4c4bc;
  --accent:      #c8102e;
  --signal:      #c8102e;
  --rule:        #e8e8e2;
  --rule-strong: #c8c8c0;
  --body:    'Inter', sans-serif;
  --display: 'Inter Tight', sans-serif;
  --mono:    'JetBrains Mono', monospace;
  --max:      1200px;
  --reading:  680px;
  --gutter:   clamp(20px, 4vw, 48px);
  --duration: 0.22s;
  --ease:     cubic-bezier(0.16, 1, 0.3, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body { background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.65; font-weight: 400; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.reading { max-width: var(--reading); margin: 0 auto; padding: 0 var(--gutter); }
/* Nav */
.topnav { position: sticky; top: 0; z-index: 50; background: rgba(250,250,248,0.94); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--rule); }
.topnav__row { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 24px; }
.topnav__brand { font-family: var(--mono); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.32em; color: var(--ink); }
.topnav__brand:hover { opacity: 0.6; }
.topnav__links { display: flex; gap: clamp(16px, 2vw, 28px); }
.topnav__links a { font-family: var(--mono); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 0.24em; color: var(--ink); opacity: 0.65; transition: opacity 0.15s; }
.topnav__links a:hover { opacity: 1; }
/* Breadcrumb */
.crumb { max-width: var(--max); margin: 0 auto; padding: 18px var(--gutter) 0; display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.24em; color: var(--grey); }
.crumb a { color: var(--grey); }
.crumb a:hover { color: var(--ink); }
.crumb .sep { color: var(--rule-strong); }
/* Article header */
.article-head { padding: clamp(28px, 4.5vw, 56px) 0 clamp(24px, 3.5vw, 40px); border-bottom: 1px solid var(--rule); }
.article-head__inner { display: grid; grid-template-columns: 1fr 380px; gap: clamp(24px, 4vw, 48px); align-items: start; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.article-head__text { display: flex; flex-direction: column; gap: clamp(16px, 2.5vw, 24px); }
.article-head__img { margin: 0; }
.article-head__img img { width: 100%; height: auto; display: block; }
@media (max-width: 768px) { .article-head__inner { grid-template-columns: 1fr; } .article-head__img { max-width: 200px; } }
.article-cat { font-family: var(--mono); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 0.28em; color: var(--accent); }
.article-title { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 5.5vw, 72px); line-height: 0.98; letter-spacing: -0.025em; color: var(--ink); max-width: 20ch; }
.article-deck { font-family: var(--display); font-weight: 400; font-size: clamp(16px, 1.7vw, 20px); line-height: 1.5; color: var(--ink-soft); letter-spacing: -0.005em; max-width: 52ch; }
.article-byline { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; letter-spacing: 0.20em; text-transform: uppercase; color: var(--ink-soft); padding-top: clamp(8px, 1.5vw, 16px); border-top: 1px solid var(--rule); }
.article-byline .sep { color: var(--grey-2); }
.article-byline strong { color: var(--ink); font-weight: 600; }
/* Article body */
.article-body { padding: clamp(36px, 5.5vw, 64px) 0; }
.article-body .reading { display: flex; flex-direction: column; gap: 1.5em; }
.article-body p { font-family: var(--body); font-size: 17px; line-height: 1.75; color: var(--ink-soft); }
.article-body h2 { font-family: var(--display); font-weight: 400; font-size: clamp(22px, 3vw, 32px); line-height: 1.1; letter-spacing: -0.022em; color: var(--ink); margin-top: 0.5em; }
.article-body blockquote { border-left: 2px solid var(--ink); padding-left: 24px; margin: 0; }
.article-body blockquote p { font-family: var(--display); font-size: clamp(18px, 2vw, 22px); line-height: 1.45; color: var(--ink); font-style: normal; }
/* Footer */
.article-foot { max-width: var(--reading); margin: 0 auto; padding: 0 var(--gutter) clamp(48px, 7vw, 80px); }
.back-link { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.24em; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 3px; transition: color 0.15s, border-color 0.15s; }
.back-link:hover { color: var(--accent); border-color: var(--accent); }
.site-footer { background: var(--paper); border-top: 1px solid var(--rule); padding: clamp(48px, 6vw, 72px) 0 clamp(24px, 3vw, 36px); }
.site-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--grey); }
.site-footer .accent { color: var(--accent); }
@media (max-width: 720px) {
  .topnav__links { display: none; }
}
