/* Hexagram. One art pixel is four screen pixels, everywhere, and every surface on the page is a
   plate drawn in tools/draw.mjs and nine-sliced. Nothing here is a bordered rectangle standing in
   for an object. */

@font-face { font-family: Pixeloid; src: url(/fonts/pixeloid-bold-subset.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Ark; src: url(/fonts/ark-pixel-12-subset.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Basteleur; src: url(/fonts/basteleur-bold-subset.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Basteleur; src: url(/fonts/basteleur-moonlight-subset.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --ink: #000000;
  --night-0: #060a24;
  --night-1: #0a1340;
  --night-2: #141a4c;
  --ember: #f06818;
  --ember-dim: #c85020;
  --bronze-0: #281810;
  --bronze-1: #482008;
  --bronze-2: #683008;
  --bronze-3: #a85813;
  --bronze-4: #df871b;
  --bronze-5: #f0b040;
  --cream: #f8f0d0;
  --paper: #f3e3c3;
  --paper-ink: #2a1c0c;
  --ash: #b8a898;
  --red: #d81818;

  --art: 4px;
  --gutter: 64px;
  --screen-gap: 112px;
  --band: clamp(300px, 40vh, 470px);
  --rail: 324px;

  font-synthesis: none;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { background: var(--night-1); }

body {
  margin: 0;
  background: var(--night-1);
  color: var(--cream);
  font-family: Ark, ui-monospace, monospace;
  font-size: 24px;
  line-height: 1.65;
  -webkit-font-smoothing: none;
  overflow-x: hidden;
}

img, canvas { image-rendering: pixelated; }

a { color: var(--bronze-5); }

::selection { background: var(--ember-dim); color: var(--cream); }

:focus-visible { outline: 4px solid var(--bronze-5); outline-offset: 3px; }

/* ---------------------------------------------------------------- the world behind everything */

#sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  filter: blur(3px);
  opacity: .72;
  pointer-events: none;
}

main { position: relative; z-index: 2; }

/* ---------------------------------------------------------------- the rail: the figure you are in */

#rail {
  position: fixed;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: calc(var(--rail) - 40px);
}

#rail ol { list-style: none; margin: 0; padding: 0; }

#rail li + li { margin-top: 18px; }

#rail a {
  display: grid;
  grid-template-columns: 64px 40px 1fr;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ash);
  padding: 8px 8px;
  white-space: nowrap;
}

#rail .bar {
  display: block;
  height: 12px;
  background:
    linear-gradient(var(--bronze-1), var(--bronze-1)) left / 25px 100% no-repeat,
    linear-gradient(var(--bronze-1), var(--bronze-1)) right / 25px 100% no-repeat;
  background-color: transparent;
}

#rail a.passed .bar, #rail a.here .bar {
  background: var(--bronze-3);
}

#rail a.here .bar { background: var(--bronze-5); box-shadow: 0 0 0 4px rgba(240, 104, 24, .28); }

#rail a.here { color: var(--cream); }

#rail em { font-style: normal; color: var(--bronze-2); }

#rail a.here em, #rail a.passed em { color: var(--bronze-4); }

#rail a:hover { color: var(--cream); }

#rail a:hover .bar { background: var(--bronze-4); }

/* the one line the brief asks for on every screen: the rail is on every screen, so it lives here */
.rail-note {
  margin: 28px 0 0;
  padding: 0 8px;
  font-size: 22px;
  line-height: 1.5;
  color: var(--bronze-2);
  max-width: 24ch;
}

#rail .rail-key { display: none; }

/* ---------------------------------------------------------------- screens */

