* { box-sizing: border-box; }
:root {
  --ink: #1f2933;
  --muted: #5f6b76;
  --line: #d9e2ec;
  --brand: #24678d;
  --brand-dark: #174761;
  --paper: #ffffff;
  --bg: #f4f7f9;
}
body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
a { color: var(--brand); }
a:hover, a:focus { color: var(--brand-dark); }
.wrap {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
}
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}
.brand {
  font-size: 1.9rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  justify-content: flex-end;
}
.site-nav a {
  text-decoration: none;
  padding: .45rem .7rem;
  border-radius: 999px;
  color: var(--ink);
}
.site-nav a.active,
.site-nav a:hover,
.site-nav a:focus {
  background: var(--brand);
  color: #fff;
}
.hero {
  min-height: 220px;
  margin: 2rem 0 0;
  background-position: center;
  background-size: cover;
  border-radius: 14px 14px 0 0;
  border: 1px solid var(--line);
  border-bottom: 0;
}
.content {
  background: var(--paper);
  padding: clamp(1.25rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 0 0 14px 14px;
  box-shadow: 0 12px 32px rgba(31, 41, 51, .07);
}
h1 {
  margin: 0 0 1rem;
  text-align: center;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: clamp(2rem, 6vw, 4rem);
}
h2 {
  color: var(--brand);
  text-align: center;
  margin-top: .5rem;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.button {
  display: inline-block;
  padding: .6rem 1rem;
  border-radius: .45rem;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
}
.button:hover,
.button:focus {
  background: var(--brand-dark);
  color: #fff;
}
.series-list { font-size: 1.25rem; }
.notice {
  color: #9b2c2c;
  font-size: 1.35rem;
  font-weight: 700;
}
.excerpt {
  color: var(--brand);
}
.chapter-number {
  text-align: center;
  color: var(--brand);
}
.attribution {
  margin-top: 2rem;
}
.site-footer {
  color: var(--muted);
  padding: 2rem 0;
  text-align: center;
}
@media (max-width: 700px) {
  .header-inner { align-items: flex-start; flex-direction: column; }
  .site-nav { justify-content: flex-start; }
  .hero { min-height: 150px; }
}
