/* Style for wokahani.com in the app's own look (issue #191): Ivory, the
   app's palette and shape (C51; the light values of packages/ui
   ivory.css, which packages/ui/test/tokens.test.ts checks against WCAG AA),
   with Tiro Devanagari Hindi for display and Martel Sans for text (C40).
   Light only, as the owner's approved design. Nothing external: the fonts
   are the design system's own files (packages/ui/src/fonts), served by this
   server at /fonts/ (server/src/site.ts). Each face covers Latin, Latin
   Extended and Devanagari through unicode-range, so a page downloads only
   what it uses. The faces below are copied from packages/ui/src/fonts.css;
   server/test/site.test.ts checks that every file they name is served.
   The pages are written in server/src/website (the catalogue) and
   server/site (the static pages); both use the classes below. */

/* tiro-devanagari-hindi-latin-400-normal */
@font-face {
  font-family: 'Tiro Devanagari Hindi';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/tiro-devanagari-hindi-latin-400-normal.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;
}

/* tiro-devanagari-hindi-latin-ext-400-normal */
@font-face {
  font-family: 'Tiro Devanagari Hindi';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/tiro-devanagari-hindi-latin-ext-400-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* tiro-devanagari-hindi-devanagari-400-normal */
@font-face {
  font-family: 'Tiro Devanagari Hindi';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/tiro-devanagari-hindi-devanagari-400-normal.woff2) format('woff2');
  unicode-range:
    U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF,
    U+11B00-11B09;
}

/* tiro-devanagari-hindi-latin-400-italic */
@font-face {
  font-family: 'Tiro Devanagari Hindi';
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/tiro-devanagari-hindi-latin-400-italic.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;
}

/* tiro-devanagari-hindi-latin-ext-400-italic */
@font-face {
  font-family: 'Tiro Devanagari Hindi';
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/tiro-devanagari-hindi-latin-ext-400-italic.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* tiro-devanagari-hindi-devanagari-400-italic */
@font-face {
  font-family: 'Tiro Devanagari Hindi';
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/tiro-devanagari-hindi-devanagari-400-italic.woff2) format('woff2');
  unicode-range:
    U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF,
    U+11B00-11B09;
}

/* martel-sans-latin-400-normal */
@font-face {
  font-family: 'Martel Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/martel-sans-latin-400-normal.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;
}

