/* Hale's website. The stage, inks and door colours are filled in from brand/palette.json by build.py.
   Supporting colours are copied from the app's tokens, so site and app read as one thing. */
[hidden] { display: none !important; }
:root {
  --stage: #090B14; --ink: #0E1222; --light-ink: #F3F5FF; --door-light: #FFD166; --door-gold: #B98100;
  --bg: #F2F4FA; --surface: #FFFFFF; --surface-2: #EAEEF8; --border: #DCE1EE; --border-strong: #7E889A;
  --text: var(--ink); --text-dim: #4C5470; --accent: var(--ink); --accent-hover: #262C44; --on-accent: #FFFFFF;
  --link: #3048B8; --ring: #A87500;
  --warning: #8A4A00; --warning-soft: #FFF0D6; --success: #0F6E3D; --success-soft: #DFF5E8;
  --shadow: 0 22px 44px -26px rgba(14, 18, 34, .40);
  --glow-a: rgba(90, 50, 180, .08); --glow-b: rgba(10, 95, 88, .07);
  --f0: #FCE4EC; --c0: #A11F50; --f1: #EEE8FF; --c1: #5A32B4; --f2: #DDF4F1; --c2: #0A5F58;
  --f3: #E4ECFF; --c3: #2B4BA8; --f4: #FBF0D0; --c4: #6B5200;
  --edge: clamp(16px, 4vw, 56px);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --radius: 10px; --radius-lg: 20px; --pill: 999px;
  --wrap: 1600px;
  color-scheme: light;
}
html[data-theme="dark"], .on-world, .bar {
  --bg: var(--stage); --surface: #151A2C; --surface-2: #1F2540; --border: rgba(255, 255, 255, .09); --border-strong: #5E6888;
  --text: var(--light-ink); --text-dim: #AEB6D4; --accent: var(--light-ink); --accent-hover: #FFFFFF; --on-accent: #0A1030;
  --link: #8FA6FF; --ring: var(--door-light);
  --warning: #FFB54D; --warning-soft: #34240C; --success: #5FD99A; --success-soft: #0F2E1E;
  --shadow: 0 22px 50px -24px rgba(0, 0, 0, .85);
  --glow-a: rgba(143, 120, 255, .10); --glow-b: rgba(80, 200, 190, .06);
  --f0: #3A1626; --c0: #FF8FAB; --f1: #2A2150; --c1: #C4AEFF; --f2: #0F3230; --c2: #7CE3D6;
  --f3: #1B2A52; --c3: #9DB7FF; --f4: #34290C; --c4: #F0CF7A;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; color: var(--text); font: 17px/1.55 var(--font); background: var(--stage); }
img, svg, video, iframe { max-width: 100%; }
a { color: var(--link); text-underline-offset: 2px; }
:focus-visible { outline: 2.5px solid var(--ring); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); color: var(--text); padding: 10px 16px; border-radius: var(--radius); z-index: 50; }
.skip:focus { left: 8px; }
.wrap, .bar-in, .console { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--edge); }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -.022em; font-weight: 800; }
h1 { font-size: clamp(34px, 5.4vw, 60px); letter-spacing: -.035em; }
h2 { font-size: clamp(25px, 3.2vw, 36px); }
h3 { font-size: 19px; letter-spacing: -.012em; font-weight: 700; line-height: 1.25; }
p { margin: 0 0 14px; }
.dim { color: var(--text-dim); }
.lede { font-size: clamp(18px, 2.1vw, 22px); line-height: 1.45; color: var(--text-dim); max-width: 44em; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text-dim); margin: 0 0 10px; }

