:root {
  --bg: #f5f4f0;
  --surface: #ffffff;
  --text: #1a1a17;
  --muted: #6b6a63;
  --rule: #e3e1da;
  --accent: #9a3b2e;
  --accent-hover: #7f2f24;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14140f;
    --surface: #1c1c16;
    --text: #eae8df;
    --muted: #9a988c;
    --rule: #2e2d25;
    --accent: #e0836f;
    --accent-hover: #eb9a89;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 8vw, 6rem) clamp(1.25rem, 5vw, 2rem) 4rem;
}

header { margin-bottom: 3.5rem; }

h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.tagline {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-style: italic;
}

section { margin-bottom: 2.75rem; }

h2 {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

ul.links {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

ul.links li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.9rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
}

ul.links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.15rem;
}

ul.links a:hover,
ul.links a:focus-visible { color: var(--accent-hover); text-decoration: underline; }

ul.links span {
  color: var(--muted);
  font-size: 0.95rem;
}

footer {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
}

footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

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