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

:root {
  --bg: #0a0a0a;
  --text: #f5f5f5;
  --muted: rgba(245, 245, 245, 0.62);
  --faint: rgba(245, 245, 245, 0.32);
  --hairline: rgba(245, 245, 245, 0.08);
  --pill-bg: #f5f5f5;
  --pill-fg: #0a0a0a;
}

html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(18px, 2.4vw, 26px) clamp(20px, 3vw, 36px);
}
.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: color 0.18s ease;
}
.nav-back:hover { color: var(--text); }
.nav-back svg { width: 14px; height: 14px; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 18px;
  border-radius: 100px;
  background: rgba(245, 245, 245, 0.08);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
}
.nav-cta:hover { background: rgba(245, 245, 245, 0.14); transform: translateY(-1px); }

/* Article */
.article {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(40px, 6vh, 72px) 24px clamp(60px, 8vh, 96px);
}
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
}
.article h1 {
  font-size: clamp(34px, 4.6vw, 48px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.updated {
  font-size: 13px;
  color: var(--faint);
  margin-bottom: clamp(36px, 5vh, 56px);
}
.article h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: clamp(28px, 4vh, 40px);
  margin-bottom: 12px;
  color: var(--text);
}
.article p,
.article li {
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--muted);
  letter-spacing: -0.005em;
}
.article p { margin-bottom: 14px; }
.article ul { padding-left: 22px; margin-bottom: 14px; }
.article li { margin-bottom: 8px; }
.article a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(245,245,245,0.3); transition: text-decoration-color 0.18s ease; }
.article a:hover { text-decoration-color: var(--text); }
.article strong { color: var(--text); font-weight: 600; }
.callout {
  margin: 20px 0;
  padding: 16px 18px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: rgba(245, 245, 245, 0.025);
}
.callout p { color: var(--text); margin-bottom: 0; }
.callout p + p { margin-top: 8px; }

/* Footer (matches index) */
footer {
  border-top: 1px solid var(--hairline);
  padding: clamp(40px, 6vw, 64px) clamp(24px, 6vw, 80px) clamp(28px, 4vw, 40px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: clamp(28px, 5vw, 64px);
  max-width: 1100px;
  margin: 0 auto;
}
.foot-brand { display: flex; flex-direction: column; gap: 10px; }
.foot-brand-row { display: flex; align-items: center; gap: 10px; }
.foot-brand-row img { width: 28px; height: 28px; border-radius: 7px; }
.foot-brand-row span { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.foot-tag { font-size: 13px; color: var(--muted); line-height: 1.5; max-width: 28ch; }
.foot-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; padding: 0; }
.foot-col li { font-size: 13.5px; }
.foot-col a { font-size: 13.5px; color: var(--muted); text-decoration: none; transition: color 0.18s ease; }
.foot-col a:hover { color: var(--text); }

.foot-bottom {
  max-width: 1100px;
  margin: clamp(36px, 5vw, 56px) auto 0;
  padding-top: clamp(20px, 3vw, 28px);
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.foot-bottom span, .foot-bottom a {
  font-size: 12px;
  color: var(--faint);
  text-decoration: none;
}
.foot-bottom a:hover { color: var(--muted); }

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; margin-bottom: 8px; }
  .foot-bottom { justify-content: center; text-align: center; }
}
