:root {
  --bg: #fafaf7;
  --fg: #1f1f1c;
  --muted: #6e6e68;
  --rule: #e3e3dc;
  --accent: #b0532b;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131312;
    --fg: #e9e9e4;
    --muted: #9b9b94;
    --rule: #2b2b28;
    --accent: #e48a5f;
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  /* System fonts only: no requests to third-party font servers. */
  font: 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

main {
  max-width: 36rem;
  margin: 0 auto;
  padding: clamp(3rem, 14vh, 8rem) 1.25rem 4rem;
}

h1,
h2,
.mono {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-weight: 500;
}

h1 {
  font-size: 1.75rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}

h1 .dot {
  color: var(--accent);
}

h2 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 3rem 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

.lede {
  color: var(--muted);
}

a {
  color: var(--fg);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover,
a:focus-visible {
  color: var(--accent);
}

ul.projects {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
}

ul.projects li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
}

ul.projects .empty {
  color: var(--muted);
  font-style: italic;
}

.code {
  font-size: 4rem;
  line-height: 1;
  color: var(--accent);
  margin: 0 0 1rem;
}
