:root {
  color-scheme: light;
  --paper: #f8f6ee;
  --panel: #eeede2;
  --ink: #172e25;
  --muted: #4f6257;
  --line: #c9cbbd;
  --forest: #102820;
  --accent: #9b3c1d;
  --gold: #ffb96b;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.6rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1.04rem/1.67 "Segoe UI", Arial, sans-serif; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { color: var(--accent); }
a:focus-visible, summary:focus-visible, .choice:focus-visible + label { outline: 3px solid #da843d; outline-offset: 4px; }
.mast { position: sticky; top: 0; z-index: 10; background: var(--forest); color: #fff6e5; box-shadow: 0 1px 0 #ffffff28; }
.mast > div, main { max-width: 1380px; margin: auto; padding-inline: clamp(18px, 4.5vw, 70px); }
.mast > div, .mast-tools, .wide-nav { display: flex; align-items: center; }
.mast > div { justify-content: space-between; min-height: 67px; gap: 1rem; }
.brand { font: bold 1.43rem/1.1 Georgia, serif; letter-spacing: -.045em; text-decoration: none; white-space: nowrap; }
.mast .brand:hover { color: var(--gold); }
.wide-nav { gap: clamp(.7rem, 1.8vw, 1.9rem); }
.mast nav a { color: #f2f0e5; font-size: .91rem; text-decoration: none; white-space: nowrap; }
.mast nav a:hover, .mast nav a[aria-current] { color: var(--gold); }
.mast nav a[aria-current] { text-decoration: underline; text-underline-offset: .45em; }
.mast-tools { gap: .8rem; }
.mobile-menu { display: none; }
.hero { padding-block: clamp(38px, 5.5vw, 86px) .4rem; }
.hero-copy { position: relative; }
.byline, .toc strong { font-size: .72rem; line-height: 1.45; letter-spacing: .12em; text-transform: uppercase; font-weight: 730; color: var(--muted); }
h1, h2, .worked legend { font-family: Georgia, "Times New Roman", serif; font-weight: normal; letter-spacing: -.045em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 5.5vw, 5.4rem); line-height: 1.02; max-width: 22ch; margin: .16em 0 .28em; }
h2 { font-size: clamp(1.85rem, 3.1vw, 2.85rem); line-height: 1.12; margin: 0 0 .58em; }
p { margin: .75rem 0; max-width: 71ch; }
.standfirst { font-size: clamp(1.09rem, 1.55vw, 1.32rem); line-height: 1.49; max-width: 61ch; }
.feature-hero { isolation: isolate; position: relative; overflow: hidden; background: #172b23; color: #fff9ee; margin: 0 calc(-1 * clamp(18px, 4.5vw, 70px));
  min-height: clamp(420px, 38vw, 545px); display: flex; align-items: center; padding: clamp(38px, 6vw, 90px) clamp(18px, 6vw, 92px); }
.feature-hero .scene { position: absolute; z-index: -2; inset: 0 0 0 auto; width: 77%; height: 100%; object-fit: cover; object-position: 58% 50%; }
.feature-hero::after { content: ""; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(90deg, #102820 5%, #102820fd 24%, #102820ec 34%, #102820a1 49%, #10282014 68%, transparent 82%); }
.feature-hero .hero-copy { width: min(51%, 620px); }
.feature-hero .byline { color: #ffd59d; }
.feature-hero h1 { font-size: clamp(3.1rem, 6.1vw, 6.25rem); max-width: 12ch; }
.feature-hero .standfirst { font-size: clamp(1.03rem, 1.45vw, 1.25rem); max-width: 40ch; color: #f5f3e8; }
.actions, .end-actions { display: flex; gap: .65rem; flex-wrap: wrap; margin-top: 1.45rem; }
.action { display: inline-flex; align-items: center; justify-content: center; min-height: 43px; font-weight: 680; font-size: .94rem; line-height: 1.1; padding: .78em 1.24em; border-radius: 5px; text-decoration: none; }
.action.demo { color: #1d231b; background: var(--gold); border: 1px solid var(--gold); }
.action.demo:hover { background: #ffd097; }
.action.register { color: #17362b; background: #f7f4e7; border: 1px solid #bfccbe; }
.action.register:hover { background: #e6e8d9; color: #17362b; }
.mast .register { min-height: 37px; padding: .55rem .9rem; font-size: .86rem; }
.reading { display: grid; grid-template-columns: minmax(160px, .31fr) minmax(0, 1fr); gap: clamp(2rem, 6.2vw, 6.5rem); max-width: 1130px; margin: 2.7rem auto 5rem; border-top: 1px solid var(--line); padding-top: 2rem; }
.toc { align-self: start; position: sticky; top: 6rem; display: grid; gap: .65rem; border-left: 2px solid #d0b483; padding-left: 1rem; }
.toc a { font-size: .93rem; line-height: 1.4; text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.toc strong { margin-bottom: .3rem; }
article { min-width: 0; }
article section { padding: 0 0 2.15rem; margin: 0 0 2.3rem; border-bottom: 1px solid var(--line); }
.answer { font-size: 1.18rem; line-height: 1.52; }
section footer, figcaption { color: var(--muted); font-size: .8rem; line-height: 1.5; }
section footer { margin-top: 1.05rem; }
.follow { display: inline-block; margin-top: .9rem; padding: .35rem 0; font-weight: 650; }
.follow span { margin-left: .26em; }
figure { margin: 1.45rem 0 .55rem; }
figure > a { display: block; width: fit-content; max-width: 100%; }
figure img { width: auto; max-width: 100%; height: auto; max-height: 510px; display: block; border-radius: 7px; }
figcaption { padding: .55rem 0; }
figcaption a { margin-left: .24em; }
table { width: 100%; border-collapse: collapse; margin: 1.05rem 0; }
td, th { padding: .78em .85em; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.copy table { background: #efefe5; }
.copy th { width: 30%; font-weight: 650; }
.table-wrap { max-width: 100%; overflow-x: auto; margin: 1.3rem 0; }
.table-wrap table { background: #f0efe5; font-size: .88rem; margin: 0; font-variant-numeric: tabular-nums; }
.table-wrap caption { padding: 0 0 .65em; text-align: left; font-weight: 650; }
.table-wrap thead { color: #f7f2df; background: var(--forest); }
.table-wrap td { white-space: nowrap; }
.copy ol { padding-left: 1.55em; }
.copy li { margin: .65em 0; padding-left: .25em; }
.copy li::marker { font-weight: bold; color: var(--accent); }
.copy details { border-top: 1px solid var(--line); }
.copy details:last-child { border-bottom: 1px solid var(--line); }
.copy summary { display: flex; align-items: center; justify-content: space-between; gap: .7em; padding: .83em 0; cursor: pointer; list-style: none; }
.copy summary::-webkit-details-marker, .mobile-menu summary::-webkit-details-marker { display: none; }
.copy summary h3 { margin: 0; font: 650 1.04em/1.42 "Segoe UI", Arial, sans-serif; }
.copy summary::after { content: "+"; font: 1.38em/1 Georgia, serif; color: var(--accent); }
.copy details[open] summary::after { content: "−"; }
.copy details[open] p { margin: 0 0 1rem; }
.worked { min-width: 0; margin: 1.8rem 0 1rem; padding: .75rem clamp(14px, 2.4vw, 30px) 1.2rem; border: 1px solid #aab9a8; background: #e8eddf; border-radius: 8px; }
.worked legend { font-size: clamp(1.28rem, 2.6vw, 1.85rem); line-height: 1.12; padding: 0 .25em; }
.worked .instructions { font-size: .93rem; }
.cases { display: flex; flex-wrap: wrap; gap: .45rem; }
.choice { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); }
.cases label { padding: .45rem .8rem; border: 1px solid #899e8d; border-radius: 2em; cursor: pointer; font-size: .9rem; font-weight: 650; }
.choice:checked + label { background: var(--forest); color: white; }
.case-panel { width: 100%; order: 1; display: none; }
.choice:checked + label + .case-panel { display: block; }
.equation { display: flex; flex-wrap: wrap; align-items: baseline; gap: .45em; line-height: 1.24; margin-top: .65rem; font-size: 1.2rem; }
.equation strong { font: bold 2.3rem/1.1 Georgia, serif; }
.case-panel p { margin: .3em 0; }
aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; }
aside h2 { font-size: 1.6rem; grid-column: 1 / -1; }
aside a { padding: .6em 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: .5em; }
.end-actions { margin: 0 0 2.3rem; }
@media (max-width: 940px) {
  .wide-nav { display: none; }
  .mast-tools { gap: .9rem; }
  .mobile-menu { display: block; }
  .mobile-menu summary { list-style: none; cursor: pointer; padding: 12px 0 12px 8px; font-size: .91rem; font-weight: 650; }
  .mobile-menu summary::after { content: " ≡"; padding-left: .15rem; }
  .mobile-menu[open] summary::after { content: " ×"; }
  .mobile-menu nav { position: absolute; inset: 100% 0 auto; background: var(--forest); padding: .55rem clamp(18px, 4.5vw, 70px) 1rem; box-shadow: 0 8px 12px #132b231f; }
  .mobile-menu nav a { display: block; padding: .65rem .1rem; border-top: 1px solid #ffffff27; }
}
@media (max-width: 715px) {
  .mast > div { min-height: 56px; }
  .brand { font-size: 1.19rem; }
  .mast-tools { gap: .6rem; }
  .reading { grid-template-columns: 1fr; margin-top: 1.4rem; gap: 1.65rem; padding-top: 1.1rem; }
  .toc { position: static; display: flex; flex-wrap: wrap; border: 0; padding: 0; gap: .28rem 1rem; }
  .toc strong { width: 100%; margin-bottom: .1rem; }
  .toc a { text-decoration: underline; padding: .18rem 0; }
  .feature-hero { align-items: end; padding: clamp(150px, 41vw, 240px) clamp(18px, 4.5vw, 34px) 28px; min-height: 0; }
  .feature-hero .scene { inset: 0 0 auto; width: 100%; height: clamp(240px, 65vw, 405px); object-position: 50% 44%; }
  .feature-hero::after { background: linear-gradient(0deg, #102820 0%, #102820 38%, #102820e8 51%, #10282042 75%, transparent 95%); }
  .feature-hero .hero-copy { width: 100%; }
  .feature-hero h1 { max-width: none; font-size: clamp(2.65rem, 10vw, 3.8rem); }
  .feature-hero .standfirst { max-width: 54ch; }
  .actions { margin-top: 1.15rem; }
  article section { margin-bottom: 1.65rem; padding-bottom: 1.6rem; }
  .answer { font-size: 1.09rem; }
  td, th { padding: .65em; }
  aside { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .table-wrap table { font-size: .83rem; }
  .table-wrap th, .table-wrap td { padding: .45em .37em; }
  .table-wrap td { white-space: normal; }
  .mast .register { min-height: 36px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.pine-crumb { display:flex; align-items:center; flex-wrap:wrap; gap:.55em; font-size:.83rem; margin-block:0 1.25rem; position:relative; }
.pine-crumb a { color:inherit; text-underline-offset:.24em; }
.pine-crumb a+a::before { content:'/'; display:inline-block; margin-inline-end:.55em; opacity:.65; }
.feature-hero { display:block; }
.feature-hero .pine-crumb { color:#fff7e5; }
.action.bonus-button { color:#291c0c; background:#ffc783; border:1px solid #905820; min-height:48px; gap:.7em; }
.action.bonus-button::after { content:'↗'; }
.action.bonus-button:hover { color:#20170b; background:#ffdbad; }
.actions .action.local { color:inherit; border:1px solid currentColor; min-height:48px; }
.feature-hero .actions .action.local { color:#fff7e5; background:#102820be; }
.game-facts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin:1.3rem 0; border-block:1px solid var(--line); }
.game-facts div { padding:1rem .5rem 1rem 0; }
.game-facts dt { font-size:.77em; color:var(--muted); }
.game-facts dd { margin:.35em 0 0; font-weight:700; line-height:1.28; }
.stage-explorer { background:#e6eee2; padding:clamp(18px,3vw,30px); border-radius:10px; margin-block:1.2rem; }
.stage-explorer label { font:600 1.3rem/1.3 Georgia,serif; }
.stage-explorer input,.stage-explorer output,.stage-explorer small { display:block; width:100%; }
.stage-explorer input { min-height:44px; margin:0; accent-color:#18543d; }
.stage-explorer output { font-weight:750; color:#203d30; }
.stage-explorer small { margin-top:.3em; color:#465748; }
.pine-footer { display:flex; flex-wrap:wrap; align-items:center; gap:1.1rem 2rem; border-top:1px solid var(--line); padding:1.6rem 0 2rem; }
.pine-footer p { max-width:57ch; margin:.2rem 0; }
.pine-footer .to-hub { margin-inline-start:auto; }
cite { font-style:normal; }
@media(max-width:715px) {
 .game-facts { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .feature-hero .pine-crumb { margin-top:0; }
 .pine-footer .to-hub { margin-inline-start:0; }
}
@media(max-width:430px) {
 .actions { display:grid; grid-template-columns:1fr; }
 .pine-footer .bonus-button { width:100%; }
}
