/* HeyDonto Newsroom — article template stylesheet
   Tokens mirror heydonto.com base design system. */

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

:root {
  --void: #0a0e17;
  --night: #0f1520;
  --dusk: #131a2a;
  --graphite: #172036;
  --slate: #1f2940;

  --paper: #e8edf5;
  --paper-dim: rgba(232,237,245,0.72);
  --paper-mute: rgba(232,237,245,0.48);
  --paper-faint: rgba(232,237,245,0.22);
  --ink-900: #0a0e17;

  --axiomera: #38bdf8;
  --conduit: #60fdfc;
  --quantara: #a78bfa;
  --nadir: #fbbf24;
  --dft: #7c3aed;
  --dft-bright: #a78bfa;

  --teal: #60fdfc;
  --cyan: #38bdf8;
  --blue: #3b82f6;

  --brand: #60fdfc;
  --accent: var(--teal);

  --display: 'Manrope', -apple-system, sans-serif;
  --sans: 'DM Sans', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --line: 1px solid rgba(232,237,245,0.08);
  --line-strong: 1px solid rgba(232,237,245,0.16);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--sans);
  background: var(--void);
  color: var(--paper);
  line-height: 1.55;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
  font-weight: 400;
}

body::before {
  content: "";
  position: fixed; inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(237,241,247,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(237,241,247,0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 0%, transparent 70%);
}
body::after {
  content: "";
  position: fixed; inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 40% 25% at 15% 8%, rgba(34,211,238,0.07), transparent 60%),
    radial-gradient(ellipse 30% 25% at 85% 25%, rgba(96,253,252,0.05), transparent 60%),
    radial-gradient(ellipse 35% 30% at 20% 75%, rgba(167,139,250,0.05), transparent 60%);
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--teal); color: var(--ink-900); }

.mono { font-family: var(--mono); }
.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--brand);
}

.wrap { max-width: 1300px; margin: 0 auto; padding: 0 3rem; }
@media (max-width: 640px) { .wrap { padding: 0 1.25rem; } }

/* =================== NAV =================== */
header.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  height: 72px;
  display: flex;
  align-items: center;
  background: rgba(18, 24, 35, 0.85);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border-bottom: 1px solid rgba(96, 253, 252, 0.06);
}
.nav-in {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo { display: flex; align-items: center; }
.logo-img { height: 44px; width: auto; display: block; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  position: relative;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color 0.3s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--teal);
  transition: width 0.3s;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }
.nav-links a[aria-current="page"] { color: #fff; }
.nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links .btn-primary::after { display: none; }
@media (max-width: 640px) {
  .nav-links { gap: 16px; }
  .nav-links a.nav-hide-m { display: none; }
  .logo-img { height: 38px; }
}

/* Reading progress */
.progress {
  position: fixed; top: 72px; left: 0;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--teal), var(--cyan));
  z-index: 99;
}

/* =================== BUTTONS =================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.78rem 1.5rem;
  border-radius: 100px;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  color: var(--ink-900) !important;
}
.btn-primary:hover {
  box-shadow: 0 0 28px rgba(96, 253, 252, 0.3);
  transform: translateY(-1px);
}
.btn-ghost {
  border: var(--line-strong);
  color: var(--paper);
}
.btn-ghost:hover { border-color: rgba(96,253,252,0.4); color: var(--teal); }

/* =================== ARTICLE HEADER =================== */
.article-head {
  padding: 10.5rem 0 3.5rem;
  border-bottom: var(--line);
}
.crumbs {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--paper-mute);
  margin-bottom: 2rem;
}
.crumbs a { color: var(--paper-mute); transition: color .2s; }
.crumbs a:hover { color: var(--teal); }
.crumbs .sep { color: var(--paper-faint); }

.company-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
  color: var(--paper-dim);
  border: var(--line-strong);
  border-radius: 100px;
  padding: 0.38rem 0.9rem;
  margin-bottom: 1.6rem;
}
.company-chip .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--article-accent, var(--teal));
  flex: none;
}
.article-head h1 {
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  max-width: 22ch;
  margin-bottom: 1.4rem;
}
.article-head .dek {
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--paper-dim);
  max-width: 62ch;
  margin-bottom: 2.2rem;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.6rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--paper-mute);
}
.article-meta .src {
  color: var(--article-accent, var(--teal));
  border: 1px solid currentColor;
  border-radius: 4px;
  padding: 0.14rem 0.5rem;
  opacity: 0.9;
}

