@font-face { font-family: 'PJ Pixel'; src: url('/fonts/pj-pixel.ttf') format('truetype'); font-style: normal; font-weight: 400 700; font-display: swap; }
:root {
  color-scheme: light;
  --paper: #fafaf8;
  --ink: #222127;
  --muted: #69676e;
  --link: #604197;
  --console: #15111e;
  --verb: #bd99ff;
  --highlight: #fff092;
  --mono: 'Courier New', Courier, monospace;
  --pixel: 'PJ Pixel', 'Courier New', monospace;
  --body: Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}
::selection { background: #e3d8fb; color: #222127; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .17em; }
a:hover { color: #312046; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.skip-link { position: absolute; top: -100px; left: 1rem; padding: .7rem; background: var(--paper); z-index: 3; }
.skip-link:focus { top: 1rem; }
main {
  width: min(100% - 3rem, 43rem);
  margin: 0 auto;
  padding: clamp(4rem, 13vh, 8rem) 0 5rem;
  flex: 1;
}
article:focus { outline: none; }
h1 { margin: 0 0 2.25rem; font-size: clamp(2.5rem, 6vw, 3.25rem); line-height: 1.1; font-weight: 400; letter-spacing: -.025em; }
p { max-width: 34rem; margin: 0 0 1.5rem; font-size: 1.25rem; line-height: 1.65; }
.bio-portrait, .bio-portrait-frame { display: block; width: 14rem; max-width: 100%; height: auto; margin: 0 0 1.75rem; }
.bio-portrait-frame { position: relative; isolation: isolate; }
.bio-portrait-frame .bio-portrait { width: 100%; margin: 0; }
.bio-portrait-color { position: absolute; inset: 0; display: block; width: 100%; height: 100%; mix-blend-mode: color; opacity: 0; pointer-events: none; }
.bio-portrait-frame.is-color .bio-portrait-color { opacity: 1; }
.mailing-list-trigger { position: absolute; right: 0; bottom: calc(100% + 2.25rem); display: grid; gap: .4rem; min-height: 44px; max-width: 18rem; padding: .5rem 0; border: 0; border-radius: 0; background: transparent; color: var(--link); text-align: left; cursor: pointer; }
.mailing-list-whisper { font: 1.125rem/1.35 var(--pixel); }
.mailing-list-caption { font: .9375rem/1.5 var(--body); color: var(--muted); text-decoration: underline; text-decoration-color: #b7a9cb; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.mailing-list-trigger:hover .mailing-list-caption, .mailing-list-trigger:focus-visible .mailing-list-caption { color: var(--link); text-decoration-color: currentColor; }
.mailing-list-trigger:hover, .mailing-list-close:hover { color: #312046; }
.mailing-list-trigger:focus-visible, .mailing-list-close:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
.mailing-list-dialog { width: min(36rem, calc(100% - 2rem)); max-height: calc(100svh - 2rem); padding: clamp(1.5rem, 4vw, 3rem); border: 0; border-radius: 0; background: var(--paper); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 12px 64px rgb(21 17 30 / 12%); }
.mailing-list-dialog::backdrop { background: rgb(21 17 30 / 30%); }
.mailing-list-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 1rem; margin-bottom: 1.25rem; }
.mailing-list-heading h2 { margin: .2rem 0 0; max-width: 13em; font: 1.75rem/1.2 var(--body); letter-spacing: -.025em; text-wrap: balance; }
.mailing-list-close { min-height: 44px; margin-top: -.5rem; padding: .5rem 0 .5rem .5rem; border: 0; background: transparent; color: var(--muted); font: .9375rem/1.4 var(--body); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; cursor: pointer; }
.mailing-list-dialog .signup-intro { max-width: none; margin: 0 0 2rem; font: 1.0625rem/1.65 var(--body); }
.listening-page { width: min(100% - 3rem, 38rem); padding-top: clamp(3rem, 9vh, 6rem); padding-bottom: 3rem; }
[hidden] { display: none !important; }
.show-label { color: var(--muted); font-size: 1.0625rem; margin: 0 0 1.25rem; }
.episode-title { font-size: clamp(1.875rem, 5vw, 2.5rem); line-height: 1.2; letter-spacing: -.025em; margin: 0 0 .75rem; text-wrap: balance; }
.episode-date { display: block; margin-bottom: 2rem; color: var(--muted); font-size: .9375rem; line-height: 1.5; }
#episode-audio { width: 100%; }
.audio-controls { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1.25rem; padding: .75rem 0; border-block: 1px solid #d7d4dc; }
.audio-play { appearance: none; -webkit-appearance: none; display: inline-flex; align-items: center; gap: .65rem; min-height: 44px; min-width: 5.5rem; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--link); font: 1.125rem/1.5 var(--body); cursor: pointer; }
#play-symbol { display: block; width: 1rem; height: 1rem; flex: none; }
.audio-play:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
.audio-seek { appearance: none; -webkit-appearance: none; width: 100%; min-width: 0; height: 44px; margin: 0; background: transparent; cursor: pointer; accent-color: var(--link); }
.audio-seek::-webkit-slider-runnable-track { height: 2px; background: #d7d4dc; }
.audio-seek::-moz-range-track { height: 2px; background: #d7d4dc; }
.audio-seek::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 10px; height: 10px; margin-top: -4px; border-radius: 50%; background: var(--link); }
.audio-seek::-moz-range-thumb { width: 10px; height: 10px; border: 0; border-radius: 50%; background: var(--link); }
.audio-seek:disabled { opacity: .5; cursor: default; }
.audio-time { color: var(--muted); font: .75rem/1.5 var(--mono); white-space: nowrap; font-variant-numeric: tabular-nums; }
.audio-status { margin: .75rem 0 0; color: var(--muted); font-size: .9375rem; line-height: 1.5; }
.audio-status:empty { display: none; }
.podcast-links { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.125rem; font-size: 1rem; }
.podcast-links a { display: inline-flex; align-items: center; min-height: 44px; }
.console {
  background: var(--console);
  color: #e5dfed;
  padding: 1.1rem 1.5rem max(1.8rem, env(safe-area-inset-bottom));
  font-family: var(--mono);
  border-top: 3px solid #534168;
  box-shadow: inset 0 2px #08070b;
}
.console-inner { max-width: 58rem; margin: 0 auto; }
.command { min-height: 3.2em; margin: 0 0 .4rem; color: var(--highlight); text-align: center; font: 1rem/1.6 var(--pixel); }
.command::after { content: '_'; margin-left: .25rem; }
.console-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.75rem; align-items: center; }
.inventory { display: flex; justify-content: center; min-width: calc(11rem + 1px); gap: .5rem; padding-left: 1.5rem; border-left: 1px solid #534168; }
.inventory-item { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; padding: .25rem; border: 1px solid transparent; border-radius: 0; background: transparent; cursor: pointer; }
.inventory-item img { display: block; width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.inventory-item:hover, .inventory-item:focus-visible { background: #241c31; border-color: var(--verb); }
.inventory-item:focus-visible { outline: 2px solid var(--highlight); outline-offset: 3px; }
.inventory-item.is-inspected { border-color: var(--highlight); }
.inventory-item { position: relative; }
.battery-artwork { position: relative; display: block; width: 100%; height: 100%; pointer-events: none; }
.airpod-artwork { position: relative; display: block; width: 100%; aspect-ratio: 1; pointer-events: none; }
.battery-readout { position: absolute; left: 29.7%; top: 30.3%; width: 21.9%; height: 11.5%; display: flex; align-items: center; justify-content: center; background: #151025; color: #fff0bf; font: bold 7px/1 monospace; white-space: nowrap; transform: skewY(17deg); transform-origin: top left; }
/* Center on the sprite's indicator; keep the light visible at inventory size. */
.airpod-light { position: absolute; left: 42.96875%; top: 67.578125%; width: 2px; height: 2px; transform: translate(-50%, -50%); background: #f2a13b; }
.airpod-light.is-charged { background: #65dc54; }
.inventory-item[hidden] { display: none; }
.inventory-item.is-selected, .inventory-item.is-drop-target { border-color: var(--highlight); background: #241c31; }
.inventory .inventory-item.is-usable { cursor: grab; }
.inventory .inventory-item.is-dragging { opacity: .5; cursor: grabbing; }
nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem 1.25rem; }
.action { display: flex; flex-direction: column; align-items: flex-start; padding: .55rem .5rem; color: var(--verb); text-decoration: none; }
.verb { font-family: var(--pixel); font-weight: 400; font-size: 1.25rem; line-height: 1.5; letter-spacing: 0; text-shadow: 2px 2px #08070b; }
.object { margin-top: .35rem; font-size: .9375rem; line-height: 1.5; color: #c2b9cc; }
.action:hover, .action:focus-visible { color: var(--highlight); }
.action:hover .object, .action:focus-visible .object { color: #fff; }
.action[aria-current="page"] .verb { color: var(--highlight); }
@media (min-width: 761px) {
  main { width: min(100% - 4rem, 56rem); padding-top: clamp(5rem, 15vh, 9rem); }
  article { max-width: 36rem; }
  h1:not(.episode-title) { margin-bottom: 1.75rem; font-size: 3.75rem; letter-spacing: -.035em; }
  p { max-width: 36rem; margin-bottom: 1rem; font-size: 1.3125rem; line-height: 1.6; }
  #about p + p { color: var(--muted); }
  .listening-page { width: min(100% - 4rem, 38rem); padding-top: clamp(3rem, 9vh, 6rem); }
  .listening-page article { max-width: none; }
  .console { padding: 1rem 2rem 1.5rem; }
  .console-inner { max-width: 56rem; }
  .command { min-height: 1.6em; margin-bottom: 1rem; text-align: left; }
  .console-controls { gap: 2rem; }
  .action { padding-inline: 0; }
}
@media (max-width: 760px) {
  .console-controls { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .inventory { display: none; }
  .command { min-height: 1.6em; margin: 0 0 .75rem; text-align: left; }
  .action { min-height: 4.25rem; padding-inline: 0; }
  .podcast-links { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 1rem; }
  .podcast-links a { width: fit-content; max-width: 100%; padding-block: .4rem; line-height: 1.5; }
}
@media (max-width: 540px) {
  main { width: calc(100% - 3rem); padding-top: 3rem; padding-bottom: 2.5rem; }
  h1:not(.episode-title) { margin-bottom: 1.5rem; font-size: clamp(2.75rem, 11vw, 3.25rem); }
  p { margin-bottom: 1.25rem; font-size: 1.125rem; line-height: 1.6; }
  #about p + p { color: var(--muted); }
  .bio-portrait, .bio-portrait-frame { width: 11rem; margin-bottom: 1.5rem; }
  .listening-page { width: calc(100% - 3rem); padding-top: 2rem; }
  .listening-page .show-label { font-size: 1rem; margin-bottom: 1rem; }
  .episode-date { margin-bottom: 1.5rem; }
  .audio-controls { grid-template-columns: auto minmax(0, 1fr); gap: .25rem .875rem; padding: .5rem 0 .625rem; }
  .audio-time { grid-column: 2; justify-self: end; font-size: .8125rem; }
  #contact p { overflow-wrap: anywhere; }
  .console { padding: 1rem 1.5rem max(1.25rem, env(safe-area-inset-bottom)); }
  nav { grid-template-columns: minmax(0, .72fr) repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .verb { font-size: clamp(1rem, 4.2vw, 1.125rem); }
  .object { font-size: .875rem; line-height: 1.4; }
}
@media (max-width: 360px) {
  main, .listening-page { width: calc(100% - 2.5rem); }
  .console { padding-inline: 1.25rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .bio-portrait-color { transition: opacity 350ms ease; }
  .action, .object { transition: color 100ms ease; }
}
@media (pointer: fine) { .action, .inventory-item { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M11 2v20M2 11h20' stroke='%2315111e' stroke-width='4'/%3E%3Cpath d='M11 2v7m0 5v8M2 11h7m5 0h8' stroke='%23fff092' stroke-width='2'/%3E%3C/svg%3E") 11 11, pointer; } }
.signup-form { margin: 0; }
.signup-form > label, .signup-form legend { display: block; margin-bottom: .25rem; font: .9375rem/1.5 var(--body); color: var(--muted); }
.signup-form input[type="email"], .signup-form input[type="text"] { display: block; width: 100%; min-height: 46px; padding: .4rem 0 .55rem; background: transparent; color: var(--ink); border: 0; border-bottom: 1px solid #b9b3c2; border-radius: 0; font: 1.125rem/1.4 var(--body); appearance: none; }
.signup-form input[type="email"] { margin-bottom: 1.5rem; }
.signup-form input[type="email"]:focus, .signup-form input[type="text"]:focus { outline: 0; border-bottom: 2px solid var(--link); padding-bottom: calc(.55rem - 1px); }
.signup-form fieldset { margin: 1.5rem 0 1.25rem; padding: 0; border: 0; }
.signup-options { display: flex; gap: 2rem; }
.signup-options label { display: inline-flex; gap: .5rem; align-items: center; min-height: 44px; font-size: 1.0625rem; cursor: pointer; }
.signup-options input { accent-color: var(--link); width: 16px; height: 16px; margin: 0; }
.signup-options input:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
.signup-form .signup-hint { margin: .5rem 0 0; font: .875rem/1.5 var(--body); color: var(--muted); }
.signup-submit { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem 0; border: 0; background: transparent; color: var(--link); font: 1.125rem/1.4 var(--body); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; cursor: pointer; border-radius: 0; }
.signup-submit:hover { color: #312046; }
.signup-submit:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
.signup-submit:disabled { opacity: .6; cursor: wait; }
.signup-error { font: 1rem/1.5 var(--body); color: #903939; margin: 0 0 1rem; }
.signup-success { font: 1.125rem/1.6 var(--body); margin: 2rem 0 1rem; }
.signup-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.signup-form[hidden], .signup-error[hidden], .signup-success[hidden] { display: none; }
@media (max-width: 540px) {
  .mailing-list-dialog { width: calc(100% - 1.5rem); max-height: calc(100svh - 1.5rem); padding: 1.5rem; }
  .mailing-list-heading { gap: .75rem; }
  .mailing-list-heading h2 { font-size: 1.5rem; }
  .mailing-list-dialog .signup-intro { margin-bottom: 1.5rem; font-size: 1rem; }
}

/* A small aside at the edge of the stage, above the command bar. */
.console-inner { position: relative; }
.has-mailing-list main { padding-bottom: 7.75rem; }
@media (max-width: 540px) {
  .mailing-list-trigger { bottom: calc(100% + 1.75rem); max-width: calc(100vw - 3rem); }
  .mailing-list-whisper { font-size: 1rem; }
}