/* The top bar: the stage in both themes, as the brand asks for colour on dark. The world shows faintly through. */
.bar { position: sticky; top: 0; z-index: 20; color: var(--light-ink); background: rgba(9, 11, 20, .62); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.bar-in { display: flex; align-items: center; gap: 22px; min-height: 68px; }
.bar a { color: inherit; text-decoration: none; }
.logo { display: block; flex: none; padding: 8px 0; }
.logo img { display: block; width: 124px; height: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { padding: 8px 12px; font-size: 15px; font-weight: 600; opacity: .84; border-bottom: 2px solid transparent; }
.nav a:hover { opacity: 1; }
.nav a[aria-current] { opacity: 1; border-bottom-color: var(--door-light); }
.bar :focus-visible { outline-color: var(--door-light); }
.round { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); background: transparent; color: inherit; cursor: pointer; display: grid; place-items: center; }
.round svg { width: 18px; height: 18px; }
.round + .round { margin-left: -12px; }
@media (max-width: 960px) { .round + .round { margin-left: 0; } }
.round .ic-play { display: none; }
.round[aria-pressed="true"] .ic-play { display: block; }
.round[aria-pressed="true"] .ic-pause { display: none; }
/* The pause button's slot stays when there's nothing to pause (a still page, reduced motion, before the script runs), so the links never move. */
.round-slot, [data-motion-toggle][hidden] { display: grid !important; visibility: hidden; }
.menu { display: none; margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; min-height: 44px; padding: 10px 14px; font-weight: 600; font-size: 15px; border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--pill); }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--stage); padding: 8px var(--edge) 20px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.menu nav a { display: block; padding: 12px 0; font-size: 17px; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.menu nav a[aria-current] { color: var(--door-light); }
/* Six links need about 920px with a scrollbar, so the Menu takes over below 960. */
@media (max-width: 960px) { .nav { display: none; } .menu { display: block; } .bar-in { gap: 10px; min-height: 60px; } }

/* Sections and hero */
.section { padding-block: clamp(40px, 7vw, 76px); }
.section + .section { padding-top: 0; }
.head { max-width: 46em; margin-bottom: 28px; }
.head h2 + p { margin-top: 10px; }

/* The world: full-bleed, behind everything. The art fades to the stage at its edges, so the page and it are one. */
.stage { position: fixed; top: 0; left: 0; right: 0; height: 100lvh; z-index: 0; overflow: hidden; background: var(--stage); }
.stage::after { content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: linear-gradient(90deg, rgba(9, 11, 20, .70), rgba(9, 11, 20, .30) 42%, rgba(9, 11, 20, 0) 62%); }
.world { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.world.on { opacity: 1; }
.world img, .world video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 70% 50%; display: block; }
.world video { opacity: 0; transition: opacity .9s ease; }
.world video.on { opacity: 1; }
@media (max-aspect-ratio: 1/1) {
  .stage::after { background: linear-gradient(0deg, rgba(9, 11, 20, .78), rgba(9, 11, 20, .34) 46%, rgba(9, 11, 20, 0) 60%); }
  /* The phone stills are framed taller than the loops, the same scene with more above and below. Both sit in a 9:16 box, centred, so they line up. */
  .stage:not(.stage-still) .world img, .stage:not(.stage-still) .world video { right: auto; bottom: auto; height: auto; aspect-ratio: 9 / 16; object-position: 50% 50%; }
}
/* On a phone the scene sits small and high, so the door stays clear of the words. Its edges fade to the stage, so no seam shows. */
@media (max-aspect-ratio: 3/5) {
  .stage:not(.stage-still) .world img, .stage:not(.stage-still) .world video { left: 6%; width: 88%; }
}
/* A phone's reading page keeps its world to a band at the top, in the wide still; there's reading to get to. */
@media (max-aspect-ratio: 1/1) {
  .stage-still { top: 46px; height: min(72vw, 420px); }
  .stage-still::after { background: linear-gradient(0deg, var(--stage), rgba(9, 11, 20, 0) 40%); }
  .stage-still .world img { object-position: 78% 50%; }
}
main, .foot { position: relative; z-index: 1; }

/* Text on a world uses the dark tokens, whichever theme the reading is in. */
.on-world { color: var(--text); }
.on-world .btn-g { background: rgba(255, 255, 255, .07); }

/* The console: a row of tiles, and below it what the tile you're on has to say. */
.console { min-height: calc(100svh - 68px - 48px); display: flex; flex-direction: column; padding-block: 8px 44px; }
.tiles { display: flex; align-items: center; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 12px 8px; margin-inline: -8px; }
.tiles::-webkit-scrollbar { display: none; }
.tile { flex: none; display: flex; align-items: center; color: inherit; text-decoration: none; border-radius: 20px; }
.tile:focus-visible { outline: none; }
.tile img { display: block; width: 84px; height: 84px; border-radius: 20px; object-fit: cover; opacity: .82; outline: 1px solid rgba(255, 255, 255, .14); outline-offset: -1px;
  box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .9); transition: width .24s cubic-bezier(.2, .8, .2, 1), height .24s cubic-bezier(.2, .8, .2, 1), opacity .2s ease, border-radius .24s ease; }
