:root {
  --ink: #101014;
  --ink-soft: #65656C;
  --ink-faint: #8A8A93;
  --paper: #FAFAF9;
  --card: #FFFFFF;
  --line: #E4E3DF;
  --line-soft: #EFEEEA;
}

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

body {
  background: var(--paper);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.doc { max-width: 760px; margin: 0 auto; padding: 3.5rem 1.6rem 6rem; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 3rem; }
.brand { display: flex; align-items: baseline; gap: 2px; font-weight: 700; letter-spacing: -.03em; color: var(--ink); font-size: 1.05rem; text-decoration: none; }
.brand .dot { color: var(--ink); }
.brand small { display: block; font-weight: 500; color: var(--ink-soft); font-size: .58rem; letter-spacing: .06em; text-transform: uppercase; }
.back { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); text-decoration: none; transition: color .2s; }
.back:hover { color: var(--ink); }

.meta { font-size: .8rem; color: var(--ink-soft); margin-bottom: .4rem; }
h1 { font-size: 2.4rem; font-weight: 800; letter-spacing: -.035em; color: var(--ink); margin-bottom: .5rem; }
.dates { font-size: .82rem; color: var(--ink-soft); margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }

h2 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; color: var(--ink); margin: 2.6rem 0 .8rem; padding-top: 2rem; border-top: 1px solid var(--line); }
h3 { font-size: 1.02rem; font-weight: 700; color: var(--ink); margin: 1.6rem 0 .5rem; }
p { font-size: .95rem; line-height: 1.75; color: #33333A; margin-bottom: 1rem; }
ul, ol { margin: .5rem 0 1rem 1.4rem; }
li { font-size: .95rem; line-height: 1.7; color: #33333A; margin-bottom: .45rem; }
strong { color: var(--ink); }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ink-faint); text-underline-offset: 2px; }
a:hover { text-decoration-color: var(--ink); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; background: #EFEEEA; padding: .1em .4em; border-radius: 5px; }

table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .88rem; }
th { text-align: left; font-weight: 700; padding: .6rem .8rem; border-bottom: 2px solid var(--line); color: var(--ink); }
td { padding: .7rem .8rem; border-bottom: 1px solid var(--line-soft); color: #33333A; vertical-align: top; line-height: 1.6; }
.scroll { overflow-x: auto; }

.callout { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--ink); border-radius: 12px; padding: 1.1rem 1.3rem; margin: 1.4rem 0; }
.callout p:last-child { margin-bottom: 0; }
.footer { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--ink-soft); }

/* Landing page */
.home { max-width: 620px; margin: 0 auto; padding: 5rem 1.6rem 4rem; }
.wordmark { font-size: 3.4rem; font-weight: 800; letter-spacing: -.045em; line-height: 1; margin-bottom: 1.2rem; }
.tagline { font-size: 1.12rem; line-height: 1.6; color: #33333A; margin-bottom: 2rem; }
.lede { font-size: .95rem; color: var(--ink-soft); margin-bottom: 2.5rem; }
.links { list-style: none; margin: 0 0 2.5rem; padding: 0; border-top: 1px solid var(--line); }
.links li { margin: 0; }
.links a { display: block; padding: 1rem .2rem; border-bottom: 1px solid var(--line); font-size: .98rem; font-weight: 500; text-decoration: none; color: var(--ink); }
.links a:hover { background: var(--card); }
.links span { display: block; font-size: .82rem; font-weight: 400; color: var(--ink-soft); }
