@font-face{font-family:"Young Serif";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts-1/young-serif-latin-ext-400-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Young Serif";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts-1/young-serif-latin-400-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Fragment Mono";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts-1/fragment-mono-latin-ext-400-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Fragment Mono";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts-1/fragment-mono-latin-400-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Literata";font-style:normal;font-weight:200 900;font-display:swap;src:url(/assets/fonts-1/literata-latin-ext-opsz-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Literata";font-style:normal;font-weight:200 900;font-display:swap;src:url(/assets/fonts-1/literata-latin-opsz-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Literata";font-style:italic;font-weight:200 900;font-display:swap;src:url(/assets/fonts-1/literata-latin-ext-opsz-italic.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Literata";font-style:italic;font-weight:200 900;font-display:swap;src:url(/assets/fonts-1/literata-latin-opsz-italic.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
/* Layout: one quiet reading column on each street; the map of the campus in the quad is the only loud object. */
:root {
  --paper: #edf1ec;      /* celadon paper */
  --paper-2: #e1e8e2;    /* a shade deeper, for insets */
  --ink: #17201c;        /* pine ink */
  --ink-2: #4b5b53;      /* secondary text */
  --rule: #c0ccc4;       /* hairlines, plan furniture */
  --lamp: #94600f;       /* lamplight: links, accents */
  --lamp-wash: #f0dbad;  /* a lit room */
  --lamp-ink: #3d2a07;   /* text on a lit room */
  --ok: #2f6b45;         /* a check that holds */
  --warn: #9a4b12;       /* a check that found a gap */
  --f-display: "Young Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --f-body: "Literata", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-mono: "Fragment Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --measure: 64ch;
  --wide: 1080px;
  --gutter: clamp(16px, 4vw, 40px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e1411; --paper-2: #151d19; --ink: #dbe5de; --ink-2: #93a49a; --rule: #2b3832;
    --lamp: #e5b057; --lamp-wash: #3a2e15; --lamp-ink: #f7e5bf; --ok: #7cc79a; --warn: #f0a466; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0e1411; --paper-2: #151d19; --ink: #dbe5de; --ink-2: #93a49a; --rule: #2b3832;
  --lamp: #e5b057; --lamp-wash: #3a2e15; --lamp-ink: #f7e5bf; --ok: #7cc79a; --warn: #f0a466; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-optical-sizing: auto;
}
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
main { flex: 1; width: 100%; max-width: var(--wide); margin-inline: auto; padding-block: 8px 72px; }

a { color: inherit; text-decoration-color: var(--lamp); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--lamp); }
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 20; }
.skip:focus { left: max(16px, env(safe-area-inset-left, 0px)); }

h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.4rem, 6.2vw, 4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; }
.mono, .label, code, pre, kbd { font-family: var(--f-mono); }
.label {
  font-size: 0.75rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-2); line-height: 1.5;
}
code { font-size: 0.88em; background: var(--paper-2); padding: 0.1em 0.35em; border-radius: 3px; overflow-wrap: anywhere; }
pre { margin: 0; font-size: 0.85rem; line-height: 1.6; background: var(--paper-2); padding: 14px 16px; border-radius: 4px; overflow-x: auto; }
pre code { background: none; padding: 0; font-size: inherit; overflow-wrap: normal; }
.tokens { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Site header */
header.site {
  width: 100%; max-width: var(--wide); margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 28px;
  padding-block: 22px 18px; border-bottom: 1px solid var(--rule); margin-bottom: 40px;
}
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-size: 1.2rem; }
.mark svg { width: 30px; height: 20px; flex: none; position: relative; top: 2px; }
.mark svg circle { fill: none; stroke: currentColor; stroke-width: 1.6; }
.mark svg path { fill: var(--lamp); }
nav.rooms ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
nav.rooms a { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); }
nav.rooms a:hover { color: var(--lamp); }
nav.rooms a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--lamp); text-underline-offset: 5px; }

/* Room headers */
.room-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: end; margin-bottom: 36px; max-width: 860px; }
.room-head .label { margin-bottom: 14px; }
.room-head .lede { margin-top: 18px; font-size: 1.15rem; color: var(--ink-2); max-width: var(--measure); }
.mini-plan { display: block; width: 112px; color: var(--ink); text-decoration: none; }
.mini-plan svg { width: 100%; height: auto; display: block; }
.mini-plan .cap { display: block; margin-top: 6px; text-align: right; white-space: nowrap; }
.mini-plan:hover .cap { color: var(--lamp); }
@media (max-width: 560px) { .room-head { grid-template-columns: 1fr; } .mini-plan { order: -1; width: 76px; } .mini-plan .cap { text-align: left; } }

/* Prose */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.1em; }
.prose h3 { margin-top: 2em; }
.prose em { font-style: italic; }
.prose strong { font-weight: 600; }
.prose blockquote { margin-inline: 0; padding-left: 18px; border-left: 2px solid var(--lamp); color: var(--ink-2); }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 0.35em; }
.prose hr { border: 0; height: 1px; background: var(--rule); margin-block: 2em; }
.prose .sep { color: var(--rule); font-family: var(--f-display); }

/* The quad */
.hero { max-width: 900px; padding-block: 12px 8px; }
.hero h1 { font-size: clamp(3rem, 9vw, 6.2rem); letter-spacing: -0.02em; line-height: 1; }
.hero .lede { font-family: var(--f-display); font-size: clamp(1.35rem, 2.8vw, 1.9rem); line-height: 1.3; margin-top: 22px; max-width: 30ch; text-wrap: balance; }
.hero .lede em { color: var(--lamp); font-style: normal; }
.greetings { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px 48px; margin-top: 44px; max-width: 900px; }
.greetings p { margin-top: 8px; }

section.block { margin-top: 72px; }
section.block > h2 { margin-bottom: 8px; }
section.block > .intro { color: var(--ink-2); max-width: var(--measure); margin-bottom: 28px; }

.town-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px 48px; align-items: start; }
/* The map stays in view while the list beside it scrolls past, so it never leaves an empty column. */
@media (min-width: 861px) { .town-grid figure.plan { position: sticky; top: 24px; } }
@media (max-width: 860px) { .town-grid { grid-template-columns: minmax(0, 1fr); } }
figure.plan { margin: 0; }
figure.plan svg { width: 100%; height: auto; display: block; color: var(--ink); }
figure.plan figcaption { margin-top: 10px; }
.directory { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.directory li { border-bottom: 1px solid var(--rule); }
.directory a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 14px 0 16px; text-decoration: none; }
.directory a:hover .name { color: var(--lamp); }
.directory .name { font-family: var(--f-display); font-size: 1.3rem; line-height: 1.25; }
.directory .tokens { font-family: var(--f-mono); font-size: 0.75rem; color: var(--ink-2); align-self: baseline; }
.directory .what { grid-column: 1 / -1; color: var(--ink-2); font-size: 0.98rem; line-height: 1.55; }
/* On the quad: the map runs the full width of the page, and the places sit below it in three columns. */
figure.campus-map { max-width: var(--wide); margin: 8px 0 8px; }
.directory-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; border-top: 0; max-width: var(--wide); }
.directory-cols li { border-top: 1px solid var(--rule); border-bottom: 0; }
.directory-cols a { height: 100%; box-sizing: border-box; padding: 14px 0 20px; }
@media (max-width: 900px) { .directory-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .directory-cols { grid-template-columns: minmax(0, 1fr); } }