.tile:hover img { opacity: 1; }
.tile span { font-size: 21px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; max-width: 0; overflow: hidden; opacity: 0; transition: max-width .24s cubic-bezier(.2, .8, .2, 1), opacity .2s ease, margin .24s ease; }
/* Gold is "you are here". */
.tile.is-on img { width: 118px; height: 118px; border-radius: 26px; opacity: 1; outline: 3px solid var(--door-light); outline-offset: 4px; }
.tile.is-on span { max-width: 280px; opacity: 1; margin: 0 14px 0 18px; }
.tile:focus-visible img { outline: 3px solid var(--door-light); outline-offset: 4px; opacity: 1; }
.panels { margin-top: auto; width: min(max(46%, 440px), 640px); padding-top: 28px; }
.panel { animation: panel-in .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } }
.panel-big { font-size: clamp(34px, 4.5vw, 62px); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; }
.panel-line { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.45; color: var(--text-dim); margin: 14px 0 22px; }
.console .crumb { margin: 0 0 8px; }
.console-page .panel-line:last-child { margin-bottom: 0; }
.console-hint { margin: 18px 0 0; font-size: 14px; color: var(--text-dim); }
.console-hint button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
kbd { font: 600 12px/1 var(--font); padding: 3px 6px; border: 1px solid var(--border-strong); border-radius: 6px; }
@media (hover: none) { .keys-only { display: none; } }
@media (max-aspect-ratio: 1/1) {
  .console { min-height: calc(100svh - 60px - 14px); padding-bottom: 10px; }
  .panels { width: 100%; }
  .panel:not([data-panel="home"]) .btn-g { display: none; }
  .tiles { order: 3; margin-top: 14px; gap: 10px; scroll-snap-type: x proximity; padding-block: 10px; }
  .tile { position: relative; scroll-snap-align: center; }
  .tile img { width: 62px; height: 62px; border-radius: 16px; }
  .tile.is-on img { width: 78px; height: 78px; border-radius: 20px; }
  .tile.is-on { margin-inline: 6px; }
  .tile span, .tile.is-on span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: 0; }
  .panel-big { font-size: clamp(32px, 8.6vw, 44px); }
  .panel-line { font-size: 17px; margin: 10px 0 18px; }
  .console-hint { display: none; }
}

/* The sheet: everything to read, raised over the world like the app's Control Center. */
.sheet { position: relative; background: var(--bg); color: var(--text); border-radius: 28px 28px 0 0; padding-block: clamp(28px, 4vw, 44px) 12px; box-shadow: 0 -24px 60px -30px rgba(0, 0, 0, .8); }
html[data-theme="dark"] .sheet { background: rgba(9, 11, 20, .92); -webkit-backdrop-filter: blur(26px); backdrop-filter: blur(26px); border-top: 1px solid rgba(255, 255, 255, .08); }
.sheet > .section:first-child { padding-top: 0; }
.reading-head { min-height: calc(58vh - 68px); display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 34px; }
.reading-head .wrap { width: 100%; margin-inline: auto; }
.reading-head .page-head { padding-block: 24px 0; }
.reading-head .lede, .reading-head h1, .reading-head .crumb, .reading-head .tags { max-width: min(600px, 44vw); }
@media (max-aspect-ratio: 1/1) {
  .reading-head { min-height: 0; padding-top: calc(min(72vw, 420px) - 120px); }
  .reading-head .lede, .reading-head h1, .reading-head .crumb, .reading-head .tags { max-width: none; }
}

/* The intro, full-screen, as a console starts up. */
.boot { display: none; position: fixed; inset: 0; z-index: 100; background: var(--stage); transition: opacity .5s ease; }
html[data-boot] .boot { display: block; }
.boot.leaving { opacity: 0; }
.boot iframe { width: 100%; height: 100%; border: 0; display: block; background: var(--stage); }
.boot-skip { position: absolute; right: var(--edge); bottom: 28px; background: rgba(255, 255, 255, .08); color: var(--light-ink); border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--pill); min-height: 44px; padding: 8px 18px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }

