/* eric-brewer.com
   One stylesheet, no dependencies, no build step. Colors are defined once as
   tokens on :root and only re-stated for dark mode. */

:root {
  --bg:        #fbfaf8;
  --fg:        #1c1b19;
  --muted:     #6b6862;
  --accent:    #8a4b2a;
  --rule:      #e4e0d9;
  --measure:   34rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:     #171614;
    --fg:     #eceae6;
    --muted:  #9b978f;
    --accent: #d99a6e;
    --rule:   #302e2a;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 1rem/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
}

.page {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(3rem, 10vw, 6rem) 1.25rem 3rem;
}

h1 {
  margin: 0;
  font-size: clamp(1.9rem, 1.5rem + 2vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.tagline {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.about {
  margin-top: 2.5rem;
}

.about p {
  margin: 0 0 1.1rem;
}

h2 {
  margin: 0 0 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.links {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.links ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

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

a:hover { text-decoration-thickness: 2px; }

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

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

footer p { margin: 0; }
