@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(fonts/figtree-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(fonts/figtree-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Kalnia';
  font-style: normal;
  font-weight: 100 700;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url(fonts/kalnia-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Kalnia';
  font-style: normal;
  font-weight: 100 700;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url(fonts/kalnia-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url(fonts/newsreader-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url(fonts/newsreader-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(fonts/newsreader-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(fonts/newsreader-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* glorified autocomplete: violet, lilac and one yellow that always means "this has a receipt" */

:root {
  --paper: oklch(96.8% 0.016 300);
  --lane: oklch(93% 0.034 300);
  --ink: oklch(25% 0.085 286);
  --soft: oklch(44% 0.07 290);
  --violet: oklch(40% 0.235 284);
  --violet-deep: oklch(31% 0.19 284);
  --on-violet: oklch(95% 0.03 300);
  --sun: oklch(90.5% 0.175 99);
  --sun-deep: oklch(80% 0.17 92);
  --coral: oklch(67% 0.215 31);
  --rule: oklch(25% 0.085 286 / 0.16);

  --display: "Kalnia", "Newsreader", Georgia, serif;
  --text: "Newsreader", Georgia, serif;
  --ui: "Figtree", "Ubuntu", system-ui, sans-serif;

  --panel-w: clamp(360px, 30vw, 760px);
  --lane-w: clamp(280px, 23vw, 560px);
  --prose: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--prose);
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

/* the pressable button: the face moves into its shadow */
.btn {
  display: inline-block;
  font: 650 17px/1 var(--ui);
  color: var(--ink);
  background: var(--sun);
  border: 2px solid var(--ink);
  padding: 15px 22px 14px;
  text-decoration: none;
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform 140ms cubic-bezier(.2, .8, .2, 1), box-shadow 140ms cubic-bezier(.2, .8, .2, 1), background-color 140ms;
}
.btn:hover { background: var(--sun-deep); }
.btn:active, a:active .btn {
  transform: translate(6px, 6px);
  box-shadow: 0 0 0 var(--ink);
  transition-duration: 50ms;
}

/* ---------- story page ---------- */

.story { display: block; }
.panel, .mast { container-type: inline-size; }

.panel {
  background: var(--violet);
  color: var(--on-violet);
  padding: 28px 24px 34px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.home {
  font: 600 16px/1.2 var(--ui);
  text-decoration: none;
  align-self: flex-start;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 140ms, color 140ms;
}
.home:hover { border-color: var(--sun); color: var(--sun); }
.home i { font-style: normal; display: inline-block; transition: transform 160ms; }
.home:hover i { transform: translateX(-4px); }

.no {
  font: 500 17px/1 var(--ui);
  color: var(--sun);
  margin: 0 0 14px;
}
.panel h1 {
  font-family: var(--display);
  font-weight: 560;
  font-stretch: 108%;
  font-size: 14.2cqi;
  line-height: 1.02;
  letter-spacing: -0.012em;
  margin: 0;
  color: var(--sun);
  text-wrap: balance;
}
.dek {
  font-size: clamp(19px, 4.8vw, 23px);
  line-height: 1.42;
  margin: 20px 0 0;
  max-width: 30em;
  text-wrap: pretty;
}
.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  font: 450 15.5px/1.5 var(--ui);
  display: grid;
  gap: 2px;
}
.facts b { font-weight: 650; color: var(--sun); font-variant-numeric: tabular-nums; }
.byline { font: 450 15.5px/1.5 var(--ui); margin: 0 0 10px; }
.byline b { font-weight: 650; }

.body { padding: 34px 0 0; }
.row { padding: 0 22px; margin: 0 0 1.15em; }
.row > p { margin: 0; text-wrap: pretty; hanging-punctuation: first; }
.row.lede > p { font-size: 1.2em; line-height: 1.45; }
.nw { white-space: nowrap; }

/* a receipt mark in the text */
.rc {
  font: 700 0.56em/1 var(--ui);
  font-variant-numeric: tabular-nums;
  display: inline-grid;
  place-items: center;
  min-width: 1.75em;
  height: 1.75em;
  padding: 0 0.3em;
  margin-left: 0.22em;
  border-radius: 99px;
  background: var(--sun);
  color: var(--ink);
  text-decoration: none;
  vertical-align: 0.42em;
  cursor: pointer;
  transition: background-color 120ms, color 120ms, transform 120ms;
}
.rc:hover, .rc.lit { background: var(--ink); color: var(--sun); transform: scale(1.14); }

.notes { margin: 0; }
.note {
  display: none;
  font: 440 15px/1.45 var(--ui);
  color: var(--soft);
  margin: 12px 0 4px;
  padding: 10px 14px 11px 44px;
  background: var(--lane);
  position: relative;
}
.note.open, .note:target { display: block; }
.note .n {
  position: absolute;
  left: 10px;
  top: 10px;
  font: 700 12px/1 var(--ui);
  font-variant-numeric: tabular-nums;
  display: grid;
  place-items: center;
  min-width: 23px;
  height: 23px;
  border-radius: 99px;
  background: var(--sun);
  color: var(--ink);
  transition: background-color 120ms, color 120ms;
}
.note .src { display: block; color: var(--ink); font-weight: 620; overflow-wrap: anywhere; }
.note.lit .n { background: var(--ink); color: var(--sun); }
.note.lit .src { text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 3px; }

.all-receipts {
  font: 600 15px/1 var(--ui);
  color: var(--ink);
  background: none;
  border: 2px solid var(--ink);
  padding: 10px 14px;
  margin: 0 22px 26px;
  cursor: pointer;
}
.all-receipts:hover { background: var(--sun); }

/* figures: full-bleed bands of colour */
.fig { margin: 2.2em 0; padding: 0; }
.fig-in { padding: 30px 22px 30px; }
.fig-lead { font: 600 17px/1.3 var(--ui); margin: 0 0 22px; }
.fig figcaption { font: 440 14.5px/1.45 var(--ui); margin-top: 22px; max-width: 46em; opacity: 0.86; }

.fig-counts { background: var(--violet); color: var(--on-violet); }
.counts { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 22px; }
.count { display: grid; gap: 4px; align-content: start; }
.count svg { width: min(100%, 190px); height: auto; color: var(--on-violet); margin-bottom: 8px; }
.count b {
  font-family: var(--display);
  font-weight: 500;
  font-stretch: 104%;
  font-size: clamp(54px, 13vw, 76px);
  line-height: 0.95;
  color: var(--sun);
  font-variant-numeric: lining-nums;
  white-space: nowrap;
}
.count b i { font-style: normal; font-weight: 300; font-size: 0.5em; vertical-align: 0.3em; color: var(--on-violet); margin: 0 0.22em; }
.count .who { font: 650 16px/1.3 var(--ui); margin-top: 8px; }
.count .what { font: 440 14.5px/1.4 var(--ui); opacity: 0.86; max-width: 21em; }

.fig-council { background: var(--sun); color: var(--ink); }
.council { border-collapse: collapse; table-layout: fixed; width: 100%; max-width: 860px; font-family: var(--ui); }
.council th:first-child { width: 31%; }
.council .rw { display: none; }
.council tbody th { white-space: normal; }
.council th { font-weight: 600; font-size: 14px; text-align: left; padding: 0 6px 12px 0; white-space: nowrap; }
.council thead th { font-weight: 500; text-align: center; color: var(--soft); color: oklch(25% 0.085 286 / 0.75); }
.council td { text-align: center; padding: 5px 2px; }
.council td b {
  display: inline-grid;
  place-items: center;
  width: clamp(36px, 9vw, 56px);
  aspect-ratio: 1;
  border-radius: 50%;
  font: 500 clamp(19px, 5vw, 29px)/1 var(--display);
  border: 2px solid var(--ink);
}
.council .s7 { background: transparent; border-style: dashed; }
.council .s8 { background: oklch(96% 0.07 100); }
.council .s9 { background: var(--violet); color: var(--sun); border-color: var(--violet); }
.council .fell { box-shadow: 0 0 0 3px var(--sun), 0 0 0 5px var(--coral); }
.council tbody th { padding: 5px 10px 5px 0; }
.council .found th, .council .found td { font-size: 14px; font-weight: 500; padding-top: 16px; font-variant-numeric: tabular-nums; }

.end {
  padding: 26px 22px 60px;
  font: 450 15.5px/1.5 var(--ui);
  color: var(--soft);
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: center;
  justify-content: space-between;
  border-top: 2px solid var(--ink);
  margin-top: 2.4em;
}
.end p { margin: 0; max-width: 34em; }

/* ---------- front page ---------- */

.front { display: block; }
.mast {
  background: var(--violet);
  color: var(--on-violet);
  padding: 34px 24px 34px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.wordmark {
  font-family: var(--display);
  font-weight: 600;
  font-stretch: 112%;
  font-size: 15.6cqi;
  line-height: 0.93;
  letter-spacing: -0.018em;
  color: var(--sun);
  margin: 0;
}
.wordmark span { display: block; }
.wordmark span + span { color: var(--on-violet); font-weight: 300; font-stretch: 100%; font-size: 0.97em; }
.tagline { font: 600 clamp(17px, 4.4vw, 21px)/1.3 var(--ui); color: var(--sun); margin: 14px 0 0; }
.creed { font-size: clamp(20px, 5vw, 24px); line-height: 1.42; margin: 0; max-width: 24em; text-wrap: pretty; }
.creed mark { background: var(--sun); color: var(--ink); padding: 0 0.22em; }
.colophon { font: 440 14.5px/1.5 var(--ui); opacity: 0.8; margin: 0; max-width: 34em; }

.shelf { padding: 30px 22px 60px; }
.shelf h2 { font: 650 17px/1.3 var(--ui); margin: 0 0 4px; }
.shelf .take { font: 440 15.5px/1.45 var(--ui); color: var(--soft); margin: 0 0 22px; }

.piece {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 18px;
  text-decoration: none;
  padding: 24px 0 30px;
  border-top: 2px solid var(--ink);
  position: relative;
}
.piece .num {
  font-family: var(--display);
  font-weight: 600;
  font-stretch: 110%;
  font-size: clamp(64px, 16vw, 96px);
  line-height: 0.8;
  color: var(--violet);
  grid-row: span 4;
  padding-top: 6px;
  transition: color 160ms;
}
.piece h3 {
  font-family: var(--display);
  font-weight: 560;
  font-stretch: 106%;
  font-size: clamp(31px, 8vw, 46px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
.piece h3 span {
  background: linear-gradient(var(--sun), var(--sun)) no-repeat 0 88% / 0% 0.34em;
  transition: background-size 320ms cubic-bezier(.2, .8, .2, 1);
}
.piece:hover h3 span { background-size: 100% 0.34em; }
.piece .dek { color: var(--ink); margin: 12px 0 0; font-size: clamp(18px, 4.6vw, 21px); max-width: 32em; }
.piece .meta { font: 450 15px/1.5 var(--ui); color: var(--soft); margin: 12px 0 0; }
.piece .meta b { font-weight: 650; color: var(--ink); }
.piece .go { margin-top: 20px; justify-self: start; }

.notebook { margin-top: 34px; }
.notebook ol { list-style: none; margin: 0; padding: 0; }
.notebook li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 0 12px;
  padding: 13px 0 14px;
  border-top: 2px dashed var(--rule);
  font: 440 15.5px/1.45 var(--ui);
  color: var(--soft);
}
.notebook li::before {
  content: "";
  width: 22px;
  height: 22px;
  border: 2px dashed var(--soft);
  border-radius: 50%;
  margin-top: 2px;
}
.notebook li b { display: block; font-weight: 620; color: var(--ink); font-size: 16.5px; }

/* ---------- tablet and up: receipts get their own lane ---------- */

@media (min-width: 900px) {
  :root { --prose: 20px; }
  .panel { padding: 34px 44px 40px; }
  .body {
    background: linear-gradient(to right, transparent calc(100% - var(--lane-w)), var(--lane) 0);
    padding-top: 54px;
  }
  .row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--lane-w);
    padding: 0;
    margin-bottom: 1.2em;
  }
  .row > p { width: min(100% - 88px, calc(var(--prose) * 34)); justify-self: center; }
  .notes { padding: 0.28em 26px 0 26px; display: grid; gap: 12px; align-content: start; }
  .note, .note.open { display: block; margin: 0; padding: 0 0 0 36px; background: none; }
  .note .n { left: 0; top: -1px; }
  .all-receipts { display: none; }
  .fig-in { padding: 40px 44px 42px; }
  .counts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
  .council th:first-child { width: 24%; }
  .council .rw { display: inline; }
  .council .rs { display: none; }
  .end { padding: 30px 44px 80px; margin-right: var(--lane-w); }
  .mast { padding: 44px 44px 44px; }
  .shelf { padding: 44px 44px 80px; }
}

/* ---------- wide: three lanes edge to edge ---------- */

@media (min-width: 1280px) {
  :root { --prose: clamp(20px, 0.99vw, 24px); }
  .story {
    display: grid;
    grid-template-columns: var(--panel-w) minmax(0, 1fr);
    min-height: 100vh;
  }
  .panel {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: clamp(28px, 2.2vw, 52px);
    justify-content: space-between;
    overflow: hidden;
  }
    .dek { font-size: clamp(20px, 1.16vw, 28px); margin-top: clamp(20px, 1.6vw, 36px); }
  .no, .home, .facts, .byline { font-size: clamp(15.5px, 0.78vw, 18.5px); }
  .body { padding-top: clamp(56px, 9vh, 120px); }
  .note { font-size: clamp(14.5px, 0.7vw, 16.5px); }
  .notes { padding-inline: clamp(24px, 2vw, 46px); }
  .fig-in { padding: clamp(40px, 3.4vw, 76px) clamp(44px, 4.4vw, 104px); }
  .count svg { width: min(100%, 230px); }
  .count b { font-size: clamp(64px, 5.2vw, 124px); }
  .fig-lead { font-size: clamp(17px, 0.86vw, 20.5px); }
  .count .who { font-size: clamp(16px, 0.8vw, 19px); }
  .count .what, .fig figcaption { font-size: clamp(14.5px, 0.7vw, 16.5px); }
  .fig-council .fig-in { display: grid; grid-template-columns: minmax(0, 860px) minmax(0, 1fr); gap: 0 clamp(30px, 3vw, 70px); align-items: end; }
  .fig-council .fig-lead { grid-column: 1 / -1; }
  .fig-council figcaption { margin: 0 0 6px; max-width: 30em; }
  .end { padding-inline: clamp(44px, 4.4vw, 104px); }

  .front {
    display: grid;
    grid-template-columns: minmax(480px, 41vw) minmax(0, 1fr);
    min-height: 100vh;
  }
  .mast {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: clamp(32px, 2.6vw, 60px);
    justify-content: space-between;
    overflow: hidden;
  }
  .tagline { font-size: clamp(19px, 1.05vw, 25px); margin-top: clamp(14px, 1.1vw, 26px); }
  .creed { font-size: clamp(22px, 1.3vw, 31px); }
  .colophon { font-size: clamp(14.5px, 0.7vw, 16.5px); }
  .shelf {
    padding: clamp(32px, 2.6vw, 60px) clamp(40px, 4.2vw, 100px) 60px;
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
  }
  .shelf h2 { font-size: clamp(17px, 0.86vw, 20.5px); }
  .piece {
    align-content: center;
    gap: 6px clamp(22px, 2.2vw, 52px);
    padding: clamp(28px, 4vh, 60px) 0;
  }
  .piece .num { font-size: clamp(120px, 11vw, 260px); padding-top: 0.06em; }
  .piece h3 { font-size: clamp(46px, 3.7vw, 88px); max-width: 13em; }
  .piece .dek { font-size: clamp(20px, 1.16vw, 27px); margin-top: clamp(14px, 1.2vw, 26px); }
  .piece .meta { font-size: clamp(15px, 0.76vw, 18px); margin-top: clamp(12px, 1vw, 22px); }
  .piece .go { margin-top: clamp(22px, 1.8vw, 40px); }
  .btn { font-size: clamp(17px, 0.84vw, 20px); }
  .notebook { margin-top: 0; }
  .notebook ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(30px, 3vw, 70px); }
  .notebook li, .notebook li b { font-size: clamp(15.5px, 0.74vw, 17.5px); }
  .notebook li b { font-size: clamp(16.5px, 0.8vw, 19px); }
}

/* ---------- listening: the word being spoken, and the player band ---------- */

.w.now { background: var(--violet); color: var(--on-violet); box-shadow: 0 0 0 0.15em var(--violet); }
.panel .w.now { background: var(--sun); color: var(--violet); box-shadow: 0 0 0 0.05em var(--sun); }
.fig.now { box-shadow: inset 0 0 0 7px var(--coral); }
.fig[data-u] { cursor: pointer; }

.from { display: none; }

.player {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 20;
  background: var(--violet-deep);
  color: var(--on-violet);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px 14px;
  align-items: center;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  font-family: var(--ui);
}
.has-voice .end { padding-bottom: 120px; }
.player .play { display: inline-flex; align-items: center; gap: 9px; padding: 11px 13px; box-shadow: 4px 4px 0 oklch(18% 0.09 286); }
.player .play:active { transform: translate(4px, 4px); box-shadow: 0 0 0 oklch(18% 0.09 286); }
.player .play svg { width: 20px; height: 20px; fill: currentColor; }
.player .play span { display: none; }
.player .rate, .player .hint { display: none; }
.times { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 500; font-variant-numeric: tabular-nums; margin-top: 5px; opacity: 0.9; }
.rate-step {
  font: 650 15px/1 var(--ui);
  font-variant-numeric: tabular-nums;
  color: var(--on-violet);
  background: none;
  border: 2px solid var(--on-violet);
  min-width: 58px;
  padding: 12px 8px;
  cursor: pointer;
  transition: background-color 120ms, color 120ms;
}
.rate-step:hover { background: var(--on-violet); color: var(--violet-deep); }

.player input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 22px;
  margin: 0;
  background: none;
  cursor: pointer;
}
.player input[type="range"]::-webkit-slider-runnable-track { height: 6px; background: linear-gradient(to right, var(--sun) var(--done, 0%), oklch(100% 0 0 / 0.28) 0); }
.player input[type="range"]::-moz-range-track { height: 6px; background: oklch(100% 0 0 / 0.28); }
.player .seek::-moz-range-progress { height: 6px; background: var(--sun); }
.player input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -6px; border-radius: 50%; background: var(--sun); border: 2px solid var(--ink); }
.player input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--sun); border: 2px solid var(--ink); }
.player input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.2); }
.player input[type="range"]:hover::-moz-range-thumb { transform: scale(1.2); }

.note .src a, .creed a, .byline a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--sun-deep);
  text-underline-offset: 3px;
  transition: background-color 120ms, color 120ms;
}
.note .src a:hover { background: var(--sun); }
.creed a, .byline a { text-decoration-color: var(--sun); }
.creed a:hover, .byline a:hover { color: var(--sun); }

