:root {
  color-scheme: light;
  --ink: #182f40;
  --deep: #173247;
  --paper: #f9f5e9;
  --yellow: #efbc48;
  --pale: #ece7d8;
  --line: #a6a49a;
  --gutter: clamp(20px, 4.4vw, 84px);
  --display: "Arial Black", "Franklin Gothic Heavy", Arial, sans-serif;
  --text: "Trebuchet MS", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 17px/1.48 var(--text); }
h1, h2, h3, p, figure { margin: 0; }
p + p { margin-top: .65em; }
h1, h2, h3 { font-family: var(--display); }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .16em; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #b45a00; outline-offset: 4px; }
img { display: block; width: 100%; height: auto; max-width: 100%; }
.kit-nav { display: flex; flex-wrap: wrap; gap: .3em 1.5em; align-items: center; padding: .75em var(--gutter); background: var(--deep); color: white; font-size: 16px; }
.kit-nav a { padding: .2em 0; }
.kit-nav a:first-child { margin-right: auto; font-weight: 700; text-decoration: none; }
main.home { margin: auto; max-width: 1840px; }
.home-book { --paper: #f6f7f6; --pale: #e7e8e2; }
.cover { padding: clamp(30px, 4.8vw, 88px) var(--gutter); display: grid; grid-template-columns: minmax(0,.83fr) minmax(0,1.17fr); align-items: center; gap: clamp(25px, 4.2vw, 80px); border-bottom: 2px solid var(--deep); }
.cover-title { display: grid; justify-items: start; gap: 1em; }
.cover h1 { font-size: clamp(60px, 6.6vw, 123px); line-height: .9; letter-spacing: -.076em; }
.cover h1 span { color: #b16b00; }
.cover-title > p:last-of-type { max-width: 33ch; font-size: clamp(18px,1.45vw,24px); }
.cover-plate { width: 100%; align-self: center; }
.cover-plate img { border: 2px solid var(--deep); }
figcaption { margin-top: .5em; font: 15px/1.4 var(--text); }
.actions, .file-links { display: flex; flex-wrap: wrap; align-items: center; gap: .65em 1.2em; }
.primary, .story-controls button { display: inline-block; padding: .7em 1.02em; border: 0; background: var(--deep); color: white; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.primary:hover, .story-controls button:hover { background: #2d5069; }
.chapter, .printing, .keep { padding: clamp(38px, 5.6vw, 100px) var(--gutter); }
.chapter { display: grid; grid-template-columns: minmax(0,1.02fr) minmax(0,.98fr); gap: clamp(24px,7vw,120px); }
h2 { font-size: clamp(35px,4.1vw,74px); line-height: 1; letter-spacing: -.066em; }
.chapter h2 { max-width: 13ch; margin-bottom: .38em; }
.materials-intro > p { max-width: 47ch; }
.return-plate { margin-top: 1.7em; }
.resource { border-top: 2px solid var(--deep); padding: .76em 0 1.4em; }
.resource h3 { font-size: clamp(23px,2vw,36px); line-height: 1.1; letter-spacing: -.05em; margin-bottom: .32em; }
.resource p { max-width: 52ch; }
.file-links { margin-top: .42em; font-size: 16px; }
.printing { background: var(--pale); display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: clamp(24px,6vw,100px); align-items: center; }
.print-instructions h2, .keep h2 { margin-bottom: .38em; }
.printing p, .details-body { max-width: 63ch; }
.printing details { margin-top: 1em; }
summary { cursor: pointer; font-weight: bold; text-decoration: underline; text-underline-offset: .18em; padding: .16em 0; }
.details-body { margin-top: .6em; }
.setup-proof { width: min(100%,335px); justify-self: center; }
.keep { display: grid; grid-template-columns: minmax(0,1.16fr) minmax(0,.84fr); gap: clamp(24px,6vw,100px); align-items: center; background: var(--deep); color: #f7f8f4; }
.keep .primary { margin: 1em 0; background: var(--yellow); color: var(--ink); }
.source-line { font-size: 14px; }
.story-book { background: #c7c8bd; }
.story-main { margin: auto; max-width: 1550px; padding: 12px 14px 20px; }
.story-controls { background: var(--paper); display: flex; flex-wrap: wrap; gap: .45em .9em; align-items: center; justify-content: center; padding: .55em var(--gutter); }
.story-controls[hidden], .story-frame[hidden] { display: none; }
.story-controls button { padding: .5em .8em; }
.story-controls button:disabled { background: #d3d7d0; color: #42505a; cursor: default; }
.story-frame { display: grid; grid-template-columns: minmax(0,1.36fr) minmax(0,.64fr); grid-template-rows: 1fr auto; margin: 0 0 1.1em; background: var(--paper); border: 1px solid #53616a; }
.story-frame > img { align-self: stretch; min-height: 0; height: 100%; object-fit: contain; background: var(--pale); }
.frame-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(19px,2.6vw,52px); }
.frame-copy h2 { margin-bottom: .42em; font-size: clamp(31px,3.6vw,67px); }
.frame-copy p { font: clamp(18px,1.4vw,24px)/1.44 Georgia, serif; max-width: 40ch; }
.frame-footer, .terms-footer { grid-column: 1/-1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; padding: 8px 16px; background: var(--deep); color: white; font: 14px/1.3 var(--text); }
.terms-main { padding: 12px var(--gutter); background: #dbddd5; }
.terms-page { width: min(100%,760px); margin: 0 auto 18px; padding: clamp(18px,3.2vw,46px); background: white; overflow-wrap: anywhere; }
.terms-page h1, .terms-page h2 { font: bold clamp(28px,3vw,45px)/1.08 var(--display); letter-spacing: -.048em; margin-bottom: .45em; }
.terms-page h3 { font: bold 22px/1.16 var(--text); margin: .85em 0 .4em; }
.terms-footer { margin-top: 1.3em; }
.rights-table { border-collapse: collapse; table-layout: fixed; width: 100%; margin: .8em 0; }
.rights-table td, .rights-table th { border: 1px solid #87919a; padding: .42em; text-align: left; vertical-align: top; }
.rights-table th { background: #e8eae4; }
@media screen and (min-width: 851px) {
  .scene-four-even-panels { grid-template-columns: minmax(0,1.44fr) minmax(0,.56fr); }
  .story-frame { min-height: min(54vw,625px); }
}
@media screen and (max-width: 850px) {
  .cover, .chapter, .printing, .keep, .story-frame { grid-template-columns: 1fr; }
  .cover { gap: 22px; }
  .cover-title { gap: .65em; }
  .cover h1 { font-size: clamp(56px,9vw,80px); }
  .cover h1 br { display: none; }
  .cover h1 br::after { content: ' '; }
  .chapter h2 { max-width: 16ch; }
  .chapter { gap: 24px; }
  .materials-intro { display: grid; align-content: start; }
  .return-plate { margin-top: 1em; }
  .keep figure { order: 2; }
  .return-plate, .keep figure { max-width: 600px; }
  .story-frame > img { height: auto; }
  .story-main { padding: 7px; }
  .frame-copy h2 { font-size: 34px; }
  .frame-copy p { max-width: none; }
  .story-controls { font-size: 15px; gap: .35em .6em; }
  .kit-nav { gap: .25em 1em; }
}
@media screen and (max-width: 550px) {
  .kit-nav { font-size: 15px; }
  .kit-nav a:first-child { width: 100%; }
  .cover h1 br { display: initial; }
  .frame-footer { font-size: 12px; }
  .setup-proof { max-width: 275px; }
}
@media screen and (prefers-reduced-motion: no-preference) {
  .home-book .reveal-once { animation: settle-in .36s ease-out; }
  @keyframes settle-in { from { opacity: .6; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
}
@media print {
  @page { size: letter; margin: 0; }
  @page story { size: 12in 6.75in; margin: 0; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .kit-nav, .story-controls { display: none !important; }
  html, body, .story-main, .terms-main { margin: 0; padding: 0; max-width: none; background: white; }
  .story-book { page: story; }
  .story-frame, .story-frame[hidden] { display: grid !important; page: story; width: 12in; height: 6.75in; min-height: 0; grid-template-columns: 7.85in 4.15in; grid-template-rows: 6.42in .33in; margin: 0; border: 0; break-after: page; break-inside: avoid; }
  .story-frame:last-child, .terms-page:last-child { break-after: auto; }
  .story-frame > img { width: 100%; height: 100%; object-fit: contain; background: var(--pale); }
  .frame-copy { padding: .28in; }
  .frame-copy h2 { font-size: 28pt; }
  .frame-copy p { font: 15.25pt/1.35 Georgia, serif; max-width: none; }
  .scene-four-even-panels, .scene-four-even-panels[hidden] { grid-template-columns: 12in; grid-template-rows: 4.36in 2.06in .33in; }
  .scene-four-even-panels > img { background: var(--deep); }
  .scene-four-even-panels .frame-copy { display: grid; grid-template-columns: 3.1in minmax(0,1fr) minmax(0,1fr); align-items: center; gap: .25in; padding: .15in .36in; }
  .scene-four-even-panels .frame-copy h2, .scene-four-even-panels .frame-copy p { margin: 0; }
  .frame-footer, .terms-footer { font-size: 8pt; padding: .045in .23in; }
  .frame-footer a { color: white; text-decoration: none; }
  .terms-page { width: 8.5in; height: 11in; margin: 0; max-width: none; padding: .65in .7in .5in; display: flex; flex-direction: column; break-after: page; break-inside: avoid; font: 11.25pt/1.39 Arial,sans-serif; }
  .terms-body { flex: 1; min-height: 0; }
  .terms-page h1, .terms-page h2 { font: bold 25pt/1.08 Arial,sans-serif; margin-bottom: .18in; }
  .terms-page h3 { font: bold 14pt/1.15 Arial,sans-serif; }
  .terms-footer { margin-top: .12in; }
}

