:root {
  --bg: #f4f1ea;
  --ink: #221e1a;
  --muted: #5e584f;
  --line: #d5cfc4;
  --rust: #8d4e32;
  --olive: #5d6658;
  --serif: Georgia, "Palatino Linotype", Palatino, serif;
  --sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --max: 1180px;
  --read: 720px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
}

a { color: var(--rust); }
a:hover { color: #6d3a24; }

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: #fff;
  padding: 0.4rem 0.6rem;
}
.skip:focus { top: 0.5rem; }

.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.read { max-width: var(--read); }

.mast {
  height: 64px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.mast-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.2rem;
}
.nav { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.22rem; }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
}

.section { padding: 96px 0; }
.section + .section { border-top: 1px solid var(--line); }

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--olive);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; }
h1 { margin: 0; font-size: clamp(2.1rem, 4vw, 3.3rem); letter-spacing: -0.03em; max-width: 16ch; }
h2 { margin: 0 0 0.8rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { margin: 0 0 0.4rem; font-size: 1.45rem; }

.intro p { max-width: var(--read); }
.text-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin-top: 0.4rem; }
.text-links a { font-weight: 650; }

.rows { margin-top: 1rem; }
.row {
  display: grid;
  grid-template-columns: 9rem 1fr auto;
  gap: 1rem;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding: 0.85rem 0;
}
.row strong { font-family: var(--serif); font-size: 1.15rem; }
.row p { margin: 0; color: var(--muted); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  align-items: start;
}
.span-8 { grid-column: span 8; }
.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }

.notes { margin: 0; border-top: 1px solid var(--line); }
.notes div { border-bottom: 1px solid var(--line); padding: 0.7rem 0; }
.notes dt { color: var(--olive); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.notes dd { margin: 0.2rem 0 0; }

.path { margin-top: 2.4rem; }
.path:first-of-type { margin-top: 0.4rem; }
.support {
  border-top: 1px solid var(--line);
  padding-top: 0.6rem;
  color: var(--muted);
}
.support p { margin: 0.35rem 0; }

.checklist { margin: 0; padding: 0; list-style: none; }
.checklist li {
  display: grid;
  grid-template-columns: 1rem 1fr;
  gap: 0.6rem;
  border-top: 1px solid var(--line);
  padding: 0.7rem 0;
}
.checklist li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.45rem;
  background: var(--olive);
  border-radius: 8px;
}

.mistakes { margin: 0; padding: 0; list-style: none; counter-reset: miss; }
.mistakes li {
  counter-increment: miss;
  border-top: 1px solid var(--line);
  padding: 1.1rem 0 1.1rem 0;
}
.mistakes h3::before {
  content: counter(miss) ". ";
  color: var(--rust);
}
.mistakes p { max-width: var(--read); margin: 0.35rem 0 0; }

.library { margin: 0; padding: 0; list-style: none; }
.library li { border-top: 1px solid var(--line); padding: 0.85rem 0; }
.library a { font-family: var(--serif); font-size: 1.25rem; text-decoration: none; }
.library a:hover { text-decoration: underline; }
.library p { margin: 0.25rem 0 0; color: var(--muted); }

.band { background: #efeae1; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.address { font-style: normal; }

.foot { padding: 1.4rem 0 2rem; }
.foot p { margin: 0; font-family: var(--serif); font-size: 1.2rem; }
.foot nav, .foot .mail { display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; margin-top: 0.55rem; }

.prose h2 { font-size: 1.45rem; margin-top: 1.6rem; }
.prose p { margin: 0.75rem 0; }
.prose ul { padding-left: 1.2rem; }

@media (max-width: 900px) {
  .section { padding: 64px 0; }
  .span-8, .span-7, .span-5, .span-4 { grid-column: 1 / -1; }
  .path .span-5 { order: 2; }
  .path .span-7 { order: 1; }
}

@media (max-width: 700px) {
  .section { padding: 44px 0; }
  .nav-toggle { display: inline-block; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.8rem 1rem 1rem;
    flex-direction: column;
  }
  .nav.is-open { display: flex; }
  .mast { position: relative; }
  .row { grid-template-columns: 1fr; gap: 0.25rem; }
}
