:root {
  --bg: #f7f5f0;
  --ink: #1c1b19;
  --muted: #6b675f;
  --rule: #dcd7cc;
  --accent: #5a3fc0;
  --code-bg: #ebe7de;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141413;
    --ink: #ece9e2;
    --muted: #9d998f;
    --rule: #2e2d2a;
    --accent: #a993ff;
    --code-bg: #22211f;
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  padding: 0 1.25rem;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

main, footer {
  max-width: 42rem;
  margin: 0 auto;
}

main { padding-block: clamp(3rem, 10vw, 6.5rem) 2rem; }

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--rule);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.15s, text-decoration-color 0.15s;
}

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

a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

code {
  font: 0.875em var(--mono);
  background: var(--code-bg);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.eyebrow, h2, .meta, footer, .stack dt {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.eyebrow { margin: 0 0 1rem; }

h1 {
  margin: 0;
  font-size: clamp(2.25rem, 7vw, 3.25rem);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.role {
  margin: 0.5rem 0 0;
  font-size: 1.25rem;
  color: var(--accent);
}

.lede {
  margin: 1.5rem 0 0;
  max-width: 36rem;
  font-size: 1.125rem;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.5rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}

.links a::after { content: "↗"; font-size: 0.85em; color: var(--muted); }

.links a:hover { border-color: var(--accent); }

section {
  margin-top: 4.5rem;
}

h2 {
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
  font-weight: 500;
  text-transform: lowercase;
}

h2::before { content: "// "; color: var(--accent); }

.section-note { margin: 0 0 1.5rem; color: var(--muted); }

.now {
  margin: 0;
  padding: 0;
  list-style: none;
}

.now li + li { margin-top: 0.875rem; }

.project + .project { margin-top: 2rem; }

.project h3 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.project h3 a { text-decoration: none; }

.project p { margin: 0.375rem 0 0; }

.project .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin-top: 0.5rem;
}

.project .outcome {
  margin-top: 0.5rem;
  font: 0.875rem var(--mono);
  color: var(--accent);
}

.project .outcome::before { content: "→ "; }

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1.5rem;
}

.timeline li + li { margin-top: 0.75rem; }

.timeline .when {
  padding-top: 0.2em;
  font: 0.8125rem var(--mono);
  color: var(--muted);
}

@media (max-width: 30rem) {
  .timeline li { grid-template-columns: 1fr; gap: 0; }
}

.stack {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.625rem 1.5rem;
  margin: 0;
}

.stack dt { padding-top: 0.2em; }

.stack dd { margin: 0; }

@media (max-width: 30rem) {
  .stack { grid-template-columns: 1fr; gap: 0; }
  .stack dd + dt { margin-top: 0.875rem; }
}

footer {
  padding-block: 4rem 3rem;
}

footer p { margin: 0; }