/* martel-sans-latin-ext-400-normal */
@font-face {
  font-family: 'Martel Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/martel-sans-latin-ext-400-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* martel-sans-devanagari-400-normal */
@font-face {
  font-family: 'Martel Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/martel-sans-devanagari-400-normal.woff2) format('woff2');
  unicode-range:
    U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF,
    U+11B00-11B09;
}

/* martel-sans-latin-600-normal */
@font-face {
  font-family: 'Martel Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/fonts/martel-sans-latin-600-normal.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;
}

/* martel-sans-latin-ext-600-normal */
@font-face {
  font-family: 'Martel Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/fonts/martel-sans-latin-ext-600-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* martel-sans-devanagari-600-normal */
@font-face {
  font-family: 'Martel Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/fonts/martel-sans-devanagari-600-normal.woff2) format('woff2');
  unicode-range:
    U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF,
    U+11B00-11B09;
}

/* martel-sans-latin-700-normal */
@font-face {
  font-family: 'Martel Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/fonts/martel-sans-latin-700-normal.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;
}

/* martel-sans-latin-ext-700-normal */
@font-face {
  font-family: 'Martel Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/fonts/martel-sans-latin-ext-700-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* martel-sans-devanagari-700-normal */
@font-face {
  font-family: 'Martel Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/fonts/martel-sans-devanagari-700-normal.woff2) format('woff2');
  unicode-range:
    U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF,
    U+11B00-11B09;
}

:root {
  --background: #f4eee3;
  --surface: #fbf7ef;
  --raised: #ebe2d2;
  --line: #ddd2bf;
  --text: #1c1712;
  --muted: #6b6055;
  --accent: #8a5512;
  --primary: #1c1712;
  --on-primary: #fbf7ef;
  --ink: #1c1712;
  --on-ink: #fbf7ef;
  --on-ink-muted: #c9bfb0;
  --ink-accent: #f0d29a;
  --radius-cover-large: 22px;
  --radius-cover-row: 14px;
  --radius-cover-mini: 10px;
  --radius-control: 16px;
  --radius-card: 24px;
  --display: 'Tiro Devanagari Hindi', Georgia, serif;
  --sans: 'Martel Sans', system-ui, sans-serif;
  --gutter: 2rem;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  margin: 0;
}

.wrap {
  max-width: calc(1176px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 9999px;
}

.skip:focus {
  top: 1rem;
}

.kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

/* No added letter-spacing in Devanagari (as the app, issue #159): its letters
   join along the headline bar, and spacing meant for Latin capitals breaks
   each word into separate letters. `:lang(hi)` is a page in Hindi (<html
   lang>) and any Hindi text marked as such in an English page. */
.kicker:lang(hi),
.tile-kicker:lang(hi),
.tagline:lang(hi) {
  letter-spacing: normal;
  /* Capitals are for Latin small print: in a Hindi line they turned "English" into "ENGLISH" (#192). */
  text-transform: none;
}

/* Buttons: pills, the main one in ink. */
.button {
  display: inline-block;
  padding: 0.875rem 1.625rem;
  border-radius: 9999px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.3;
}

.button-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.button-primary:hover {
  color: var(--on-primary);
  background: #3a3027;
}

.button-secondary {
  border: 1px solid var(--text);
  color: var(--text);
  padding: calc(0.875rem - 1px) calc(1.625rem - 1px);
}

/* The header's Get the app: the main button, small. */
.get-app {
  background: var(--primary);
  color: var(--on-primary);
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

.get-app:hover {
  color: var(--on-primary);
  background: #3a3027;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
  padding-top: 0.5rem;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

/* The header: the italic wordmark, the main links, the language switch. */
.site-header {
  border-bottom: 1px solid var(--line);
}

.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.wordmark {
  display: flex;
  flex-direction: column;
  color: var(--text);
  text-decoration: none;
  line-height: 1;
}

.tagline {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.wordmark-name {
  font-family: var(--display);
  font-style: italic;
  font-size: 2.125rem;
  line-height: 2.75rem;
  color: var(--text);
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--text);
  border-radius: 9999px;
  padding: 3px;
}

.lang-switch a {
  padding: 0.3rem 0.875rem;
  border-radius: 9999px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 700;
}

.lang-switch a[aria-current='page'] {
  background: var(--primary);
  color: var(--on-primary);
}

main {
  display: block;
}

/* The home page's featured story. */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3.5rem;
  padding: 4rem 0 4.5rem;
}

.hero-text {
  flex: 1 1 20rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-title,
.story-title {
  font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.hero-title a {
  color: inherit;
  text-decoration: none;
}

.hero-line,
.story-line,
.page-line {
  margin: 0;
  font-size: 1.1875rem;
  max-width: 36rem;
}

.hero-meta {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.hero-cover {
  /* Beside the text from tablets up (#192): 40% of the row, between 15rem and 28.75rem. */
  flex: 0 1 clamp(15rem, 40%, 28.75rem);
  display: block;
  border-radius: var(--radius-cover-large);
  overflow: hidden;
  box-shadow: 0 24px 50px -24px rgba(60, 40, 10, 0.55);
}

.cover {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.cover-large {
  border-radius: var(--radius-cover-large);
}

/* Sections of the catalogue. */
.section {
  margin-bottom: 5.5rem;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
  line-height: 1.22;
  margin-bottom: 1.5rem;
}

.section-head .section-title {
  margin-bottom: 0;
}

.section-title a {
  color: inherit;
  text-decoration: none;
}

.section-note {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.story-grid,
.series-cards,
.category-tiles,
.voices,
.episode-list,
.chapters,
.chips ul,
.breadcrumb ol,
.app-features,
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Story tiles: cover, kicker, title, narrator and length. */
.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr));
  gap: 2rem 1.5rem;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--text);
  text-decoration: none;
}

.tile-cover {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-cover-row);
  background: var(--raised);
}

.tile-kicker {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.tile-title {
  font-family: var(--display);
  font-size: 1.125rem;
  line-height: 1.5rem;
}

.tile:hover .tile-title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.tile-line {
  font-size: 0.875rem;
}

.tile-meta {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* This week's edition. */
.edition {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  padding: 3rem;
  margin-bottom: 5.5rem;
}

.edition-note {
  flex: 1 1 22rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.edition-note h2 {
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem);
  line-height: 1.2;
}

.edition-note p {
  margin: 0;
}

.edition .story-grid {
  flex: 2 1 35rem;
  min-width: 0;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5rem), 1fr));
  align-content: start;
}

/* Series cards. */
.series-cards {
  display: grid;
  /* 22rem: one card a row on tablets, where two were squeezed (#192). */
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  gap: 2rem;
}

.series-card {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  height: 100%;
  padding: 1rem;
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.series-card-cover {
  flex: none;
  width: 7.5rem;
  height: 7.5rem;
  object-fit: cover;
  border-radius: var(--radius-cover-row);
}

.series-card-text {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-width: 0;
}

.series-card-title {
  font-family: var(--display);
  font-size: 1.375rem;
  line-height: 1.75rem;
}

.series-card-line {
  font-size: 0.875rem;
}

.series-card-count,
.voice-count {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent);
}

/* Category tiles: the category's picture, its name over a shade. */
.category-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.25rem), 1fr));
  gap: 1.5rem;
}

