:root {
  --bg: #ffffff;
  --fg: #1b1b1b;
  --muted: #5c5c5c;
  --rule: #e4e4e4;
  --accent: #1f4fd8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --fg: #e9e9e6;
    --muted: #9b9b96;
    --rule: #2b2e34;
    --accent: #8ab0ff;
  }
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 660px;
  margin: 0 auto;
  padding: 5rem 1.5rem 6rem;
}

h1 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h2 {
  margin: 3.5rem 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
}

.lede {
  font-size: 1.15rem;
  line-height: 1.5;
}

.byline {
  margin-top: 1.5rem;
  color: var(--muted);
}

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

.project {
  display: block;
  color: inherit;
  text-decoration: none;
}

.project p {
  margin-bottom: 0.4rem;
  color: var(--muted);
}

.project h3 {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.project-url {
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  main {
    padding: 3rem 1.25rem 4rem;
  }

  h2 {
    margin-top: 2.5rem;
  }
}