/* Tiles as a library */
.tile-grid { display: grid; gap: 22px 18px; grid-template-columns: repeat(auto-fill, minmax(min(46%, 280px), 1fr)); margin-bottom: 24px; }
.big-tile { display: block; color: inherit; text-decoration: none; }
.big-tile img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 22px; margin-bottom: 12px; outline: 1px solid rgba(255, 255, 255, .12); outline-offset: -1px; transition: transform .2s ease; }
.big-tile:hover img, .big-tile:focus-visible img { transform: scale(1.02); outline: 3px solid var(--door-light); outline-offset: 3px; }
.big-tile:focus-visible { outline: none; }
.big-tile h3 { margin-bottom: 4px; }
.big-tile p { margin: 0; font-size: 15px; color: var(--text-dim); }

.page-head { padding-block: clamp(36px, 6vw, 64px) 8px; }
.page-head h1 { font-size: clamp(32px, 4.6vw, 50px); }
.page-head .lede { margin-top: 14px; }
.crumb { font-size: 14px; margin: 0 0 12px; }

/* Buttons: ink, flat */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 22px; border-radius: var(--pill); font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn-p { background: var(--accent); color: var(--on-accent); }
.btn-p:hover { background: var(--accent-hover); }
.btn-g { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* Cards and grids */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); }
a.card { display: block; color: inherit; text-decoration: none; transition: transform .16s ease, border-color .16s ease; }
a.card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.card h3 { margin-bottom: 6px; }
.card p { margin: 0; color: var(--text-dim); font-size: 16px; }
.problems { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.problems h3 { font-size: 22px; margin-bottom: 8px; }
.problems p { color: var(--text-dim); margin: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 0 0 16px; }
.ticks li { position: relative; padding: 0 0 10px 28px; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: .42em; width: 11px; height: 6px; border-left: 2.5px solid var(--success); border-bottom: 2.5px solid var(--success); transform: rotate(-45deg); }
.note, .caution { border-radius: var(--radius); padding: 14px 16px; margin: 0 0 18px; font-size: 16px; overflow-wrap: anywhere; }
.note { background: var(--surface-2); }
.caution { background: var(--warning-soft); color: var(--text); border-left: 3px solid var(--warning); }
.note b, .caution b { display: block; margin-bottom: 2px; }
.later { margin-top: 18px; }
.later ul { margin: 6px 0 0; padding-left: 20px; }
.later li { margin-bottom: 6px; }
.tag { display: inline-block; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: var(--pill); background: var(--surface-2); color: var(--text-dim); white-space: nowrap; }
.tag-first { background: var(--success-soft); color: var(--success); }
.tag-w { background: var(--warning-soft); color: var(--warning); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* How-to home */
.tools { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.search { width: 100%; max-width: 520px; min-height: 48px; font: inherit; padding: 10px 16px; border-radius: var(--pill); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* Get started's download: the password field and its button on one line where they fit */
.dl label { display: block; font-weight: 600; margin: 0 0 8px; }
.dl .btns { align-items: center; }
.dl .search { max-width: 300px; flex: 1 1 220px; }
.dl [data-download-msg] { margin: 12px 0 0; }
.dl .warn { color: var(--warning); font-weight: 600; }
.chip { font: inherit; font-size: 15px; font-weight: 600; min-height: 40px; padding: 6px 14px; border-radius: var(--pill); border: 1px solid var(--border-strong); background: transparent; color: var(--text); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); margin-bottom: 34px; }
.item { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; color: inherit; text-decoration: none; }
.item:hover { border-color: var(--border-strong); }
.item b { font-weight: 700; line-height: 1.3; }
.item span.meta { font-size: 14px; color: var(--text-dim); margin-top: 4px; }
.group-h { margin: 8px 0 12px; font-size: 21px; }
.empty { padding: 20px 0; color: var(--text-dim); }
.pages { columns: 3 220px; column-gap: 28px; padding: 0; list-style: none; margin: 0; }
.pages li { break-inside: avoid; padding-bottom: 12px; }
.pages b { display: block; }
.pages a { display: block; font-size: 15px; padding: 2px 0; }

/* How-to page */
.howto { display: grid; grid-template-columns: minmax(0, 880px) 320px; gap: clamp(24px, 4vw, 56px); align-items: start; justify-content: space-between; }
@media (max-width: 900px) { .howto { grid-template-columns: minmax(0, 1fr); } .howto .ctl { white-space: normal; -webkit-box-decoration-break: clone; box-decoration-break: clone; } }
.video-soon { background: var(--surface); border: 1px solid var(--border); color: var(--text-dim); border-radius: var(--radius-lg); aspect-ratio: 16 / 9; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 20px; margin-bottom: 26px; }
.video-soon img { width: 56px; height: 56px; }
.video-soon p { margin: 0; font-size: 15px; max-width: 26em; }
video { width: 100%; border-radius: var(--radius-lg); background: var(--stage); display: block; margin-bottom: 8px; }
.steps { padding: 0; margin: 0 0 24px; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 16px 44px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); font-weight: 700; font-size: 15px; display: grid; place-items: center; }
.ctl { font-weight: 700; background: var(--surface-2); padding: 1px 7px; border-radius: 6px; white-space: nowrap; font-size: .95em; }
.side { display: flex; flex-direction: column; gap: 14px; }
.side .card { padding: 18px; box-shadow: none; }
.side h3 { font-size: 15px; margin-bottom: 8px; }
.side p, .side li { font-size: 15px; }
.side ul { list-style: none; padding: 0; margin: 0; }
.side li { padding-bottom: 8px; }
.side dt { font-weight: 700; font-size: 15px; }
.side dd { margin: 0 0 10px; font-size: 15px; color: var(--text-dim); }
.side dl { margin: 0; }
.route { font-family: var(--mono); font-size: 14px; }

/* Tables that become stacks on a phone */
.table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table th, .table td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--border); }
.table th { font-size: 14px; color: var(--text-dim); font-weight: 600; }
@media (max-width: 640px) {
  .table thead { display: none; }
  .table tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .table td { display: block; border: 0; padding: 2px 0; }
  .table td:first-child { font-weight: 700; }
  .table td[data-l]::before { content: attr(data-l) ": "; color: var(--text-dim); }
  .table td:empty { display: none; }
}

