:root {
  --bg: #fdf8f0;
  --text: #2c2c2c;
  --accent: #b85c38;
  --accent-hover: #9a4a2e;
  --border: #d9c8b2;
  --link: #b85c38;
  --link-visited: #8a4a2e;
  --focus: #b85c38;
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #2a2520;
    --text: #e8e0d8;
    --accent: #d48a6a;
    --accent-hover: #e09a7a;
    --border: #4a4038;
    --link: #d48a6a;
    --link-visited: #b87a5a;
    --focus: #d48a6a;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.65;
  max-width: 70ch;
  margin: 0 auto;
  padding: 1.5rem;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

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

h1, h2, h3 {
  font-family: var(--font-serif);
  line-height: 1.2;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

h1 {
  font-size: 2rem;
  margin-top: 0;
}

h2 {
  font-size: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.25rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--link);
}

a:visited {
  color: var(--link-visited);
}

a:hover,
a:focus-visible {
  text-decoration: underline;
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

ol, ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
}

.year {
  font-weight: bold;
  margin-right: 0.5rem;
}

cite {
  font-style: italic;
}

dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
}

dt {
  font-weight: bold;
}

footer {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  font-size: 0.9rem;
  text-align: center;
}

@media (min-width: 720px) {
  body {
    padding: 2rem 3rem;
  }
}

@media (min-width: 1100px) {
  body {
    padding: 3rem 4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

hr.mobile-only {
  display: none;
  border: none;
  border-top: 1px solid var(--border);
  margin: 1rem 0;
}

@media (max-width: 719px) {
  hr.mobile-only {
    display: block;
  }
}