@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=Space+Mono:wght@400;700&display=swap');

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

:root {
  --bg: #09090b;
  --bg-card: #141414;
  --border: #262626;
  --text: #ededed;
  --text-secondary: #a3a3a3;
  --text-muted: #737373;
  --text-faint: #525252;
  --accent: #818cf8;
  --font-display: 'Space Mono', monospace;
  --font-body: 'Space Grotesk', sans-serif;
  --max-width: 640px;
}

html {
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  color: var(--text-secondary);
  background: var(--bg);
  line-height: 1.65;
  padding: 0 1.25rem;
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 0 0;
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  align-items: center;
}

nav .home {
  margin-right: auto;
  color: var(--text-faint);
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding-bottom: 0.15rem;
  border-bottom: 1.5px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

nav a:hover {
  color: var(--text);
}

nav a.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}

header {
  margin-bottom: 2rem;
}

h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.lede {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

section {
  margin-bottom: 2.25rem;
}

h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
  color: var(--text);
}

h3 {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 1.25rem;
  margin-bottom: 0.35rem;
}

p {
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.15s;
}

a:hover {
  color: var(--text);
}

ul {
  margin: 0.5rem 0 1rem 1.25rem;
  color: var(--text-secondary);
}

li {
  margin-bottom: 0.35rem;
  padding-left: 0.25rem;
}

li::marker {
  color: var(--text-faint);
}

li strong {
  color: var(--text);
  font-weight: 600;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 1rem;
  font-size: 0.88rem;
}

th {
  text-align: left;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: top;
}

tr:last-child td {
  border-bottom: none;
}

footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}

@media (max-width: 480px) {
  html { font-size: 16px; }
  h1 { font-size: 1.5rem; }
  table { font-size: 0.82rem; }
  th, td { padding: 0.5rem; }
}
