:root {
  color-scheme: light;
  --ink: #232e27;
  --green: #234832;
  --paper: #fffcf2;
  --table: #e5eddf;
  --leaf: #f4f0cb;
  --focus: #90411c;
  --note: #455647;
  --pad: clamp(16px, 3.8vw, 54px);
  font: 100%/1.53 "Trebuchet MS", Arial, sans-serif;
  color: var(--ink);
  background: var(--table);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--green); text-decoration-thickness: .09em; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .17em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip { position: absolute; left: 1em; top: -9em; z-index: 3; padding: .6em 1em; background: white; }
.skip:focus { top: .6em; }
header { background: var(--paper); }
.navwrap, main, footer { max-width: 1330px; margin-inline: auto; padding-inline: var(--pad); }
.navwrap, footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.navwrap { min-height: 4.65rem; }
.name { font: bold clamp(1.12rem, 1.7vw, 1.5rem)/1.13 Georgia, serif; text-decoration: none; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem 1.4rem; }
nav a { padding-block: .55rem; text-decoration: none; }
nav a[aria-current], nav a:hover { text-decoration: underline; }
main { padding-top: clamp(22px, 3.8vw, 54px); }
h1, h2, h3, .deck { font-family: Georgia, "Times New Roman", serif; }
h1, h2, h3, p, figure { margin: 0; }
h1 { font-size: clamp(2.55rem, 5.5vw, 5.4rem); line-height: 1.02; letter-spacing: -.05em; }
h2 { font-size: clamp(1.8rem, 3.1vw, 2.9rem); line-height: 1.08; letter-spacing: -.035em; }
h3 { font-size: 1.4rem; line-height: 1.2; }
p + p { margin-top: .85rem; }
.spread { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--paper); align-items: stretch; }
.leaf { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: clamp(17px, 2.2vw, 30px); padding: clamp(25px, 4.2vw, 65px); background: var(--leaf); }
.leaf > p { font-size: clamp(1.15rem, 1.8vw, 1.55rem); line-height: 1.48; }
.leaf > p.small { font-size: 1rem; color: var(--note); line-height: 1.45; }
.painting { display: block; width: 100%; height: auto; }
.cover > .painting { align-self: center; }
.action, button { min-height: 44px; background: var(--green); color: white; padding: .68rem 1.1rem; border: 0; border-radius: .15rem; display: inline-block; font: bold 1rem/1.35 "Trebuchet MS", Arial, sans-serif; text-decoration: none; cursor: pointer; }
.action:hover, button:hover { background: #315b41; text-decoration: underline; }
button:disabled { cursor: default; }
.downloads { display: grid; grid-template-columns: minmax(0,.88fr) minmax(0,1.12fr); gap: clamp(24px,6vw,95px); background: var(--paper); margin-top: clamp(24px,4vw,64px); padding: clamp(25px,4.2vw,65px); }
.intro > p { margin: 1.1em 0; max-width: 30em; }
.editions h3:not(:first-child) { margin-top: 1.35rem; }
.editions p { margin-top: .35em; }
.archive { padding-top: 1rem; font-weight: bold; }
footer { flex-wrap: wrap; padding-top: 2em; padding-bottom: 2em; color: var(--note); }
footer a { display: inline-block; padding: .4em 0; margin-right: 1em; }
.read main { padding-top: 1rem; }
.read-head { display: flex; align-items: center; justify-content: space-between; padding-block: .42rem 1rem; }
.read-head p { font-weight: bold; }
.reader .leaf { gap: clamp(14px,1.6vw,26px); padding: clamp(24px,3.2vw,47px); }
.reader h1 { font-size: clamp(2.4rem,4.5vw,4.4rem); }
.reader .story-words { font: clamp(1.38rem,2.15vw,2rem)/1.42 Georgia, serif; }
.reader figure { display: flex; flex-direction: column; justify-content: center; }
figcaption { padding: .65rem 1rem; font-size: 1rem; }
.pause { color: var(--green); padding: 0; }
.pause h2 { font-size: 1.5rem; }
.pause p { margin-top: .45em; font-size: 1.12rem; }
.leaf p.after, .turn-link { font-size: 1.04rem; }
.workbook, .notes { background: var(--paper); }
.workbook { max-width: 1130px; margin-inline: auto; padding: clamp(20px,4.4vw,59px); }
.workbook h1, .notes h1 { font-size: clamp(2.3rem,4.4vw,4rem); }
.workbook section, .wrap-up, .notes section { margin-top: clamp(1.7rem,4vw,3rem); }
.workbook section > p, .room-intro p, .notes p { max-width: 69ch; margin-top: .8em; }
.people ul { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; }
.people li { display: flex; gap: .45rem; align-items: center; }
.people small { display: block; color: var(--note); font-size: .92rem; }
#interactive { margin-top: 1rem; }
.controls { display: flex; align-items: end; gap: 1em; flex-wrap: wrap; margin-block: 1.2rem; }
.controls label, .answer label { font-weight: bold; }
select, textarea { background: #fff; color: var(--ink); font: inherit; border: 1.5px solid var(--note); border-radius: .12rem; }
select { display: block; min-height: 44px; font-weight: normal; padding: .35rem .6rem; margin-top: .3rem; max-width: 100%; }
.board { background: var(--table); padding: .55rem; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .4rem; }
.place { color: var(--ink); background: white; border-radius: 0; min-height: 5.15rem; text-align: left; padding: .5rem; align-content: start; }
.place:hover { background: var(--leaf); }
.place strong { display: block; }
.occupants { display: flex; flex-wrap: wrap; gap: .2rem .4rem; }
.token { display: inline-flex; flex-direction: column; align-items: center; font-weight: normal; font-size: .93rem; }
.token img { width: 40px; height: 40px; }
#interactive > p { margin: .6rem 0; }
#message { min-height: 1.5em; font-weight: bold; color: var(--green); }
.snapshot { max-width: 72ch; }
.snapshot b { margin-right: .45rem; }
.response { max-width: 74ch; }
.answer { margin: 1.25em 0; }
.answer p { margin: .15em 0 .45em; }
textarea { width: 100%; min-height: 5em; padding: .5rem; }
.paper-answer { display: none; }
#new-pair { margin-top: 1.5em; }
#new-pair button { margin-top: .65em; }
.wrap-up { display: flex; flex-wrap: wrap; align-items: center; gap: 1em 1.5em; }
.notes { max-width: 850px; margin: 0 auto; padding: clamp(22px,4.4vw,63px); }
.notes .deck { font-size: 1.45rem; }
.notes h3 { margin-top: 1.25em; }
.notes > h2 { margin-top: 1.35em; }
.notes details { margin-top: 2em; padding: 1.2em; background: var(--leaf); }
summary { cursor: pointer; font-weight: bold; }
[hidden] { display: none !important; }
@media(max-width: 750px) {
  .navwrap { flex-wrap: wrap; padding-block: .7rem; gap: .3rem 1rem; }
  nav { gap: .1rem 1rem; }
  .spread, .downloads { grid-template-columns: minmax(0,1fr); }
  .cover, .reader .spread { display: flex; flex-direction: column; }
  .cover > .painting, .reader figure { order: 0; }
  .cover .leaf, .reader .leaf { order: 1; }
  .cover > .painting, .reader figure .painting { max-height: 65vw; width: 100%; object-fit: contain; background: var(--paper); }
  .leaf { padding: 1.4rem; }
  .downloads { gap: 1.8rem; }
  .name { width: 100%; }
  .work main { padding-inline: 0; }
  .people li { min-width: 9rem; }
}
@media(max-width: 430px) {
  nav { justify-content: space-between; width: 100%; gap: .3rem; }
  .place { padding: .4rem; }
  .controls { display: grid; }
  .people ul { gap: .4rem .75rem; }
  .people li { min-width: 8.5rem; }
}
@media print {
  @page { size: Letter; margin: 14mm; }
  :root { background: white; color: black; font: 11pt/1.35 Arial, sans-serif; }
  header, footer, .skip, .read-head, .wrap-up, .controls, #board-instructions, #remember, #message,
  #print-notes, #new-pair, .people, .room-intro p:last-child, .action, .turn-link, figcaption { display: none !important; }
  main, .notes, .workbook { margin: 0; max-width: none; padding: 0; background: white; }
  .workbook section, .workbook .room-intro p { margin-top: 3mm; }
  .workbook h1, .reader h1, .notes h1 { font-size: 23pt; }
  h2 { font-size: 16pt; }
  .place { min-height: 17mm; color: black; background: white; border: .4mm solid #666; font: 10pt Arial,sans-serif; }
  .board { padding: 0; background: white; gap: 1mm; }
  .token img { width: 7mm; height: 7mm; }
  .token { font-size: 9pt; }
  .response { break-before: page; }
  .answer { margin: 3mm 0; break-inside: avoid; }
  .answer textarea { min-height: 12mm; }
  .enhanced .answer textarea { display: none; }
  .enhanced .paper-answer { display: block; white-space: pre-wrap; overflow-wrap: anywhere; padding: 2mm; min-height: 12mm; border: .3mm solid #888; }
  .reader .spread { display: block; }
  .reader figure img { max-height: 90mm; object-fit: contain; }
  .reader .leaf { padding: 4mm 0; background: white; }
}
