@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/spectral-500.woff2") format("woff2");
}
@font-face {
  font-family: "Spectral";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/spectral-500-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/atkinson-400.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/atkinson-700.woff2") format("woff2");
}

:root {
  --paper: #f4efe4;
  --iron: #1e1a17;
  --mute: #6a6258;
  --brass: #b8893d;
  --ox: #7a2e2a;
  --leaf: #efe8d8;
  --line: #d4cbb8;
  --max: 1040px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--iron);
  font-family: "Atkinson", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.64;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ox); text-decoration: none; }
a:hover { color: var(--brass); text-decoration: underline; }
button, input, textarea { font: inherit; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--ox); color: #fff; padding: 8px; z-index: 50; }

.bow-bar {
  background: var(--iron);
  color: #efe6d4;
  padding: 0;
  border-bottom: 4px solid var(--brass);
}
.bow-bar .inner {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #efe6d4;
  text-decoration: none;
  padding: 16px 0;
}
.brand:hover { color: var(--brass); text-decoration: none; }
.brand b {
  font-family: "Spectral", Georgia, serif;
  font-weight: 500;
  font-size: 1.85rem;
  letter-spacing: 0.18em;
}
.brand small {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b4a894;
  border-left: 1px solid #4a433a;
  padding-left: 14px;
}
.bit {
  align-self: stretch;
  display: flex;
  align-items: center;
  background: var(--brass);
  color: var(--iron);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0 16px;
}
.ward-row {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 12px 0 0;
}
.topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.burger {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--iron);
  padding: 7px 10px;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 10px 0 14px;
  border-bottom: 2px solid var(--iron);
}
.nav a {
  color: var(--mute);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav a[aria-current="page"], .nav a:hover { color: var(--ox); text-decoration: none; font-weight: 700; }
.drawer {
  display: none;
  padding: 12px 0 20px;
  border-bottom: 2px solid var(--iron);
}
.drawer.open { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.drawer a { color: var(--ox); }

main { padding-bottom: 48px; }
.wrap { width: min(var(--max), calc(100% - 36px)); margin: 0 auto; }

.hero-keyway {
  display: grid;
  grid-template-columns: 1fr;
  margin: 18px 0 0;
  background: var(--iron);
  min-height: 0;
}
@media (min-width: 900px) {
  .hero-keyway {
    grid-template-columns: 1.55fr minmax(300px, 38%);
    min-height: min(72vh, 640px);
  }
}
.hero-keyway figure { margin: 0; position: relative; }
.hero-keyway img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.04);
}
@media (min-width: 900px) {
  .hero-keyway img { height: 100%; min-height: min(72vh, 640px); }
}
.hero-keyway figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(30, 26, 23, 0.78);
  color: #efe6d4;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 12px;
  max-width: 70%;
}
.hero-leaf {
  background: var(--iron);
  color: #efe6d4;
  padding: 28px 26px 32px;
  border-top: 8px solid var(--brass);
}
@media (min-width: 900px) {
  .hero-leaf {
    border-top: 0;
    border-left: 8px solid var(--brass);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
}
.kicker {
  color: var(--brass);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0;
}
.hero-leaf h1, .board h1 {
  font-family: "Spectral", Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.05;
  margin: 10px 0 14px;
  color: #efe6d4;
}
.board h1 { color: var(--iron); }
.lede { color: #c4b8a4; font-size: 1.04rem; max-width: 36rem; margin: 0; }
.board .lede { color: var(--mute); }
.btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.btn {
  display: inline-block;
  background: var(--brass);
  color: var(--iron);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 11px 14px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.btn:hover { background: #d4a24a; color: var(--iron); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--brass); border: 1px solid var(--brass); }
.marks {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: 13px;
  color: #b4a894;
}
.marks b { color: var(--brass); display: block; font-size: 1.02rem; margin-top: 3px; }
.marks a { color: var(--brass); }

.keys {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  width: min(var(--max), calc(100% - 36px));
  margin: 28px auto;
}
@media (min-width: 800px) {
  .keys { grid-template-columns: 1fr 1fr 1fr; }
}
.key-card {
  background: var(--leaf);
  padding: 22px 20px;
  min-height: 176px;
  color: inherit;
  text-decoration: none;
  border-top: 4px solid var(--brass);
  box-shadow: 3px 3px 0 var(--iron);
}
.key-card:hover { background: #fff; text-decoration: none; }
.key-card .no { color: var(--ox); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; }
.key-card h3 {
  font-family: "Spectral", Georgia, serif;
  font-size: 1.5rem;
  margin: 12px 0 8px;
  font-weight: 500;
}
.key-card p { color: var(--mute); margin: 0; font-size: 0.95rem; }

.board { padding: 8px 0 20px; }
.prose h2 {
  font-family: "Spectral", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  font-weight: 500;
  margin: 1.4em 0 0.5em;
}
.prose h3 { font-size: 1.08rem; margin: 1.2em 0 0.4em; }
.prose p { max-width: 42rem; }
.prose ul, .prose ol { max-width: 42rem; }
.prose code { font-size: 0.9em; }
.plate { margin: 24px 0; }
.plate figcaption { font-size: 13px; color: var(--mute); margin-top: 8px; }
table.ward {
  width: 100%;
  max-width: 42rem;
  border-collapse: collapse;
  font-size: 15px;
  margin: 18px 0;
}
table.ward th, table.ward td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 9px 8px 9px 0;
  vertical-align: top;
}
table.ward th { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.pull {
  font-family: "Spectral", Georgia, serif;
  font-style: italic;
  font-size: 1.38rem;
  line-height: 1.32;
  color: var(--ox);
  max-width: 34rem;
  margin: 22px 0;
}
.file-stamp {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 18px;
}
.trust-note {
  border: 1px solid var(--iron);
  border-left: 6px solid var(--brass);
  background: var(--leaf);
  padding: 16px 18px;
  margin: 22px 0;
}
.src-list { margin: 0; padding-left: 1.15em; }
.src-list li { margin: 0 0 8px; }
.log { font-size: 13px; color: var(--mute); }
.faq details { border-bottom: 1px solid var(--line); padding: 10px 0; max-width: 42rem; }
.faq summary { cursor: pointer; font-weight: 700; }
.related {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 16px;
}
@media (min-width: 800px) { .related { grid-template-columns: repeat(3, 1fr); } }
.related a {
  border: 1px solid var(--iron);
  background: var(--leaf);
  padding: 16px;
  color: inherit;
  text-decoration: none;
}
.related a span { display: block; color: var(--ox); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 8px; }
.related a strong { font-family: "Spectral", Georgia, serif; font-weight: 500; font-size: 1.15rem; }

form.sheet { display: grid; gap: 14px; max-width: 32rem; }
form.sheet label { font-size: 13px; color: var(--mute); }
form.sheet input, form.sheet textarea {
  width: 100%;
  background: var(--leaf);
  border: 1px solid var(--iron);
  color: var(--iron);
  padding: 12px;
}
form.sheet textarea { min-height: 140px; }

.site-foot {
  background: var(--iron);
  color: #b4a894;
  padding: 48px 0 28px;
  font-size: 14px;
  margin-top: 24px;
}
.foot-grid { display: grid; gap: 28px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-foot a { color: var(--brass); }
.site-foot strong {
  font-family: "Spectral", Georgia, serif;
  color: #efe6d4;
  font-size: 1.35rem;
  font-weight: 500;
}
.site-foot nav { display: grid; gap: 7px; }
.legal { margin-top: 28px; padding-top: 16px; border-top: 1px solid #3a342e; font-size: 12px; color: #8a8074; }

.cookie {
  position: fixed;
  top: 92px;
  left: 16px;
  right: auto;
  bottom: auto;
  transform: none;
  max-width: 320px;
  width: calc(100% - 32px);
  background: var(--leaf);
  color: var(--iron);
  border: 2px solid var(--iron);
  border-left: 6px solid var(--brass);
  padding: 14px;
  display: none;
  z-index: 40;
}
.cookie.open { display: block; }
.cookie[hidden] { display: none !important; }
.cookie p { margin: 0 0 10px; font-size: 13px; }
.cookie .row { display: flex; gap: 8px; }

::selection { background: var(--brass); color: var(--iron); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 820px) {
  .burger { display: inline-block; }
  .nav { display: none; }
  .brand small { display: none; }
  .cookie { top: auto; bottom: 16px; left: 16px; }
}
