@import "tokens.css";

:root {
  --header-h: 56px;
  --content-max: 720px;
}

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

body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 8% -8%, rgba(59, 130, 246, 0.06), transparent 55%),
    var(--bg);
}

a { color: var(--text-muted); text-decoration: none; }
a:hover { color: var(--text); text-decoration: underline; }
a:visited { color: var(--text-muted); }

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 28px);
  background: rgba(248, 249, 251, 0.85);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}

.brand {
  font-family: var(--font-brand);
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  color: var(--text);
  text-decoration: none;
  line-height: 1;
}

.brand:hover, .brand:visited { color: var(--text); text-decoration: none; }

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.875rem;
}

.nav a { color: var(--text-muted); text-decoration: none; }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav a.active { color: var(--text); font-weight: 600; }

.page {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

h1 {
  font-size: clamp(1.875rem, 4vw, 2.375rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  margin-bottom: 8px;
  line-height: 1.1;
}

.updated {
  color: var(--text-faint);
  font-size: 0.875rem;
  margin-bottom: 32px;
}

h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 32px 0 12px;
}

p { color: var(--text-muted); margin-bottom: 12px; }

ul {
  margin: 0 0 16px 1.25rem;
  color: var(--text-muted);
}

li { margin-bottom: 6px; }

.footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-faint);
  background: rgba(248, 249, 251, 0.72);
}

.footer a { color: var(--text-muted); text-decoration: none; }
.footer a:hover { color: var(--text); text-decoration: none; }

code {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.8125rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--text);
}
