/* The pages around the map: the same paper, inks, type and stop shapes, laid out to read and scan. */
:root {
  --paper: #f1eee7; --card: #fbfaf6; --ink: #1b1a17; --ink-2: #4f4c45; --ink-3: #8d887e; --rule: #d6d1c5;
  --l-onb: #9c3d14; --l-ta: #1f5b3a; --l-talent: #1d2f6b; --l-peer: #6e1f2f; --l-audit: #4a2a63; --l-miller: #7d5a12;
  --l-engine: #145a63; --l-khaas: #33414e; --l-teach: #8e2456; --l-mon: #46601d; --l-port: #1b1a17; --l-learn: #6a4423; --l-proc: #6b2f1a; --l-build: #1f3d4d; --l-school: #24507a; --l-gmsa: #5e2a6e;
  --f-serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --soft: cubic-bezier(.2, .8, .2, 1);
  --gut: 18px;
  /* ink on paper in every theme, like the map */
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--f-body); font-variation-settings: "SOFT" 60; }
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; background-image: var(--grain); opacity: .09; mix-blend-mode: multiply; z-index: 50; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 max(var(--gut), env(safe-area-inset-left, 0px)); }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .02em; }
.lbl { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.pill { display: inline-flex; align-items: center; gap: 8px; font: 500 13px/1 var(--f-mono); background: var(--card); border: 1px solid var(--rule); border-radius: 999px; padding: 11px 15px; text-decoration: none; white-space: nowrap; }
.pill:hover { border-color: var(--ink-2); }
.pill.solid { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pill svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Stop shapes, as on the map: the shape says what kind of moment it was, the icon what it was about */
.mk { position: relative; flex: none; width: 34px; height: 34px; display: grid; place-items: center; }
.mk .sh { position: absolute; inset: 0; border: 2.2px solid var(--c); background: var(--paper); border-radius: 50%; }
.mk svg { position: relative; width: 17px; height: 17px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mk.k-ask .sh { border-style: dashed; }
.mk.k-point .sh { border-radius: 4px; transform: rotate(45deg) scale(.86); }
.mk.k-room .sh { border-radius: 8px; background: color-mix(in srgb, var(--c) 14%, var(--paper)); }
.mk.k-people .sh { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--c); }
.mk.k-wall .sh { background: var(--ink); border-color: var(--ink); }
.mk.k-wall svg { stroke: var(--paper); }
.mk.k-gap .sh { border-radius: 999px; border-style: dashed; transform: scaleX(1.25); }
.mk.k-x .sh { border: 3px solid var(--ink); }
.mk.k-end .sh { background: var(--c); }
.mk.k-end svg { stroke: var(--paper); }

/* Result figures */
.v-bar { display: grid; gap: 5px; }
.v-bar .vals { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: var(--f-serif); font-size: 22px; }
.v-bar .vals s { color: var(--ink-3); }
.v-bar .old { height: 6px; background: repeating-linear-gradient(90deg, var(--ink-3) 0 5px, transparent 5px 9px); opacity: .6; }
.v-bar .new { height: 6px; background: var(--c); width: var(--frac); }
.v-cells { display: grid; grid-template-columns: repeat(27, 1fr); gap: 2px; }
.v-cells i { height: 13px; border: 1px solid var(--c); opacity: .35; }
.v-cells i.on { background: var(--c); opacity: 1; }
.v-dots { display: flex; flex-wrap: wrap; gap: 6px; }
.v-dots i { width: 13px; height: 13px; border-radius: 50%; border: 1.6px solid var(--c); }
.v-dots i.on { background: var(--c); }
.v-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-family: var(--f-mono); font-size: 12px; }
.v-chain span { border: 1px solid var(--ink-2); padding: 2px 6px; }
.v-chain span:last-child { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.v-chain i { font-style: normal; color: var(--ink-3); }

/* A line unrolled into a strip: one mark per stop, in order */
.strip { display: block; max-width: 100%; height: auto; overflow: visible; }

.foot { padding: 56px 0 calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--rule); margin-top: 64px; display: grid; gap: 14px; }
.foot p { font-family: var(--f-serif); font-size: 22px; line-height: 1.2; }
.foot .row { display: flex; gap: 10px; flex-wrap: wrap; }

/* A window onto the map grows to fill the screen, then the map takes over from the same view */
@view-transition { navigation: auto; }
.veil { position: fixed; inset: 0; z-index: 59; background: var(--paper); opacity: 0; transition: opacity .35s; pointer-events: none; }
.veil.on { opacity: 1; }
.lift { z-index: 60 !important; }
.lift .cap, .lift .step { opacity: 0; transition: opacity .2s; }
.grow { --e: cubic-bezier(.65, 0, .25, 1); transition: top .62s var(--e), left .62s var(--e), width .62s var(--e), height .62s var(--e), border-radius .62s var(--e), border-color .3s; border-color: transparent !important; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