/* Roles */
.role { scroll-margin-top: 88px; }
.role h3 { font-size: 22px; }
.role .line { color: var(--text-dim); margin: 6px 0 14px; }
.role dl { margin: 0 0 14px; font-size: 16px; }
.role dt { font-weight: 700; margin-top: 8px; }
.role dd { margin: 0; color: var(--text-dim); }

/* Numbered path */
.path { list-style: none; padding: 0; margin: 0; counter-reset: p; display: grid; gap: 12px; }
.path li { counter-increment: p; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px 16px 60px; position: relative; }
.path li::before { content: counter(p); position: absolute; left: 18px; top: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; display: grid; place-items: center; font-size: 15px; }
.path b { display: block; }
.path p { margin: 2px 0 0; color: var(--text-dim); font-size: 16px; }

/* Words */
.words { columns: 2 340px; column-gap: 36px; }
.words dl { margin: 0; }
.words dt { font-weight: 700; margin-top: 14px; break-after: avoid; }
.words dd { margin: 2px 0 0; color: var(--text-dim); font-size: 16px; break-inside: avoid; }

/* Report template */
.template { font-family: var(--mono); font-size: 14px; line-height: 1.6; background: var(--surface-2); border-radius: var(--radius); padding: 16px; white-space: pre-wrap; margin: 0 0 12px; }

