:root {
  --bg: #ebe4d6;
  --surface: #f4f0e6;
  --text: #161513;
  --muted: rgba(22, 21, 19, 0.58);
  --line: rgba(22, 21, 19, 0.14);
  --accent: #9a3412;
  --display: "Unbounded", sans-serif;
  --font: "Manrope", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
}
a { color: inherit; }
img { max-width: 100%; }
button { font: inherit; }
.wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.mast {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0 16px;
  border-bottom: 1px solid var(--text);
}
.mast p { margin: 0; }
.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.04em;
}
.brand a { text-decoration: none; }
.issue, .mast-meta {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 14px 0;
  font-size: 14px;
  font-weight: 600;
}
.nav a { text-decoration: none; }
.nav a:hover { color: var(--accent); }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 48px;
  align-items: end;
  padding: 34px 0 8px;
}
.kicker {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
h1 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.deck {
  margin: 0;
  max-width: 34ch;
  font-size: 18px;
  line-height: 1.45;
  color: rgba(22, 21, 19, 0.78);
}
.plate {
  position: relative;
  margin: 0;
  padding: 28px 22px 16px;
  background: var(--surface);
  border: 1px solid rgba(22, 21, 19, 0.18);
  border-radius: 18px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset, 0 16px 36px rgba(48, 32, 12, 0.06);
}
.plate img { display: block; width: min(100%, 320px); height: auto; margin: 0 auto; }
.mk {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 0 solid var(--accent);
}
.mk.tl { top: 10px; left: 10px; border-top-width: 2px; border-left-width: 2px; }
.mk.tr { top: 10px; right: 10px; border-top-width: 2px; border-right-width: 2px; }
.mk.bl { bottom: 10px; left: 10px; border-bottom-width: 2px; border-left-width: 2px; }
.mk.br { bottom: 10px; right: 10px; border-bottom-width: 2px; border-right-width: 2px; }
.plate figcaption {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
}
.plate b { color: var(--text); font-weight: 700; }
.toc {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid var(--text);
}
.toc a {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px 18px;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.toc em {
  font-family: var(--display);
  font-style: normal;
  font-weight: 500;
  color: var(--accent);
}
.toc strong {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.03em;
}
.toc span { color: var(--muted); font-size: 13px; }
.toc a:hover strong { color: var(--accent); }
.chapter { max-width: 68ch; padding: 36px 0 8px; }
.chapter h1 { font-size: clamp(32px, 4vw, 48px); }
.chapter h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -0.03em;
}
.chapter h2, .note + p { font-family: var(--display); }
.chapter p { margin: 0 0 14px; }
.note {
  margin: 18px 0;
  padding: 12px 0 12px 14px;
  border-left: 2px solid var(--accent);
}
footer.legal {
  margin-top: 36px;
  padding: 20px 0 84px;
  border-top: 1px solid var(--text);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.legal-row { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 10px; }
footer.legal a { color: var(--text); }
.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 22px;
  background: #161513;
  color: #f6f1e8;
  font-size: 14px;
}
.cookie button {
  border: 0;
  background: #f4f0e6;
  color: #161513;
  padding: 7px 14px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}
@media (max-width: 900px) {
  .wrap { width: min(1120px, calc(100% - 28px)); }
  .hero, .toc a { grid-template-columns: 1fr; }
  .mast { align-items: flex-start; flex-direction: column; gap: 6px; }
  .toc span { display: none; }
}
