/* The whole site's styling. No web fonts or images beyond the favicon, so
   every page is one HTML request and this file. */

:root {
  color-scheme: light dark;
  --ink: #1b1f24;
  --muted: #59636e;
  --paper: #fbfaf7;
  --rule: #e3e0d8;
  --accent: #2f5d8a;
  --note: #f4efe2;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    sans-serif;
  line-height: 1.6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8e6e1;
    --muted: #a3a9b0;
    --paper: #15181c;
    --rule: #2c3138;
    --accent: #8db8e3;
    --note: #23262b;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

.page {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
}

.brand {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.brand span {
  color: var(--accent);
}

main {
  flex: 1;
  padding: 2rem 0;
}

h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 1rem 0 1.25rem;
}

h2 {
  font-size: 1.15rem;
  margin: 2rem 0 0.5rem;
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

.note {
  background: var(--note);
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1rem;
  border-radius: 0 4px 4px 0;
}

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

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

footer {
  border-top: 1px solid var(--rule);
  padding-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

footer a {
  color: var(--muted);
}

footer .owner {
  margin-right: auto;
}
