/* ══════════════════════════════════════════════════════════
   naveed.io — article / essay pages (dark, matches site)
   ══════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700;12..96,800&family=Instrument+Sans:wght@400;500;600&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --bg: #08090c; --bg-2: #0c0e12; --surface: #101319; --surface-2: #141821;
  --line: #20242e; --line-2: #2b303c;
  --fg: #eef0f4; --fg-2: #a2a8b4; --fg-3: #6b7280; --fg-4: #464c58;
  --acid: #5bc8ff; --acid-glow: rgba(91,200,255,0.16); --accent2: #9d8bff;
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Instrument Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  font-family: var(--font-body);
  background: var(--bg); color: var(--fg);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; opacity: .22;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 25%, transparent 75%);
          mask-image: radial-gradient(120% 80% at 50% 0%, #000 25%, transparent 75%);
}

.display { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; line-height: 1.0; }
.serif { font-family: var(--font-body); }
.num { font-family: var(--font-mono); }
.label { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-3); }

.strip {
  position: relative; z-index: 2;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  padding: 14px 32px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
}
.strip a { color: var(--fg-2); text-decoration: none; transition: color .16s; }
.strip a:hover { color: var(--acid); }

.wrap { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; padding: 72px 32px 96px; }

.kicker { color: var(--acid); margin-bottom: 24px; }
h1.title { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; font-size: clamp(38px, 6vw, 64px); margin: 0 0 26px; color: var(--fg); text-wrap: balance; }
.standfirst {
  font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em;
  font-size: 22px; line-height: 1.4; color: var(--fg-2); margin: 0 0 40px; text-wrap: pretty;
}
.byline {
  display: flex; gap: 24px; flex-wrap: wrap;
  padding: 16px 0; margin-bottom: 48px;
  border-top: 2px solid var(--acid); border-bottom: 1px solid var(--line);
}

article p { font-size: 18px; line-height: 1.72; color: var(--fg-2); margin: 0 0 26px; text-wrap: pretty; }
article h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; font-size: 28px; color: var(--fg); margin: 54px 0 18px; text-wrap: balance; }
article ul, article ol { font-size: 18px; line-height: 1.72; color: var(--fg-2); margin: 0 0 26px; padding-left: 26px; }
article li { margin-bottom: 10px; }
article li::marker { color: var(--fg-4); }
article strong { color: var(--fg); font-weight: 600; }
article blockquote {
  margin: 36px 0; padding: 6px 0 6px 24px;
  border-left: 2px solid var(--acid);
  font-family: var(--font-display); font-weight: 500;
  font-size: 22px; line-height: 1.35; color: var(--fg); text-wrap: balance;
}
article code {
  font-family: var(--font-mono); font-size: 0.84em;
  background: var(--surface); color: var(--acid);
  border: 1px solid var(--line-2); padding: 2px 6px; border-radius: 5px;
}
article hr { border: none; border-top: 1px solid var(--line-2); margin: 48px auto; width: 40%; }
article a { color: var(--acid); text-decoration: none; border-bottom: 1px solid color-mix(in oklab, var(--acid) 45%, transparent); transition: color .14s, border-color .14s; }
article a:hover { color: var(--fg); border-bottom-color: var(--fg); }

.endmark { color: var(--acid); font-size: 22px; }
.footer {
  position: relative; z-index: 2;
  margin-top: 72px; padding-top: 22px; border-top: 2px solid var(--line-2);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer a { color: var(--fg-2); text-decoration: none; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; transition: color .16s; }
.footer a:hover { color: var(--acid); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 880px) { .strip { padding: 13px 22px; } .wrap { padding: 48px 22px 72px; } }