.category-tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--ink);
  color: var(--on-ink);
  text-decoration: none;
}

.category-tile-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.category-tile-text {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 3.5rem 1.25rem 1.125rem;
  background: linear-gradient(to top, rgba(17, 13, 9, 0.92), rgba(17, 13, 9, 0));
}

.category-tile-name {
  font-family: var(--display);
  font-size: 1.625rem;
  line-height: 1.875rem;
}

.category-tile-count {
  font-size: 0.8125rem;
  color: var(--on-ink-muted);
}

/* The voices: a round mark, the name, a line about them. */
.voices {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.25rem), 1fr));
  gap: 1.5rem;
}

.voice {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  height: 100%;
  padding: 1.25rem;
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.monogram {
  flex: none;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: var(--ink);
  color: var(--ink-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.625rem;
  object-fit: cover;
}

.voice-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.voice-name {
  font-family: var(--display);
  font-size: 1.375rem;
  line-height: 1.75rem;
}

.voice-about {
  font-size: 0.875rem;
}

/* The Get the app band, in ink. */
.app-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
  padding: 3.5rem;
  margin-bottom: 4.5rem;
  background: var(--ink);
  color: var(--on-ink);
  border-radius: var(--radius-card);
}

.app-band-text {
  flex: 1 1 26rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.app-band h2 {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  line-height: 1.2;
}

.kicker-on-ink {
  color: var(--ink-accent);
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

.store-button {
  display: flex;
  flex-direction: column;
  padding: 0.625rem 1.375rem;
  border-radius: var(--radius-cover-row);
  background: var(--on-ink);
  color: var(--ink);
  text-decoration: none;
  line-height: 1.25;
}

.store-button:hover {
  color: var(--ink);
  background: #fff;
}

.store-button span {
  font-size: 0.75rem;
}

.store-button strong {
  font-size: 1.25rem;
}

.store-soon {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--on-ink-muted);
}

.app-features {
  flex: 1 1 24rem;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5rem), 1fr));
  gap: 1.5rem;
}

.app-features li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.app-features strong {
  color: var(--ink-accent);
}

.app-features span {
  font-size: 0.875rem;
  color: var(--on-ink-muted);
}

/* Running text: the about section, descriptions, the static pages. */
.prose {
  max-width: 47.5rem;
}

.prose p {
  margin: 0 0 1em;
}

.prose ul {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose h2 {
  font-size: 1.75rem;
  line-height: 1.25;
  margin: 2rem 0 0.75rem;
}

.prose h3 {
  font-size: 1.375rem;
  line-height: 1.3;
  margin: 1.75rem 0 0.5rem;
}

.prose .lead {
  font-size: 1.1875rem;
}

.about {
  margin-bottom: 4.5rem;
}

.about h2 {
  margin-top: 0;
}

/* The static pages: privacy policy, terms, account deletion, support. */
.legal {
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}

.legal h1 {
  font-size: clamp(2.25rem, 1.6rem + 2.5vw, 3.25rem);
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.legal .updated {
  color: var(--muted);
  font-size: 0.875rem;
}

/* The Hindi legal pages' first line: a translation, the English version governs (#193). */
.legal .translation-note {
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius-cover-row) var(--radius-cover-row) 0;
  font-size: 0.9375rem;
}

.legal table {
  border-collapse: collapse;
  width: 100%;
  margin: 0 0 1em;
  font-size: 0.9375rem;
}

.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 0.5rem 0.75rem 0.5rem 0;
  border-bottom: 1px solid var(--line);
}

/* The breadcrumb above a page. */
.breadcrumb {
  padding-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
}