@media (min-width: 900px) {
  .row > p { position: relative; }
  .from {
    display: grid;
    place-items: center;
    position: absolute;
    left: -46px;
    top: 0.22em;
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 50%;
    border: 2px solid var(--ink);
    background: var(--paper);
    color: var(--ink);
    cursor: pointer;
    opacity: 0;
    transition: opacity 140ms, background-color 120ms, transform 120ms;
  }
  .from svg { width: 13px; height: 13px; fill: currentColor; margin-left: 2px; }
  .row:hover .from, .from:focus-visible { opacity: 1; }
  .from:hover { background: var(--sun); transform: scale(1.12); }
  .player { padding: 12px 44px; gap: 10px 20px; }
  .player .play span { display: inline; }
  .player .play { padding: 12px 18px 12px 14px; }
}

@media (min-width: 1280px) {
  :root { --player-h: 208px; }
  .has-voice .end { padding-bottom: 80px; }
  .has-voice .panel { padding-bottom: calc(var(--player-h) + clamp(18px, 1.6vw, 34px)); }
  .player {
    inset: auto auto 0 0;
    width: var(--panel-w);
    height: var(--player-h);
    padding: 22px clamp(28px, 2.2vw, 52px) 20px;
    grid-template-columns: auto minmax(0, 1fr);
    align-content: center;
    gap: 14px 22px;
  }
  .player .rate-step { display: none; }
  .player .rate { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; grid-column: 1 / -1; font-size: 15px; font-weight: 500; }
  .player .rate span { min-width: 7.2em; }
  .player .rate b { font-weight: 650; color: var(--sun); font-variant-numeric: tabular-nums; }
  .player .hint { display: block; grid-column: 1 / -1; margin: 0; font-size: 14.5px; opacity: 0.82; }
  .player .play { font-size: 17px; }
}

