/* howyoulevelup.com: Portal (hyluq.app pageThemes.css) with Quest's TV, level bar, map and parchment, and the
   Question wall's shelf (Kyle's picks, 2026-12-01). Phone first; two columns from 900 px. */
@font-face { font-family: 'Pixelify Sans Variable'; font-weight: 400 700; font-display: swap; src: url(/fonts/pixelify-sans.woff2) format('woff2'); }
@font-face { font-family: 'Inter Variable'; font-weight: 100 900; font-display: swap; src: url(/fonts/inter.woff2) format('woff2'); }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { --bg: rgb(16 20 24); --card: rgb(24 32 39); --bone: rgb(225 217 208); --shadow: rgb(138 42 36); --sky: rgb(143 198 232);
  --gold: rgb(237 207 132); --text: rgb(232 237 242); --muted: rgb(154 166 178); --soft: rgb(195 204 212); --line: rgb(58 70 80);
  --ink: rgb(30 30 32); --wood: rgb(120 84 50); --pixel: 'Pixelify Sans Variable', system-ui, sans-serif;
  background: var(--bg); color: var(--text); font-family: 'Inter Variable', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2 { text-wrap: balance; } p { text-wrap: pretty; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.wrap { width: min(1040px, calc(100% - 32px)); margin: 0 auto; }
[hidden] { display: none !important; }

/* Header: the show, the newest level with its bar, the pages */
.top { position: sticky; top: 0; z-index: 10; background: rgb(16 20 24 / .94); border-bottom: 2px solid var(--line); backdrop-filter: blur(8px); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 0; }
.brand { font: 600 18px/24px var(--pixel); color: var(--bone); }
.lv { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font: 600 14px/20px var(--pixel); color: var(--gold); }
.xp { width: 72px; height: 12px; border: 2px solid var(--bone); background: var(--ink); position: relative; }
.xp i { position: absolute; inset: 1px; width: 0; background: repeating-linear-gradient(90deg, var(--gold) 0 6px, rgb(201 168 90) 6px 8px); animation: fill 1.2s steps(12) .3s forwards; }
@keyframes fill { to { width: calc(100% - 2px); } }
.lv:hover .xp { border-color: var(--gold); }
.links { display: flex; gap: 20px; width: 100%; justify-content: center; font: 600 15px/22px var(--pixel); color: var(--bone); }
.links a.on, .links a:hover { color: var(--gold); }

/* The art in an old TV: bone bezel, red shadow, scanlines, a soft vignette, full 16:9, never cropped */
.hero { margin-top: 16px; }
.tv { border: 4px solid var(--bone); box-shadow: 6px 6px 0 var(--shadow); background: rgb(0 0 0); }
.tv-screen { position: relative; aspect-ratio: 1536 / 864; overflow: hidden; }
.tv-screen img { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.tv-screen::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgb(0 0 0 / .12) 0 1px, transparent 1px 3px), radial-gradient(ellipse at center, transparent 62%, rgb(0 0 0 / .35) 100%); }
.press { display: block; text-align: center; padding: 12px; font: 600 17px/24px var(--pixel); letter-spacing: .08em; color: var(--gold); background: var(--ink); border-top: 4px solid var(--bone); }
.press span { animation: blink 1.1s steps(1) infinite; }
.press:hover { background: rgb(40 40 44); }
@keyframes blink { 50% { opacity: 0; } }

/* Boxes, type, buttons */
.box { margin: 20px 16px 0; padding: 20px; background: var(--card); border: 2px solid var(--bone); box-shadow: 4px 4px 0 var(--shadow); }
.title { font: 600 30px/36px var(--pixel); color: var(--bone); margin: 0 0 8px; }
.tagline { font-size: 15px; line-height: 22px; color: var(--soft); margin: 0; }
.meta { font-size: 13px; line-height: 18px; color: var(--muted); margin: 0 0 10px; }
.label { font: 600 14px/20px var(--pixel); color: var(--gold); margin: 16px 0 10px; }
.apps { display: flex; align-items: center; gap: 14px; color: rgb(255 255 255); flex-wrap: wrap; }
.apps svg { width: 22px; height: 22px; flex: none; }
.more { font-size: 12px; font-weight: 600; color: var(--muted); }
.btn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-height: 44px; padding: 8px 20px; border: 2px solid var(--bone); background: var(--bone); color: var(--ink); box-shadow: 3px 3px 0 var(--shadow); font-size: 16px; line-height: 22px; font-weight: 600; text-align: center; cursor: pointer; }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--shadow); }
.btn small { font-size: 12px; line-height: 16px; font-weight: 500; opacity: .75; }
.btn.full { display: flex; width: 100%; }
.btn.dark { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.h2 { font: 600 20px/28px var(--pixel); color: var(--bone); margin: 0 0 12px; }
.h2-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.section { margin: 0 0 36px; }
.cols { padding-top: 32px; }
.panel { background: var(--card); border: 2px solid var(--line); padding: 20px; }
.panel p { font-size: 16px; line-height: 25px; margin: 0 0 14px; } .panel p:last-child { margin: 0; }
.link, .panel a, .foot a { color: var(--sky); text-decoration: underline; text-underline-offset: 3px; }

/* Rows */
.row { display: flex; align-items: center; gap: 12px; padding: 12px; margin: 0 0 8px; background: var(--card); border: 2px solid var(--line); }
a.row[href]:hover { border-color: var(--bone); }
.row.here { border-color: var(--gold); }
.body { min-width: 0; flex: 1; }
.rt { display: block; font-size: 16px; line-height: 22px; font-weight: 500; }
.rs { display: block; font-size: 13px; line-height: 18px; color: var(--muted); margin: 2px 0 0; }
.num { flex: none; min-width: 40px; height: 32px; padding: 0 4px; display: grid; place-items: center; background: var(--sky); color: rgb(17 34 34); font: 600 14px/20px var(--pixel); }
.num.time { background: transparent; color: var(--gold); border: 2px solid var(--gold); min-width: 56px; }

/* On the shelf: spines standing on a bone plank */
.shelf { display: flex; align-items: flex-end; gap: 6px; padding: 12px 8px 0; overflow-x: auto; scrollbar-width: thin; border-bottom: 10px solid var(--bone); box-shadow: 0 4px 0 var(--shadow); }
.spine { flex: none; width: 44px; display: flex; justify-content: center; align-items: center; padding: 10px 0; border: 2px solid var(--bone); border-bottom: 0;
  writing-mode: vertical-rl; transform: rotate(180deg); font-size: 12px; line-height: 15px; font-weight: 600; color: var(--bone); overflow: hidden; transition: translate .2s; }
.spine:hover, .spine:focus-visible { translate: 0 -8px; }

/* Episode: Kyle's words with the episode's art as the portrait */
.words { display: flex; gap: 16px; align-items: flex-start; padding: 18px; margin: 0 0 40px; background: var(--card); border: 2px solid var(--gold); box-shadow: 4px 4px 0 var(--shadow); }
.portrait { width: 76px; height: 76px; flex: none; object-fit: cover; border: 3px solid var(--bone); image-rendering: pixelated; }
.words .label { margin-top: 0; }
.at { font: 500 12px/16px 'Inter Variable', sans-serif; color: var(--muted); margin-left: 6px; }
.say { margin: 0; font-size: 17px; line-height: 27px; font-weight: 500; }
.caret { display: inline-block; margin-left: 6px; color: var(--gold); animation: blink 1s steps(1) infinite; }
audio { width: 100%; height: 44px; display: block; margin: 4px 0 14px; color-scheme: dark; }

/* The transcript on parchment, between two rollers */
.parchment { position: relative; margin: 14px 0 40px; padding: 26px 20px; background: var(--bone); color: var(--ink); box-shadow: 6px 6px 0 var(--shadow); }
.parchment::before, .parchment::after { content: ''; position: absolute; left: -8px; right: -8px; height: 12px; background: var(--wood); border: 3px solid var(--ink); }
.parchment::before { top: -12px; } .parchment::after { bottom: -12px; }
.parchment h2 { font: 600 20px/28px var(--pixel); margin: 0 0 12px; }
.parchment p { font-size: 16px; line-height: 27px; margin: 0 0 16px; max-width: 68ch; }
details summary { list-style: none; } details summary::-webkit-details-marker { display: none; } details[open] summary { display: none; }

/* The series as a map: stops on a dotted path */
.mapcard .rs { margin: -6px 0 6px; }
.map { display: flex; justify-content: space-between; position: relative; padding: 16px 0 0; }
.map::before { content: ''; position: absolute; left: 20px; right: 20px; top: 35px; border-top: 4px dotted var(--muted); }
.node { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 0 2px; font-size: 12px; line-height: 16px; color: var(--muted); }
.node b { width: 40px; height: 40px; display: grid; place-items: center; background: var(--ink); border: 3px solid var(--bone); font: 600 13px/16px var(--pixel); color: var(--bone); }
.node.done b { background: var(--line); }
.node.here { color: var(--text); font-weight: 600; }
.node.here b { background: var(--gold); color: var(--ink); box-shadow: 0 0 0 3px var(--shadow); }
a.node[href]:hover b { border-color: var(--gold); }
.book { display: flex; gap: 12px; align-items: center; padding: 10px; margin: 0 0 8px; background: var(--card); border: 2px solid var(--line); }
.book i { width: 32px; aspect-ratio: 2 / 3; flex: none; border: 2px solid var(--bone); }
a.book:hover { border-color: var(--bone); }

/* Episodes and books pages */
.page-head { display: grid; gap: 16px; padding: 28px 0 8px; }
.search { width: 100%; height: 46px; padding: 0 12px; border: 2px solid var(--bone); background: var(--bg); color: rgb(255 255 255); font: 400 16px/24px 'Inter Variable', sans-serif; }
.yr { font: 600 18px/26px var(--pixel); color: var(--gold); margin: 28px 0 10px; }
.empty { color: var(--muted); padding: 24px 0; }
.row.nolink { cursor: default; }
.bookgrid { display: grid; gap: 12px; margin-top: 32px; }
.bookcard { display: flex; gap: 14px; padding: 14px; background: var(--card); border: 2px solid var(--line); scroll-margin-top: 120px; }
.bookcard:target { border-color: var(--gold); }
.bookcard i { width: 48px; aspect-ratio: 2 / 3; flex: none; border: 2px solid var(--bone); box-shadow: 3px 3px 0 var(--shadow); }
.bt { font-size: 17px; line-height: 23px; font-weight: 600; margin: 0; }
.eps { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; font-size: 14px; line-height: 20px; }
.eplink { color: var(--soft); }

/* Topics: the index's cards and the chips on episode and topic pages */
.topicgrid { display: grid; gap: 12px; }
.topic { display: block; padding: 14px; background: var(--card); border: 2px solid var(--line); }
a.topic:hover { border-color: var(--bone); }
.tn { display: block; font: 600 17px/24px var(--pixel); color: var(--bone); }
.count { display: block; margin-top: 8px; font: 600 13px/18px var(--pixel); color: var(--gold); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.chip { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 10px; border: 2px solid var(--line); background: var(--ink); color: var(--bone); font: 600 13px/18px var(--pixel); }
a.chip:hover { border-color: var(--gold); color: var(--gold); }
@media (min-width: 720px) { .topicgrid { grid-template-columns: 1fr 1fr; } }
.narrow { width: min(680px, calc(100% - 32px)); margin-top: 32px; }
.bio a { color: var(--sky); }
.foot { text-align: center; padding: 32px 16px; margin-top: 24px; border-top: 2px solid var(--line); font: 400 14px/20px var(--pixel); color: var(--muted); }

@media (min-width: 900px) {
  .wrap { width: min(1040px, calc(100% - 48px)); }
  .top .wrap { flex-wrap: nowrap; min-height: 64px; padding: 0; gap: 28px; }
  .brand { font-size: 20px; }
  .lv { order: 2; margin-left: 0; }
  .links { order: 1; width: auto; margin-left: auto; gap: 28px; font-size: 16px; }
  .xp { width: 110px; }
  .hero { margin-top: 24px; }
  .box.intro { width: min(1040px, calc(100% - 48px)); margin: 28px auto 0; padding: 32px; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: center; }
  .box.intro .label { margin-top: 0; }
  .box.about { display: block; }
  .title { font-size: 44px; line-height: 50px; margin-bottom: 12px; }
  .title.big { font-size: 60px; line-height: 60px; }
  .cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; padding-top: 48px; }
  .side { position: sticky; top: 88px; }
  .side .row { padding: 8px 10px; } .side .rt { font-size: 14px; line-height: 20px; }
  .ep-head { width: min(1040px, calc(100% - 48px)); margin: 24px auto 0; display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 32px; align-items: start; }
  .ep-head .box { margin: 0; padding: 28px; }
  .ep-head .title { font-size: 38px; line-height: 44px; }
  .say { font-size: 20px; line-height: 31px; }
  .portrait { width: 104px; height: 104px; }
  .parchment { padding: 34px 40px; }
  .parchment p { font-size: 17px; line-height: 28px; }
  .shelf { gap: 8px; } .spine { width: 52px; font-size: 13px; }
  .page-head { grid-template-columns: minmax(0, 1fr) 380px; align-items: end; padding-top: 40px; }
  .list .year { display: block; }
  .bookgrid { grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (max-width: 899px) { .ep-head { margin: 16px 16px 0; } .ep-head .box { margin: 20px 0 0; } }
@media (prefers-reduced-motion: reduce) { .press span, .caret { animation: none; } .xp i { animation: none; width: calc(100% - 2px); } .spine { transition: none; } }

/* App icons open the Listen on sheet, as on hyluq.app/social */
button.apps { padding: 6px 0; margin: 0; border: 0; background: none; font: inherit; cursor: pointer; text-align: left; }
button.apps:hover svg { color: var(--gold); }
.sheet { width: 100%; max-width: 560px; margin: auto auto 0; padding: 0; border: 2px solid var(--bone); border-bottom: 0; background: var(--card); color: var(--text); }
.sheet::backdrop { background: rgb(0 0 0 / .6); }
.sheet[open] { animation: rise .35s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }
.sheet-in { position: relative; padding: 0 0 calc(24px + env(safe-area-inset-bottom)); }
.sheet-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 2px solid var(--bone); background: var(--bg); color: var(--bone); font-size: 16px; cursor: pointer; }
.sheet-head { display: flex; align-items: center; gap: 16px; padding: 20px 60px 0 16px; }
.sheet-cover { width: 72px; height: 72px; flex: none; object-fit: cover; border: 2px solid var(--bone); box-shadow: 3px 3px 0 var(--shadow); }
.sheet-title { margin: 0; font: 600 20px/28px var(--pixel); color: var(--bone); }
.sheet-sub { margin: 4px 0 0; font-size: 14px; line-height: 20px; color: var(--muted); }
.sheet-h { margin: 24px 16px 12px; font: 600 14px/20px var(--pixel); color: var(--gold); }
.listen { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 4px 16px 8px; }
.listen::-webkit-scrollbar { display: none; }
.app { flex: none; width: 76px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; scroll-snap-align: start; }
.app-tile { width: 60px; height: 60px; display: grid; place-items: center; border: 2px solid var(--bone); box-shadow: 3px 3px 0 var(--shadow); color: rgb(255 255 255); }
.app-tile svg { width: 32px; height: 32px; }
.app:hover .app-tile { border-color: var(--gold); }
.app-name { font-size: 12px; line-height: 16px; font-weight: 500; }
@media (min-width: 900px) { .listen { flex-wrap: wrap; overflow: visible; } }
@media (prefers-reduced-motion: reduce) { .sheet[open] { animation: none; } }

/* Subscribe: four apps as direct links, the rest in the Listen on sheet */
.subcard { padding: 20px; background: var(--card); border: 2px solid var(--gold); box-shadow: 4px 4px 0 var(--shadow); }
.sub-line { margin: 0 0 16px; font-size: 15px; line-height: 22px; color: var(--soft); }
.sub-apps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 18px; }
.sub-app { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.sub-app .app-tile { width: 56px; height: 56px; }
.sub-app .app-tile svg { width: 28px; height: 28px; }
.sub-app:hover .app-tile { border-color: var(--gold); }

/* Chapters are buttons that move the player to their time */
button.row { width: 100%; font: inherit; color: inherit; text-align: left; cursor: pointer; }
button.row:hover { border-color: var(--bone); }
.tx-note { margin: 8px 0 0; font-size: 13px; line-height: 18px; color: rgb(90 84 76); }
.after-bio { margin-top: 36px; }
.lost { padding: 64px 0 32px; }
.lost .btn { margin: 16px 8px 0 0; }
img { max-width: 100%; }
.notes { margin: 0 0 40px; }
.notes p, .notes li { font-size: 16px; line-height: 25px; }
.notes ul, .notes ol { margin: 0 0 14px; padding-left: 22px; }
.notes a { color: var(--sky); text-decoration: underline; text-underline-offset: 3px; }
