:root {
  --bg: #fbfaf7; --fg: #1b1a17; --muted: #77736b; --line: #e7e3da; --accent: #2f5d50;
  --serif: "Iowan Old Style", "Charter", Georgia, serif;
  --sans: ui-sans-serif, -apple-system, "Inter", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #151513; --fg: #ece9e2; --muted: #8f8a80; --line: #2c2b27; --accent: #8cc1ae; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; text-decoration-color: var(--line); }
a:hover { text-decoration-color: currentColor; }

header { display: flex; gap: 14px; align-items: baseline; padding: 20px 24px; font-size: 14px; color: var(--muted); }
header a { text-decoration: none; }
header a + a::before { content: "/"; margin-right: 14px; color: var(--line); }
.mark { font-weight: 600; color: var(--fg); letter-spacing: -0.01em; }

.home, .space { max-width: 680px; margin: 0 auto; padding: 0 24px 80px; }
.home { padding-top: 18vh; }
.home h1, .space h1 { font: 600 32px/1.2 var(--sans); letter-spacing: -0.02em; margin: 24px 0; }
.home p { color: var(--muted); max-width: 32em; }
.space header { padding-left: 0; }

.docs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.docs li { border-bottom: 1px solid var(--line); }
.docs a { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; text-decoration: none; }
.docs small { color: var(--muted); font: 13px var(--mono); }
.docs .empty { padding: 14px 0; color: var(--muted); }

.doc { max-width: 720px; margin: 0 auto; padding: 8px 24px 96px; }
.doc article { font-family: var(--serif); font-size: 19px; line-height: 1.65; }
.doc article :is(h1, h2, h3, h4) { font-family: var(--sans); letter-spacing: -0.015em; line-height: 1.25; margin: 1.8em 0 0.5em; }
.doc article h1 { font-size: 34px; margin-top: 0.6em; }
.doc article h2 { font-size: 24px; }
.doc article h3 { font-size: 19px; }
.doc article img { max-width: 100%; border-radius: 6px; }
.doc article blockquote { margin: 1.2em 0; padding-left: 18px; border-left: 2px solid var(--accent); color: var(--muted); }
.doc article hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
code { font: 0.86em var(--mono); background: color-mix(in srgb, var(--line) 55%, transparent); padding: 0.12em 0.35em; border-radius: 4px; }
pre { overflow-x: auto; padding: 16px; border-radius: 8px; background: color-mix(in srgb, var(--line) 45%, transparent); font-size: 14px; line-height: 1.5; }
pre code { background: none; padding: 0; }
table { border-collapse: collapse; width: 100%; font: 15px/1.45 var(--sans); margin: 1.4em 0; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.meta { margin-top: 64px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* slides */
.form-slides { height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
.deck { flex: 1; position: relative; }
.slide { position: absolute; inset: 0; display: none; flex-direction: column; justify-content: center;
  padding: 4vh 8vw; font-size: clamp(18px, 2.4vw, 30px); line-height: 1.4; overflow: auto; }
.slide.on { display: flex; }
.slide :is(h1, h2) { font-size: 2em; line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 0.5em; }
.slide img { max-height: 60vh; max-width: 100%; object-fit: contain; }
.deck-nav { display: flex; justify-content: center; align-items: center; gap: 16px; padding: 14px; color: var(--muted); font-size: 13px; }
.deck-nav button { background: none; border: 1px solid var(--line); color: inherit; border-radius: 999px; width: 34px; height: 34px; cursor: pointer; font: inherit; }
.deck-nav button:hover { color: var(--fg); border-color: var(--muted); }
