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

:root {
  --text: #1a1a1a;
  --muted: #555;
  --faint: #999;
  --border: #e4e4e4;
  --bg: #ffffff;
  --off: #f7f7f5;
  --accent: #1d6ce0;
  --max: 740px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.75;
}

/* NAV */
nav {
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}
.nav-brand {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.1s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

/* LAYOUT */
.page { max-width: var(--max); margin: 0 auto; padding: 4.5rem 2rem 7rem; }
.page-wide { max-width: 960px; margin: 0 auto; padding: 4.5rem 2rem 7rem; }

/* TYPE */
h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.025em;
}
h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
h3 { font-size: 1rem; font-weight: 600; color: var(--text); }
p { color: var(--muted); }
p + p { margin-top: 0.9rem; }
a { color: var(--accent); }

.lead { font-size: 1.1rem; line-height: 1.8; color: var(--muted); }
.faint { color: var(--faint); }
.label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

/* PROSE */
.prose p { font-size: 1.02rem; line-height: 1.82; color: var(--muted); }
.prose p + p { margin-top: 1rem; }
.prose h2 { margin-top: 2.5rem; margin-bottom: 0.6rem; font-size: 1.15rem; }
.prose strong { color: var(--text); font-weight: 600; }
.prose em { font-style: italic; }
.prose ul { margin: 0.75rem 0 0.75rem 1.25rem; }
.prose ul li { color: var(--muted); font-size: 1.02rem; line-height: 1.7; margin-bottom: 0.35rem; }

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

/* ARROW LINK */
.arrow { font-size: 0.875rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.arrow:hover { text-decoration: underline; }

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
footer p, footer a { font-size: 0.8rem; color: var(--faint); text-decoration: none; }
footer a:hover { color: var(--text); }

@media (max-width: 640px) {
  nav { padding: 0 1.25rem; }
  .nav-links { gap: 1rem; }
  .nav-links li:nth-child(n+4) { display: none; }
  .page, .page-wide { padding: 3rem 1.25rem 5rem; }
  footer { flex-direction: column; align-items: flex-start; }
}