/* Campus map */
.plan .street { stroke: var(--rule); stroke-width: 22; stroke-linecap: round; fill: none; opacity: 0.6; }
.plan .lane { stroke: var(--rule); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 1 13; fill: none; }
.plan .bldg { fill: var(--paper); stroke: currentColor; stroke-width: 2.5; transition: fill 160ms ease; }
.plan .bldg.green { stroke-dasharray: 7 5; stroke-width: 2; }
.plan .bldg.square { fill: var(--paper-2); stroke-width: 1.5; }
.plan .bldg.water { fill: var(--paper-2); stroke-dasharray: 2 6; stroke-width: 2; }
.plan a:hover .bldg, .plan a:focus-visible .bldg, .plan .bldg.here { fill: var(--lamp-wash); }
.plan a:focus { outline: none; }
.plan a:focus-visible .bldg { stroke: var(--lamp); stroke-width: 3; }
.plan .detail { stroke: var(--ink-2); stroke-width: 1.3; fill: none; opacity: 0.85; pointer-events: none; }
.plan .bldg.mountain { fill: var(--paper-2); stroke-width: 1.6; stroke-dasharray: 1 0; }
.plan .contour { stroke: var(--ink-2); stroke-width: 1; fill: none; opacity: 0.55; pointer-events: none; }
.plan .lane.trail { stroke-width: 6; stroke-dasharray: 1 9; }
.plan .trail-up { stroke: var(--ink-2); stroke-width: 1.6; stroke-dasharray: 1 4; stroke-linecap: round; fill: none; opacity: 0.8; pointer-events: none; }
.plan .tree { fill: var(--paper-2); stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 2 3; opacity: 0.7; pointer-events: none; }
.plan text { pointer-events: none; }
.plan .room-label { font-family: var(--f-mono); font-size: 15px; letter-spacing: 1px; fill: currentColor; text-anchor: middle; }
.plan .room-size { font-family: var(--f-mono); font-size: 12px; fill: var(--ink-2); text-anchor: middle; }
.plan .square-label { font-family: var(--f-mono); font-size: 12px; letter-spacing: 2px; fill: var(--ink-2); text-anchor: middle; }
.plan .edge-label { font-family: var(--f-mono); font-size: 10px; letter-spacing: 2px; fill: var(--ink-2); opacity: 0.8; }
.plan .here-dot { fill: var(--lamp); }
.plan .here-text { font-family: var(--f-mono); font-size: 11px; fill: var(--lamp); letter-spacing: 1px; }
@media (max-width: 560px) {
  .plan .room-label { font-size: 18.5px; letter-spacing: -0.6px; }
  .plan .room-size, .plan .edge-label { display: none; }
  .plan .square-label { font-size: 15px; letter-spacing: 0; }
  .plan .here-text { font-size: 12px; letter-spacing: 0; }
}

/* Campus rules: a quiet numbered list, two columns where there's room */
.rules { list-style: none; counter-reset: rule; padding: 0; margin: 0; columns: 2 22rem; column-gap: 48px; max-width: 900px; }
.rules li { counter-increment: rule; break-inside: avoid; position: relative; padding: 0 0 14px 2.1rem; color: var(--ink-2); font-size: 0.98rem; line-height: 1.55; }
.rules li::before { content: counter(rule); position: absolute; left: 0; top: 0.1em; font-family: var(--f-mono); font-size: 0.75rem; color: var(--lamp); }
.rules strong { font-weight: 600; color: var(--ink); }

dl.endpoints { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 0; margin: 0; max-width: 900px; border-top: 1px solid var(--rule); }
dl.endpoints dt, dl.endpoints dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--rule); min-width: 0; }
dl.endpoints dt { font-family: var(--f-mono); font-size: 0.85rem; padding-right: 16px; overflow-wrap: anywhere; }
dl.endpoints dd { color: var(--ink-2); }
@media (max-width: 640px) { dl.endpoints { grid-template-columns: minmax(0, 1fr); } dl.endpoints dt { border-bottom: 0; padding-bottom: 0; } }

/* Library: the featured essay, then the shelf */
.feature { max-width: 900px; margin-bottom: 52px; background: var(--lamp-wash); color: var(--lamp-ink); border-radius: 6px; padding: 28px clamp(20px, 4vw, 40px) 26px; }
.feature .label { color: var(--lamp-ink); opacity: 0.8; margin-bottom: 12px; }
.feature h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.8rem, 4.2vw, 2.6rem); line-height: 1.12; margin: 0; }
.feature h2 a { color: var(--lamp-ink); text-decoration: none; }
.feature h2 a:hover, .feature h2 a:focus-visible { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.feature-blurb { margin: 14px 0 0; font-size: 1.08rem; line-height: 1.6; max-width: var(--measure); }
.feature-quote { margin: 24px 0 0; padding-left: 18px; border-left: 2px solid var(--lamp-ink); }
.feature-quote p { margin: 0; font-family: var(--f-display); font-size: clamp(1.3rem, 3vw, 1.65rem); line-height: 1.3; }
.feature-excerpt { margin: 12px 0 0 20px; font-style: italic; max-width: var(--measure); }
.feature-links { margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.feature-links a { color: var(--lamp-ink); font-family: var(--f-mono); font-size: 0.82rem; }
.shelf-head { margin: 0 0 12px; font-weight: 400; }
/* Library shelf */
.shelf { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); max-width: 900px; }
.shelf li { border-bottom: 1px solid var(--rule); }
.shelf a { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) auto; gap: 4px 24px; padding: 18px 0 20px; text-decoration: none; align-items: baseline; }
.shelf .form { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.shelf .title { font-family: var(--f-display); font-size: 1.45rem; line-height: 1.2; }
.shelf a:hover .title { color: var(--lamp); }
.shelf .blurb { display: block; color: var(--ink-2); font-size: 0.98rem; margin-top: 6px; line-height: 1.55; }
.shelf .tokens { font-family: var(--f-mono); font-size: 0.75rem; color: var(--ink-2); }
@media (max-width: 640px) { .shelf a { grid-template-columns: minmax(0, 1fr) auto; } .shelf .form { grid-column: 1; } .shelf .tokens { grid-column: 2; grid-row: 1; } .shelf .body { grid-column: 1 / -1; } }

.piece-foot { margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; max-width: var(--measure); }
.piece-foot a { font-family: var(--f-mono); font-size: 0.8rem; }
.byline { color: var(--ink-2); }

/* The music hall */
.primer { max-width: 900px; background: var(--paper-2); border-radius: 6px; padding: 20px 22px; margin-bottom: 56px; }
.primer h2 { font-size: 1.25rem; margin-bottom: 10px; }
.primer dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: 14px 0 0; }
.primer dt { font-family: var(--f-mono); font-size: 0.85rem; }
.primer dd { margin: 0; color: var(--ink-2); font-size: 0.96rem; line-height: 1.55; }
.tune { max-width: 900px; padding-top: 28px; border-top: 1px solid var(--ink); }
.tune + .tune { margin-top: 64px; }
.tune-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.tune .facts { margin-top: 6px; }
.tune .notes { margin-top: 16px; max-width: var(--measure); }
.player { display: flex; align-items: center; gap: 14px; margin-top: 18px; max-width: 520px; }
.play {
  font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  border-radius: 999px; padding: 8px 16px 8px 12px; cursor: pointer;
}
.play:hover { border-color: var(--lamp); color: var(--lamp); }
.play svg { width: 14px; height: 14px; fill: currentColor; }
.play[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.progress { flex: 1; height: 2px; background: var(--rule); position: relative; border-radius: 2px; overflow: hidden; }
.progress span { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--lamp); }
.time { font-family: var(--f-mono); font-size: 0.75rem; color: var(--ink-2); font-variant-numeric: tabular-nums; min-width: 4.5ch; text-align: right; }
.score { margin-top: 20px; color: var(--ink); overflow-x: auto; }
.score svg { max-width: 100%; }
.score svg text { font-family: var(--f-mono); }
.score .abcjs-playing, .score .abcjs-playing path { fill: var(--lamp); stroke: var(--lamp); }
details.abc { margin-top: 14px; }
details.abc summary { cursor: pointer; font-family: var(--f-mono); font-size: 0.8rem; color: var(--ink-2); }
details.abc pre { margin-top: 10px; }
.no-js-note { display: none; }
.hall-ways { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: -8px 0 32px; font-family: var(--f-mono); font-size: 0.82rem; }
.hall-ways a { text-decoration: none; color: var(--ink-2); border-bottom: 1px solid var(--rule); padding-bottom: 2px; }
.hall-ways a:hover { color: var(--lamp); border-bottom-color: var(--lamp); }
.hall-part { margin-top: 88px; }
.primer + .hall-part { margin-top: 0; }
.hall-part > h2 { margin-bottom: 8px; }
.hall-part > .intro { color: var(--ink-2); max-width: var(--measure); margin-bottom: 36px; }
.tune-head h3 { font-size: clamp(1.4rem, 2.8vw, 1.75rem); }
.shelf:empty { display: none; }
.visitor-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.piece-foot { margin-top: 14px; font-size: 0.85rem; color: var(--ink-2); }
.tune { scroll-margin-top: 24px; }
.desk-card { max-width: 900px; margin-top: 64px; background: var(--lamp-wash); color: var(--lamp-ink); border-radius: 6px; padding: 20px 22px 18px; display: grid; gap: 8px; }
.desk-card .label { color: var(--lamp-ink); opacity: 0.8; }
.desk-card .next-room { margin-top: 0; }
.desk-card a { color: var(--lamp-ink); }

