:root {
  --board: #f0ede4;
  --paper: #fffaf0;
  --ink: #20251f;
  --verm: #9d361e;
  --band: #263d32;
  --band-ink: #fff8e5;
  --cta: #9b341e;
  --cta-ink: #fff9ed;
  --soft: #455345;
  --rule: #777e6d;
  --hero-panel: #d6dee7;
  --hero-ink: #202d45;
  --highlight: #f6cc77;
  --highlight-ink: #302916;
  --toolbar: #e4e0d3;
}

@font-face {
  font-family: "CPG Barlow";
  src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "CPG Barlow";
  src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "CPG Barlow Condensed";
  src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "CPG Barlow Condensed";
  src: url("../fonts/barlow-condensed-latin-700-italic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  --display: var(--gh-font-heading, "CPG Barlow Condensed"), "Arial Narrow", sans-serif;
  --body: var(--gh-font-body, "CPG Barlow"), Arial, sans-serif;
  margin: 0;
  background: var(--board);
  color: var(--ink);
  font: 400 17px/1.45 var(--body);
}
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3, .brand { font-family: var(--display); }
button, input, textarea { font: inherit; }
a { color: inherit; text-underline-offset: .22em; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--verm); outline-offset: 4px; }
.wrap { width: min(100% - 2 * clamp(18px, 3.8vw, 76px), 1590px); margin-inline: auto; }
.skip { position: absolute; z-index: 3; left: 12px; top: 8px; transform: translateY(-180%); padding: 10px 16px; background: var(--paper); }
.skip:focus { transform: translateY(0); }

.mast { border-bottom: 2px solid var(--ink); }
.mast-row { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.mast-row { min-height: 78px; }
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none; font-size: 26px; font-weight: 700; line-height: .86; letter-spacing: -.025em;
}
.record {
  display: inline-block; flex: none; width: 36px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--paper) 0 5%, var(--verm) 6% 21%, var(--ink) 22% 36%, var(--board) 37% 38%, var(--ink) 39% 56%, var(--board) 57% 58%, var(--ink) 59%);
}
.guide-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-weight: 600; }

.action {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 25px;
  background: var(--cta); color: var(--cta-ink); border: 1px solid var(--ink); border-radius: 2px;
  box-shadow: 3px 3px 0 var(--ink); padding: 12px 19px; min-height: 48px; text-decoration: none; font-weight: 600;
}
.action span { font-size: 1.25em; line-height: 1; }
.action:hover { background: #782813; }
.action:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.mast-links { display: flex; align-items: center; gap: clamp(14px, 3vw, 48px); }
.mast-links .action { min-height: 41px; padding: 8px 15px; gap: 14px; font-size: 16px; }
@media (max-width: 740px) {
  .mast-links .guide-link { display: none; }
}
@media (max-width: 460px) {
  .mast-links .action { font-size: 14px; gap: 8px; padding-inline: 9px; }
}

@media (max-width: 690px) {
  .mast-row { min-height: 66px; gap: 12px; }
  .mast-row .brand { font-size: 22px; }
  .mast-row .record { width: 30px; }
  .guide-link { font-size: 15px; }
}

.site-logo { display: block; max-width: 175px; max-height: 54px; object-fit: contain; }
.site-name, .cpg-footer-name { max-width: 12ch; overflow-wrap: anywhere; }
.mast-row { flex-wrap: wrap; padding-block: 12px; }
.mast-links, .mast-links .nav { flex-wrap: wrap; }
.mast-links .nav, .cpg-footer-group .nav { list-style: none; margin: 0; padding: 0; }
.mast-links .nav { display: flex; align-items: center; gap: 0 clamp(12px, 1.4vw, 28px); }
.mast-links .nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.mast-links .nav-current a { text-decoration-color: var(--verm); text-decoration-thickness: 2px; }
@media (max-width: 690px) {
  .mast-row {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 10px; padding-block: 9px 3px;
  }
  .mast-row > .brand { grid-area: 1 / 1; position: relative; z-index: 1; justify-self: start; min-width: 0; }
  .mast-row .site-logo { max-width: min(100%, 175px); }
  .mast-links {
    grid-area: 1 / 1 / 3 / -1; display: grid;
    grid-template-columns: subgrid; grid-template-rows: subgrid; gap: inherit;
  }
  .mast-links .nav { grid-area: 2 / 1 / 3 / -1; }
  .mast-links .action { grid-area: 1 / 2; justify-self: end; }
}
@media (max-width: 460px) {
  .mast-links .nav { gap: 0 8px; font-size: 16px; }
}
#main:focus { outline: none; }
.reading-page { max-width: 1150px; padding-block: clamp(35px, 5vw, 80px); }
.reading-heading { max-width: 800px; margin: 0 auto 26px; }
.reading-label { color: var(--verm); font-weight: 600; }
.reading-heading h1 { margin: 12px 0; font-size: clamp(46px, 6.2vw, 100px); line-height: .95; letter-spacing: -.03em; overflow-wrap: anywhere; }
.reading-deck { color: var(--soft); font-size: clamp(20px, 1.8vw, 28px); }
.reading-byline { margin-top: 18px; }
.reading-return { margin-top: 36px; border-top: 1px solid var(--rule); }
.reading-return a { display: inline-flex; align-items: center; min-height: 44px; color: var(--verm); font-weight: 600; }
.reading-image { margin: 24px auto; }
.reading-image img { width: 100%; display: block; }
.reading-image figcaption { margin-top: 5px; font-size: 15px; }
.reading-body {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 68ch) minmax(0, 1fr);
  gap: 1.15em 0; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.62; overflow-wrap: break-word;
}
.reading-body > * { min-width: 0; grid-column: 2; margin-block: 0; }
.reading-body .kg-width-wide, .reading-body .kg-width-full { grid-column: 1 / -1; }
.reading-body img, .reading-body video, .reading-body iframe { max-width: 100%; }
.reading-body img, .reading-body video { height: auto; }
.reading-body h2, .reading-body h3 { color: var(--band); line-height: 1.1; }
.reading-body pre { overflow-x: auto; }
.reading-body blockquote { margin: 0; padding-left: 18px; border-left: 4px solid var(--verm); }
