:root {
  color-scheme: light;
  --ink: #18211c;
  --muted: #5f6761;
  --paper: #f4f5f1;
  --line: #ced2cb;
  --green: #2d6248;
  --rust: #a6502d;
  --white: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

* { box-sizing: border-box; }

html { background: var(--paper); scroll-behavior: smooth; }

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

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

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 5vw;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.site-header.solid {
  position: relative;
  color: var(--ink);
  background: var(--paper);
  border-bottom-color: var(--line);
}

.brand { font-weight: 800; text-decoration: none; }

nav { display: flex; gap: 28px; }
nav a { font-size: 0.92rem; text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { text-decoration: underline; }

.hero {
  position: relative;
  min-height: 76svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: url('/assets/library.webp');
  background-position: center;
  background-size: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 14, 0.42);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, 90vw);
  padding: 132px 5vw 72px;
}

.kicker {
  margin: 0 0 12px;
  color: var(--rust);
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
}

.hero .kicker { color: #f1b294; }

h1, h2, h3, p { margin-top: 0; }

.hero h1 {
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5rem;
  font-weight: 500;
  line-height: 0.98;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1.45;
}

.text-link { color: var(--green); font-weight: 700; }
.text-link.light { color: var(--white); }

.notes-band {
  display: grid;
  grid-template-columns: minmax(210px, 0.65fr) minmax(0, 1.35fr);
  gap: 7vw;
  padding: 76px 5vw 90px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2, .page-intro h1, .reading-entry h2, .about-copy h2, .not-found h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.section-heading h2 { font-size: 2.3rem; }
.note-list { border-top: 1px solid var(--ink); }

.note-row {
  display: grid;
  grid-template-columns: 150px minmax(180px, 0.9fr) minmax(220px, 1.1fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.note-row h3 { margin: 0; font-size: 1.05rem; }
.note-row h3 a { text-decoration: none; }
.note-row h3 a:hover { text-decoration: underline; }
.note-row p { margin: 0; color: var(--muted); }

.note-meta {
  color: var(--rust) !important;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.reading-layout {
  width: min(980px, 90vw);
  min-height: calc(100vh - 150px);
  margin: 0 auto;
  padding: 86px 0 110px;
}

.reading-layout.compact { width: min(780px, 90vw); }

.page-intro {
  max-width: 720px;
  padding-bottom: 54px;
  border-bottom: 1px solid var(--ink);
}

.page-intro h1 { margin-bottom: 18px; font-size: 3.5rem; line-height: 1.1; }
.page-intro > p:last-child { color: var(--muted); font-size: 1.15rem; }

.reading-entry {
  display: grid;
  grid-template-columns: 180px minmax(220px, 0.8fr) minmax(280px, 1.2fr);
  gap: 30px;
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
}

.reading-entry h2 { font-size: 1.65rem; line-height: 1.25; }
.reading-entry p:last-child { color: var(--muted); }

.about-copy { max-width: 650px; padding: 52px 0; }
.about-copy h2 { font-size: 1.8rem; }
.about-copy p { color: var(--muted); }

.not-found {
  width: min(720px, 90vw);
  min-height: calc(100vh - 150px);
  margin: 0 auto;
  padding: 14vh 0 80px;
}

.status-code { margin-bottom: 8px; color: var(--rust); font-weight: 800; }
.not-found h1 { margin-bottom: 14px; font-size: 3.5rem; }
.not-found > p:not(.status-code) { color: var(--muted); }

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 5vw;
  color: var(--muted);
  font-size: 0.8rem;
}

@media (max-width: 760px) {
  .site-header { min-height: 64px; padding-inline: 20px; }
  nav { gap: 18px; }
  .hero { min-height: 72svh; }
  .hero-content { width: 100%; padding: 110px 20px 48px; }
  .hero h1 { font-size: 3.25rem; }
  .hero-copy { font-size: 1.15rem; }
  .notes-band { grid-template-columns: 1fr; gap: 26px; padding: 52px 20px 70px; }
  .note-row, .reading-entry { grid-template-columns: 1fr; gap: 10px; }
  .reading-layout { width: auto; padding: 60px 20px 80px; }
  .page-intro h1, .not-found h1 { font-size: 2.5rem; }
  footer { padding-inline: 20px; }
}