.breadcrumb li + li::before {
  content: '/';
  margin-right: 0.5rem;
}

.breadcrumb a {
  color: var(--muted);
}

/* A story's, a series' page: the cover beside the title and the facts. */
.story-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 3.5rem;
  padding: 2rem 0 3.5rem;
}

.story-hero-cover {
  /* Beside the title from tablets up (#192), as the home page's featured story. */
  flex: 0 1 clamp(15rem, 40%, 27.5rem);
  min-width: 0;
}

.story-hero-cover .cover {
  box-shadow: 0 24px 50px -24px rgba(60, 40, 10, 0.55);
}

.story-hero-text {
  flex: 1 1 20rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.story-hero-text .prose p:last-child {
  margin-bottom: 0;
}

.story-subtitle {
  margin: 0;
  font-family: var(--display);
  font-size: 1.375rem;
  line-height: 2.125rem;
  color: var(--muted);
}

.story-subtitle a {
  color: inherit;
  text-decoration: none;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin: 0;
  font-size: 0.875rem;
}

.facts div {
  display: flex;
  gap: 0.5rem;
}

.facts dt {
  color: var(--muted);
}

.facts dd {
  margin: 0;
  font-weight: 700;
}

.facts a {
  color: var(--text);
}

.content-note {
  margin: 0;
  padding: 0.875rem 1.125rem;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius-cover-row) var(--radius-cover-row) 0;
  font-size: 0.875rem;
}

.adults-only {
  margin: 0;
  font-weight: 700;
}

.wide-art {
  margin-bottom: 4.5rem;
  border-radius: var(--radius-card);
  overflow: hidden;
}

.wide-art-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 1;
  object-fit: cover;
}

.story-body {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  margin-bottom: 5.5rem;
}

.story-main {
  flex: 2 1 35rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.story-aside {
  flex: 1 1 20rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.story-about .prose {
  font-size: 1.0625rem;
}

/* The opening, fading into Listen in the app. */
.opening .section-title {
  margin: 0.5rem 0 1.5rem;
}

.opening-text {
  font-family: var(--display);
  font-size: 1.3125rem;
  line-height: 2.25rem;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}

.opening-text p {
  margin: 0 0 1.125rem;
}

.opening-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
}

.opening-more p {
  flex: 1 1 16rem;
  margin: 0;
  font-weight: 700;
}

.aside-title {
  font-size: 1.75rem;
  line-height: 2.25rem;
  margin-bottom: 1rem;
}

.aside-title a {
  color: inherit;
  text-decoration: none;
}

.chapters {
  border-top: 1px solid var(--line);
}

.chapters li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}

.chapter-time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.voice-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
}

.voice-card .aside-title {
  font-size: 1.5rem;
  line-height: 1.875rem;
  margin: 0.25rem 0;
}

.voice-card p:last-child {
  margin: 0;
  font-size: 0.875rem;
}

/* A series' episodes. */
.series-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-bottom: 1.75rem;
}

.series-head .section-title {
  margin: 0.25rem 0 0;
}

.series-head-cover {
  width: 6rem;
  height: 6rem;
  object-fit: cover;
  border-radius: var(--radius-cover-row);
}

.more-link {
  margin-left: auto;
  font-size: 0.875rem;
  font-weight: 700;
}

.episode-list {
  border-top: 1px solid var(--line);
}

.episode-list li {
  border-bottom: 1px solid var(--line);
}

.episode {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  padding: 1rem 0;
  color: var(--text);
  text-decoration: none;
}

.episode-cover {
  flex: none;
  width: 6rem;
  height: 6rem;
  object-fit: cover;
  border-radius: var(--radius-cover-row);
}

.episode-text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}

.episode-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
}

.episode-title {
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1.625rem;
}

.episode:hover .episode-title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.episode-line {
  font-size: 0.9375rem;
}

.episode-meta {
  font-size: 0.8125rem;
  color: var(--muted);
}

.episode-list-two {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 21.25rem), 1fr));
  gap: 0.75rem 2rem;
  border-top: none;
}

.episode-list-two li {
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface);
}

.episode-list-two .episode {
  padding: 0.625rem;
}

.episode-list-two .episode-cover {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: var(--radius-cover-mini);
}

.episode-list-two .episode-title {
  font-size: 1.125rem;
  line-height: 1.5rem;
}

.episode-list-two li.is-current {
  background: var(--raised);
}

/* A category's, a narrator's page. */
.page-head {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  max-width: 47.5rem;
  padding: 2rem 0 2.5rem;
}

