/* Good Legs FM: the inner pages (circulars, sets, guides). Same desk as the wireless.
   Markup comes from tools/dress/dress.py. Motion is switched off for anyone who asks their device for less of it. */
:root {
  --rosa: #F4C4B8; --rosa-light: #F8D7CE; --rosa-dark: #DFA398; --ink: #1F1D19; --cream: #F5F0E6;
  --pink: #E8567F; --wine: #A3234A; --yellow: #F3D44F; --verde: #14452F; --blue: #9CC7E8; --brown: #8A5A36; --muted: #55534A;
  --display: 'Instrument Serif', Georgia, serif; --body: Geist, system-ui, -apple-system, sans-serif;
  --label: 'Courier Prime', 'Courier New', monospace; --px: 'Pixelify Sans', 'Courier New', monospace; --lcd: VT323, 'Courier New', monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 60px; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; color: var(--ink); font-family: var(--body); -webkit-font-smoothing: antialiased;
  background-color: var(--rosa); background-image: radial-gradient(rgba(31, 29, 25, .13) .6px, transparent .75px); background-size: 3px 3px;
  padding-bottom: calc(116px + env(safe-area-inset-bottom)); }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--wine); }
a:focus-visible, button:focus-visible, iframe:focus-visible, video:focus-visible { outline: 3px solid var(--verde); outline-offset: 2px; }
svg { display: block; }
.skip { position: absolute; left: -999px; top: 0; z-index: 99; padding: 10px 14px; background: var(--ink); color: var(--cream); font-family: var(--px); }
.skip:focus { left: 8px; top: 8px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Top of the desk */
.top { position: relative; z-index: 30; display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.top > div { display: flex; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; background: var(--cream); border: 2px solid var(--ink); border-top: 0;
  color: var(--ink); font-family: var(--px); font-weight: 600; white-space: nowrap; text-decoration: none; }
a.chip:hover { color: var(--ink); background: #fff; }
.logo { flex: none; width: 42px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; background: var(--ink); border: 2px solid var(--ink); border-top: 0; border-left: 0; }
.logo:hover rect:last-child { animation: nudge .5s var(--ease); }
.brand { border-left: 0; border-radius: 0 0 9px 0; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.mail { border-right: 0; border-radius: 0 0 0 9px; font-size: 16px; font-weight: 700; }
.date, .clock { border-left: 0; font-family: var(--lcd); font-size: 20px; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; }
.clock { border-right: 0; gap: 0; }
.clock i { font-style: normal; margin: 0 1px; animation: blink 2s steps(1) infinite; }
.date:empty, .clock:empty { display: none; }

/* The window */
.win { position: relative; z-index: 10; width: calc(100% - 20px); max-width: 740px; margin: 16px auto 0; background: var(--cream); border: 2px solid var(--ink); border-radius: 9px;
  box-shadow: 0 22px 38px rgba(31, 29, 25, .26); }
.k-guide .win { max-width: 800px; }
.tb { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; padding: 5px 7px; border-bottom: 2px solid var(--ink); border-radius: 7px 7px 0 0;
  background: var(--cream) repeating-linear-gradient(0deg, transparent 0 3px, rgba(31, 29, 25, .5) 3px 4px); overflow: hidden; }
.tb::before { content: ''; position: absolute; inset: 0; background: var(--cream) repeating-linear-gradient(0deg, transparent 0 3px, var(--pink) 3px 4px); transform-origin: 0 50%; transform: scaleX(var(--read, 0)); }
.tb > * { position: relative; }
.x { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 2px solid var(--ink); border-radius: 4px; background: var(--cream); }
.x:hover { background: var(--pink); }
.x:active { transform: scale(.92); }
.tt { margin: 0 auto; padding: 1px 12px 2px; background: var(--cream); font-family: var(--px); font-size: 17px; font-weight: 600; line-height: 1.2; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp { flex: none; width: 28px; }
.pane { margin: 10px; padding: 22px 26px 26px; background: #fff; border: 2px solid var(--ink); border-radius: 6px; }
.sb { padding: 4px 10px 5px; border-top: 2px solid var(--ink); font-family: var(--px); font-size: 13px; line-height: 1.3; display: flex; justify-content: space-between; gap: 12px; }
.sb span:last-child { flex: none; text-align: right; white-space: nowrap; }
.sb span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fine { width: calc(100% - 20px); max-width: 740px; margin: 16px auto 0; padding: 0 4px; font-family: var(--label); font-size: 12px; line-height: 1.55; color: var(--muted); }
.k-guide .fine { max-width: 800px; }

/* Type */
.label { font-family: var(--label); font-size: 12.5px; line-height: 1.4; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.label a { color: inherit; text-decoration: none; }
h1 { margin: 10px 0 12px; font-family: var(--display); font-weight: 400; font-size: clamp(36px, 7.2vw, 58px); line-height: 1; letter-spacing: -.01em; text-wrap: balance; }
h1 .w { display: inline-block; }
.dek { margin: 0 0 22px; font-family: var(--display); font-style: italic; font-size: clamp(22px, 3.6vw, 27px); line-height: 1.22; text-wrap: pretty; }
h2 { margin: 44px 0 10px; font-family: var(--display); font-weight: 400; font-size: clamp(29px, 5vw, 38px); line-height: 1.05; }
p { margin: 0 0 15px; font-size: 17.5px; line-height: 1.6; text-wrap: pretty; }
.prose > p:first-child::first-letter { float: left; margin: 7px 7px 0 0; font-family: var(--display); font-size: 60px; line-height: .76; color: var(--wine); }

/* Buttons */
.row { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; }
.btn { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 8px 18px; line-height: 1.15; text-align: left; border: 2px solid var(--ink); border-radius: 5px; background: var(--pink); color: var(--ink);
  font-family: var(--px); font-size: 18px; font-weight: 600; text-decoration: none; cursor: pointer; box-shadow: 0 3px 0 var(--ink); transition: transform .12s, box-shadow .12s, background .15s; }
.btn:hover { color: var(--ink); background: #F07A9B; transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
.btn.alt { background: var(--cream); }
.btn.alt:hover { background: #fff; }
.btn svg { flex: none; }

/* Dock */
.dock { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 60; display: flex; border: 2px solid var(--ink); border-bottom: 0; border-radius: 9px 9px 0 0; overflow: hidden;
  background: var(--cream); box-shadow: 0 -6px 18px rgba(31, 29, 25, .14); padding-bottom: env(safe-area-inset-bottom); transition: translate .32s var(--ease); }
.dock.away { translate: 0 calc(100% + 8px); }
.dk-s { display: flex; }
.dk-a { display: none; }
.dock a { flex: none; width: 82px; height: 84px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px 1px 4px; border-right: 2px solid var(--ink);
  color: var(--ink); font-family: var(--px); font-size: 14px; font-weight: 500; line-height: 1.1; text-align: center; text-decoration: none; }
.dock a:last-child { border-right: 0; }
.dock a[aria-current] { background: var(--rosa-light); }
.dock a:hover { color: var(--ink); background: #fff; }
.dock a[aria-current]:hover { background: var(--rosa-light); }
.dock a:hover svg, .dock a:focus-visible svg { animation: bounce .45s; }
/* Narrower than the full dock: it scrolls, five to a screen, with a button at each end, as on the phone wireless. */
@media (max-width: 880px) {
  .dock { left: 8px; right: 8px; transform: none; }
  .dk-a { flex: none; display: flex; align-items: center; justify-content: center; width: 26px; padding: 0; border: 0; background: var(--rosa-light); cursor: pointer; }
  .dk-s { flex: 1 1 auto; min-width: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-left: 2px solid var(--ink); border-right: 2px solid var(--ink); }
  .dk-s::-webkit-scrollbar { display: none; }
  .dock a { width: 20%; height: 74px; font-size: 11px; scroll-snap-align: start; border-right: 1px solid var(--rosa-dark); }
  .dock a svg { width: 30px; height: 30px; }
}
.sticky-note { position: fixed; left: 26px; bottom: 20px; z-index: 5; width: 218px; padding: 12px 14px; background: var(--yellow); border: 2px solid var(--ink); box-shadow: 0 8px 16px rgba(31, 29, 25, .18);
  transform: rotate(-2deg); font-family: var(--display); font-size: 20px; font-style: italic; line-height: 1.15; display: none; }
@media (min-width: 1240px) { .sticky-note { display: block; } }

/* More, lists */
.more { margin-top: 38px; padding-top: 18px; border-top: 2px dotted var(--ink); }
.more ul { list-style: none; margin: 8px 0 0; padding: 0; }
.more li { padding: 5px 0; font-size: 16.5px; }
.files { list-style: none; margin: 10px 0 0; padding: 0; counter-reset: none; }
.files li { margin: 0; padding: 0; border-bottom: 1px solid var(--rosa-dark); }
.files li:last-child { border-bottom: 0; }
.files a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 12px 6px; text-decoration: none; transition: background .18s, padding .25s var(--ease); }
.files a:hover { background: var(--rosa-light); color: var(--ink); padding-left: 12px; }
.files .n { width: 50px; padding: 4px 2px 5px; border: 2px dotted var(--ink); display: flex; flex-direction: column; align-items: center; font-family: var(--label); font-size: 11.5px; line-height: 1.15; text-transform: uppercase; }
.files .n b { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1; }
.files .t { min-width: 0; }
.files .t b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(22px, 3.6vw, 27px); line-height: 1.08; }
.files .t .label { display: block; margin-top: 5px; }
.files .go { font-family: var(--px); font-size: 20px; transition: transform .25s var(--ease); }
.files a:hover .go { transform: translateX(5px); }

/* Circular: letterhead, plate, stamp */
.lh { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 2px solid var(--ink); }
.lh .mark { flex: none; }
.lh-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-family: var(--label); font-size: 12.5px; line-height: 1.3; letter-spacing: .06em; text-transform: uppercase; }
.lh-t b { font-weight: 700; }
.lh-t i { font-style: normal; color: var(--muted); }
.no { flex: none; width: 60px; padding: 5px 2px 6px; border: 2px dotted var(--ink); display: flex; flex-direction: column; align-items: center; font-family: var(--label); font-size: 12px; line-height: 1.1; text-transform: uppercase; }
.no b { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: .95; }
.signoff { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 150px; margin: 26px 0 0; padding-top: 18px; border-top: 2px solid var(--ink); }
.signoff .label { max-width: 20em; }
.signoff .label b { display: block; margin-bottom: 4px; color: var(--ink); }
.stamp { flex: none; width: 164px; height: 164px; margin: -8px 6px -6px 0; color: var(--wine); transform: rotate(-9deg); }
.stamp svg { width: 100%; height: 100%; overflow: visible; }
.pager { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; }
.pager a { flex: 1 1 0; display: flex; flex-direction: column; gap: 3px; max-width: calc(50% - 5px); padding: 10px 12px; border: 2px solid var(--ink); border-radius: 5px; background: var(--cream); text-decoration: none; transition: background .15s, transform .2s var(--ease); }
.pager a:hover { background: var(--rosa-light); color: var(--ink); transform: translateY(-2px); }
.pager a.nx { margin-left: auto; text-align: right; }
.pager b { font-family: var(--display); font-weight: 400; font-size: 20px; line-height: 1.1; }

/* Sets: the deck */
.now { padding: 14px 16px 16px; background: var(--rosa-light); border: 2px solid var(--ink); border-radius: 6px; }
.now-k { display: flex; justify-content: space-between; gap: 10px; font-family: var(--label); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; }
.now-k span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.led { width: 9px; height: 9px; border-radius: 50%; background: var(--pink); }
html[data-mc="playing"] .led { animation: blink 2s steps(1) infinite; }
h1.px { margin: 12px 0 8px; font-family: var(--px); font-weight: 700; font-size: clamp(42px, 10.5vw, 76px); line-height: .96; letter-spacing: -.01em; }
.now .dek { margin-bottom: 16px; }
.deck { display: grid; grid-template-columns: minmax(0, 210px) 1fr; gap: 12px; align-items: stretch; margin-bottom: 12px; }
.now .player { margin-top: 2px; }
.tape { align-self: center; }
.tape svg { width: 100%; height: auto; }
.lcd { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 10px 12px 9px; background: #15130F; border-radius: 4px; box-shadow: inset 0 0 0 2px #000; font-family: var(--lcd); font-size: 21px; line-height: 1.08; color: #F5F0E6; }
.lcd .st { color: #FFFF00; }
.lcd dl { margin: 2px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; }
.lcd dt { color: #7CFF7C; text-transform: uppercase; }
.lcd dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.vu { display: flex; align-items: flex-end; gap: 3px; height: 22px; margin-top: auto; padding-top: 8px; }
.vu i { flex: 1 1 0; height: 100%; background: #7CFF7C; transform-origin: 50% 100%; transform: scaleY(.12); }
html[data-mc="playing"] .vu i { animation: vu 1s steps(5) infinite; animation-delay: calc(var(--i) * -137ms); animation-duration: calc(700ms + var(--i) * 53ms); }
.vu i:nth-last-child(-n+3) { background: #FFFF00; }
.vu i:last-child { background: var(--pink); }
/* The play control: the same one as on the wireless. Only the stream's own play button shows through; the label and bar are ours. */
.pl { display: flex; align-items: stretch; height: 56px; border: 2px solid var(--ink); border-radius: 5px; background: var(--pink); overflow: hidden; }
.pl-w { flex: none; width: 60px; overflow: hidden; background: #fff; border-right: 2px solid var(--ink); }
.pl-w iframe { display: block; width: 312px; max-width: none; height: 60px; border: 0; transform: scale(1.3); transform-origin: 0 0; margin: -13px 0 0 -90.6px; }
.pl-b { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; padding: 0 14px; border: 0; background: transparent; color: var(--ink); font-family: var(--px); font-size: 21px; font-weight: 700; text-align: left; cursor: pointer; }
.pl-b:hover { background: #F07A9B; }
.scrub { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-family: var(--label); font-size: 12.5px; line-height: 1; }
.scrub span { flex: none; min-width: 36px; }
.scrub span:last-child { text-align: right; }
[data-scrub] { -webkit-appearance: none; appearance: none; flex: 1 1 auto; min-width: 0; height: 30px; margin: 0; padding: 0; background: transparent; cursor: pointer; }
[data-scrub]::-webkit-slider-runnable-track { box-sizing: border-box; height: 14px; border: 2px solid var(--ink); border-radius: 7px; background: linear-gradient(to right, var(--pink) var(--p, 0%), #fff var(--p, 0%)); }
[data-scrub]::-moz-range-track { box-sizing: border-box; height: 14px; border: 2px solid var(--ink); border-radius: 7px; background: linear-gradient(to right, var(--pink) var(--p, 0%), #fff var(--p, 0%)); }
[data-scrub]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; box-sizing: border-box; width: 16px; height: 24px; margin-top: -7px; border: 2px solid var(--ink); border-radius: 4px; background: var(--ink); }
[data-scrub]::-moz-range-thumb { box-sizing: border-box; width: 16px; height: 24px; border: 2px solid var(--ink); border-radius: 4px; background: var(--ink); }
[data-scrub]:disabled { opacity: .4; cursor: default; }
.lcd .s-play, html[data-mc="playing"] .lcd .s-idle { display: none; }
html[data-mc="playing"] .lcd .s-play { display: inline; }

/* The telly */
.telly { max-width: 560px; margin: 24px auto 22px; padding: 14px 14px 10px; border-radius: 16px 16px 10px 10px; background: #2B2D30 linear-gradient(#3A3D41, #232527); border: 2px solid #0A0B0C; box-shadow: 0 10px 22px rgba(31, 29, 25, .28); }
.screen { position: relative; aspect-ratio: 16 / 9; border-radius: 14px / 18px; overflow: hidden; background: #000; box-shadow: 0 0 0 3px #0A0B0C, 0 0 0 5px #55585C; cursor: pointer; }
.screen video, .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: sepia(.2) contrast(1.06); }
.screen .mesh { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(0, 0, 0, .3) .7px, transparent .85px), repeating-linear-gradient(0deg, rgba(0, 0, 0, .16) 0 1px, transparent 1px 3px); background-size: 3px 3px, auto; }
.screen .track { position: absolute; left: 0; right: 0; top: 0; height: 34px; pointer-events: none; background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, .22), rgba(255, 255, 255, 0)); animation: track 6.5s linear infinite; }
.screen .glass { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(135deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 38%); box-shadow: inset 0 0 38px rgba(0, 0, 0, .55); }
.osd { position: absolute; top: 6%; padding: 2px 6px 3px; background: rgba(0, 0, 0, .5); font-family: var(--lcd); font-size: 22px; line-height: 1; letter-spacing: .04em; color: #F5F0E6; }
.osd.l { left: 5%; } .osd.r { right: 5%; color: #7CFF7C; }
.cap { position: absolute; left: 4%; right: 4%; bottom: 5%; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; pointer-events: none; font-family: var(--lcd); line-height: 1; letter-spacing: .04em; text-transform: uppercase; }
.cap span { padding: 1px 5px 2px; background: rgba(0, 0, 0, .55); font-size: 22px; color: #F5F0E6; }
.cap span + span { font-size: 17px; color: #DAD4C6; }
.breath { position: absolute; left: 0; right: 0; top: 38%; display: flex; justify-content: center; pointer-events: none; }
.breath span { font-family: var(--lcd); font-size: clamp(24px, 6vw, 40px); line-height: 1; letter-spacing: .28em; color: #F5F0E6; text-shadow: 0 0 10px rgba(0, 0, 0, .9); }
.screen .tap { position: absolute; inset: 0; z-index: 3; display: none; align-items: center; justify-content: center; background: rgba(0, 0, 0, .35); }
.screen .tap span { padding: 6px 12px 7px; background: #0E0E0E; border: 2px solid #F5F0E6; color: #F5F0E6; font-family: var(--lcd); font-size: 28px; line-height: 1; letter-spacing: .06em; }
.screen.wait .tap { display: flex; }
.screen.wait .track { animation-play-state: paused; }
.telly-n { margin: 8px 0 6px; text-align: center; font-family: Archivo, Arial, sans-serif; font-weight: 700; font-size: 13px; color: #ECE8DE; }
.telly-c { display: flex; align-items: center; gap: 10px; }
.telly-c .pw { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #FF3B30; box-shadow: 0 0 0 2px #0A0B0C; }
.telly-c .file { flex: 1 1 auto; min-width: 0; height: 34px; padding: 0 10px; border-radius: 4px; background: #15171A; box-shadow: inset 0 0 0 2px #0A0B0C, inset 0 8px 0 #2F3236; display: flex; align-items: flex-end; overflow: hidden; white-space: nowrap; }
.telly-c .file span { padding-bottom: 3px; font-family: var(--lcd); font-size: 18px; line-height: 1; letter-spacing: .04em; color: #DAD4C6; }
.telly-c .grille { flex: none; width: 66px; height: 32px; background-image: radial-gradient(#111213 1.3px, transparent 1.5px); background-size: 6px 6px; }
.telly-f { display: flex; justify-content: space-between; max-width: 560px; padding: 0 40px; margin: -22px auto 24px; }
.telly-f i { width: 34px; height: 6px; background: var(--ink); border-radius: 0 0 3px 3px; }

/* Tape racks (hub and more-sets) */
.rack { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rack a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 14px 14px 12px; background: var(--cream); border: 2px solid var(--ink); border-radius: 6px; text-decoration: none; box-shadow: 0 4px 0 var(--ink); transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .15s; }
.rack a:hover { color: var(--ink); background: var(--rosa-light); transform: translateY(-3px); box-shadow: 0 7px 0 var(--ink); }
.rack a:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.rack svg { width: 100%; max-width: 190px; height: auto; margin: 0 auto 6px; }
.rack .f { align-self: flex-start; padding: 1px 6px 2px; background: rgba(31, 29, 25, .08); font-family: var(--label); font-size: 12.5px; }
.rack b { font-family: var(--px); font-weight: 700; font-size: clamp(22px, 4.6vw, 30px); line-height: 1; }
.rack span.m { font-size: 14.5px; line-height: 1.35; }
.rack .label { margin-top: auto; padding-top: 4px; }
.rack.sm { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rack.sm a { padding: 10px; }
.rack.sm b { font-size: 19px; }
.reel { transform-box: fill-box; transform-origin: 50% 50%; }
.rack a:hover .reel, html[data-mc="playing"] .tape .reel, html[data-mc="playing"] .pair .reel { animation: spin 2.6s linear infinite; }

/* Guides */
.specs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.specs span { display: inline-flex; flex-direction: column; align-items: center; min-width: 76px; padding: 6px 10px 7px; border: 2px dotted var(--ink); font-family: var(--label); font-size: 11.5px; line-height: 1.2; letter-spacing: .05em; text-transform: uppercase; }
.specs b { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1; letter-spacing: 0; text-transform: none; }
.specs span.w b { font-family: var(--px); font-weight: 700; font-size: 19px; line-height: 30px; }
.pair { margin: 14px 0 0; padding: 14px; display: grid; grid-template-columns: 132px 1fr; gap: 16px; align-items: center; background: var(--rosa-light); border: 2px solid var(--ink); border-radius: 6px; }
.pair svg { width: 100%; height: auto; }
.pair-p { min-width: 0; }
.pair-n { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-family: var(--px); line-height: 1.05; }
.pair-n b { font-weight: 700; font-size: clamp(24px, 5vw, 30px); }
.pair-n span { flex: none; font-weight: 600; font-size: 17px; }
.meter { position: sticky; top: 38px; z-index: 15; display: flex; align-items: center; gap: 12px; margin: 14px -26px 0; padding: 8px 26px; background: #fff; border-bottom: 2px solid var(--ink); border-top: 2px solid var(--ink); }
.meter .bars { flex: 1 1 auto; display: flex; gap: 4px; height: 16px; }
.meter .bars i { flex: 1 1 0; border: 2px solid var(--ink); background: var(--cream); transition: background .25s; }
.meter .bars i.on { background: var(--pink); animation: thunk .3s var(--ease); }
.meter .ct { flex: none; font-family: var(--px); font-weight: 600; font-size: 15px; }
.steps { list-style: none; margin: 20px 0 0; padding: 0; }
.steps > li { margin: 0 0 16px; padding: 0; border: 2px solid var(--ink); border-radius: 6px; background: var(--cream); overflow: hidden; scroll-margin-top: 104px; }
.steps .hd { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-bottom: 2px solid var(--ink); background: var(--rosa-light); }
.steps .num { flex: none; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--ink); border-radius: 4px; background: var(--yellow); font-family: var(--px); font-weight: 700; font-size: 30px; line-height: 1; }
.steps h3 { margin: 0 0 4px; font-family: var(--display); font-weight: 400; font-size: clamp(27px, 4.6vw, 34px); line-height: 1; }
.steps .dose { font-family: var(--label); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--wine); }
.steps .b { padding: 16px 16px 16px; background: #fff; }
.steps p { margin: 0 0 11px; font-size: 16.5px; line-height: 1.58; }
.steps p.why { padding: 9px 12px; background: #FBF0B8; border-left: 5px solid var(--yellow); font-size: 16px; }
.steps p.why em { font-style: normal; }
.done { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; margin-top: 4px; padding: 0 14px 0 10px; border: 2px solid var(--ink); border-radius: 5px; background: var(--cream); color: var(--ink); font-family: var(--px); font-size: 16px; font-weight: 600; cursor: pointer; box-shadow: 0 3px 0 var(--ink); transition: transform .12s, box-shadow .12s, background .15s; }
.done:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
.done .bx { width: 20px; height: 20px; border: 2px solid var(--ink); background: #fff; display: inline-flex; align-items: center; justify-content: center; }
.done .bx svg { opacity: 0; transform: scale(.4); transition: opacity .15s, transform .25s var(--ease); }
.done[aria-pressed="true"] { background: var(--pink); }
.done[aria-pressed="true"] .bx svg { opacity: 1; transform: scale(1); }
.steps > li.is-done .num { background: var(--pink); }
.steps > li.is-done .hd { background: var(--cream); }
.steps > li.is-done h3 { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--wine); }
.label.by { margin: -8px 0 20px; }
.note { margin: 26px 0; padding: 14px 16px; background: var(--yellow); border: 2px solid var(--ink); box-shadow: 0 8px 16px rgba(31, 29, 25, .14); transform: rotate(-.6deg); }
.note p { margin: 0; font-family: var(--display); font-style: italic; font-size: 22px; line-height: 1.22; }
.note strong { font-weight: 400; }
.faq h3 { display: flex; gap: 10px; align-items: baseline; margin: 22px 0 4px; font-family: var(--display); font-weight: 400; font-size: 25px; line-height: 1.1; }
.faq h3::before { content: 'Q.'; flex: none; font-family: var(--px); font-size: 15px; font-weight: 700; color: var(--wine); }
.faq p { margin: 0 0 0 30px; }
.cat { margin: 30px 0 6px; }
.guide { display: block; margin: 10px 0; padding: 14px 16px 13px; background: var(--cream); border: 2px solid var(--ink); border-radius: 6px; text-decoration: none; box-shadow: 0 4px 0 var(--ink); transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .15s; }
.guide:hover { color: var(--ink); background: var(--rosa-light); transform: translateY(-3px); box-shadow: 0 7px 0 var(--ink); }
.guide:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.guide b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(24px, 4vw, 30px); line-height: 1.06; }
.guide span { display: block; margin-top: 6px; font-size: 16px; line-height: 1.45; }
.guide .label { margin-top: 9px; }

/* Hub heads */
.hubhead { padding-bottom: 4px; margin-bottom: 8px; border-bottom: 2px solid var(--ink); }
.hubhead .dek { margin-bottom: 16px; }

/* Motion */
@keyframes pop { from { scale: .92; opacity: 0; } to { scale: 1; opacity: 1; } }
@keyframes rise { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes word { from { opacity: 0; translate: 0 .45em; } to { opacity: 1; translate: 0 0; } }
@keyframes type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: .15; } }
@keyframes bounce { 0% { translate: 0 0; } 35% { translate: 0 -9px; } 70% { translate: 0 2px; } 100% { translate: 0 0; } }
@keyframes nudge { 50% { transform: translateX(4px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes vu { 0%, 100% { transform: scaleY(.2); } 20% { transform: scaleY(.9); } 40% { transform: scaleY(.45); } 60% { transform: scaleY(1); } 80% { transform: scaleY(.6); } }
@keyframes track { 0% { transform: translateY(-60px); } 100% { transform: translateY(420px); } }
@keyframes crt { 0%, 40% { clip-path: inset(49.6% 0 49.6% 0); filter: brightness(3); } 100% { clip-path: inset(0 0 0 0); filter: brightness(1); } }
@keyframes insert { 0% { translate: 0 -30px; opacity: .5; } 70% { translate: 0 3px; opacity: 1; } 100% { translate: 0 0; opacity: 1; } }
@keyframes thunk { 0% { scale: 1.5; } 100% { scale: 1; } }
@keyframes stampin { 0% { opacity: 0; scale: 2.3; rotate: -14deg; } 55% { opacity: 1; scale: .94; rotate: 2deg; } 75% { scale: 1.03; rotate: -1deg; } 100% { opacity: 1; scale: 1; rotate: 0deg; } }
@keyframes flip { 0% { transform: rotateX(90deg); } 100% { transform: rotateX(0deg); } }

@media (prefers-reduced-motion: no-preference) {
  .win { animation: pop .34s cubic-bezier(.2, .9, .3, 1.15) both; transform-origin: 50% 100%; }
  .dock { animation: rise .4s .1s var(--ease) backwards; }
  .pane .label.type { display: inline-block; max-width: 100%; white-space: nowrap; overflow: hidden; animation: type calc(var(--n, 30) * 26ms) steps(var(--n, 30)) .18s both; }
  h1 .w { animation: word .5s var(--ease) both; animation-delay: calc(.22s + var(--i) * 42ms); }
  .dek, .lh, .now-k, .specs { animation: rise .55s .28s var(--ease) both; }
  .dek { animation-delay: .48s; }
  .tape svg { animation: insert .5s .5s var(--ease) both; }
  html.rv [data-rv] { opacity: 0; translate: 0 16px; transition: opacity .55s ease, translate .55s var(--ease); transition-delay: calc(var(--rd, 0) * 60ms); }
  html.rv [data-rv].in { opacity: 1; translate: 0 0; }
  html.rv .stamp { opacity: 0; }
  html.rv .stamp.in { opacity: 1; animation: stampin .5s cubic-bezier(.3, 1.3, .5, 1) both; }
  html.rv .steps .num { transform: rotateX(90deg); }
  html.rv .steps li.in .num { animation: flip .4s .15s var(--ease) both; }
  .screen.on video { animation: crt .45s ease-out both; }
  [data-loop]:not(.run) * { animation-play-state: paused !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .tb::before { display: none; }
}

/* Phones */
@media (max-width: 640px) {
  body { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .date, .clock { display: none; }
  .mail { font-size: 15px; }
  .win { width: calc(100% - 14px); margin-top: 12px; }
  .pane { margin: 7px; padding: 16px 14px 20px; }
  .fine { width: calc(100% - 14px); }
  p { font-size: 17px; }
  .lh-t { font-size: 11.5px; }
  .no { width: 52px; }
  .no b { font-size: 30px; }
  .signoff { min-height: 130px; }
  .stamp { width: 132px; height: 132px; margin-right: 0; }
  .deck { grid-template-columns: 1fr; }
  .tape { max-width: 230px; margin: 0 auto; width: 100%; }
  .lcd { font-size: 20px; }
  .rack { gap: 10px; }
  .rack:not(.sm) { grid-template-columns: 1fr; }
  .rack:not(.sm) a { display: grid; grid-template-columns: 112px 1fr; column-gap: 14px; row-gap: 4px; align-items: center; padding: 12px; }
  .rack:not(.sm) svg { grid-row: 1 / span 4; grid-column: 1; margin: 0; max-width: none; }
  .rack:not(.sm) a > :not(svg) { grid-column: 2; }
  .rack:not(.sm) .f { justify-self: start; font-size: 11.5px; }
  .rack.sm { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rack.sm.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .rack.sm a { padding: 8px; }
  .rack.sm.n3 b { font-size: 15px; }
  .rack.sm.n3 .label { font-size: 11px; letter-spacing: .03em; }
  .meter { margin: 14px -14px 0; padding: 8px 14px; }
  .pair { grid-template-columns: 1fr; padding: 12px; gap: 10px; }
  .pair-t { width: 120px; margin: 0 auto; }
  .faq p { margin-left: 0; }
  .telly { padding: 10px 10px 8px; }
  .telly-c .grille { display: none; }
  .osd, .cap span { font-size: 18px; }
  .cap span + span { font-size: 14px; }
  .pager b { font-size: 17px; }
}

/* Demonstrations: a short film beside each step. Silent and looping while on screen; sound is asked for.
   A film that is not moving always shows a play button, and the bar under it always has Play or Pause. */
.steps .b.has-demo { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 18px; align-items: start; }
.demo { margin: 0; border: 2px solid var(--ink); border-radius: 6px; overflow: hidden; background: #F8F9F5; box-shadow: 0 3px 0 var(--ink); }
.demo-v { position: relative; aspect-ratio: 9 / 16; background: #F8F9F5; }
.demo video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.demo-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.demo-play i { width: 96px; height: 96px; box-sizing: border-box; border: 3px solid var(--ink); border-radius: 12px; background: var(--pink); box-shadow: 0 6px 0 var(--ink); position: relative; opacity: 0; transform: scale(.8); transition: opacity .15s, transform .15s; }
.demo-play i::after { content: ''; position: absolute; left: 34px; top: 25px; border-style: solid; border-width: 20px 0 20px 31px; border-color: transparent transparent transparent var(--ink); }
.demo-play:hover i { background: #F06C92; }
.demo.wait .demo-play i { opacity: 1; transform: none; }
.demo-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(31, 29, 25, .16); }
.demo-bar b { display: block; width: 0; height: 100%; background: var(--pink); }
.demo figcaption { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 5px 6px; border-top: 2px solid var(--ink); background: var(--cream); font-family: var(--label); font-size: 11px; line-height: 1.3; letter-spacing: .04em; }
.demo-pp, .demo-snd { min-height: 32px; padding: 2px 9px 3px; border: 2px solid var(--ink); border-radius: 4px; background: #fff; color: var(--ink); font-family: var(--px); font-size: 14px; font-weight: 600; letter-spacing: 0; cursor: pointer; white-space: nowrap; }
.demo-pp { display: inline-flex; align-items: center; gap: 6px; background: var(--pink); }
.demo-pp i { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 9px; border-color: transparent transparent transparent var(--ink); }
.demo:not(.wait) .demo-pp { background: #fff; }
.demo:not(.wait) .demo-pp i { width: 9px; height: 12px; border: 0; border-left: 3px solid var(--ink); border-right: 3px solid var(--ink); box-sizing: border-box; }
.demo-snd[aria-pressed="true"] { background: var(--yellow); }
.demo-pp:focus-visible, .demo-snd:focus-visible { outline: 3px solid var(--verde); outline-offset: 2px; }
.demo-t { flex: 1 1 auto; min-width: 0; text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .steps .b.has-demo { grid-template-columns: minmax(0, 1fr); gap: 14px; } .demo { width: min(100%, 264px); margin: 0 auto; } }
/* The long film at the top of a guide: a still behind the same large play button. */
.film { margin: 26px 0 8px; border: 2px solid var(--ink); border-radius: 6px; overflow: hidden; background: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.film-v { position: relative; aspect-ratio: 16 / 9; background: var(--ink); }
.film-v img, .film-v iframe { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border: 0; object-fit: cover; }
.film .film-play i { opacity: 1; transform: none; }
.film figcaption { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 7px 10px; border-top: 2px solid var(--ink); background: var(--cream); font-family: var(--label); font-size: 11px; line-height: 1.4; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 640px) { .film .film-play i { width: 80px; height: 80px; } .film .film-play i::after { left: 28px; top: 20px; border-width: 17px 0 17px 26px; } }

/* the retro scroll bar: a dotted track, a cream thumb, an arrow at each end */
html::-webkit-scrollbar, .gm-b::-webkit-scrollbar, [data-scroll]::-webkit-scrollbar { width: 20px; height: 12px; }
html::-webkit-scrollbar-track, .gm-b::-webkit-scrollbar-track, [data-scroll]::-webkit-scrollbar-track { background-color: #F5F0E6; background-image: radial-gradient(rgba(31, 29, 25, .5) .75px, transparent .95px); background-size: 3px 3px; border-left: 2px solid #1F1D19; }
html::-webkit-scrollbar-thumb, .gm-b::-webkit-scrollbar-thumb, [data-scroll]::-webkit-scrollbar-thumb { min-height: 44px; background: #FBF3D2; border: 2px solid #1F1D19; border-radius: 4px; box-shadow: inset 0 -3px 0 rgba(31, 29, 25, .14); }
html::-webkit-scrollbar-thumb:active, .gm-b::-webkit-scrollbar-thumb:active, [data-scroll]::-webkit-scrollbar-thumb:active { background: #F3D44F; }
html::-webkit-scrollbar-button:single-button, .gm-b::-webkit-scrollbar-button:single-button, [data-scroll]::-webkit-scrollbar-button:single-button { display: block; width: 20px; height: 18px; background: #F5F0E6 no-repeat center / 9px 9px; border-left: 2px solid #1F1D19; }
html::-webkit-scrollbar-button:single-button:vertical:decrement, .gm-b::-webkit-scrollbar-button:single-button:vertical:decrement, [data-scroll]::-webkit-scrollbar-button:single-button:vertical:decrement { background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2010%2010'%3E%3Cpath%20d='M5%202%20L9%208%20L1%208%20Z'%20fill='%231F1D19'/%3E%3C/svg%3E"); }
html::-webkit-scrollbar-button:single-button:vertical:increment, .gm-b::-webkit-scrollbar-button:single-button:vertical:increment, [data-scroll]::-webkit-scrollbar-button:single-button:vertical:increment { background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2010%2010'%3E%3Cpath%20d='M1%202%20L9%202%20L5%208%20Z'%20fill='%231F1D19'/%3E%3C/svg%3E"); }
html::-webkit-scrollbar-button:horizontal, .gm-b::-webkit-scrollbar-button:horizontal, [data-scroll]::-webkit-scrollbar-button:horizontal { display: none; }
html::-webkit-scrollbar-corner, .gm-b::-webkit-scrollbar-corner, [data-scroll]::-webkit-scrollbar-corner { background: #F5F0E6; }
@supports not selector(::-webkit-scrollbar) { html, .gm-b, [data-scroll] { scrollbar-color: #FBF3D2 #F5F0E6; } }