/* =================== ARTICLE BODY =================== */
.article-body {
  padding: 3.5rem 0 4.5rem;
}
.article-body .prose {
  max-width: 720px;
}
.prose p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--paper-dim);
  margin-bottom: 1.5rem;
}
.prose p strong { color: var(--paper); font-weight: 600; }
.prose a {
  color: var(--teal);
  border-bottom: 1px solid rgba(96,253,252,0.3);
  transition: border-color .2s;
}
.prose a:hover { border-bottom-color: var(--teal); }
.prose h2 {
  font-size: 1.5rem;
  margin: 3rem 0 1.2rem;
  padding-top: 1.4rem;
  color: var(--paper);
  position: relative;
}
.prose h2::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 44px; height: 2px;
  background: var(--article-accent, var(--teal));
}
.prose h3 {
  font-size: 1.15rem;
  margin: 2.2rem 0 0.9rem;
  color: var(--paper);
}
.prose ul, .prose ol {
  margin: 0 0 1.5rem 1.2rem;
  color: var(--paper-dim);
}
.prose li {
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 0.7rem;
  padding-left: 0.3rem;
}
.prose li::marker { color: var(--article-accent, var(--teal)); }

.prose blockquote {
  margin: 2.4rem 0;
  padding: 0.4rem 0 0.4rem 1.6rem;
  border-left: 2px solid var(--article-accent, var(--teal));
}
.prose blockquote p {
  font-family: var(--display);
  font-size: 1.22rem;
  line-height: 1.55;
  font-weight: 500;
  color: var(--paper);
  margin-bottom: 0.9rem;
}
.prose blockquote footer {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--paper-mute);
}
.prose blockquote footer strong { color: var(--paper-dim); font-weight: 500; }

/* Stat strip */
.fact-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: rgba(232,237,245,0.08);
  border: var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin: 2.4rem 0;
}
.fact-row .fact {
  background: var(--night);
  padding: 1.3rem 1.2rem 1.1rem;
}
.fact-row .n {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--article-accent, var(--teal));
  display: block;
  line-height: 1.1;
  margin-bottom: 0.3rem;
}
.fact-row .l {
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--paper-mute);
  line-height: 1.45;
}

/* Stage cards (DFT proof arc) */
.stages { margin: 2.2rem 0; display: grid; gap: 0.9rem; }
.stage {
  border: var(--line);
  border-radius: 14px;
  background: var(--night);
  padding: 1.4rem 1.5rem;
}
.stage .stage-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.22rem 0.65rem;
  border-radius: 100px;
  margin-bottom: 0.7rem;
}
.stage .tag-done { background: rgba(96,253,252,0.12); color: var(--teal); }
.stage .tag-live { background: rgba(167,139,250,0.14); color: var(--dft-bright); }
.stage .tag-next { background: rgba(232,237,245,0.07); color: var(--paper-mute); }
.stage h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.stage p { font-size: 0.98rem; margin-bottom: 0; }

/* Boilerplate / about blocks */
.boilerplate {
  margin-top: 3.4rem;
  padding-top: 2.2rem;
  border-top: var(--line);
}
.boilerplate h2 {
  font-family: var(--mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 500;
  color: var(--paper-mute);
  margin: 1.8rem 0 0.7rem;
  padding: 0;
}
.boilerplate h2::before { display: none; }
.boilerplate p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--paper-mute);
  margin-bottom: 1rem;
}
.boilerplate a { color: var(--paper-dim); border-bottom: 1px solid rgba(232,237,245,0.2); }
.boilerplate a:hover { color: var(--teal); }

/* Source / external links row */
.source-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 2.6rem 0 0;
}

/* =================== NEXT / ALL NEWS =================== */
.article-next {
  border-top: var(--line);
  padding: 3.2rem 0 4rem;
}
.article-next .row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
}
.next-card { max-width: 640px; }
.next-card .kicker { display: block; margin-bottom: 0.7rem; }
.next-card a.headline {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--paper);
  transition: color .2s;
}
.next-card a.headline:hover { color: var(--teal); }

/* =================== FOOTER =================== */
footer.site {
  border-top: var(--line);
  background: var(--night);
  padding: 3.5rem 0 2rem;
  margin-top: 2rem;
}
.foot-top {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: space-between;
  margin-bottom: 3rem;
}
.foot-tag {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--paper-mute);
  max-width: 30ch;
}
.foot-cols { display: flex; gap: 4rem; flex-wrap: wrap; }
.foot-col h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--paper-mute);
  margin-bottom: 1rem;
  font-weight: 500;
}
.foot-col a {
  display: block;
  font-size: 0.92rem;
  color: var(--paper-dim);
  margin-bottom: 0.6rem;
  transition: color .2s;
}
.foot-col a:hover { color: var(--teal); }
.foot-bot {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  border-top: var(--line);
  padding-top: 1.6rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--paper-mute);
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .article-head { padding-top: 8.5rem; }
  .article-head h1 { font-size: 1.75rem; }
  .article-head .dek { font-size: 1.05rem; }
  .prose p, .prose li { font-size: 1rem; }
  .fact-row { grid-template-columns: 1fr 1fr; }
}
