/* The light worlds share World 10's text boxes, turned to paper. Each world sets --paper and --ink. */
@font-face { font-family: 'JetBrains Mono'; src: url(fonts/jbmono.woff2) format('woff2'); font-display: swap; font-weight: 100 800; }
:root { --ground: var(--paper, #f4f1ea); --ink: #141414; }
::selection { background: #141414; color: #f4f1ea; }
canvas.world { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.wedge { font-family: 'JetBrains Mono', monospace; z-index: 3; }
/* The four colours of the work: white ground, and one per wedge: Garden black, Work red, Readings yellow. */
[data-wedge=garden] { --hue: #141414; --on: #fbf8f2; }
[data-wedge=work] { --hue: #c8321e; --on: #fbf8f2; }
[data-wedge=readings] { --hue: #d9a21b; --on: #141414; }
.label { background: var(--paper, #f4f1ea); padding: 0.7em 0.9em 0.75em; border: 1px solid #141414; color: #141414; transition: background 180ms, color 180ms, border-color 180ms; }
.label h2 { font-size: clamp(20px, 3.4vmin, 38px); font-weight: 700; line-height: 1; display: flex; align-items: center; gap: 0.42em; }
[data-slot=right] .label h2 { flex-direction: row-reverse; }
[data-slot=bottom] .label h2 { justify-content: center; }
.sign { width: 0.95em; height: 0.95em; flex: none; fill: none; stroke: currentColor; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.label p { font-size: clamp(11px, 1.55vmin, 14px); line-height: 1.35; margin-top: 0.5em; color: #3c3a36; }
.wedge:hover .label, .wedge:focus-visible .label { background: var(--hue); border-color: var(--hue); color: var(--on); }
.wedge:hover .label p, .wedge:focus-visible .label p { color: var(--on); }
.name { font: 500 13px/1 'JetBrains Mono', monospace; letter-spacing: 0.04em; color: #141414; }
/* It sits on the sky in a feathered clearing of paper, never a panel. */
.name::before { content: ''; position: absolute; inset: -150% -50%; z-index: -1; background: radial-gradient(closest-side, rgba(244, 241, 234, .92) 55%, rgba(244, 241, 234, 0) 100%); }
/* Names on arcs around the Mark, each on a paper ribbon that follows its arc and takes the wedge's colour on hover. */
.arc { position: fixed; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.arc-band { fill: none; stroke: var(--paper, #f4f1ea); stroke-linecap: round; opacity: 0.94; transition: stroke 180ms, opacity 180ms; }
.arc text { font-family: 'JetBrains Mono', monospace; transition: fill 180ms, opacity 180ms; }
/* Dormant, a name sits light on a purple band and its tagline purple on paper, so the names read as the things to choose. */
.arc-band-a { stroke: var(--purple, #6032bb); opacity: 1; }
.arc-title { font-weight: 700; fill: var(--paper, #f4f1ea); letter-spacing: 0.06em; }
.arc-tag { font-weight: 500; fill: var(--purple, #6032bb); letter-spacing: 0.02em; }
/* A tagline that cannot fit its arc waits for the hover or the focus, so two never collide. */
.arc-tag.waits, .arc-band.waits { opacity: 0; }
.wedge:hover .waits, .wedge:focus-visible .waits { opacity: 1; }
.arc-sign path { fill: none; stroke: var(--paper, #f4f1ea); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; transition: stroke 180ms; }
.wedge:hover .arc-band, .wedge:focus-visible .arc-band { stroke: var(--hue); opacity: 1; }
.wedge:hover .arc-title, .wedge:focus-visible .arc-title, .wedge:hover .arc-tag, .wedge:focus-visible .arc-tag { fill: var(--on); }
.wedge:hover .arc-sign path, .wedge:focus-visible .arc-sign path { stroke: var(--on); }
#ring { position: fixed; left: 0; top: 0; z-index: 2; pointer-events: none; overflow: visible; }
#ring text { font: 500 13px 'JetBrains Mono', monospace; fill: #6b665c; letter-spacing: 0.04em; }
#ring g { transform-origin: 0 0; animation: swim 300s linear infinite; }
.worlds { background: #fff; border: 1px solid #ddd; }
.worlds a { color: #444; }
.worlds-settings { color: #444; border-left-color: #ddd; }
.worlds-settings[aria-pressed=true] { color: #141414; font-weight: 700; }
.worlds a[aria-current] { background: #141414; color: #fff; }
.fallback { display: none; }
.no-gl .fallback { display: block; color: #141414; }
@media (prefers-reduced-motion: reduce) { #ring g { animation: none; } }
/* Editing mode: a paper panel of sliders, prototype chrome only. */
.edit { position: fixed; left: 12px; bottom: 12px; z-index: 30; width: 260px; max-height: calc(100vh - 80px); overflow: auto; padding: 10px 12px 12px; background: var(--paper, #f4f1ea); border: 1px solid #141414; font: 500 11px/1.4 'JetBrains Mono', monospace; color: #141414; }
.edit-head { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 6px; }
.edit-close { font: inherit; font-size: 14px; line-height: 1; background: none; border: 0; color: #6b665c; cursor: pointer; padding: 0 2px; }
.edit label { display: grid; grid-template-columns: 1fr 100px 38px; gap: 8px; align-items: center; margin: 3px 0; }
.edit input[type=range] { width: 100%; accent-color: var(--purple, #141414); margin: 0; }
.edit select { width: 100%; font: inherit; background: var(--paper, #f4f1ea); color: #141414; border: 1px solid #141414; padding: 1px 2px; }
.edit output { text-align: right; font-variant-numeric: tabular-nums; }
.edit-readout { margin: 8px 0 6px; padding: 6px; border: 1px dashed #6b665c; white-space: pre-wrap; word-break: break-all; font: inherit; user-select: all; }
.edit-tools { display: flex; gap: 6px; }
.edit-fold { border-top: 1px solid #d8d3c8; padding: 4px 0; }
.edit-fold summary { cursor: pointer; font-weight: 700; list-style: none; padding: 2px 0; }
.edit-fold summary::before { content: '+ '; color: #6b665c; }
.edit-fold[open] summary::before { content: '- '; }
.edit button { font: inherit; padding: 3px 8px; background: #141414; color: var(--paper, #f4f1ea); border: 0; cursor: pointer; }
@media (max-width: 600px) { .edit { width: calc(100vw - 24px); bottom: 56px; } }
