:root {
  --bg: #0d1014;
  --bg-soft: #141a20;
  --line: #232c34;
  --text: #e8ecea;
  --muted: #9aa7a2;
  --sage: #c2d6bc;
  --sage-dim: #7f9a7a;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: radial-gradient(120% 80% at 50% -10%, #1a222a 0%, var(--bg) 55%);
  color: var(--text);
  font: 16px/1.68 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: -0.005em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

header.site {
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  background: rgba(13, 16, 20, 0.82);
  z-index: 10;
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--text);
  text-decoration: none;
  text-transform: lowercase;
}

.brand .dot { color: var(--sage); }

nav { display: flex; gap: 20px; }

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

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

nav a.active {
  color: var(--sage);
  border-bottom-color: var(--sage-dim);
}

main { flex: 1; padding: 56px 24px 72px; }

h1 {
  font-size: 34px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.meta {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 28px;
}

.lede {
  color: var(--sage);
  font-size: 17px;
  margin: 0 0 36px;
  max-width: 60ch;
}

h2 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 40px 0 10px;
}

h3 {
  font-size: 16px;
  font-weight: 500;
  margin: 22px 0 6px;
}

p, li { color: #d3d9d6; }

ul { padding-left: 20px; }

li { margin: 5px 0; }

a { color: var(--sage); text-decoration: none; border-bottom: 1px solid rgba(194, 214, 188, 0.3); }
a:hover { border-bottom-color: var(--sage); }

section { margin-bottom: 8px; }

.card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 28px;
}

.card h2 { margin-top: 0; }

.muted { color: var(--muted); font-size: 14px; }

details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

details:first-of-type { border-top: 1px solid var(--line); }

summary {
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  color: var(--sage-dim);
  font-size: 18px;
  line-height: 1;
}

details[open] summary::after { content: "–"; }

details p { margin: 10px 0 4px; color: var(--muted); }

.links { list-style: none; padding: 0; display: flex; gap: 22px; }

footer.site {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  font-size: 13px;
  color: var(--muted);
}

footer.site .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 520px) {
  main { padding: 36px 20px 56px; }
  h1 { font-size: 27px; }
  header.site .wrap { height: 58px; }
  nav { gap: 14px; }
  nav a { font-size: 13px; }
}
