:root {
  color-scheme: dark;
  --bg: #09090b;
  --surface: #121216;
  --surface-2: #19191f;
  --text: #f7f7f8;
  --muted: #a1a1aa;
  --line: rgba(255, 255, 255, .1);
  --accent: #a3ff12;
  --accent-ink: #101600;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(163, 255, 18, .12), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.site-header,
.site-footer {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header { min-height: 82px; border-bottom: 1px solid var(--line); }
.site-header nav,
.site-footer div { display: flex; align-items: center; gap: 24px; }
.site-header nav > a:not(.button),
.site-footer div a { color: var(--muted); text-decoration: none; font-size: 14px; }
.site-header nav > a:not(.button):hover,
.site-footer div a:hover { color: var(--text); }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
.brand img { border-radius: 9px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(163, 255, 18, .16); }
.button-small { min-height: 40px; padding: 0 16px; font-size: 14px; }

.eyebrow,
.cta-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.index-hero,
.article-hero {
  width: min(calc(100% - 40px), 900px);
  margin: 0 auto;
}
.index-hero { padding: 100px 0 78px; text-align: center; }
.index-hero h1,
.article-hero h1 {
  margin: 0;
  font-size: clamp(2.65rem, 7vw, 5.6rem);
  line-height: .98;
  letter-spacing: -.065em;
}
.index-hero > p:last-child {
  max-width: 720px;
  margin: 30px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.article-grid {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto 100px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.article-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(18, 18, 22, .88);
  transition: transform .2s ease, border-color .2s ease;
}
.article-card:hover { transform: translateY(-5px); border-color: rgba(163, 255, 18, .38); }
.card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); text-decoration: none; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.article-card:hover .card-media img { transform: scale(1.025); }
.card-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--accent); font-size: 1.5rem; font-weight: 900; letter-spacing: -.04em; }
.card-body { padding: 24px; }
.card-body time { color: var(--muted); font-size: 13px; }
.card-body h2 { margin: 10px 0 12px; font-size: 1.35rem; line-height: 1.22; letter-spacing: -.035em; }
.card-body h2 a { text-decoration: none; }
.card-body p { margin: 0 0 18px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.read-link { color: var(--accent); font-size: 14px; font-weight: 800; text-decoration: none; }

.article-shell { padding: 70px 0 100px; }
.article-hero { text-align: center; }
.article-hero h1 { font-size: clamp(2.4rem, 6vw, 4.9rem); }
.back-link { display: inline-block; margin-bottom: 38px; color: var(--muted); font-size: 14px; text-decoration: none; }
.back-link:hover { color: var(--text); }
.article-lead { max-width: 760px; margin: 28px auto 0; color: #c8c8ce; font-size: clamp(1.05rem, 2vw, 1.3rem); }
.article-meta { margin-top: 26px; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 14px; }
.cover { width: min(calc(100% - 40px), 1080px); margin: 56px auto 0; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.article-layout {
  width: min(calc(100% - 40px), 1060px);
  margin: 64px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 720px) 280px;
  align-items: start;
  gap: 58px;
}
.article-content { min-width: 0; color: #dedee3; font-size: 1.075rem; }
.article-content > *:first-child { margin-top: 0; }
.article-content h2,
.article-content h3,
.article-content h4 { color: var(--text); line-height: 1.18; letter-spacing: -.035em; scroll-margin-top: 30px; }
.article-content h2 { margin: 2.8em 0 .75em; font-size: clamp(1.8rem, 4vw, 2.55rem); }
.article-content h3 { margin: 2.2em 0 .65em; font-size: 1.55rem; }
.article-content h4 { margin: 1.8em 0 .55em; font-size: 1.25rem; }
.article-content p { margin: 0 0 1.3em; }
.article-content a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-content strong { color: var(--text); }
.article-content ul,
.article-content ol { margin: 0 0 1.5em; padding-left: 1.4em; }
.article-content li { margin: .45em 0; padding-left: .3em; }
.article-content blockquote { margin: 2em 0; padding: 20px 24px; border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--surface); color: var(--text); }
.article-content img { height: auto; margin: 2em auto; border-radius: 16px; }
.article-content figure { margin: 2.2em 0; }
.article-content figcaption { margin-top: -1em; color: var(--muted); font-size: 13px; text-align: center; }
.article-content table { width: 100%; margin: 2em 0; border-collapse: collapse; font-size: .94rem; }
.article-content th,
.article-content td { padding: 13px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-content th { background: var(--surface-2); color: var(--text); }
.article-content pre { overflow-x: auto; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #050506; }
.article-content code { font-family: "SFMono-Regular", Consolas, monospace; font-size: .9em; }

.article-cta { position: sticky; top: 24px; padding: 24px; border: 1px solid rgba(163, 255, 18, .22); border-radius: 18px; background: linear-gradient(145deg, rgba(163, 255, 18, .09), rgba(18, 18, 22, .96)); }
.article-cta strong { display: block; font-size: 1.35rem; line-height: 1.2; letter-spacing: -.03em; }
.article-cta p { color: var(--muted); font-size: 14px; }
.article-cta .button { width: 100%; margin-top: 6px; }

.site-footer { min-height: 120px; border-top: 1px solid var(--line); }
.pagination { width: min(calc(100% - 40px), var(--max)); margin: -50px auto 100px; display: flex; justify-content: center; align-items: center; gap: 22px; color: var(--muted); font-size: 14px; }
.pagination a { color: var(--accent); font-weight: 700; text-decoration: none; }
.empty-state { grid-column: 1 / -1; padding: 70px 30px; border: 1px solid var(--line); border-radius: 20px; text-align: center; background: var(--surface); }
.empty-state h2 { margin: 0 0 8px; }
.empty-state p { margin: 0; color: var(--muted); }
.empty-page { min-height: 100vh; width: min(calc(100% - 40px), 680px); margin: 0 auto; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.empty-page h1 { margin: 8px 0; font-size: clamp(2.2rem, 7vw, 4.5rem); line-height: 1; letter-spacing: -.055em; }
.empty-page > p:not(.eyebrow) { color: var(--muted); }
.empty-page .button { margin-top: 18px; }

@media (max-width: 900px) {
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-cta { position: static; }
}

@media (max-width: 620px) {
  .site-header,
  .site-footer { width: min(calc(100% - 28px), var(--max)); }
  .site-header nav > a:not(.button) { display: none; }
  .site-footer { padding: 28px 0; align-items: flex-start; }
  .site-footer div { flex-direction: column; align-items: flex-end; gap: 8px; }
  .index-hero { padding: 70px 0 54px; }
  .article-grid { width: min(calc(100% - 28px), var(--max)); grid-template-columns: 1fr; }
  .article-shell { padding-top: 45px; }
  .article-hero,
  .cover,
  .article-layout { width: min(calc(100% - 28px), 1060px); }
  .article-layout { margin-top: 42px; }
  .article-content { font-size: 1rem; }
  .cover { margin-top: 40px; border-radius: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

