/* The field manual has acquired margin notes. Keep the jacket palette. */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.hero { position: relative; padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.hero .display { line-height: .98; }
.hero .eyebrow, .hero .promise cite, .hero-spec, .shelf-cap, .shelf-note { font-size: .8125rem; letter-spacing: .07em; }
.hero-docket { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin: 1.4rem 0 0; font: .8125rem var(--mono); color: var(--stock-dim); }
.docket-stamp { display: inline-block; color: var(--gerald); border: 2px solid currentColor; padding: .3rem .55rem; font-weight: 600; letter-spacing: .08em; transform: rotate(-4deg); }
.hero-start { flex-basis: 100%; font: .875rem var(--mono); color: var(--stock-dim); padding: .35rem 0; text-underline-offset: 5px; }
.hero-start:hover { color: var(--gerald); }
.hero-spec { margin-top: 1.2rem; }
.shelf-note { min-height: 3.4em; }
.shelf .spine { transition: flex-grow .42s cubic-bezier(.22,.85,.3,1), transform .3s ease; }
.shelf .spine:hover, .shelf .spine:focus { transform: translateY(-9px); }
.shelf-cap { gap: 1rem; }
.rack { scrollbar-width: thin; scrollbar-color: var(--gerald) var(--ink-soft); }
.rack::-webkit-scrollbar { display: block; height: 4px; }
.rack::-webkit-scrollbar-thumb { background: var(--gerald); }
.predicament-sec { background: var(--stock-hi); color: var(--ink); border-top: 7px solid var(--gerald); }
.predicament-sec .eyebrow, .gerald-sec .eyebrow { font-size: .8125rem; letter-spacing: .12em; }
.case-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.1rem; }
.case-heading h2 { font-size: clamp(3rem, 6vw, 5rem); line-height: .94; margin-top: .7rem; }
.case-heading h2 em { font-style: normal; color: #955900; }
.case-heading > p { max-width: 30ch; margin: 0; color: var(--ink-dim); }
.predicament-grid { display: grid; grid-template-columns: 1fr 1.12fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.predicament-choices { display: grid; border-top: 1px solid #b5b0a3; }
.predicament-choice { display: grid; grid-template-columns: 1.4rem 1fr 1rem; align-items: center; gap: .7rem; width: 100%; padding: 1rem .8rem; border: 0; border-bottom: 1px solid #b5b0a3; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background .18s, color .18s, padding .18s; }
.choice-number { font: .8125rem var(--mono); }
.choice-mark { font: 1.35rem var(--mono); }
.predicament-choice:hover { background: #e3dfd1; }
.predicament-choice[aria-pressed="true"] { background: var(--ink); color: var(--stock-hi); padding-left: 1rem; }
.predicament-choice[aria-pressed="true"] .choice-mark { color: var(--gerald); transform: rotate(45deg); }
.predicament-sec :focus-visible, .gerald-sec :focus-visible, .doreen-sec :focus-visible { outline-color: #915800; }
.case-browse { margin: 1rem 0 0; font-size: .875rem; text-underline-offset: 4px; }
.predicament-file { border: 1px solid #bab6a9; box-shadow: 7px 7px 0 #dedace; background: #fffdf6; }
.predicament-result { display: grid; grid-template-columns: minmax(100px, .7fr) minmax(0, 1.3fr); gap: 1.3rem; padding: clamp(1.2rem, 2.5vw, 2rem); border-top: 5px solid var(--case-accent); min-height: 375px; align-items: start; }
.case-cover { margin-top: .2rem; display: block; transform: rotate(-4deg); box-shadow: 5px 7px 0 rgba(4,18,47,.13); }
.case-cover img { width: 100%; }
.case-label { font: .75rem var(--mono); letter-spacing: .04em; text-transform: uppercase; color: #625d51; margin: 0 0 .65rem; }
.case-copy h3 { font: 800 clamp(1.6rem, 2.4vw, 2.25rem)/1 var(--display); text-transform: uppercase; margin: 0 0 .85rem; }
.case-verdict { font-weight: 500; margin: 0; }
.case-note { color: #57544b; font-size: .9375rem; margin: .8rem 0; }
.case-link { display: inline-flex; align-items: center; gap: .75rem; min-height: 44px; font: 600 .875rem var(--mono); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.case-link:hover { color: #915800; }
.proof-sample { max-width: 380px; margin: auto; transform: rotate(-2deg); }
.proof-sample .plate { box-shadow: 10px 10px 0 var(--ink-deep); }
.proof-sample .plate img { max-height: 450px; object-fit: contain; }
.proof-sample .plate figcaption { font-size: .8125rem; }
.gerald-sec { background: var(--gerald); color: var(--ink); border-block: 1px solid var(--ink); }
.gerald-grid { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 4rem); }
.gerald-scene { margin: 0; background: var(--stock-hi); border: 3px solid var(--ink); box-shadow: 9px 9px 0 var(--ink); transform: rotate(-2deg); position: relative; }
.gerald-picture { overflow: hidden; }
.gerald-picture img { width: 100%; transform-origin: 76% 68%; }
.gerald-scene figcaption { border-top: 2px solid var(--ink); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; padding: .7rem; font: .75rem var(--mono); }
.gerald-scene figcaption { align-items: center; }
.scene-motion { background: transparent; color: var(--ink); font: .8125rem var(--mono); border: 0; border-bottom: 1px solid currentColor; cursor: pointer; min-height: 44px; padding: .4rem; }
.scene-motion:disabled { cursor: default; border-color: transparent; }
.stock-stamp { position: absolute; bottom: 20%; left: 7%; max-width: 85%; border: 3px solid #98190f; color: #98190f; background: #fff9e3ed; font: 800 clamp(1rem, 2.1vw, 1.7rem)/1.2 var(--display); padding: .3rem .55rem; transform: rotate(-9deg); letter-spacing: .04em; }
.gerald-copy h2 { font-size: clamp(2.8rem, 5vw, 4.4rem); line-height: .96; margin: .8rem 0 1.2rem; }
.gerald-copy h2 em { font-style: normal; }
.gerald-copy > p:not(.eyebrow) { max-width: 46ch; }
.stock-report { border-top: 1px solid #8c6200; border-bottom: 1px solid #8c6200; padding: 1rem 0; margin: 1.3rem 0; min-height: 155px; }
.report-label { font: 600 .75rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 .6rem; }
.stock-report p:last-child { margin: 0; font-size: 1.0625rem; }
.gerald-fineprint { font: .8125rem/1.5 var(--mono); }
.gerald-manual { font-size: .875rem; text-underline-offset: 4px; display: inline-block; padding-block: .4rem; }
.gerald-sec .btn { min-height: 48px; font-size: .875rem; letter-spacing: .03em; }
.doreen-reply { margin-top: 1.3rem; padding-top: .7rem; border-top: 1px solid currentColor; }
.doreen-reply summary { font: .875rem var(--mono); cursor: pointer; padding-block: .5rem; }
.doreen-reply p { font-size: 1rem; }
.motion-bar { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.motion-toggle { font: .875rem var(--mono); background: transparent; color: var(--stock); border: 1px solid var(--stock-dim); padding: .65rem .85rem; min-height: 44px; cursor: pointer; }
.motion-toggle:hover { background: var(--ink-soft); }
.motion-toggle:disabled { cursor: default; opacity: .75; }
.motion-caption { color: var(--stock-dim); font: .8125rem var(--mono); }
.motion-toggle[hidden] + .motion-caption { display: none; }
.menu-toggle { display: none; }
html[data-motion="on"] .docket-stamp { animation: docket-arrive .6s ease-out both; }
html[data-motion="on"] .predicament-result:not([hidden]) { animation: file-arrive .25s ease-out; }
html[data-motion="on"] .gerald-scene[data-in-view="true"] .gerald-picture img { animation: gerald-stocktake 8s ease-in-out infinite; }
html[data-background="true"] .gerald-picture img { animation-play-state: paused !important; }
@keyframes docket-arrive { from { opacity: 0; transform: scale(1.35) rotate(-10deg); } to { opacity: 1; transform: scale(1) rotate(-4deg); } }
@keyframes file-arrive { from { opacity: .4; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes gerald-stocktake { 0%, 24%, 100% { transform: scale(1); } 42%, 78% { transform: scale(1.075); } }
@media (max-width: 1000px) {
  .masthead > .wrap { flex-wrap: wrap; padding-block: .75rem; }
  .masthead nav { gap: .75rem; }
  .masthead nav a { font-size: .8125rem; letter-spacing: .04em; }
}
@media (max-width: 850px) {
  .case-heading { align-items: start; }
  .predicament-grid, .gerald-grid { grid-template-columns: 1fr; }
  .predicament-result { grid-template-columns: minmax(100px, .5fr) 1.5fr; min-height: 0; }
  .case-cover { max-width: 160px; }
  .gerald-scene { max-width: 600px; }
  .stock-report { min-height: 130px; }
}
@media (max-width: 760px) {
  .has-menu .menu-toggle { display: inline-flex; align-items: center; gap: .8rem; margin-left: auto; min-height: 44px; padding: .5rem .8rem; border: 1px solid var(--stock-dim); background: transparent; color: var(--stock); font: .875rem var(--mono); cursor: pointer; }
  .has-menu .masthead nav { display: none; width: 100%; margin: 0; padding-top: .5rem; }
  .has-menu .masthead nav.is-open { display: grid; grid-template-columns: 1fr 1fr; }
  .has-menu .masthead nav a, .has-menu .masthead nav a.opt { display: block; padding: .7rem; min-height: 44px; font-size: .875rem; }
  .menu-toggle[aria-expanded="true"] span { transform: rotate(45deg); }
  .hero-grid { gap: 1.5rem; }
  .hero .hero-spec { font-size: .875rem; }
  .rack a { flex-basis: 35%; }
  .case-heading { flex-direction: column; gap: 1rem; }
  .case-heading h2 br { display: none; }
  .case-heading h2 em::before { content: ' '; }
  .tally dt { white-space: normal; flex-shrink: 1; }
  .tally .dots { min-width: .5rem; }
}
@media (max-width: 420px) {
  .predicament-result { grid-template-columns: 85px minmax(0, 1fr); padding: 1rem; gap: 1rem; }
  .case-copy h3 { font-size: 1.7rem; }
  .case-verdict, .case-note { font-size: 1rem; }
  .wordmark { font-size: 1.2rem; }
  .case-heading h2 { font-size: 2.75rem; }
  .predicament-choice { font-size: 1rem; }
  .gerald-scene { margin-inline: .25rem; }
}
html[data-motion="off"] { scroll-behavior: auto; }
html[data-motion="off"] :is(.docket-stamp, .predicament-result, .gerald-picture img, .spine, .spine img, .spine-label, .spine-foot, .predicament-choice) { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .docket-stamp, .predicament-result, .gerald-picture img, .spine, .spine img, .spine-label, .spine-foot, .predicament-choice { animation: none !important; transition: none !important; }
}
@media print {
  .menu-toggle, .motion-bar, [data-stocktake], .hero-start { display: none !important; }
  .gerald-scene, .proof-sample, .case-cover, .docket-stamp { transform: none; box-shadow: none; }
  .gerald-picture img { animation: none !important; }
}
