:root {
  --bg: #fbfaf8;
  --text: #1c1a19;
  --muted: #6b6461;
  --rule: #e6e1dd;
  --accent: #9e1b32;
  --accent-soft: rgba(158, 27, 50, 0.08);
  --serif: "Iowan Old Style", "Charter", "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141212;
    --text: #e9e4e1;
    --muted: #9a918d;
    --rule: #2b2726;
    --accent: #e0566c;
    --accent-soft: rgba(224, 86, 108, 0.12);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
}

main {
  max-width: 36rem;
  margin: 0 auto;
  padding: 5rem 1.25rem 3rem;
}

header { margin-bottom: 3rem; }

h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

h1::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  margin-top: 1rem;
  background: var(--accent);
}

.tagline {
  margin: 1rem 0 0;
  color: var(--muted);
}

section { margin-top: 2.75rem; }

h2 {
  margin: 0 0 0.75rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

p { margin: 0 0 1rem; }

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

a:hover { color: var(--accent); }

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

ul.list {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.list li {
  padding: 0.6rem 0;
  border-top: 1px solid var(--rule);
}

ul.list li:last-child { border-bottom: 1px solid var(--rule); }

.item-title { font-weight: 600; }

.item-desc {
  display: block;
  color: var(--muted);
  font-size: 1rem;
}

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

code {
  font-family: var(--mono);
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 3px;
  background: var(--accent-soft);
}

footer {
  margin-top: 4rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 480px) {
  main { padding-top: 3rem; }
  h1 { font-size: 1.75rem; }
}
