@font-face {
  font-family: "Source Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-serif-400.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-serif-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-serif-600.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/nunito-400.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/nunito-700.woff2") format("woff2");
}

:root {
  --paper: #f6eee3;
  --ink: #1a1614;
  --mute: #6d6258;
  --wax: #8c1d18;
  --gold: #b08d4a;
  --ribbon: #2f4038;
  --puck: #fff6ea;
  --line: #ddcfc0;
  --max: 980px;
}

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

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

.seal-bar {
  background: var(--ribbon);
  color: #efe6d4;
  padding: 0;
  border-bottom: 0;
}
.seal-bar .inner {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #efe6d4;
  text-decoration: none;
}
.brand:hover { color: var(--gold); text-decoration: none; }
.brand b {
  font-family: "Source Serif", Georgia, serif;
  font-weight: 600;
  font-size: 1.7rem;
  letter-spacing: 0.22em;
}
.brand small {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c4b8a4;
}
.matrix {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--wax);
  color: #fff6ea;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0 0 3px var(--gold);
  flex-shrink: 0;
}

.ribbon-row {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 10px 0 0;
  border-top: 8px solid var(--wax);
}
.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(--ink);
  padding: 7px 10px;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  padding: 10px 0 14px;
  border-bottom: 1px dashed var(--wax);
}
.nav a {
  color: var(--mute);
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.nav a[aria-current="page"], .nav a:hover { color: var(--wax); text-decoration: none; font-weight: 700; }
.drawer {
  display: none;
  padding: 12px 0 20px;
  border-bottom: 1px dashed var(--wax);
}
.drawer.open { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.drawer a { color: var(--wax); }

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

.hero-ribbon {
  position: relative;
  margin: 0;
  background: var(--ribbon);
}
.hero-ribbon figure { margin: 0; position: relative; }
.hero-ribbon img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
}
@media (min-width: 900px) {
  .hero-ribbon img { height: 420px; }
}
.hero-ribbon figcaption {
  position: absolute;
  right: 16px;
  top: 16px;
  background: rgba(47, 64, 56, 0.82);
  color: #efe6d4;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 12px;
  max-width: 46%;
}
.hero-die {
  position: relative;
  z-index: 2;
  width: min(640px, calc(100% - 36px));
  margin: -64px auto 0;
  background: var(--puck);
  color: var(--ink);
  padding: 36px 28px 28px;
  border: 1px solid var(--line);
  border-top: 10px solid var(--wax);
  box-shadow: 0 10px 0 rgba(26, 22, 20, 0.08);
}
.hero-die::before {
  content: "";
  position: absolute;
  top: -22px;
  left: 50%;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  background: var(--wax);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--paper), inset 0 0 0 3px var(--gold);
}
.kicker {
  color: var(--wax);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 8px 0 0;
  text-align: center;
}
.hero-die h1, .board h1 {
  font-family: "Source Serif", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.9rem, 4.4vw, 2.85rem);
  line-height: 1.12;
  margin: 10px 0 14px;
  color: var(--ink);
  text-align: center;
}
.board h1 { text-align: left; }
.lede {
  color: var(--mute);
  font-size: 1.04rem;
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
}
.board .lede { text-align: left; margin: 0; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; justify-content: center; }
.btn {
  display: inline-block;
  background: var(--wax);
  color: #fff6ea;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 11px 14px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
}
.btn:hover { background: var(--ribbon); color: #fff; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--wax); border: 1px solid var(--wax); }
.marks {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: 13px;
  color: var(--mute);
  justify-content: center;
}
.marks b { color: var(--wax); display: block; font-size: 1.02rem; margin-top: 3px; }
.marks a { color: var(--wax); }

.waxes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  width: min(var(--max), calc(100% - 36px));
  margin: 36px auto;
}
@media (min-width: 800px) {
  .waxes { grid-template-columns: 1fr 1fr 1fr; }
}
.wax-card {
  background: var(--puck);
  padding: 28px 20px 22px;
  min-height: 188px;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--line);
  text-align: center;
  position: relative;
}
.wax-card:hover { border-color: var(--wax); text-decoration: none; }
.wax-card .no {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--wax);
  color: #fff6ea;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 auto 8px;
  box-shadow: 0 0 0 3px var(--gold);
}
.wax-card h3 {
  font-family: "Source Serif", Georgia, serif;
  font-size: 1.45rem;
  margin: 12px 0 8px;
  font-weight: 600;
}
.wax-card p { color: var(--mute); margin: 0; font-size: 0.95rem; }

.board { padding: 8px 0 20px; }
.prose h2 {
  font-family: "Source Serif", Georgia, serif;
  font-size: clamp(1.45rem, 3vw, 1.95rem);
  font-weight: 600;
  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 img { border-radius: 50% 50% 4px 4px / 12% 12% 4px 4px; }
.plate figcaption { font-size: 13px; color: var(--mute); margin-top: 8px; text-align: center; }
table.die {
  width: 100%;
  max-width: 42rem;
  border-collapse: collapse;
  font-size: 15px;
  margin: 18px 0;
}
table.die th, table.die td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 9px 8px 9px 0;
  vertical-align: top;
}
table.die th { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.pull {
  font-family: "Source Serif", Georgia, serif;
  font-style: italic;
  font-size: 1.34rem;
  line-height: 1.34;
  color: var(--wax);
  max-width: 34rem;
  margin: 22px auto;
  text-align: center;
}
.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(--line);
  border-radius: 0 0 40px 40px;
  background: var(--puck);
  padding: 16px 18px 22px;
  margin: 22px 0;
  border-top: 6px solid var(--wax);
}
.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(--line);
  background: var(--puck);
  padding: 16px;
  color: inherit;
  text-decoration: none;
  text-align: center;
}
.related a span { display: block; color: var(--wax); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 8px; }
.related a strong { font-family: "Source Serif", Georgia, serif; font-weight: 600; font-size: 1.15rem; }

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

.site-foot {
  background: var(--ribbon);
  color: #c4b8a4;
  padding: 48px 0 28px;
  font-size: 14px;
  margin-top: 40px;
}
.foot-grid { display: grid; gap: 28px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-foot a { color: var(--gold); }
.site-foot strong {
  font-family: "Source Serif", Georgia, serif;
  color: #efe6d4;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}
.site-foot nav { display: grid; gap: 7px; }
.legal { margin-top: 28px; padding-top: 16px; border-top: 1px solid #4a5a50; font-size: 12px; color: #8a948c; }

.cookie {
  position: fixed;
  top: 92px;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translateX(-50%);
  max-width: 340px;
  width: calc(100% - 32px);
  background: var(--puck);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-top: 8px solid var(--wax);
  border-radius: 0 0 28px 28px;
  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; justify-content: center; }

::selection { background: var(--wax); color: #fff6ea; }
@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: 50%;
    transform: translateX(-50%);
  }
  .hero-ribbon figcaption { max-width: 70%; }
}
