:root{color-scheme:light dark;--paper:light-dark(#fdfcfa,#141413);--ink:light-dark(#1c1b19,#e7e5df);--muted:light-dark(#5c5a55,#a5a29a);--rule:light-dark(#e4e2dc,#2e2d2a);--surface:light-dark(#f4f2ed,#1d1d1b);--accent:light-dark(#2d5f80,#8fb8d4);--font-ui:ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
*{box-sizing:border-box}html,body{margin:0;height:100%;height:100dvh;background:var(--paper);color:var(--ink);font:14px/1.5 var(--font-ui)}body{display:flex;flex-direction:column;overflow:hidden}a{color:inherit;text-underline-offset:4px}header{display:flex;align-items:center;justify-content:space-between;padding:20px 28px;gap:20px;border-bottom:1px solid var(--rule)}.eyebrow{font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:var(--muted);margin:0 0 6px}h1{font:32px/1.1 Baskerville,Georgia,serif;margin:0;font-weight:400}nav{display:flex;gap:22px;font-size:12px}main{display:flex;flex-direction:column;flex:1;min-height:0}.toolbar{display:flex;align-items:center;gap:8px;padding:10px 24px;border-bottom:1px solid var(--rule)}button{font:inherit;color:inherit;background:transparent;border:1px solid var(--rule);padding:8px 14px;min-height:44px;cursor:pointer;white-space:nowrap}button:hover{background:var(--surface)}button[aria-pressed=true]{background:var(--ink);color:var(--paper)}button:focus-visible,a:focus-visible,input:focus-visible,#stage:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.zoom-controls{display:flex;align-items:center;gap:5px}.zoom-controls button{width:44px;padding:4px;font-size:20px}#zoom{font-size:11px;text-align:center;min-width:40px;font-variant-numeric:tabular-nums}.words{display:flex;align-items:center;gap:7px;min-height:44px;padding:0 8px;cursor:pointer;white-space:nowrap;font-size:13px}input{width:18px;height:18px;accent-color:var(--ink)}#full{margin-left:auto}#stage{position:relative;flex:1;min-height:0;touch-action:none;overflow:hidden;cursor:grab;contain:strict;background:transparent}#stage.dragging{cursor:grabbing}canvas{display:block;width:100%;height:100%;pointer-events:none}.map-credit{position:absolute;bottom:12px;left:16px;pointer-events:none;padding:3px 8px;background:color-mix(in srgb,var(--paper) 90%,transparent);font-size:10px;letter-spacing:.04em;color:var(--ink)}#message{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(90%,440px);padding:22px;background:var(--paper);border:1px solid var(--rule);cursor:default}#message button{display:block;margin-top:12px}.caption{display:flex;justify-content:space-between;padding:9px 24px;gap:20px;font-size:11px;color:var(--muted);border-top:1px solid var(--rule)}#status{white-space:nowrap}footer{display:flex;justify-content:space-between;gap:20px;padding:12px 28px;font-size:11px;color:var(--muted);border-top:1px solid var(--rule)}.expanded header,.expanded footer{display:none}.expanded .map-credit{display:none}
@media(max-width:650px){header{padding:14px 16px}h1{font-size:27px}.eyebrow{font-size:9px}nav{font-size:11px}nav a:last-child{display:none}.toolbar{padding:7px 8px;gap:5px;flex-wrap:wrap}button{padding:8px 10px;font-size:12px}.zoom-controls{gap:0}#zoom{min-width:34px}.words{font-size:12px;padding:0 4px}#full{margin-left:auto}.caption{padding:8px 12px;gap:8px;font-size:10px}#help{max-width:235px}footer{padding:10px 14px;font-size:10px}footer>span{max-width:220px}.map-credit{left:8px;bottom:8px;font-size:9px}}
@media(max-width:380px){#zoom{display:none}.toolbar{gap:4px}.toolbar button{padding:8px}.words{margin-left:0}.map-credit{display:none}header nav{max-width:85px}.caption{flex-wrap:wrap;gap:2px}}
@media(max-height:500px){header,footer,.map-credit{display:none}.toolbar{padding:5px 8px}.caption{padding:5px 12px}#help{max-width:none}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.embedded header,.embedded footer{display:none}.load-status{white-space:nowrap}#retry{font-size:11px;min-height:28px;padding:3px 8px}button[hidden]{display:none}

.touch-help{display:none}@media(max-width:650px){.desktop-help{display:none}.touch-help{display:inline}}@media(max-width:380px){header{gap:8px}h1{font-size:23px;white-space:nowrap}header nav{max-width:none;flex-shrink:0;font-size:10px;white-space:nowrap}.caption{flex-wrap:nowrap}}

/* Match the companion scent explorer: a compact brand and right-hand links/controls. */
header{padding:15px 24px;gap:16px}.brand{display:flex;align-items:baseline;min-width:0;gap:18px}.brand p{margin:0;color:var(--muted);font-size:12px;white-space:nowrap}h1{font-size:30px;line-height:1}header nav{margin-left:auto;justify-content:flex-end;gap:22px;flex-shrink:0}header nav a{font-size:12px;white-space:nowrap}.toolbar{justify-content:flex-end}#full{margin-left:0}
@media(max-width:900px){.brand p{display:none}}
@media(max-width:650px){header{padding:12px;gap:12px}h1{font-size:25px}header nav a{font-size:11px}.toolbar{padding:7px 8px}}
@media(max-width:380px){header{gap:8px}h1{font-size:23px}header nav a{font-size:10px}}

/* Embedded artwork sits directly on the article's paper, including its dark grain. */
html.is-embedded,html.is-embedded body,html:has(body.embedded),body.embedded{background:transparent}
.embedded .toolbar,.embedded .caption{border:0;padding-inline:2%}
.embedded .toolbar{padding-top:0;padding-bottom:8px}
.embedded .map-credit{display:none}
button{border-radius:999px}
.embedded button{font-size:13px;min-height:36px;padding:4px 12px}
.embedded .zoom-controls button{font-size:20px;width:36px;padding:0}
.embedded .words{font-size:13px;min-height:36px}
.embedded.expanded .toolbar,.embedded.expanded .caption{padding:8px 12px}
@media(pointer:coarse){.embedded button,.embedded .words{min-height:44px}.embedded .zoom-controls button{width:44px}}