@media (min-width: 1800px) {
  :root { --player-h: 172px; }
  .player { grid-template-columns: auto minmax(0, 1fr) minmax(190px, 30%); }
  .player .rate { grid-column: auto; grid-template-columns: 1fr; gap: 0; }
  .player .rate span { order: 2; display: flex; justify-content: space-between; font-size: 13.5px; margin-top: 5px; }
  .player .times { order: 2; }
  .player .hint { font-size: clamp(14.5px, 0.7vw, 16.5px); }
}

/* stories that are coming, shown with nothing to read: a numeral in outline and bars where a title would be */
.soon { border-top: 2px dashed var(--rule); padding-top: 26px; }
.ghosts { display: grid; gap: 22px; margin-bottom: 18px; }
.ghost { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; }
.ghost .num {
  font-family: var(--display);
  font-weight: 600;
  font-stretch: 110%;
  font-size: clamp(56px, 13vw, 76px);
  line-height: 0.8;
  min-width: 0.72em;
  color: var(--paper);
  -webkit-text-stroke: 4px var(--violet);
  paint-order: stroke fill;
}
.ghost .bars { display: grid; gap: 9px; }
.ghost .bars i { display: block; height: 15px; background: var(--lane); }
.ghost .bars i:nth-child(1) { width: 82%; }
.ghost .bars i:nth-child(2) { width: 58%; }
.ghost .bars i:nth-child(3) { width: 70%; height: 7px; margin-top: 3px; }
.ghost:nth-child(2) { opacity: 0.55; }
.ghost:nth-child(2) .bars i:nth-child(1) { width: 66%; }
.ghost:nth-child(2) .bars i:nth-child(2) { width: 74%; }
.ghost:nth-child(3) { opacity: 0.28; }
.ghost:nth-child(3) .bars i:nth-child(1) { width: 90%; }
.ghost:nth-child(3) .bars i:nth-child(2) { width: 40%; }
.soon .take { margin: 0; }
.soon .take a { color: var(--ink); text-decoration-thickness: 2px; text-decoration-color: var(--sun-deep); text-underline-offset: 3px; }
.soon .take a:hover { background: var(--sun); }
.home.dark { color: var(--ink); display: inline-block; margin-bottom: 26px; }
.home.dark:hover { color: var(--violet); border-color: var(--violet); }
.solo { max-width: 1500px; }
.solo .notebook { margin-top: 10px; }

@media (min-width: 900px) {
  .ghosts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(26px, 3vw, 70px); }
}
@media (min-width: 1280px) {
  .ghost .num { font-size: clamp(76px, 5.4vw, 128px); }
  .ghost .bars i { height: clamp(15px, 0.9vw, 22px); }
  .ghost .bars i:nth-child(3) { height: clamp(7px, 0.4vw, 10px); }
  .soon { padding-top: clamp(26px, 2.2vw, 48px); }
  .soon .take { font-size: clamp(15.5px, 0.74vw, 17.5px); }
  .solo { grid-template-rows: auto 1fr; min-height: 0; }
}

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