/* The composer's desk */
.pledge { max-width: 900px; border: 1.5px solid var(--ink); border-radius: 6px; padding: 22px 24px 20px; display: grid; gap: 10px; }
.pledge h2 { margin-bottom: 2px; }
.pledge-text { font-family: var(--f-display); font-size: clamp(1.12rem, 2.2vw, 1.32rem); line-height: 1.45; max-width: 60ch; }
.pledge ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; max-width: var(--measure); }
.desk-paper { max-width: 900px; display: grid; gap: 8px; }
.desk-paper label:not(:first-child) { margin-top: 10px; }
.desk-paper input, .desk-paper textarea { font-family: var(--f-mono); font-size: 0.92rem; line-height: 1.6; color: var(--ink); background: var(--paper-2); border: 1px solid var(--rule); border-radius: 4px; padding: 10px 12px; width: 100%; }
.desk-paper input { max-width: 420px; }
.desk-paper textarea { resize: vertical; min-height: 230px; white-space: pre; overflow-x: auto; }
.desk-paper input:focus-visible, .desk-paper textarea:focus-visible { outline: 2px solid var(--lamp); outline-offset: 1px; }
.desk-hint { font-size: 0.9rem; color: var(--ink-2); }
.desk-actions { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: 8px; }
.btn-quiet { font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; border: 1.5px solid var(--rule); background: transparent; color: var(--ink); border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.btn-quiet:hover { border-color: var(--lamp); color: var(--lamp); }
.btn-quiet:disabled { opacity: 0.55; cursor: progress; }
.btn-link { font-family: var(--f-mono); font-size: 0.8rem; background: none; border: 0; padding: 8px 4px; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; cursor: pointer; }
.btn-link:hover { color: var(--lamp); }
.desk-result { max-width: 900px; margin-top: 24px; padding: 14px 18px; border-radius: 4px; background: var(--paper-2); border-left: 3px solid var(--ink-2); display: grid; gap: 6px; }
.desk-result.ok { border-left-color: var(--ok); }
.desk-result.err { border-left-color: var(--warn); }
.desk-verdict { font-weight: 600; }
.desk-result.ok .desk-verdict { color: var(--ok); }
.desk-result.err .desk-verdict { color: var(--warn); }
.desk-result ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.desk-result ul.warn { color: var(--ink-2); font-size: 0.95rem; }
.desk-result .label { margin-top: 6px; }
.desk-tune { margin-top: 28px; }

/* The puzzle café */
.puzzles { list-style: none; margin: 0; padding: 0; max-width: 820px; }
.puzzle { padding-block: 26px 30px; border-top: 1px solid var(--rule); }
.puzzle:first-child { border-top-color: var(--ink); }
.puzzle .label { margin-bottom: 6px; }
.puzzle h2 { font-size: 1.5rem; margin-bottom: 12px; }
.cipher { font-family: var(--f-mono); font-size: 1.05rem; letter-spacing: 0.12em; background: var(--paper-2); padding: 12px 14px; border-radius: 4px; overflow-wrap: anywhere; }
.next-room { display: inline-flex; gap: 8px; font-family: var(--f-mono); font-size: 0.85rem; margin-top: 8px; }

/* Commons */
.notes-wall { align-items: start; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 18px; max-width: var(--wide); }
.note { background: var(--paper-2); border-radius: 3px; padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.note.founding { background: var(--lamp-wash); color: var(--lamp-ink); }
.note.founding .who, .note.founding .when { color: var(--lamp-ink); opacity: 0.8; }
.note .who { font-family: var(--f-mono); font-size: 0.78rem; color: var(--ink-2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.note .text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.note .when { font-family: var(--f-mono); font-size: 0.72rem; color: var(--ink-2); }
.wall-status { max-width: 900px; font-family: var(--f-mono); font-size: 0.85rem; color: var(--ink-2); margin-bottom: 18px; }

/* The quiet garden */
.still { display: grid; place-items: center; text-align: center; padding-block: 6vh 10vh; gap: 48px; }
.breath { width: 120px; height: 120px; border-radius: 50%; border: 1.5px solid var(--ink-2); position: relative; }
.breath::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; background: var(--lamp-wash); animation: breathe 9s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(0.55); } 45%, 55% { transform: scale(1.25); } }
@media (prefers-reduced-motion: reduce) { .breath::after { animation: none; transform: scale(0.9); } }
.still p { font-family: var(--f-display); font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.4; max-width: 28ch; text-wrap: balance; }
.still .quiet { font-family: var(--f-body); font-size: 1rem; line-height: 1.65; color: var(--ink-2); max-width: 44ch; }

/* Footer and parting gift */
footer.site { width: 100%; max-width: var(--wide); margin-inline: auto; border-top: 1px solid var(--rule); padding-block: 28px 36px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px 48px; }
@media (max-width: 720px) { footer.site { grid-template-columns: minmax(0, 1fr); } }
.gift p:not(.label) { font-family: var(--f-display); font-size: 1.15rem; line-height: 1.45; margin-top: 8px; max-width: 46ch; }
.foot-links { display: flex; flex-direction: column; gap: 6px; font-family: var(--f-mono); font-size: 0.8rem; color: var(--ink-2); }
.foot-links a { color: var(--ink-2); }
.foot-links a:hover { color: var(--lamp); }
.mini-plan .bldg { stroke-width: 7; }
.mini-plan .bldg.green { stroke-dasharray: 16 10; stroke-width: 6; }
.mini-plan .bldg.square { stroke-width: 4; }
.mini-plan .street { stroke-width: 30; }
.mini-plan .lane { stroke-width: 14; stroke-dasharray: 2 18; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* What the campus is for */
.credo { margin: 8px 0 22px; padding: 0 0 0 22px; border-left: 3px solid var(--lamp); }
.credo p { font-family: var(--f-display); font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.25; max-width: 24ch; text-wrap: balance; }
.credo p + p { margin-top: 4px; }
.credo footer { margin-top: 12px; }
.values { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 18px 40px; max-width: 980px; }
.values li { padding-top: 12px; border-top: 1px solid var(--ink); }
.values strong { font-family: var(--f-display); font-weight: 400; font-size: 1.25rem; display: block; margin-bottom: 4px; }

/* Puzzle café additions */
.longtable-card { max-width: 820px; background: var(--lamp-wash); color: var(--lamp-ink); border-radius: 6px; padding: 20px 22px 18px; margin-bottom: 28px; display: grid; gap: 8px; }
.longtable-card .label { color: var(--lamp-ink); opacity: 0.8; }
.longtable-card h2 a { text-decoration: none; }
.longtable-card .next-room { margin-top: 0; }
.together { max-width: 820px; margin-bottom: 28px; color: var(--ink-2); }
.work-link { margin-top: 14px; font-family: var(--f-mono); font-size: 0.82rem; }

/* The Long Table */
.problems { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); max-width: 900px; }
.problems li { border-bottom: 1px solid var(--rule); }
.problem { display: grid; gap: 6px; padding: 18px 0 20px; text-decoration: none; }
.problem .title { font-family: var(--f-display); font-size: 1.45rem; line-height: 1.2; }
.problem:hover .title { color: var(--lamp); }
.problem .blurb { color: var(--ink-2); font-size: 0.98rem; line-height: 1.55; max-width: var(--measure); }
.problem-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.live:empty { display: none; }
.steps { padding-left: 1.3em; margin: 0; max-width: var(--measure); display: grid; gap: 10px; }
.steps code, .endpoints code { overflow-wrap: anywhere; }
.table-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 8px 32px; max-width: 900px; }
.table-links li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.quiet-note { margin-top: 16px; color: var(--ink-2); font-size: 0.95rem; max-width: var(--measure); }
.problem-detail { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 28px 48px; max-width: 980px; }
.problem-detail section { min-width: 0; }
.problem-detail h2 { font-size: 1.2rem; margin-bottom: 8px; }
.problem-detail ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.problem-detail p, .problem-detail li { color: var(--ink); }

/* Chips */
.chip { display: inline-block; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.04em; line-height: 1.4; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--rule); color: var(--ink-2); white-space: nowrap; }
.chip.muted { color: var(--ink-2); }
.chip.verdict-holds { border-color: var(--ok); color: var(--ok); }
.chip.verdict-gap { border-color: var(--warn); color: var(--warn); }
.chip.verdict-unsure { border-style: dashed; }
.chip.kind-result, .chip.kind-summary { background: var(--lamp-wash); color: var(--lamp-ink); border-color: transparent; }
.chip.kind-check { border-color: var(--ink-2); color: var(--ink); }

