:root {
  --bg: #0b0d10;
  --fg: #e8eaed;
  --muted: #9aa3ad;
  --accent: #d8dce1;
  --rule: #23282e;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fbfbfa;
    --fg: #16191d;
    --muted: #5d656e;
    --accent: #2b3037;
    --rule: #e2e4e7;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Inter, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 2rem 0;
}

main {
  max-width: 34rem;
  margin: auto 0 0;
  padding-bottom: 3rem;
}

h1 {
  font-size: clamp(2.4rem, 8vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 1.4rem;
  color: var(--fg);
}

.lede {
  font-size: clamp(1.15rem, 3.4vw, 1.4rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--accent);
  margin: 0 0 1.1rem;
  text-wrap: balance;
}

.detail {
  color: var(--muted);
  margin: 0 0 2.2rem;
  text-wrap: pretty;
}

.contact {
  margin: 0;
}

a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  transition: border-color 140ms ease;
}

a:hover,
a:focus-visible {
  border-bottom-color: var(--fg);
}

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

footer {
  margin-top: auto;
  padding: 2rem 0 2.2rem;
  color: var(--muted);
  font-size: 0.85rem;
}

footer p { margin: 0; }

@media (min-width: 40rem) {
  body { padding: 3rem 4rem 0; }
}