.screen {
  position: relative;
  min-height: 100vh;
  padding: var(--screen-gap) var(--gutter) var(--screen-gap) calc(var(--rail) + var(--gutter));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.corner {
  position: absolute;
  top: 44px;
  right: 44px;
  width: 132px;
  height: auto;
  opacity: .85;
}

.screen-head { margin: 0 0 40px; }

.title {
  font-family: Pixeloid, monospace;
  font-weight: 700;
  font-size: 54px;
  line-height: 1.15;
  margin: 0;
  color: var(--bronze-5);
  text-shadow: 4px 4px 0 var(--bronze-1), 8px 8px 0 rgba(0, 0, 0, .55);
  letter-spacing: .02em;
}

.count { margin: 14px 0 0; color: var(--ash); font-size: 24px; }
.count em { font-style: normal; color: var(--bronze-4); margin-right: 12px; }

.label {
  margin: 0;
  font-size: 24px;
  letter-spacing: .12em;
  color: var(--bronze-4);
  text-transform: uppercase;
}

.micro { margin: 16px 0 0; color: var(--ash); font-size: 24px; max-width: 46ch; }

.mono { font-family: Ark, ui-monospace, monospace; word-break: break-all; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- 01 the altar */

.screen-altar { justify-content: flex-start; padding-top: 76px; padding-bottom: calc(var(--band) + 48px); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 62fr) minmax(0, 38fr);
  gap: 56px;
  align-items: end;
  margin-top: 24px;
}

.wordmark {
  font-family: Pixeloid, monospace;
  font-weight: 700;
  font-size: clamp(54px, 6.2vw, 126px);
  line-height: 1;
  margin: 0;
  color: var(--bronze-5);
  text-shadow:
    4px 0 var(--ink), -4px 0 var(--ink), 0 4px var(--ink), 0 -4px var(--ink),
    4px 4px var(--ink), -4px -4px var(--ink), 4px -4px var(--ink), -4px 4px var(--ink),
    16px 16px 0 var(--bronze-1);
  letter-spacing: .01em;
}

.hero-ticker {
  font-family: Pixeloid, monospace;
  font-size: clamp(32px, 3vw, 63px);
  margin: 28px 0 0;
  color: var(--ember);
  text-shadow: 3px 0 var(--ink), -3px 0 var(--ink), 0 3px var(--ink), 0 -3px var(--ink), 9px 9px 0 var(--bronze-1);
}

.hero-note { padding-bottom: 18px; }
.hero-note .micro { max-width: 40ch; }

.castbar { margin-top: 48px; max-width: 920px; }
.castbar-label { display: block; margin-bottom: 18px; }

.castbar-row { display: flex; gap: 20px; flex-wrap: wrap; }

.castbar-state { margin: 20px 0 0; color: var(--ash); font-size: 24px; }
.castbar-state.bad { color: var(--ember); }
.castbar-state.good { color: var(--bronze-5); }

.altar-band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: var(--band);
  z-index: -1;
}

/* ---------------------------------------------------------------- plates */

.window {
  border: 36px solid transparent;
  border-image: url(/img/panel.png) 36 fill / 36px / 0 stretch;
  position: relative;
  padding: 0;
  filter: drop-shadow(10px 14px 0 rgba(0, 0, 0, .5));
}

.window-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
  line-height: 1.1;
  margin: -14px -14px 24px;
  padding: 0 28px;
  border: 0 solid transparent;
  border-width: 16px 24px 12px;
  border-image: url(/img/strip.png) 16 24 12 24 fill / 16px 24px 12px 24px / 0 stretch;
}

