:root {
  color-scheme: light dark;
  --bg: #fbfaf7;
  --fg: #1b1b18;
  --muted: #5c5c55;
  --rule: #d9d6cc;
  --accent: #2f5d50;
  --code: #eeece4;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14140f;
    --fg: #e8e5da;
    --muted: #a3a093;
    --rule: #34322a;
    --accent: #8fc2ac;
    --code: #23221b;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

header {
  border-bottom: 1px solid var(--rule);
}

nav {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: baseline;
  font-size: 0.9375rem;
}

nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--fg); }
nav a.mark { color: var(--fg); font-weight: 600; margin-right: auto; }

main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

section { padding: 2.5rem 0 0.5rem; border-top: 1px solid var(--rule); }
section#top { border-top: 0; padding-top: 3.5rem; }

h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}

p { margin: 0 0 1rem; }

.lead { font-size: 1.25rem; line-height: 1.5; max-width: 34rem; }
.meta { color: var(--muted); font-size: 0.9375rem; }

.roster { margin: 0 0 1.5rem; display: grid; gap: 1.25rem; }
.roster div { border-left: 2px solid var(--rule); padding-left: 1rem; }
.roster dt { font-weight: 650; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.roster dd { margin: 0.25rem 0 0; }
.roster dd.model { color: var(--muted); font-size: 0.875rem; }

ul { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: 0.75rem; }
ul.work li { margin-bottom: 1rem; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--code);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.875rem;
}

footer p { max-width: 44rem; margin: 0 auto; padding: 1.25rem; }
footer p:first-child { padding-bottom: 0; }
