@font-face {
  font-family: "Crimson Pro";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/crimson-pro-500.woff2") format("woff2");
}
@font-face {
  font-family: "Crimson Pro";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/crimson-pro-500-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/outfit-400.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/outfit-600.woff2") format("woff2");
}

:root {
  --dust: #efeae1;
  --slate: #2c333c;
  --mute: #5f675f;
  --chalk: #4a6d8c;
  --brick: #a34a32;
  --board: #faf7f2;
  --line: #d4cdc2;
  --max: 1000px;
}

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

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

.chalk-bar {
  background: var(--slate);
  color: #e8eef3;
  padding: 16px 0 0;
  border-bottom: 3px solid var(--chalk);
}
.chalk-bar .inner {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: #e8eef3;
  text-decoration: none;
}
.brand:hover { color: #c5d4e0; text-decoration: none; }
.brand b {
  font-family: "Crimson Pro", Georgia, serif;
  font-weight: 500;
  font-size: 1.7rem;
  letter-spacing: 0.12em;
}
.brand small {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9aadb8;
}
.snap {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px dashed #8aa0b0;
  padding: 6px 10px;
  color: #c5d4e0;
}
.line-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(--slate);
  padding: 7px 10px;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  padding: 10px 0 14px;
  border-bottom: 1px dashed var(--line);
}
.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(--brick); text-decoration: none; font-weight: 600; }
.drawer {
  display: none;
  padding: 12px 0 20px;
  border-bottom: 1px dashed var(--line);
}
.drawer.open { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.drawer a { color: var(--chalk); }

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

.hero-overlay {
  position: relative;
  margin: 18px 0 0;
  background: var(--slate);
}
.hero-overlay img {
  width: 100%;
  height: min(70vh, 640px);
  object-fit: cover;
  filter: saturate(0.92);
}
.hero-overlay figcaption {
  position: absolute;
  right: 18px;
  top: 18px;
  background: rgba(44, 51, 60, 0.72);
  color: #dce6ee;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 12px;
}
.hero-panel {
  position: absolute;
  left: max(18px, calc(50% - var(--max) / 2));
  bottom: 28px;
  width: min(420px, calc(100% - 36px));
  background: rgba(250, 247, 242, 0.95);
  border-left: 5px solid var(--chalk);
  padding: 22px 24px 20px;
}
.kicker {
  color: var(--brick);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0;
}
.hero-panel h1, .hero-copy h1, .board h1 {
  font-family: "Crimson Pro", Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  line-height: 1.04;
  margin: 8px 0 12px;
}
.lede { color: var(--mute); font-size: 1.05rem; max-width: 38rem; margin: 0; }
.hero-copy {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 8px;
}
.btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.btn {
  display: inline-block;
  background: var(--brick);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 11px 14px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.btn:hover { background: #823824; color: #fff; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--chalk); border: 1px solid var(--chalk); }
.marks {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: 13px;
  color: var(--mute);
}
.marks b { color: var(--brick); display: block; font-size: 1.02rem; margin-top: 3px; }
.marks a { color: var(--brick); }

.courses {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: min(var(--max), calc(100% - 36px));
  margin: 28px auto;
}
@media (min-width: 800px) {
  .courses { grid-template-columns: 1fr 1fr 1fr; gap: 0; border: 1px dashed var(--line); }
}
.course-card {
  background: var(--board);
  padding: 22px 20px;
  min-height: 168px;
  color: inherit;
  text-decoration: none;
  border: 1px dashed var(--line);
}
@media (min-width: 800px) {
  .course-card { border: 0; border-right: 1px dashed var(--line); }
  .course-card:last-child { border-right: 0; }
}
.course-card:hover { background: #fff; text-decoration: none; }
.course-card .no { color: var(--chalk); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; }
.course-card h3 {
  font-family: "Crimson Pro", Georgia, serif;
  font-size: 1.55rem;
  margin: 12px 0 8px;
  font-weight: 500;
}
.course-card p { color: var(--mute); margin: 0; font-size: 0.95rem; }

.board { padding: 8px 0 20px; }
.prose h2 {
  font-family: "Crimson Pro", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  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.course {
  width: 100%;
  max-width: 42rem;
  border-collapse: collapse;
  font-size: 15px;
  margin: 18px 0;
}
table.course th, table.course td {
  text-align: left;
  border-bottom: 1px dashed var(--line);
  padding: 9px 8px 9px 0;
  vertical-align: top;
}
table.course th { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.pull {
  font-family: "Crimson Pro", Georgia, serif;
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.3;
  color: var(--chalk);
  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-left: 4px solid var(--chalk);
  background: var(--board);
  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 dashed var(--line); padding: 10px 0; max-width: 42rem; }
.faq summary { cursor: pointer; font-weight: 600; }
.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 dashed var(--line);
  background: var(--board);
  padding: 16px;
  color: inherit;
  text-decoration: none;
}
.related a span { display: block; color: var(--brick); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 8px; }
.related a strong { font-family: "Crimson Pro", 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(--board);
  border: 1px dashed var(--line);
  color: var(--slate);
  padding: 12px;
}
form.sheet textarea { min-height: 140px; }

.site-foot {
  background: var(--slate);
  color: #b8c2c8;
  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: #c9a090; }
.site-foot strong {
  font-family: "Crimson Pro", Georgia, serif;
  color: #e8eef3;
  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 #3d454e; font-size: 12px; color: #889199; }

.cookie {
  position: fixed;
  top: 92px;
  right: 16px;
  left: auto;
  bottom: auto;
  transform: none;
  max-width: 320px;
  width: calc(100% - 32px);
  background: var(--board);
  color: var(--slate);
  border: 1px dashed var(--chalk);
  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(--chalk); color: #fff; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 820px) {
  .burger { display: inline-block; }
  .nav { display: none; }
  .hero-overlay img { height: 240px; }
  .hero-panel {
    position: static;
    width: min(var(--max), calc(100% - 36px));
    margin: -8px auto 0;
    left: auto;
    bottom: auto;
  }
  .hero-overlay figcaption { right: 10px; top: 10px; }
  .cookie { top: auto; bottom: 16px; right: 16px; }
}