.page-head-voice {
  flex-direction: row;
  align-items: flex-start;
  gap: 1.5rem;
  max-width: 56rem;
}

.page-head-voice .monogram {
  width: 5.5rem;
  height: 5.5rem;
  font-size: 2.5rem;
}

.page-head-voice > div {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.page-title {
  font-size: clamp(2.5rem, 1.6rem + 3.5vw, 4rem);
  line-height: 1.12;
}

.chips {
  margin-bottom: 3rem;
}

.chips ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.chip {
  display: inline-block;
  padding: 0.4375rem 1.0625rem;
  border: 1px solid var(--line);
  border-radius: 9999px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 700;
}

.chip.is-current {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}

/* The footer: the policies, under a rule. */
.site-footer {
  border-top: 1px solid var(--line);
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  font-size: 0.875rem;
}

.footer-bar .wordmark-name {
  font-size: 1.5rem;
  line-height: 2rem;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.footer-note {
  margin: 0;
  color: var(--muted);
}

/* Phones: one column, a smaller frame, the main links on their own row. */
/* Tablets and small laptops (#192): the main links on a row of their own under the
   wordmark, the language switch and Get the app, as they no longer fit on one row. */
@media (max-width: 71.99rem) {
  .site-nav {
    order: 3;
    width: 100%;
  }
}

@media (max-width: 47.99rem) {
  :root {
    --gutter: 1rem;
  }

  .tagline {
    display: none;
  }

  .wordmark-name {
    font-size: 1.75rem;
    line-height: 2.25rem;
  }

  .header-bar {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
  }

  .site-nav {
    /* All the links seen: they wrap rather than run off the edge (#192). */
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    font-size: 0.875rem;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .lang-switch a {
    padding: 0.25rem 0.625rem;
  }

  .hero {
    padding: 1.5rem 0 2.5rem;
    gap: 1.25rem;
  }

  .hero-cover {
    order: -1;
    flex-basis: 100%;
  }

  .hero-text {
    gap: 0.875rem;
  }

  .hero-line,
  .story-line,
  .page-line {
    font-size: 1rem;
  }

  .actions .button {
    flex: 1 1 100%;
    text-align: center;
  }

  .section {
    margin-bottom: 3rem;
  }

  .edition {
    padding: 1.5rem 1.25rem;
    gap: 1.5rem;
    margin-bottom: 3rem;
  }

  .story-grid,
  .edition .story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 0.875rem;
  }

  .tile-title {
    font-size: 1.0625rem;
    line-height: 1.375rem;
  }

  .series-cards {
    gap: 0.75rem;
  }

  .series-card {
    padding: 0.625rem;
    gap: 0.875rem;
    border-radius: 20px;
  }

  .series-card-cover {
    width: 5.25rem;
    height: 5.25rem;
  }

  .series-card-title {
    font-size: 1.125rem;
    line-height: 1.5rem;
  }

  .category-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .category-tile {
    aspect-ratio: 1;
    border-radius: 20px;
  }

  .category-tile-text {
    padding: 2.5rem 0.75rem 0.75rem;
  }

  .category-tile-name {
    font-size: 1.125rem;
    line-height: 1.375rem;
  }

  .voices {
    gap: 0.75rem;
  }

  .voice {
    padding: 1rem;
  }

  .app-band {
    padding: 1.75rem 1.25rem;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
  }

  .store-button {
    flex: 1 1 10rem;
    align-items: center;
  }

  .story-hero {
    padding: 1rem 0 2rem;
    gap: 1.25rem;
  }

  .story-hero-cover {
    flex-basis: 100%;
  }

  .wide-art {
    display: none;
  }

  .story-body {
    gap: 2.5rem;
    margin-bottom: 3rem;
  }

  .opening-text {
    font-size: 1.125rem;
    line-height: 1.9375rem;
  }

  .episode {
    gap: 0.875rem;
  }

  .episode-cover {
    width: 4rem;
    height: 4rem;
    border-radius: var(--radius-cover-mini);
  }

  .episode-title {
    font-size: 1.0625rem;
    line-height: 1.375rem;
  }

  .page-head {
    padding: 1rem 0 1.5rem;
  }

  .page-head-voice .monogram {
    width: 4rem;
    height: 4rem;
    font-size: 1.75rem;
  }

  .chips {
    margin-bottom: 2rem;
  }

  .footer-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}
