/* Element selectors only — the markup carries no classes, so this file is the
   whole design. `color-scheme: light` opts the page out of browser dark mode. */

:root {
  color-scheme: light;
  --bg:     #fbfbfa;
  --text:   #1c1b19;
  --muted:  #57544f;
  --faint:  #94908a;
  --rule:   #e5e3df;
  --accent: #1f5f5b;
  --mono:   ui-monospace, SFMono-Regular, Menlo, monospace;
}

body {
  max-width: 42rem;
  margin: 0 auto;
  padding: 4.5rem 1.25rem 5rem;
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.65 system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  text-underline-offset: 2px;
}
a:hover { text-decoration-color: var(--accent); }

h1 {
  font-size: 2.6rem;
  letter-spacing: -0.03em;
  margin: 0;
}

/* The tagline and link row directly under the name. */
h1 + p {
  font-size: 1.05rem;
  margin-top: 0.5rem;
}
h1 + p a { font-weight: 500; }

/* Section headings: small, faint, ruled off. */
h2 {
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--faint);
  margin: 3.25rem 0 1.25rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--rule);
}

/* Repo names. */
h3 {
  font-family: var(--mono);
  font-size: 1.05rem;
  margin: 1.9rem 0 0.55rem;
}
h3 a { color: var(--text); text-decoration: none; }
h3 a:hover { color: var(--accent); }

p { margin: 0.4rem 0 0; color: var(--muted); }

/* Lists hang off a rule instead of bullets. */
ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1rem;
  border-left: 2px solid var(--rule);
}

li { margin: 0.7rem 0; }
li:first-child { margin-top: 0; }
li:last-child { margin-bottom: 0; }

small {
  font-size: 0.78rem;
  color: var(--faint);
}

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