/* Footer: the stage, with the lockup and tagline */
.foot { background: var(--stage); color: #C9CFE6; padding-block: 40px; font-size: 15px; border-top: 1px solid rgba(255, 255, 255, .08); }
.foot-in { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: center; }
.foot img { display: block; width: 240px; height: auto; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { color: inherit; }
.foot :focus-visible { outline-color: var(--door-light); }

/* Drawings of Hale's screens */
figure.shot { margin: 0; }
figure.shot figcaption { font-size: 14px; color: var(--text-dim); margin-top: 10px; }
figure.shot img { display: block; width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.il { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow); font-size: 15px; }
.il p { margin: 0; }
.il-dim { color: var(--text-dim); font-size: 14px; }
.il-kicker { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 6px !important; }
.il-title { font-size: 21px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 12px !important; }
.il-big { font-size: clamp(24px, 3vw, 32px); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; margin: 2px 0 8px !important; }
.il-day { font-size: 14px; margin-bottom: 14px !important; }
.il-day span { color: var(--text-dim); }
.il-btn { display: inline-block; margin-top: 14px; background: var(--accent); color: var(--on-accent); font-weight: 700; padding: 9px 18px; border-radius: var(--pill); font-size: 15px; }
.il-chip { display: inline-block; border: 1px solid var(--border-strong); border-radius: var(--pill); padding: 4px 12px; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.face { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; font-size: 12px; font-weight: 700; }
.face.t0 { background: var(--f0); color: var(--c0); } .face.t1 { background: var(--f1); color: var(--c1); }
.face.t2 { background: var(--f2); color: var(--c2); } .face.t3 { background: var(--f3); color: var(--c3); }
.face.t4 { background: var(--f4); color: var(--c4); }
.il-tiles { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.il-tile { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 6px; border-radius: 14px; background: var(--surface-2); width: 80px; }
.il-tile .face { width: 100%; height: 30px; border-radius: 7px; font-size: 10px; }
.il-tile.is-on { outline: 2.5px solid var(--ring); outline-offset: 2px; }
.il-who { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.il-who div { display: flex; flex-direction: column; }
.il-who b { font-size: 19px; letter-spacing: -.01em; }
.il-tabs { display: flex; flex-wrap: wrap; gap: 14px; border-bottom: 1px solid var(--border); margin-bottom: 14px; color: var(--text-dim); font-weight: 600; font-size: 14px; }
.il-tabs span { padding-bottom: 8px; }
.il-tabs .is-on { color: var(--text); border-bottom: 2px solid var(--accent); }
.il-time, .il-list, .il-skips, .il-barlist { list-style: none; margin: 0; padding: 0; }
.il-time li { padding: 0 0 12px 16px; border-left: 2px solid var(--border); display: flex; flex-direction: column; }
.il-time span { color: var(--text-dim); font-size: 14px; }
.il-care { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 520px) { .il-care { grid-template-columns: 1fr; } }
.il-card { background: var(--surface-2); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.il-card div { display: flex; flex-direction: column; }
.il-clock { align-self: flex-start; font-size: 13px; font-weight: 700; padding: 2px 8px; border-radius: var(--pill); background: var(--surface); color: var(--text-dim); }
.il-clock.is-warn { background: var(--warning-soft); color: var(--warning); }
.il-clock.is-ok { background: var(--success-soft); color: var(--success); }
.il-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); justify-content: flex-start; }
.il-kiosk .il-list li, .il-plan .il-list li, .il-giving .il-list li { justify-content: space-between; }
.il-tick { width: 20px; height: 20px; flex: none; border-radius: 6px; border: 1.5px solid var(--border-strong); position: relative; }
.il-tick.is-on { background: var(--accent); border-color: var(--accent); }
.il-tick.is-on::after { content: ""; position: absolute; left: 4px; top: 4px; width: 9px; height: 5px; border-left: 2px solid var(--on-accent); border-bottom: 2px solid var(--on-accent); transform: rotate(-45deg); }
.il-code { font-family: var(--mono); font-size: 44px; font-weight: 700; letter-spacing: .12em; margin-bottom: 8px !important; }
.il-bar { display: block; height: 10px; border-radius: var(--pill); background: var(--surface-2); overflow: hidden; margin-bottom: 8px; }
.il-bar i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.il-barlist li { margin-bottom: 8px; }
.il-barlist span:first-child { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.il-num { font-variant-numeric: tabular-nums; }
.il-total { display: flex; justify-content: space-between; padding-top: 10px; font-size: 17px; }
.il-count b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.il-skips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.il-skips li { background: var(--surface-2); border-radius: var(--pill); padding: 2px 10px; font-size: 13px; color: var(--text-dim); }
.il-msg { background: var(--surface-2); border-radius: 12px; padding: 12px; }
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  a.card, .world, .world video, .tile img, .tile span, .big-tile img { transition: none; }
  a.card:hover, .big-tile:hover img, .big-tile:focus-visible img { transform: none; }
  .panel { animation: none; }
}
@media print {
  :root, html[data-theme="dark"], .on-world { color-scheme: light; --bg: #fff; --surface: #fff; --surface-2: #f1f1f4; --text: #000; --text-dim: #333; --border: #ccc; --link: #000; --shadow: none; }
  body, .sheet, html[data-theme="dark"] .sheet { background: #fff; box-shadow: none; }
  .bar, .foot, .video-soon, .skip, .tools, .stage, .boot, .tiles, .console-hint { display: none; }
  .console { min-height: 0; } .reading-head { padding-top: 0; } .panels { width: 100%; }
}
