:root {
  color-scheme: light;
  --ink: #212521;
  --muted: #525b52;
  --line: #deded3;
  --paper: #faf9f4;
  --accent: #274835;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1.1rem/1.6 Georgia, serif; }
a { color: var(--accent); text-decoration-thickness: .07em; text-underline-offset: .18em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0 0 .45em; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.55rem, 7vw, 5.2rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); letter-spacing: -.025em; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2.5rem, 69rem); margin-inline: auto; }
.reading { width: min(100% - 2.5rem, 43rem); margin-inline: auto; }
.mast { border-bottom: 1px solid var(--line); padding-block: 1rem; }
.mast .wrap { display: flex; gap: .5rem 1.5rem; justify-content: space-between; flex-wrap: wrap; }
.mast a, .tag, .label, .byline, .small, .jump a, footer { font-family: system-ui, sans-serif; }
.mast a { font-size: .92rem; }
.mast a:first-child { font-weight: 700; text-decoration: none; }
.hero { padding-block: clamp(2rem, 6vw, 4.5rem) 2rem; }
.hero p { max-width: 42rem; font-size: 1.25rem; }
.label, .tag { color: var(--accent); font-weight: 700; font-size: .77rem; }
.label { letter-spacing: .08em; text-transform: uppercase; }
.tag { display: inline-block; padding: .26em .65em; border: 1px solid #a6b3a9; border-radius: 2px; }
.jump { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; margin: .5rem 0 0; padding: 0; list-style: none; }
.jump a { font-size: .92rem; }
.collections section { padding-block: 2rem; border-top: 1px solid var(--line); }
.card { display: grid; grid-template-columns: 1fr 1fr; width: min(100%, 53rem); overflow: hidden;
  color: var(--ink); text-decoration: none; border: 1px solid var(--line); background: #fff; }
.card:hover h3 { text-decoration: underline; text-underline-offset: .16em; }
.card img { width: 100%; height: 100%; aspect-ratio: 3/2; object-fit: cover; }
.card div { padding: clamp(1.2rem, 4vw, 2rem); align-self: center; }
.card h3 { margin-top: .75rem; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.card p { margin-bottom: 0; }
.article-header { padding-block: 2.8rem 1.8rem; border-bottom: 1px solid var(--line); }
.article-header h1 { font-size: clamp(2.55rem, 7vw, 4.9rem); }
.article-header .byline { color: var(--muted); font-size: 1rem; margin: 0 0 .8rem; }
.article-header .deck { font-size: 1.25rem; line-height: 1.45; margin: 1.2rem 0 0; }
.story-share { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.story-qr { margin: 0; display: flex; gap: .55rem; align-items: center; }
.story-qr img { width: 82px; height: 82px; }
.small { color: var(--muted); font-size: .83rem; line-height: 1.5; }
.prose { font-size: clamp(1.24rem, 2.5vw, 1.5rem); line-height: 1.65; padding-bottom: 2rem; }
.prose > section { padding-top: 2rem; }
.prose h2 { margin-top: .25rem; }
.prose h3 { font-size: 1.45rem; margin-top: 1.35em; }
.story-illustration { max-width: 36rem; margin: 1.45rem auto 1.65rem; }
.story-illustration img { width: 100%; aspect-ratio: 3/2; object-fit: contain; }
.story-illustration figcaption { font: .91rem/1.5 system-ui, sans-serif; color: var(--muted); text-align: center; margin-top: .35rem; }
.decision { padding: 1.25rem; margin-top: 1.5rem; background: #f0f2ea; border-left: .25rem solid var(--accent); }
.decision p { margin: 0; }
.decision-links { display: flex; flex-wrap: wrap; gap: .25rem 1.2rem; }
.decision a { display: inline-block; font: 700 .92rem/1.5 system-ui, sans-serif; margin-top: .8rem; }
.solution { margin-top: 2rem; border-top: 1px solid var(--line); }
.solution-note { padding: 1rem 1.25rem; background: #f0f2ea; border-left: .2rem solid var(--accent); margin-top: 1rem; }
.solution-note h3, .solution-note h4 { margin-top: 0; }
.solution-note p:last-child { margin-bottom: 0; }
.completed { margin: 1.5rem 0; }
.completed div { padding: 1rem 0; border-top: 1px solid var(--line); }
.completed dt { font-weight: 700; }
.completed dd { margin: .25rem 0 0; }
.completed dd p:last-child { margin-bottom: 0; }
.canvas-question { font-style: italic; margin-bottom: .45rem; }
.case-level .label { margin-bottom: .45rem; }
.case-table-wrap { width: 100%; overflow-x: auto; padding-bottom: .25rem; }
.case-table-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.case-table { min-width: 36rem; width: 100%; border-collapse: collapse; background: #fff; font-size: 1rem; line-height: 1.4; }
.case-table caption { text-align: left; font: 600 .9rem/1.5 system-ui, sans-serif; padding-bottom: .6rem; }
.case-table th, .case-table td { padding: .6rem; vertical-align: top; text-align: left; border: 1px solid var(--line); }
.case-table thead { background: #f0f2ea; }
.case-memos { font-size: .93em; }
.case-answer { margin: 1.25rem 0; border: 1px solid #a6b3a9; padding: .8rem 1.15rem; }
.case-answer summary { color: var(--accent); cursor: pointer; font-weight: 700; }
.case-answer[open] summary { margin-bottom: .8rem; }
.case-answer h4 { font-size: 1.08em; line-height: 1.25; margin: 1.1em 0 .45em; }
.prompt-actions { display: flex; gap: .5rem .8rem; flex-wrap: wrap; align-items: center; margin-bottom: .65rem; }
.prompt-actions button { padding: .65rem 1rem; border: 1px solid var(--accent); border-radius: 3px; color: #fff; background: var(--accent); font: 700 1rem/1.4 system-ui, sans-serif; cursor: pointer; }
.prompt-actions button:focus-visible, #scenario-text:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
#scenario-text { display: block; width: 100%; padding: .85rem; border: 1px solid #a6b3a9; border-radius: 3px; background: #fff; color: var(--ink); resize: vertical; font: 1rem/1.55 system-ui, sans-serif; }
.prose li { margin: .45rem 0; padding-inline-start: .15rem; }
footer { padding-block: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
@media (max-width: 38rem) {
  .card { grid-template-columns: 1fr; }
  .article-header { padding-top: 2rem; }
}
@media print {
  body { background: #fff; }
  .mast, footer { display: none; }
  .reading { width: 100%; }
  .completed div { break-inside: avoid; }
}