.window-name {
  font-size: 24px;
  color: var(--night-0);
  letter-spacing: .08em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.studs { width: 60px; height: 18px; flex: none; }

.window-body { padding: 8px 10px 10px; }
.window-body > * + * { margin-top: 28px; }

.paper {
  border: 20px solid transparent;
  border-image: url(/img/paper.png) 20 fill / 20px / 0 repeat;
  color: var(--paper-ink);
  padding: 16px 20px;
}

.paper .label { color: #7a5a24; }
.paper .micro { color: #4a3a1c; }

.paper-text { font-family: Basteleur, Georgia, serif; font-size: 30px; line-height: 1.5; overflow-wrap: anywhere; }
.paper-text .judgment { margin: 0; font-weight: 700; }
.paper-text .image { margin: 18px 0 0; font-weight: 400; }

/* keys */

.key {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 60px;
  padding: 0 18px;
  border: 24px solid transparent;
  border-image: url(/img/key.png) 24 fill / 24px / 0 stretch;
  background: none;
  color: var(--cream);
  font: inherit;
  font-size: 24px;
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, .6);
}

.key:hover { border-image-source: url(/img/key.png); filter: brightness(1.12); }
.key:active, .key.is-down { border-image-source: url(/img/key-down.png); filter: none; }
.key[disabled], .key[aria-disabled="true"] { filter: grayscale(.55) brightness(.62); cursor: not-allowed; color: var(--ash); }
.key img { width: 28px; height: 28px; flex: none; image-rendering: auto; }
.key-big { min-height: 76px; font-size: 30px; padding: 0 26px; }
.key-small { min-height: 52px; font-size: 22px; padding: 0 10px; border-width: 20px; border-image-slice: 20; border-image-width: 20px; }

.keys { display: flex; flex-wrap: wrap; gap: 18px; }

/* fields */

.field {
  border: 24px solid transparent;
  border-image: url(/img/field.png) 24 fill / 24px / 0 stretch;
  color: var(--cream);
  font: inherit;
  font-size: 24px;
  padding: 10px 14px;
  min-height: 76px;
  display: flex;
  align-items: center;
}

input.field {
  flex: 1 1 420px;
  min-width: 0;
  display: block;
  line-height: 52px;
}

input.field::placeholder { color: #5a5a72; }
input.field:focus { outline: none; box-shadow: inset 0 0 0 4px var(--bronze-3); }

.ca-field { min-height: 92px; }
.ca { font-size: 24px; color: var(--bronze-5); }
.ca.empty { color: var(--ash); }

/* ---------------------------------------------------------------- 02 the reading */

.reading-grid {
  display: grid;
  grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
  gap: 48px;
  align-items: start;
}

.reading-side { display: flex; flex-direction: column; gap: 48px; }

.figure-row { display: flex; gap: 36px; align-items: flex-start; flex-wrap: wrap; }
.figure-row canvas { width: 320px; height: 400px; flex: none; }

.figure-facts { flex: 1 1 260px; min-width: 0; }
.figure-n { font-family: Pixeloid, monospace; font-size: 63px; margin: 0; color: var(--bronze-5); text-shadow: 4px 4px 0 var(--bronze-1); }
.figure-cn { font-size: 60px; margin: 10px 0 0; color: var(--ember); line-height: 1.1; }
.figure-name { font-size: 24px; margin: 14px 0 0; color: var(--cream); }
.figure-tri { font-size: 24px; margin: 10px 0 0; color: var(--ash); }

.sage { display: grid; grid-template-columns: 72px 1fr; gap: 22px; align-items: start; }
.sage .seal { width: 72px; height: 72px; }
.sage-text { margin: 0; font-size: 24px; color: var(--cream); grid-column: 2; }
.sage-source { margin: 10px 0 0; font-size: 24px; color: var(--ash); grid-column: 2; }

.lines { list-style: none; margin: 0; padding: 0; }
.lines li {
  display: grid;
  grid-template-columns: 52px 1fr auto auto;
  gap: 20px;
  align-items: center;
  padding: 14px 0;
  border-top: 2px solid var(--bronze-1);
  font-size: 24px;
}
.lines li:first-child { border-top: 0; }
.lines .ln { color: var(--bronze-4); }
.lines .sym { color: var(--cream); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lines .pnl.up { color: var(--bronze-5); }
.lines .pnl.down { color: var(--ember); }
.lines .old { color: var(--red); font-size: 22px; }

/* the scroll of sixty four */

.scroll-sheet { padding: 24px 26px 28px; }
.scroll-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.scroll-count { margin: 0; color: #7a5a24; font-size: 24px; }
.scroll-note { margin: 22px 0 0; color: #4a3a1c; font-size: 24px; }

.grid64 { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; margin-top: 22px; }

.cell {
  position: relative;
  aspect-ratio: 1 / 1;
  display: block;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}

.cell .g {
  position: absolute;
  inset: 0;
  background-image: url(/img/glyphs-ink.png);
  background-size: 800% 800%;
  background-repeat: no-repeat;
}

.grid64-ink .cell { background: rgba(42, 28, 12, .07); box-shadow: inset 0 0 0 2px rgba(122, 90, 36, .28); }
.grid64-ink .cell .g { opacity: 0; }
.grid64-ink .cell.open .g { opacity: 1; }
.grid64-ink .cell.open { background: rgba(216, 24, 24, .07); box-shadow: inset 0 0 0 2px rgba(122, 90, 36, .6); }

.grid64-book { grid-template-columns: repeat(8, 1fr); gap: 12px; }
.grid64-book .cell {
  aspect-ratio: 1 / 1.24;
  background: var(--night-0);
  box-shadow: inset 0 0 0 3px var(--bronze-1);
}
.grid64-book .cell .g { background-image: url(/img/glyphs.png); inset: 14px 10px 46px; background-size: 800% 800%; }
.grid64-book .cell:hover { box-shadow: inset 0 0 0 3px var(--bronze-4); background: #141028; }
.grid64-book .cell .n {
  position: absolute;
  left: 0; right: 0; bottom: 12px;
  font-size: 22px;
  line-height: 1.1;
  color: var(--bronze-4);
  text-align: center;
}
.grid64-book .cell .c { position: absolute; top: 10px; right: 12px; font-size: 22px; line-height: 1.1; color: var(--bronze-2); }

.rarest { margin: 34px 0 0; color: var(--ash); font-size: 24px; }

/* the way, when it has been bought */

.way-window { margin-top: 48px; }
.grid10 { display: grid; grid-template-columns: repeat(10, 1fr); gap: 12px; }
.grid10 .cell { background: var(--night-0); box-shadow: inset 0 0 0 3px var(--bronze-1); aspect-ratio: 1 / 1.24; }
.grid10 .cell .g { background-image: url(/img/glyphs.png); inset: 12px 8px 40px; background-size: 800% 800%; }
.grid10 .cell .n { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: 22px; line-height: 1.1; color: var(--bronze-4); }

.offer-state { margin: 0; color: var(--ash); font-size: 24px; }
.offer-state.bad { color: var(--ember); }
.offer-state.good { color: var(--bronze-5); }
.label-ca { margin-top: 34px; }

/* ---------------------------------------------------------------- 03 today */

.today-grid { display: grid; grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); gap: 56px; align-items: start; }
.window-today .window-body { text-align: center; }
.window-today canvas { width: 360px; height: 440px; max-width: 100%; }
.window-today .figure-n { font-size: 63px; }
.window-today .figure-cn { font-size: 72px; }

.today-side .micro { max-width: 52ch; }

.coins { list-style: none; margin: 32px 0 0; padding: 0; }
.coins li {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 14px 0;
  border-top: 2px solid var(--bronze-1);
  font-size: 24px;
}
.coins li:first-child { border-top: 0; }
.coins li.message, .feed li.message { grid-template-columns: minmax(0, 1fr); color: var(--ash); padding: 20px 28px; }
.coins .mark { height: 14px; background: var(--bronze-1); }
.coins .mark.yang { background: var(--bronze-5); }
.coins .mark.yin {
  background:
    linear-gradient(var(--bronze-5), var(--bronze-5)) left / 30px 100% no-repeat,
    linear-gradient(var(--bronze-5), var(--bronze-5)) right / 30px 100% no-repeat;
  background-color: transparent;
}
.coins .chg.up { color: var(--bronze-5); }
.coins .chg.down { color: var(--ember); }

.proof-field { display: block; margin-top: 36px; min-height: 0; padding: 20px 24px 24px; }
.proof { margin: 12px 0 18px; font-size: 22px; color: var(--bronze-5); }

/* ---------------------------------------------------------------- 04 the way */

.screen-way { padding-bottom: calc(var(--band) + 48px); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; align-items: end; margin-top: 24px; }
/* a grid item will not shrink below its content unless it is told it may */
.steps > *, .reading-grid > *, .today-grid > *, .reading-side > *, .numerals > *, .figure-row > * { min-width: 0; }
.step-card .micro, .micro, .sage-text, .feed .what { overflow-wrap: anywhere; }
.step-a { padding-bottom: 0; }
.step-b { padding-bottom: 72px; }
.step-c { padding-bottom: 24px; }
.step-d { padding-bottom: 104px; }

.step-card { padding: 26px 26px 30px; }
.step-n { font-family: Pixeloid, monospace; font-size: 45px; margin: 0; color: #b23c10; }
.step-title { font-size: 24px; margin: 14px 0 0; color: var(--paper-ink); letter-spacing: .06em; text-transform: uppercase; line-height: 1.3; }
.step-card .micro { color: #4a3a1c; max-width: none; }

/* ---------------------------------------------------------------- 05 the censer */

.incense-rows { display: flex; flex-direction: column; gap: 16px; margin-bottom: 44px; }
.incense-row { display: grid; grid-template-columns: 220px 1fr auto; gap: 24px; align-items: center; font-size: 24px; color: var(--ash); }
.incense-dots { display: flex; gap: 8px; flex-wrap: wrap; }
.incense-dots i { width: 14px; height: 14px; background: var(--bronze-3); display: block; }
.incense-dots i.cold { background: var(--bronze-1); }

.numerals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.numeral .big {
  font-family: Pixeloid, monospace;
  font-size: 54px;
  margin: 0;
  color: var(--bronze-5);
  text-shadow: 4px 4px 0 var(--bronze-1);
  overflow-wrap: anywhere;
}
.numeral .label { margin-top: 10px; }

.feed { list-style: none; margin: 0; padding: 0; }
.feed li {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 16px 0;
  border-top: 2px solid var(--bronze-1);
  font-size: 24px;
}
.feed .when { color: var(--ash); }
.feed .what { color: var(--cream); overflow-wrap: anywhere; }
.feed a { color: var(--bronze-4); }

/* ---------------------------------------------------------------- the figure sheet */

.sheet {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(3, 5, 18, .84);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  overflow-y: auto;
}
.window-sheet { max-width: 880px; width: 100%; background: var(--night-1); }
.window-close { min-height: 48px; }

/* ---------------------------------------------------------------- widths */

@media (max-width: 1500px) {
  :root { --gutter: 44px; }
  .reading-grid { grid-template-columns: minmax(0, 1fr); }
  .today-grid { grid-template-columns: minmax(0, 1fr); }
  .reading-side { flex-direction: row; flex-wrap: wrap; }
  .reading-side > * { flex: 1 1 440px; }
}

@media (max-width: 1400px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
  .hero-note .micro { max-width: 60ch; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step-b, .step-c, .step-d { padding-bottom: 0; }
}

@media (max-width: 1100px) {
  :root { --gutter: 40px; --screen-gap: 88px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .numerals { grid-template-columns: repeat(2, 1fr); }
  .grid64-book { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 900px) {
  :root { --rail: 0px; --gutter: 28px; --screen-gap: 72px; }

  /* on a phone the rail is a drawer at the head of the page, not a bar fixed over the bottom of it:
     a fixed dock sat exactly on top of the one thing the first screen asks you to do */
  #rail {
    position: relative;
    inset: auto;
    transform: none;
    width: auto;
    padding: 28px var(--gutter) 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  #rail ol { order: 1; margin-top: 14px; }
  .rail-note { order: 2; margin: 16px 0 0; max-width: none; font-size: 22px; }
  #rail .rail-key { display: inline-flex; width: 100%; }
  #rail ol {
    display: none;
    background: var(--night-0);
    box-shadow: inset 0 0 0 4px var(--bronze-2);
    padding: 18px 16px;
    margin-bottom: 14px;
  }
  #rail.open ol { display: block; }
  #rail ol { margin-bottom: 0; }
  #rail a { grid-template-columns: 62px 44px 1fr; }
  #rail .bar { background-size: 24px 100%, 24px 100%; }

  /* on a phone the name is followed by the one thing the page asks for, and the rule reads under it */
  /* the rail takes the top of the first screen on a phone, so the three coins step into the flow
     above the name instead of landing on it */
  .screen-altar .corner { position: static; align-self: flex-end; order: 0; margin: 0 0 10px; }
  .screen-altar .hero { display: contents; }
  .screen-altar .hero-mark { order: 1; }
  .screen-altar .castbar { order: 2; margin-top: 36px; }
  .screen-altar .hero-note { order: 3; margin-top: 36px; padding-bottom: 0; }
  .screen-altar .altar-band { order: 4; }

  .screen { padding-left: var(--gutter); padding-bottom: 72px; }
  .screen-altar { padding-top: 40px; padding-bottom: calc(var(--band) + 40px); }
  .screen-way { padding-bottom: calc(var(--band) + 40px); }
  .corner { top: 24px; right: 24px; width: 96px; }
  .altar-band { height: clamp(220px, 28vh, 320px); }
  .figure-row canvas { width: 260px; height: 330px; }
  .grid64, .grid64-book { grid-template-columns: repeat(4, 1fr); }
  .grid10 { grid-template-columns: repeat(5, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .numerals { grid-template-columns: minmax(0, 1fr); }
  .lines li { grid-template-columns: 44px 1fr auto; }
  .lines .old { grid-column: 2 / -1; }
  .feed li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .incense-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .coins li { grid-template-columns: 60px 1fr auto; }
  .window { border-width: 28px; border-image-width: 28px; border-image-slice: 36; }
  .window-strip { margin: -10px -10px 20px; }
}

@media (max-width: 480px) {
  body { font-size: 22px; }
  .window { border-width: 20px; border-image-width: 20px; }
  .window-strip { margin: -8px -8px 18px; padding: 0 20px; }
  .keys { gap: 14px; }
  .keys .key { flex: 1 1 100%; justify-content: flex-start; }
  .castbar-row .key-big { flex: 1 1 100%; }
  .label, .micro, .count, .mono, .key, .field { font-size: 22px; }
  .title { font-size: min(36px, 9.5vw); }
  .wordmark { font-size: min(54px, 12.4vw); text-shadow: 3px 0 var(--ink), -3px 0 var(--ink), 0 3px var(--ink), 0 -3px var(--ink), 3px 3px var(--ink), -3px -3px var(--ink), 3px -3px var(--ink), -3px 3px var(--ink), 9px 9px 0 var(--bronze-1); }
  .hero-ticker { font-size: min(36px, 9vw); }
  .figure-n, .numeral .big { font-size: 36px; }
  .window-body { padding: 10px 18px 12px; }
  .figure-cn { font-size: 45px; }
  .window-today .figure-cn { font-size: 45px; }
  .step-n { font-size: 36px; }
  .figure-row canvas { width: 100%; height: auto; aspect-ratio: 320 / 400; }
  .grid64, .grid64-book, .grid10 { grid-template-columns: repeat(4, 1fr); }
}

/* at 320 a four column book leaves the numbers pressed against their cell: three fit properly */
@media (max-width: 400px) {
  .grid64, .grid64-book, .grid10 { grid-template-columns: repeat(3, 1fr); }
  .paper-text { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