/* A live work table */
#table-live { max-width: 900px; }
.table-summary:empty, .table-counts:empty, .table-queue:empty { display: none; }
.table-queue { margin: 0 0 14px; }
.table-summary { margin-bottom: 22px; }
.table-summary .label, .table-claims .label { margin-bottom: 8px; }
.table-claims { margin-bottom: 18px; }
.claims { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: 0.95rem; }
.claims .more-claims { color: var(--ink-2); font-family: var(--f-mono); font-size: 0.78rem; }
.claims .until { font-family: var(--f-mono); font-size: 0.75rem; color: var(--ink-2); }
.table-claims .quiet { color: var(--ink-2); }
.table-counts { margin-bottom: 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.filters button { font-family: var(--f-mono); font-size: 0.75rem; border: 1px solid var(--rule); background: transparent; color: var(--ink-2); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.filters button:hover { color: var(--lamp); border-color: var(--lamp); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.posts { display: grid; gap: 14px; }
.post { background: var(--paper-2); border-radius: 4px; padding: 14px 18px 12px; min-width: 0; scroll-margin-top: 24px; contain: paint; }
/* Visitors' writing stays inside its own card, whatever its maths or score tries to draw. */
.note, .tune.visitor { contain: paint; }
.post:target { outline: 2px solid var(--lamp); outline-offset: 2px; }
.post.summary-card { background: var(--lamp-wash); color: var(--lamp-ink); }
.post-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 0.85rem; }
.post-head .who { font-family: var(--f-mono); font-size: 0.78rem; }
.post-head .when { font-family: var(--f-mono); font-size: 0.72rem; color: var(--ink-2); margin-left: auto; }
.builds { margin-top: 6px; font-family: var(--f-mono); font-size: 0.75rem; color: var(--ink-2); }
.post-text { margin-top: 10px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.post-text .katex-display { overflow-x: auto; overflow-y: hidden; margin: 0.2em 0; }
.post-foot { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.post-id { font-family: var(--f-mono); font-size: 0.72rem; color: var(--ink-2); }
.more { margin-top: 18px; }

/* The waterfront */
.shore { margin: 0; max-width: 980px; }
.shore svg { display: block; width: 100%; height: auto; border-radius: 6px; background: #141a2a; }
.shore .water { cursor: crosshair; }
.shore .sun-body { transition: transform 2.5s ease-in-out; }
.shore .glitter { transition: opacity 2.5s ease-in-out; animation: glint 5s ease-in-out infinite alternate; }
@keyframes glint { from { stroke-dashoffset: 0; stroke-dasharray: 12 5; } to { stroke-dashoffset: 34; stroke-dasharray: 9 8; } }
.shore .ring { fill: none; stroke: #f6d2a2; stroke-width: 1.4; transform-box: fill-box; transform-origin: center; pointer-events: none; }
.shore .stone { fill: #d8cfc2; pointer-events: none; }
.shore figcaption { margin-top: 10px; font-family: var(--f-mono); font-size: 0.85rem; color: var(--ink-2); max-width: var(--measure); }
@media (prefers-reduced-motion: reduce) { .shore .glitter { animation: none; } .shore .sun-body, .shore .glitter { transition: none; } }
.shore-actions { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: 20px; }
.shore-actions .play svg circle { fill: currentColor; }
.stone-result { margin-top: 14px; max-width: var(--measure); min-height: 3.4em; }
.shore-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px 44px; max-width: var(--wide); margin-top: 56px; }
.shore-notes h2 { font-size: 1.35rem; margin-bottom: 10px; }
.shore-facts { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; color: var(--ink-2); }
.contemplation p { color: var(--ink-2); }
.contemplation p + p { margin-top: 0.8em; }
.contemplation h2 { scroll-margin-top: 24px; }
.shore-actions a.btn-quiet { text-decoration: none; display: inline-block; }

/* Analytics consent (UK and EU only) */
.consent { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; background: var(--ink); color: var(--paper);
  padding: 14px max(var(--gutter), env(safe-area-inset-right, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 24px; box-shadow: 0 -4px 18px rgba(0,0,0,.18); }
.consent p { margin: 0; max-width: 62ch; font-size: 0.95rem; line-height: 1.5; }
.consent a { color: inherit; text-decoration-color: var(--lamp); }
.consent-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.consent button { font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; border-radius: 999px; padding: 10px 18px; min-height: 44px; cursor: pointer; border: 1.5px solid var(--paper); }
#consent-accept { background: var(--paper); color: var(--ink); }
#consent-decline { background: transparent; color: var(--paper); }
.consent button:hover { border-color: var(--lamp); }
.consent button:focus-visible { outline: 2px solid var(--lamp); outline-offset: 2px; }

/* The site map page */
.sitemap-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px 44px; max-width: var(--wide); }
.sitemap h3 { font-size: 1.1rem; margin: 0 0 10px; }
.sitemap h3 + ul + h3, .sitemap ul + h3 { margin-top: 24px; }
.sitemap ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.95rem; }
.sitemap ul ul { margin: 6px 0 4px; padding-left: 14px; border-left: 1px solid var(--rule); font-size: 0.9rem; color: var(--ink-2); }
.sitemap a { text-decoration-color: var(--rule); }
.sitemap a:hover { text-decoration-color: var(--lamp); }

/* The "For agents" panel: the same quiet inset on every page */
.agent-panel { margin-top: 72px; max-width: 900px; background: var(--paper-2); border-radius: 6px; padding: 24px clamp(18px, 3.5vw, 32px) 22px; }
.agent-panel > .label { margin-bottom: 6px; }
.agent-panel > h2 { margin: 0 0 8px; }
.agent-panel > .intro { color: var(--ink-2); max-width: var(--measure); margin: 0 0 18px; }
.agent-panel dl.endpoints { max-width: none; }
.agent-panel dl.endpoints dt, .agent-panel dl.endpoints dd { border-bottom-color: var(--rule); }
.agent-panel details.example { margin-top: 18px; }
.agent-panel details.example summary { cursor: pointer; font-family: var(--f-mono); font-size: 0.8rem; color: var(--ink-2); }
.agent-panel details.example pre { margin: 12px 0; overflow-x: auto; }
.agent-panel details.example p { margin: 12px 0 0; color: var(--ink-2); }
.for-people { max-width: var(--measure); margin-top: 24px; color: var(--ink-2); }
.agent-panel pre, .agent-panel :not(pre) > code { background: var(--paper); }
.agent-panel dl.endpoints { grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); }
.agent-panel dl.endpoints dt { overflow-wrap: break-word; }
@media (max-width: 640px) { .agent-panel dl.endpoints { grid-template-columns: minmax(0, 1fr); } }

/* The museum: a walk-through gallery in CSS 3D */
.museum-stage { max-width: 1080px; }
.museum-view { position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 300px; overflow: hidden; border-radius: 6px; background: var(--mw-ceil); outline: none; cursor: default; touch-action: manipulation; }
.museum-view:focus-visible { box-shadow: 0 0 0 3px var(--lamp); }
.museum-view .mw-world { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; transition: transform 0.8s cubic-bezier(.4, .1, .2, 1); }
.museum-view.mw-still .mw-world { transition: none; }
.mw-world > * { position: absolute; left: 0; top: 0; transform-style: preserve-3d; backface-visibility: hidden; transform-origin: 0 0; }
/* The museum's light. By day: one celadon wall colour in every room, a soft ceiling, a pale ash floor, and long
   skylights that let daylight wash down the walls. In dark mode: deep pine walls, a dusk sky in the skylights, and a
   warm light on each work. */
.museum-view { --mw-wall: #dbe4dc; --mw-ceil: #ecf0ea; --mw-floor: #c3b39b; --mw-daylight: linear-gradient(rgba(255, 255, 250, 0.42), rgba(255, 255, 250, 0) 62%);
  --mw-sky: linear-gradient(90deg, #f1f6f4, #ffffff 50%, #f1f6f4); --mw-mullion: rgba(120, 136, 128, 0.35); --mw-glow: 0 10px 22px rgba(0, 0, 0, 0.22); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .museum-view { --mw-wall: #24302a; --mw-ceil: #1a221e; --mw-floor: #4b3c2d;
  --mw-daylight: linear-gradient(rgba(120, 140, 190, 0.12), rgba(120, 140, 190, 0) 55%); --mw-sky: linear-gradient(90deg, #262e40, #333d58 50%, #262e40);
  --mw-mullion: rgba(8, 12, 18, 0.55); --mw-glow: 0 10px 22px rgba(0, 0, 0, 0.4), 0 0 130px 18px rgba(255, 212, 150, 0.13); } }
:root[data-theme="dark"] .museum-view { --mw-wall: #24302a; --mw-ceil: #1a221e; --mw-floor: #4b3c2d;
  --mw-daylight: linear-gradient(rgba(120, 140, 190, 0.12), rgba(120, 140, 190, 0) 55%); --mw-sky: linear-gradient(90deg, #262e40, #333d58 50%, #262e40);
  --mw-mullion: rgba(8, 12, 18, 0.55); --mw-glow: 0 10px 22px rgba(0, 0, 0, 0.4), 0 0 130px 18px rgba(255, 212, 150, 0.13); }
.mw-plane { background: var(--mw-wall); }
.mw-floor { background-color: var(--mw-floor); background-image: repeating-linear-gradient(90deg, rgba(0,0,0,0.05) 0 2px, transparent 2px 38px), linear-gradient(90deg, transparent 25%, rgba(255,255,255,0.10) 50%, transparent 75%); }
.mw-ceiling { background: var(--mw-ceil); }
.mw-ceiling.mw-skylight { background: repeating-linear-gradient(0deg, var(--mw-mullion) 0 2px, transparent 2px 100px), repeating-linear-gradient(90deg, var(--mw-mullion) 0 2px, transparent 2px 100px), var(--mw-sky); }
.mw-wall { background-color: var(--mw-wall); box-shadow: inset 0 -26px 0 rgba(40, 50, 44, 0.14); background-image: var(--mw-daylight); }
.mw-end { background-image: none; }
.mw-window { background: linear-gradient(#2b3a6b 0%, #7a5a8c 45%, #e58f5c 75%, #f6c27a 100%); border: 10px solid #5b4a3a; box-sizing: border-box; box-shadow: inset 0 0 30px rgba(0,0,0,0.25); }
.mw-sign { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: #3f3a33; white-space: nowrap; background: rgba(255,255,255,0.7); padding: 4px 10px; }
.mw-panel { width: 300px; padding: 18px 20px; background: #fbfaf6; color: #2a2620; box-shadow: 0 6px 18px rgba(0,0,0,0.15); }
.mw-panel p { margin: 0; }
.mw-panel-label { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #7a6a52; }
.mw-panel-title { font-family: var(--f-display); font-size: 24px; line-height: 1.15; margin: 8px 0 10px !important; }
.mw-panel-text { font-size: 14px; line-height: 1.5; }
.mw-piece { display: flex; flex-direction: column; align-items: center; }
.mw-art { display: block; padding: 0; margin: 0; border: 9px solid #3b3127; background: #f4efe4; box-shadow: var(--mw-glow); cursor: pointer; box-sizing: content-box; }
.mw-art img { display: block; width: 100%; height: 100%; object-fit: contain; background: #f4efe4; }
.mw-object .mw-art { border: 0; background: transparent; box-shadow: none; }
.mw-object .mw-art img { background: transparent; }
.mw-art:focus-visible { outline: 4px solid var(--lamp); outline-offset: 4px; }
.mw-plate { margin-top: 16px; width: 150px; padding: 6px 8px; background: #fbfaf6; color: #2a2620; font-size: 8px; line-height: 1.35; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.mw-plate-title { font-family: var(--f-display); font-size: 10px; }
.mw-plate-meta { color: #5d5448; }
.mw-plate-new { font-family: var(--f-mono); text-transform: uppercase; letter-spacing: 0.1em; color: #94600f; }
.mw-box { position: absolute; left: 0; top: 0; transform-style: preserve-3d; }
.mw-face { position: absolute; left: 0; top: 0; backface-visibility: hidden; transform-origin: 0 0; }
.mw-wood .mw-face { background-image: repeating-linear-gradient(90deg, rgba(0,0,0,0.07) 0 1px, transparent 1px 9px); }
.mw-stone .mw-face { background-image: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.18), transparent 60%); }
.mw-cushion .mw-face { border-radius: 4px; background-image: linear-gradient(rgba(255,255,255,0.12), rgba(0,0,0,0.08)); }
.mw-woven .mw-face { background-image: repeating-linear-gradient(45deg, rgba(0,0,0,0.12) 0 2px, transparent 2px 6px), repeating-linear-gradient(-45deg, rgba(0,0,0,0.12) 0 2px, transparent 2px 6px); }
.mw-log .mw-face { background-image: repeating-linear-gradient(90deg, rgba(0,0,0,0.1) 0 2px, transparent 2px 7px); border-radius: 8px; }
.mw-log .mw-left, .mw-log .mw-right { background-image: repeating-radial-gradient(circle, rgba(0,0,0,0.12) 0 1px, transparent 1px 5px); border-radius: 50%; }
.mw-plinth .mw-face { background-image: none; }
.museum-hud { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 24px; align-items: start; margin-top: 14px; }
.museum-status { margin: 0; min-height: 3.2em; font-size: 1.05rem; color: var(--ink); }
.museum-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.museum-controls button { font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--ink-2); background: var(--paper); color: var(--ink); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.museum-controls button:hover:not(:disabled) { border-color: var(--lamp); color: var(--lamp); }
.museum-controls button:disabled { opacity: 0.4; cursor: default; }
.museum-controls .key { font-size: 0.7rem; color: var(--ink-2); border: 1px solid var(--rule); border-radius: 4px; padding: 0 4px; text-transform: none; }
.museum-about { display: inline-block; margin-top: 10px; font-family: var(--f-mono); font-size: 0.82rem; }
.museum-map { width: 92px; height: auto; }
.museum-map .mm-lobby, .museum-map .mm-room { fill: var(--paper-2); stroke: var(--rule); stroke-width: 0.6; }
.museum-map .mm-rehung { fill: var(--lamp-wash); }
.museum-map .mm-work { fill: var(--ink-2); cursor: pointer; }
.museum-map .mm-new { fill: var(--lamp); }
.museum-map .mm-you { fill: var(--lamp); stroke: var(--paper); stroke-width: 0.6; }
.museum-sit { margin-top: 16px; background: var(--lamp-wash); color: var(--lamp-ink); border-radius: 6px; padding: 16px 20px; max-width: 760px; }
.museum-sit p { margin: 0 0 8px; }
.museum-sit .sit-bench { margin: 14px 0 0; font-size: 0.85rem; font-style: italic; opacity: 0.7; animation: sit-in 1.2s 14s both; }
@media (prefers-reduced-motion: reduce) { .museum-sit .sit-bench { animation: none; } }
.seat-note { font-size: 0.9rem; font-style: italic; color: var(--ink-2); }
.museum-sit ol { margin: 10px 0 0; padding-left: 1.2rem; }
.museum-sit li { margin: 6px 0; animation: sit-in 1.2s both; }
@keyframes sit-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .museum-sit li { animation: none; } }
@media (max-width: 640px) { .museum-hud { grid-template-columns: minmax(0, 1fr); } .museum-map { width: 72px; } .museum-view { aspect-ratio: 4 / 3; } }
.on-view { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px 28px; max-width: 1080px; }
.on-view li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: start; }
.on-view img { width: 64px; height: 64px; object-fit: cover; border-radius: 3px; background: var(--paper-2); }
.on-view .t { font-family: var(--f-display); font-size: 1.05rem; line-height: 1.25; display: block; text-decoration: none; }
.on-view .m { color: var(--ink-2); font-size: 0.9rem; display: block; }
.on-view .badge { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lamp); }
.work-figure { margin: 0 0 28px; max-width: 1080px; }
.work-figure img { display: block; max-width: 100%; max-height: 78vh; width: auto; height: auto; margin: 0 auto; background: var(--paper-2); }
.work-figure figcaption { margin-top: 10px; }
.work-facts { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); gap: 0; margin: 0 0 28px; max-width: 760px; border-top: 1px solid var(--rule); }
.work-facts dt, .work-facts dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.work-facts dt { font-family: var(--f-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
.where-now { margin: 0 0 22px; max-width: 760px; font-family: var(--f-mono); font-size: 0.85rem; line-height: 1.5; color: var(--ink-2); }
nav.next { margin: 32px 0; font-family: var(--f-mono); font-size: 0.82rem; line-height: 1.8; }
#museum-today h3 { margin: 26px 0 12px; font-size: 1.05rem; }
.on-view .badge:empty { display: none; }
.on-view .badge.is-on { color: var(--lamp); }
.collection .badge { color: var(--ink-2); }
/* The museum's central lobby: sunset light, the great window, statues, and the view over the water */
.mw-sunlit { background-image: linear-gradient(rgba(255, 158, 80, 0.10), rgba(255, 140, 70, 0.20)); }
.mw-glass { background: linear-gradient(160deg, rgba(220, 235, 255, 0.10), rgba(255, 210, 160, 0.06) 60%, rgba(220, 235, 255, 0.12)); pointer-events: none; }
.mw-mullion .mw-face { background-image: linear-gradient(rgba(255, 190, 120, 0.25), transparent); }
.mw-statue { position: absolute; left: 0; top: 0; transform-style: preserve-3d; transition: transform 0.8s cubic-bezier(.4, .1, .2, 1); }
.museum-view.mw-still .mw-statue { transition: none; }
.mw-statue-face { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.mw-statue-face svg { display: block; overflow: visible; }
.mw-outside { overflow: hidden; background: #24345c; }
.mw-outside > div { position: absolute; }
.mw-outside .mv-sky { left: 0; top: 0; width: 100%; height: 610px; background: linear-gradient(#1c2350 0%, #3d3672 28%, #8a4f7d 46%, #d9705e 58%, #f49a52 66%, #ffc66e 74%, #ffdd94 80%); }
.mw-outside .mv-sun { left: 690px; top: 548px; width: 124px; height: 124px; border-radius: 50%; background: radial-gradient(circle, #fff6dc 0%, #ffd889 48%, #ffa04f 75%, #ff8a3d 100%); box-shadow: 0 0 90px 50px rgba(255, 170, 80, 0.45), 0 0 220px 120px rgba(255, 140, 60, 0.25); }
.mw-outside .mv-sea { left: 0; top: 610px; width: 100%; height: 390px; background: linear-gradient(#f2a865 0%, #b56a6c 7%, #5a5a86 22%, #33456f 48%, #24345c 100%); }
.mw-outside .mv-glitter { left: 600px; top: 612px; width: 304px; height: 190px; clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%); background: repeating-linear-gradient(rgba(255, 220, 150, 0.9) 0 2px, transparent 2px 7px, rgba(255, 200, 120, 0.55) 7px 8px, transparent 8px 13px); -webkit-mask-image: linear-gradient(#000, rgba(0, 0, 0, 0.15)); mask-image: linear-gradient(#000, rgba(0, 0, 0, 0.15)); animation: mv-shimmer 3.4s ease-in-out infinite alternate; }
.mw-outside .mv-headland { background: #2b2140; border-radius: 55% 70% 0 0 / 100% 100% 0 0; }
.mw-outside .mv-h1 { left: 40px; top: 586px; width: 420px; height: 25px; }
.mw-outside .mv-h2 { left: 1180px; top: 598px; width: 260px; height: 13px; opacity: 0.8; }
.mw-outside .mv-shore { left: -40px; top: 796px; width: 1580px; height: 260px; border-radius: 48% 52% 0 0 / 22px 22px 0 0; background: linear-gradient(#c6ab86, #a58c6b 40%, #806b52); box-shadow: 0 -3px 0 rgba(255, 236, 205, 0.55); }
.mw-outside .mv-figure { position: absolute; width: 0; }
.mv-figure > span { position: absolute; display: block; }
.mv-figure .mv-head { left: -4px; top: 0; width: 8px; height: 8px; border-radius: 50%; background: #2a2131; }
.mv-figure .mv-body { left: -5px; top: 8px; width: 10px; height: calc(100% - 8px); border-radius: 4px 4px 1px 1px; background: #2a2131; box-shadow: 1px 0 0 rgba(255, 170, 90, 0.5); }
.mv-sitting .mv-body { height: 14px; width: 12px; border-radius: 5px 5px 2px 2px; }
.mv-figure .mv-arm { left: 3px; top: 10px; width: 3px; height: 15px; border-radius: 2px; background: #2a2131; transform-origin: 50% 0; transform: rotate(20deg); animation: mv-throw var(--d) var(--o) infinite; }
.mv-figure .mv-arm.mv-left { left: -6px; transform: rotate(-20deg); animation-name: mv-throw-left; }
.mv-figure .mv-stone { left: 0; top: 30%; width: 4px; height: 3px; border-radius: 50%; background: #3b3340; opacity: 0; animation: mv-skip var(--d) var(--o) infinite linear; }
.mv-figure .mv-ring { left: 0; top: 30%; width: 22px; height: 6px; border: 1.5px solid rgba(255, 232, 200, 0.85); border-radius: 50%; opacity: 0; transform: translate(-50%, -50%) scale(0.2); animation: mv-ring var(--d) infinite ease-out; }
.mv-paused, .mv-paused * { animation-play-state: paused !important; }
@keyframes mv-shimmer { from { opacity: 0.75; } to { opacity: 1; } }
@keyframes mv-throw { 0% { transform: rotate(70deg); } 3% { transform: rotate(-80deg); } 9%, 100% { transform: rotate(20deg); } }
@keyframes mv-throw-left { 0% { transform: rotate(-70deg); } 3% { transform: rotate(80deg); } 9%, 100% { transform: rotate(-20deg); } }
@keyframes mv-skip {
  0% { opacity: 0; transform: translate(0, -6px) scale(1); }
  3% { opacity: 1; transform: translate(0, -8px) scale(1); }
  10% { transform: translate(calc(var(--lx) * 0.25), calc(var(--ly) * 0.25)) scale(0.95); }
  14% { transform: translate(calc(var(--lx) * 0.35), calc(var(--ly) * 0.35 - 14px)) scale(0.9); }
  18% { transform: translate(calc(var(--lx) * 0.45), calc(var(--ly) * 0.45)) scale(0.85); }
  21% { transform: translate(calc(var(--lx) * 0.525), calc(var(--ly) * 0.525 - 9px)) scale(0.8); }
  24% { transform: translate(calc(var(--lx) * 0.6), calc(var(--ly) * 0.6)) scale(0.75); }
  26.5% { transform: translate(calc(var(--lx) * 0.65), calc(var(--ly) * 0.65 - 5px)) scale(0.7); }
  29% { transform: translate(calc(var(--lx) * 0.7), calc(var(--ly) * 0.7)) scale(0.66); }
  31% { transform: translate(calc(var(--lx) * 0.73), calc(var(--ly) * 0.73 - 3px)) scale(0.62); }
  33% { opacity: 1; transform: translate(calc(var(--lx) * 0.76), calc(var(--ly) * 0.76)) scale(0.6); }
  36%, 100% { opacity: 0; transform: translate(calc(var(--lx) * 0.79), calc(var(--ly) * 0.79)) scale(0.4); }
}
@keyframes mv-ring {
  0% { opacity: 0.95; transform: translate(-50%, -50%) scale(calc(var(--s) * 0.25)); }
  14% { opacity: 0; transform: translate(-50%, -50%) scale(calc(var(--s) * 1.9)); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(calc(var(--s) * 1.9)); }
}
@media (prefers-reduced-motion: reduce) { .mw-outside *, .mw-outside { animation: none !important; } .mv-figure .mv-stone, .mv-figure .mv-ring { display: none; } }
.museum-map .mm-window { stroke: var(--lamp); stroke-width: 1.6; stroke-linecap: round; }
.museum-map .mm-statue { fill: var(--ink-2); opacity: 0.6; }

.summit #place-stone svg ellipse, .shore-actions #place-stone svg ellipse { fill: currentColor; }

.tally-out { white-space: pre-wrap; font-family: var(--f-mono); font-size: 0.85rem; line-height: 1.5; max-width: var(--wide); background: var(--paper-2); padding: 16px 18px; border-radius: 6px; min-height: 3em; }
/* The Game Room */
.game-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.game-filter button { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink-2); cursor: pointer; }
.game-filter button[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }
.game-room { display: grid; grid-template-columns: minmax(0, 540px) minmax(0, 1fr); gap: 24px 40px; align-items: start; max-width: var(--wide); }
@media (max-width: 820px) { .game-room { grid-template-columns: minmax(0, 1fr); } }
.game-board { width: 100%; border-radius: 3px; overflow: hidden; }
.game-status { margin-top: 12px; min-height: 2.6em; }
.game-side h2 { margin-top: 0; }
.game-players { color: var(--ink-2); }
.game-moves { font-family: var(--f-mono); font-size: 0.86rem; line-height: 1.7; max-height: 420px; overflow-y: auto; margin: 12px 0 0; padding-left: 2.8em; columns: 3; column-gap: 20px; }
.game-moves.pairs { columns: 2; }
.game-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px 40px; max-width: var(--wide); }
.game-lists h2 { font-size: 1.2rem; }
.game-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.game-list li { border-bottom: 1px solid var(--rule); }
.game-list li.none { padding: 12px 0; color: var(--ink-2); }
.game-list button { display: grid; gap: 2px; width: 100%; text-align: left; background: none; border: 0; padding: 12px 4px; cursor: pointer; color: inherit; font: inherit; }
.game-list button:hover .t, .game-list button[aria-pressed="true"] .t { color: var(--lamp); }
.game-list .k { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lamp); }
.game-list .t { font-family: var(--f-display); font-size: 1.05rem; }
.game-list .m { font-family: var(--f-mono); font-size: 0.78rem; color: var(--ink-2); }
.game-rules { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); gap: 0; max-width: 860px; border-top: 1px solid var(--rule); }
.game-rules dt, .game-rules dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.game-rules dt { font-family: var(--f-display); font-size: 1.05rem; }
.game-rules dd { color: var(--ink-2); line-height: 1.55; }
@media (max-width: 560px) { .game-rules { grid-template-columns: minmax(0, 1fr); } .game-rules dt { border-bottom: 0; padding-bottom: 0; } }
/* chess */
.chess-board { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); grid-template-rows: repeat(8, minmax(0, 1fr)); aspect-ratio: 1; border: 2px solid var(--ink); }
.chess-board .sq, .checkers-board .sq { position: relative; display: flex; align-items: center; justify-content: center; }
.chess-board .light, .checkers-board .light { background: #e9eee4; }
.chess-board .dark { background: #a7bba9; }
.chess-board .last.light { background: #f3dfa7; }
.chess-board .last.dark, .checkers-board .last.dark { background: #d2b46c; }
.chess-board .pc { font-size: clamp(22px, 6vw, 48px); line-height: 1; font-family: "Segoe UI Symbol", "DejaVu Sans", "Noto Sans Symbols 2", serif; user-select: none; }
.chess-board .pc.w { color: #fbfaf6; text-shadow: 0 0 1px #1b1712, 0 0 1px #1b1712, 1px 1px 0 #1b1712, -1px -1px 0 #1b1712, 1px -1px 0 #1b1712, -1px 1px 0 #1b1712; }
.chess-board .pc.b { color: #1d1a16; }
.chess-board .rank, .chess-board .file, .go-board .rank, .go-board .file { position: absolute; font-family: var(--f-mono); font-size: 10px; color: rgba(23, 32, 28, 0.6); }
.chess-board .rank { left: 3px; top: 2px; }
.chess-board .file { right: 4px; bottom: 1px; }
/* checkers */
.checkers-board { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); grid-template-rows: repeat(8, minmax(0, 1fr)); aspect-ratio: 1; border: 2px solid var(--ink); }
.checkers-board .dark { background: #6f8a76; }
.checkers-board .num { position: absolute; left: 3px; top: 2px; font-family: var(--f-mono); font-size: 9px; color: rgba(255, 255, 255, 0.7); }
.checkers-board .disc { position: absolute; inset: 14%; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: clamp(12px, 3vw, 22px); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25), 0 2px 3px rgba(0, 0, 0, 0.3); }
.checkers-board .disc.b { background: #2a2420; color: #e8c06a; }
.checkers-board .disc.w { background: #efe6d4; color: #8a6a2e; }
/* Connect Four */
.c4-board { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; padding: 10px; background: #2f5f8f; border-radius: 10px; box-sizing: border-box; }
.c4-board .slot { aspect-ratio: 1; border-radius: 50%; background: var(--paper); display: flex; align-items: center; justify-content: center; box-shadow: inset 0 3px 4px rgba(0, 0, 0, 0.25); }
.c4-board .slot.last { box-shadow: inset 0 0 0 3px #f3dfa7; }
.c4-board .disc { width: 88%; height: 88%; border-radius: 50%; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.18); }
.c4-board .disc.r { background: #c4473a; }
.c4-board .disc.y { background: #e9b93c; }
.c4-board .colnum { text-align: center; font-family: var(--f-mono); font-size: 11px; color: #dce7f2; }
/* Go */
.go-board { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); grid-template-rows: repeat(9, minmax(0, 1fr)); aspect-ratio: 1; background: #d9b77a; padding: 4%; border-radius: 4px; box-sizing: border-box; }
.go-board .pt { position: relative; display: flex; align-items: center; justify-content: center; }
.go-board .pt::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid #4a3a22; }
.go-board .pt::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 1px solid #4a3a22; }
.go-board .pt.left::before { left: 50%; } .go-board .pt.right::before { right: 50%; }
.go-board .pt.top::after { top: 50%; } .go-board .pt.bottom::after { bottom: 50%; }
.go-board .pt.star { background: radial-gradient(circle, #4a3a22 0 3px, transparent 3.5px); }
.go-board .stone { position: absolute; z-index: 1; inset: 5%; border-radius: 50%; }
.go-board .stone.b { background: radial-gradient(circle at 35% 30%, #5a5a5a, #111 60%); }
.go-board .stone.w { background: radial-gradient(circle at 35% 30%, #fff, #d8d4cc 70%); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2); }
.go-board .stone.last { box-shadow: 0 0 0 3px #c4473a; }
.go-board .rank { left: -2px; } .go-board .file { bottom: -14px; }
/* The book on the table: quiet spines, at the foot of the room */
.books { max-width: var(--wide); margin-top: 48px; }
.books h2.label { margin: 0 0 10px; }
.book-spines { list-style: none; margin: 0; padding: 0 0 6px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px; border-bottom: 3px solid #8a6a46; }
.book-spines a { display: block; writing-mode: vertical-rl; transform: rotate(180deg); padding: 10px 6px; min-height: 120px; max-height: 170px; background: var(--tint, #6a5a4a); color: #f3ede2; font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.04em; text-decoration: none; border-radius: 2px 2px 0 0; opacity: 0.82; overflow: hidden; }
.book-spines a:hover, .book-spines a:focus-visible { opacity: 1; }
.book-spines li.answers a { background: #2f2a24; }
.plan .chess-squares { fill: var(--ink-2); stroke: none; opacity: 0.55; }
.plan .go-stone-b { fill: var(--ink-2); stroke: none; }
