@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=DM+Sans:wght@400;500;600&display=swap');

:root {
  --bg: #07090F;
  --bg2: #0C1018;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --primary-light: #3B82F6;
  --accent-light: #22D3EE;
  --text: #F1F5F9;
  --text-muted: #94A3B8;
  --text-subtle: #64748B;
  --gradient-brand: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --max-w: 820px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: var(--primary-light); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent-light); }

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}

/* ── Top bar ── */
.topbar {
  border-bottom: 1px solid var(--border);
  background: rgba(7, 9, 15, 0.85);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
}

.topbar .inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px clamp(20px, 5vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
  text-decoration: none;
  color: var(--text);
}
.brand:hover { color: var(--text); }

.brand .mark {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand .mark img {
  width: 17px;
  height: 17px;
  filter: brightness(0) invert(1);
}
.brand .text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.topbar .back {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
}
.topbar .back:hover { color: var(--text); }

/* ── Page head ── */
.page-head {
  text-align: center;
  padding: clamp(48px, 8vw, 88px) 0 clamp(28px, 4vw, 40px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--primary-light);
  border-radius: 2px;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 14px;
}

.subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
}

.updated-at {
  font-size: 0.9rem;
  color: var(--text-subtle);
  margin-top: 8px;
}

/* ── Article card ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(24px, 5vw, 44px);
  margin-bottom: 40px;
}

.card h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 34px 0 12px;
  letter-spacing: -0.02em;
}
.card h2:first-child { margin-top: 0; }

.card p { color: var(--text-muted); margin-bottom: 14px; }

.card ul { margin: 0 0 14px; padding-left: 20px; color: var(--text-muted); }
.card li { margin-bottom: 8px; }

.card strong { color: var(--text); }

/* ── Scope chips ── */
.scopes {
  display: grid;
  gap: 12px;
  margin: 4px 0 18px;
}
.scope {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.02);
}
.scope .code {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  color: var(--accent-light);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 6px;
  padding: 2px 8px;
  margin-bottom: 8px;
}
.scope .desc { font-size: 0.92rem; color: var(--text-muted); }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg2);
  padding: 36px 0;
}
footer .inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
  font-size: 0.82rem;
  color: var(--text-subtle);
}
footer .links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
footer .links a { color: var(--text-muted); text-decoration: none; }
footer .links a:hover { color: var(--text); }
footer .legal { line-height: 1.6; }
