/* Minimal dark article layout */
:root {
  --bg: #0f1114;
  --surface: #161a20;
  --text: #e8eaed;
  --muted: #9aa3ad;
  --accent: #7eb8da;
  --quote-bg: hsl(199, 28%, 18%);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif;
  --max: 42rem;
  --reveal-distance: 20px;
  --reveal-duration: 0.65s;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #a8d4f0;
}

.page {
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 2rem) 4rem;
}

.article {
  max-width: var(--max);
  margin: 0 auto;
}

.article__title {
  font-size: clamp(1.55rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 2rem;
}

.article__content > * + * {
  margin-top: 1.15rem;
}

.article__content h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  font-weight: 650;
  line-height: 1.3;
  margin: 2.25rem 0 1rem;
  letter-spacing: -0.015em;
}

.article__content h2:first-child {
  margin-top: 0;
}

.article__content p {
  margin: 0;
  color: var(--text);
}

.article__content strong {
  font-weight: 650;
  color: #f0f3f6;
}

.article__content ul,
.article__content ol {
  margin: 0;
  padding: 0 0 0 1.25rem;
}

.article__content li {
  margin: 0.55rem 0;
  padding-left: 0.25rem;
}

.article__content li::marker {
  color: var(--muted);
}

.article__content ol li a {
  color: var(--accent);
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

.figure {
  margin: 1.75rem 0;
}

.figure__inner {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.figure img {
  display: block;
  width: 100%;
  height: auto;
}

.figure__caption {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.quote {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background: var(--quote-bg);
  border-left: 3px solid rgba(126, 184, 218, 0.45);
}

.quote blockquote {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.quote blockquote p {
  margin: 0.4em 0;
}

.quote blockquote p:first-child {
  margin-top: 0;
}

.quote blockquote p:last-child {
  margin-bottom: 0;
}

.quote blockquote ol {
  margin: 0.5rem 0 0;
  padding: 0 0 0 1.25rem;
}

.cta-link {
  display: inline;
  font-weight: 650;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(var(--reveal-distance));
  transition:
    opacity var(--reveal-duration) ease,
    transform var(--reveal-duration) ease;
  will-change: opacity, transform;
}

.reveal.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
