@font-face {
  font-family: 'Funnel Display';
  src: url('/fonts/funnel-display-latin-wght-normal.woff2') format('woff2');
  font-weight: 300 800;
  font-display: swap;
  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: 'Funnel Display';
  src: url('/fonts/funnel-display-latin-ext-wght-normal.woff2') format('woff2');
  font-weight: 300 800;
  font-display: swap;
  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;
}
@font-face {
  font-family: 'Geist';
  src: url('/fonts/geist-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  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: 'Geist';
  src: url('/fonts/geist-latin-ext-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  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;
}

/*
 * The page is a printed transcript marked up by hand, the way radio editors did a paper edit. Color only means what it
 * means in the app: cut categories, correction marks and speakers.
 */
:root {
  --paper: #eef1f4;
  --sheet: #f9fafb;
  --ink: #1b2130;
  --pencil: #586074;
  --rule: #d3d9e1;
  --text-strong: var(--ink);
  --display: 'Funnel Display', 'Geist', system-ui, sans-serif;
  --sans: 'Geist', system-ui, sans-serif;
  --gutter: 4.5rem;
  color-scheme: light;
}

/* Cut categories and speakers, the same values as the app's index.css. */
[data-category='off_topic'] {
  --category: oklch(0.8 0.16 80);
}
[data-category='dull'] {
  --category: oklch(0.72 0.03 270);
}
[data-category='mistake'] {
  --category: oklch(0.66 0.21 25);
}
[data-category='retake'] {
  --category: oklch(0.72 0.18 50);
}
[data-category='pre_post_show'] {
  --category: oklch(0.68 0.16 260);
}
[data-speaker='0'] {
  --speaker: oklch(0.7 0.12 190);
}
[data-speaker='1'] {
  --speaker: oklch(0.65 0.2 300);
}
[data-speaker] {
  --speaker-text: color-mix(in oklch, var(--speaker) 70%, var(--text-strong));
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
ol,
ul,
figure,
pre {
  margin: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 4px;
}

[hidden],
.sprite {
  display: none !important;
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon.filled {
  fill: currentColor;
  stroke: none;
}

.wrap {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: 650 1.375rem/1 var(--display);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand .icon {
  width: 1.15em;
  height: 1.15em;
  stroke-width: 1.75;
}

.site-header nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  font-size: 0.9375rem;
}

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

.site-header nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* Hero: a transcript turn in which the first take gets cut. */

.hero {
  padding-block: clamp(3rem, 10vw, 7.5rem) clamp(2.5rem, 6vw, 4.5rem);
}

.script {
  position: relative;
  display: grid;
  grid-template-columns: var(--gutter) minmax(0, 1fr);
  align-items: baseline;
  column-gap: 1rem;
  padding-left: 1.25rem;
}

/* The speaker's rail, as in the app's transcript. */
.script::before {
  content: '';
  position: absolute;
  inset-block: 0.25rem 0.5rem;
  left: 0;
  width: 3px;
  border-radius: 3px;
  background: var(--speaker);
}

.script .speaker {
  grid-column: 2;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--speaker-text);
}

.script time {
  font-size: 0.875rem;
  color: var(--pencil);
  font-variant-numeric: tabular-nums;
}

.take {
  margin-bottom: clamp(1rem, 2.5vw, 1.75rem);
  font: 500 clamp(1.25rem, 2.5vw, 1.875rem) / 1.35 var(--display);
  color: var(--pencil);
}

/* A highlighter sweep across the bad take, then the pen strikes it. */
.struck {
  padding-inline: 0.1em;
  background-image: linear-gradient(
    transparent 14%,
    color-mix(in oklch, var(--category) 42%, transparent) 14% 90%,
    transparent 90%
  );
  background-repeat: no-repeat;
  background-size: 100% 100%;
  text-decoration: line-through 0.08em color-mix(in oklch, var(--ink) 70%, transparent);
  animation: sweep 900ms 500ms cubic-bezier(0.6, 0, 0.3, 1) both;
}

.mark-badge {
  display: inline-block;
  margin-left: 0.4em;
  padding: 0.2em 0.6em;
  border-radius: 999px;
  background: var(--category);
  color: #000;
  font: 600 0.8125rem/1 var(--sans);
  vertical-align: 0.35em;
  animation: badge 300ms 1300ms ease-out both;
}

@keyframes sweep {
  from {
    background-size: 0% 100%;
    text-decoration-color: transparent;
    color: var(--ink);
  }
  65% {
    text-decoration-color: transparent;
  }
}

@keyframes badge {
  from {
    opacity: 0;
    transform: translateX(-0.4em);
  }
}

h1 {
  max-width: 15ch;
  font: 700 clamp(2.75rem, 7.6vw, 6.25rem) / 0.98 var(--display);
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero-body {
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  padding-left: calc(1.25rem + var(--gutter) + 1rem);
}

.lede {
  max-width: 35rem;
  font-size: clamp(1.125rem, 1.8vw, 1.3125rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.meta {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--pencil);
}

/* The editor mock, built with the app's own dark tokens. */

.demo {
  padding-bottom: clamp(4.5rem, 11vw, 9rem);
}

.app {
  --bg: oklch(0.145 0 0);
  --fg: oklch(0.985 0 0);
  --card: oklch(0.205 0 0);
  --muted: oklch(0.269 0 0);
  --muted-fg: oklch(0.708 0 0);
  --border: oklch(1 0 0 / 10%);
  --input: oklch(1 0 0 / 15%);
  --primary: oklch(0.922 0 0);
  --primary-fg: oklch(0.205 0 0);
  --text-strong: var(--fg);
  color-scheme: dark;
  display: grid;
  grid-template-columns: minmax(20rem, 40%) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  height: 46rem;
  overflow: hidden;
  border: 1px solid #000;
  border-radius: 14px;
  background: var(--bg);
  color: var(--fg);
  font-size: 14px;
  line-height: 1.5;
  box-shadow:
    0 1px 0 rgb(255 255 255 / 6%) inset,
    0 40px 80px -30px rgb(27 33 48 / 55%),
    0 12px 24px -12px rgb(27 33 48 / 35%);
}

.app :focus-visible {
  outline-color: var(--fg);
}

.app .muted {
  color: var(--muted-fg);
}

.app .xs {
  font-size: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding-inline: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: 500 13px/1 var(--sans);
  white-space: nowrap;
  color: var(--fg);
  background: none;
  cursor: default;
}

.btn .icon {
  width: 14px;
  height: 14px;
}

button.btn {
  cursor: pointer;
}

.btn.primary {
  background: var(--primary);
  color: var(--primary-fg);
}

.btn.secondary {
  background: var(--muted);
}

.btn.outline {
  border-color: var(--input);
  background: oklch(1 0 0 / 4%);
}

button.btn.ghost:hover,
button.btn.secondary:hover {
  background: oklch(0.32 0 0);
}

button.btn.primary:hover {
  background: oklch(0.85 0 0);
}

.btn.sm {
  height: 28px;
}

.btn.xs-btn {
  height: 24px;
  gap: 4px;
  padding-inline: 8px;
  font-size: 12px;
}

.btn.xs-btn .icon {
  width: 12px;
  height: 12px;
}

.btn.icon-btn {
  width: 32px;
  padding: 0;
  justify-content: center;
}

.btn.is-disabled {
  opacity: 0.4;
}

.app-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}

.app-header .divider {
  width: 1px;
  height: 20px;
  background: var(--border);
}

.app-header strong {
  font-weight: 600;
}

.app-header .path {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--muted-fg);
}

.app-header .history {
  display: flex;
  margin-left: auto;
}

.app-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
  border-right: 1px solid var(--border);
  scrollbar-width: thin;
}

.video {
  position: relative;
  flex: none;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
}

.video > svg {
  display: block;
  width: 100%;
  height: 100%;
}

.video-controls {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 24px 12px 10px;
  background: linear-gradient(transparent, rgb(0 0 0 / 70%));
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.video-controls .track {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: rgb(255 255 255 / 25%);
}

.video-controls .track-fill {
  display: block;
  width: 21.5%;
  height: 100%;
  border-radius: inherit;
  background: #fff;
}

.preview-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.preview-row small {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted-fg);
}

.switch {
  position: relative;
  width: 32px;
  height: 18px;
  flex: none;
  border-radius: 999px;
  background: var(--input);
}

.switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--fg);
}

.switch.is-on {
  background: var(--primary);
}

.switch.is-on::after {
  left: 16px;
  background: var(--primary-fg);
}

.stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.stat {
  display: flex;
  flex-direction: column;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
}

.stat > small {
  font-size: 12px;
  color: var(--muted-fg);
}

.stat b {
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.stat b small {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted-fg);
}

.app-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0;
  list-style: none;
}

.app-steps li {
  display: flex;
  gap: 12px;
}

.app-steps li > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.app-steps b {
  display: block;
  margin-bottom: -6px;
  font-weight: 500;
}

.app-steps p {
  font-size: 12px;
  color: var(--muted-fg);
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-fg);
}

.field {
  display: block;
  padding: 6px 10px;
  border: 1px solid var(--input);
  border-radius: 8px;
  background: oklch(1 0 0 / 4%);
}

.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.app-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.speaker-strip {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 12px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}

/* Explicit cells, like the app's gridRow styles, so the playhead can overlay the lanes' column. */
.speaker-strip > :nth-child(-n + 3) {
  grid-row: 1;
}

.speaker-strip > :nth-child(n + 4):nth-child(-n + 6) {
  grid-row: 2;
}

.lane-name {
  grid-column: 1;
  font-weight: 600;
  color: var(--speaker-text);
}

.lane {
  grid-column: 2;
  display: block;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  fill: var(--speaker);
}

.lane .lane-bg {
  fill: var(--muted);
}

.lane-share {
  grid-column: 3;
  text-align: right;
  color: var(--muted-fg);
  font-variant-numeric: tabular-nums;
}

/* The lanes' column starts after the widest name, so the playhead is placed inside the middle grid column. */
.playhead {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: relative;
  align-self: stretch;
  margin-block: -4px;
  pointer-events: none;
}

.playhead::after {
  content: '';
  position: absolute;
  inset-block: 0;
  left: 21.5%;
  width: 1px;
  background: var(--fg);
}

.transcript-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
}

.pauses-bar {
  display: flex;
  align-items: center;
  gap: 2px;
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding-inline: 4px;
  border-radius: 4px;
  background: var(--muted);
  vertical-align: middle;
  color: var(--fg);
}

kbd .icon {
  width: 12px;
  height: 12px;
}

.transcript {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 16px 24px 24px;
  font-size: 15px;
  scrollbar-width: thin;
}

.row {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1.625;
}

.row::before {
  content: '';
  position: absolute;
  inset-block: 0;
  left: -12px;
  width: 2px;
  background: var(--speaker);
}

.row.turn {
  margin-top: 12px;
}

.row time {
  min-width: 44px;
  padding-top: 3px;
  font-size: 12px;
  color: var(--muted-fg);
  font-variant-numeric: tabular-nums;
}

.row .text {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.row .who {
  padding-top: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--speaker-text);
}

.pause {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0 2px 56px;
  padding: 2px 6px;
  border: 0;
  border-radius: 4px;
  background: none;
  color: var(--muted-fg);
  font: 12px/1.5 var(--sans);
  cursor: pointer;
}

.pause::before {
  content: '';
  position: absolute;
  inset-block: -2px;
  left: -68px;
  width: 2px;
  background: var(--speaker);
}

.pause:hover {
  background: var(--muted);
}

.pause[data-enabled='false'] {
  opacity: 0.5;
}

.pause .icon {
  width: 12px;
  height: 12px;
}

.cut {
  --frame: color-mix(in oklch, var(--category) 40%, transparent);
  margin: 8px -1px;
  border: 1px solid var(--frame);
  border-radius: 10px;
}

.cut[data-enabled='false'] {
  --frame: var(--border);
  border-style: dashed;
}

.cut-head {
  padding: 8px 12px;
  border-bottom: 1px solid var(--frame);
  border-radius: 9px 9px 0 0;
  background: color-mix(in oklch, var(--category) 10%, transparent);
}

.cut[data-enabled='false'] .cut-head {
  border-bottom-style: dashed;
  background: color-mix(in oklch, var(--card) 70%, transparent);
}

.cut[data-enabled='false'] .cut-head > * {
  opacity: 0.7;
}

.cut-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--category);
  color: #000;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-transform: uppercase;
}

.range {
  font-size: 12px;
  color: var(--muted-fg);
  font-variant-numeric: tabular-nums;
}

.cut-state {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted-fg);
}

.cut-line .btn {
  margin-left: auto;
}

.cut-state + .btn {
  margin-left: 0;
}

.reason {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.375;
}

/* Rows in a cut join into one tinted block that follows the card's bottom corners. */
.cut .row {
  margin-top: 0;
  border-radius: 0;
}

.cut .row:last-child {
  border-radius: 0 0 9px 9px;
}

.cut[data-enabled='true'] .row {
  background-image: linear-gradient(to right, color-mix(in oklch, var(--category) 25%, transparent), transparent 10%);
  color: var(--muted-fg);
}

.cut[data-enabled='false'] .row {
  background-image: linear-gradient(to right, color-mix(in oklch, var(--category) 10%, transparent), transparent 10%);
}

.cut[data-enabled='true'] .said {
  text-decoration: line-through;
}

/* Correction marks: amber wavy while pending, emerald once accepted, dotted when rejected. */
.fix {
  position: relative;
}

.fix-mark {
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

[data-status='pending'] > .fix-mark {
  text-decoration-style: wavy;
  text-decoration-color: oklch(0.769 0.188 70.08);
}

[data-status='pending'] > .fix-mark:hover {
  background: oklch(0.769 0.188 70.08 / 15%);
}

[data-status='accepted'] > .fix-mark {
  text-decoration-color: oklch(0.696 0.17 162.48 / 60%);
}

[data-status='accepted'] > .fix-mark:hover {
  background: oklch(0.696 0.17 162.48 / 15%);
}

[data-status='rejected'] > .fix-mark {
  text-decoration-style: dotted;
  text-decoration-color: color-mix(in oklch, var(--muted-fg) 40%, transparent);
}

[data-status='rejected'] > .fix-mark:hover {
  background: var(--muted);
}

.popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: max-content;
  max-width: 18rem;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: oklch(0.205 0 0);
  box-shadow: 0 12px 32px rgb(0 0 0 / 45%);
  font-size: 14px;
  line-height: 1.45;
  color: var(--fg);
  text-decoration: none;
}

.popover-change {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.popover-change s {
  color: var(--muted-fg);
}

.popover-change b {
  font-weight: 500;
}

.popover-change .icon {
  width: 14px;
  height: 14px;
  color: var(--muted-fg);
}

.popover-reason {
  font-size: 12px;
  color: var(--muted-fg);
}

.popover-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.popover-actions .btn.ghost {
  margin-left: auto;
}

.popover-actions.when-pending .btn.ghost {
  margin-left: 0;
}

[data-status='pending'] .when-decided,
.fix:not([data-status='pending']) .when-pending {
  display: none;
}

.caption {
  max-width: 44rem;
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  color: var(--pencil);
}

/* Sections below the mock share one layout: an intro column and a content column. */

.how,
.timing,
.local {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding-bottom: clamp(4.5rem, 11vw, 9rem);
}

.section-intro {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-self: start;
}

.section-intro p {
  max-width: 32rem;
  color: var(--pencil);
  text-wrap: pretty;
}

h2 {
  font: 650 clamp(2rem, 4.2vw, 3.25rem) / 1.04 var(--display);
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h3 {
  font: 600 1.375rem/1.2 var(--display);
  letter-spacing: -0.01em;
}

.how .section-intro {
  position: sticky;
  top: 2rem;
}

.steps {
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--rule);
}

.steps li:first-child {
  padding-top: 0.25rem;
  border-top: 0;
}

.step-number {
  font: 300 2.25rem/1 var(--display);
  color: var(--pencil);
  font-variant-numeric: tabular-nums;
}

.steps h3 {
  margin-bottom: 0.5rem;
}

.steps p {
  max-width: 36rem;
  text-wrap: pretty;
}

mark {
  padding-inline: 0.12em;
  border-radius: 2px;
  background: linear-gradient(transparent 12%, color-mix(in oklch, var(--category) 45%, transparent) 12% 92%, transparent 92%);
  color: inherit;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.inline-fix {
  white-space: nowrap;
}

.inline-fix s {
  color: var(--pencil);
}

.wavy {
  text-decoration: underline wavy oklch(0.769 0.188 70.08);
  text-underline-offset: 4px;
}

/* A printed transcript with the cut marked by scissors lines, like a paper edit. */

.sheet {
  align-self: start;
  min-width: 0;
  padding: clamp(1rem, 3vw, 1.75rem);
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--sheet);
}

.sheet-row {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0.75rem;
  padding-block: 0.375rem;
}

.sheet-row time {
  padding-top: 1.45rem;
  font-size: 0.8125rem;
  color: var(--pencil);
  font-variant-numeric: tabular-nums;
}

.sheet-row .who {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--speaker-text);
}

.sheet-cut s {
  padding-inline: 0.1em;
  background: linear-gradient(transparent 14%, color-mix(in oklch, var(--category) 42%, transparent) 14% 90%, transparent 90%);
  color: var(--pencil);
  text-decoration-color: color-mix(in oklch, var(--ink) 70%, transparent);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.sheet .mark-badge {
  font-size: 0.75rem;
  vertical-align: 0.1em;
  animation: none;
}

.cut-here {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-block: 0.375rem;
}

.cut-here .icon {
  width: 1.125rem;
  height: 1.125rem;
  stroke-width: 1.75;
}

.cut-here .dash {
  flex: 1;
  border-top: 1.5px dashed var(--pencil);
}

.cut-here time {
  font-size: 0.8125rem;
  color: var(--pencil);
  font-variant-numeric: tabular-nums;
}

.sheet figcaption {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--pencil);
}

/* Local */

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

.split h3 {
  margin-bottom: 0.875rem;
}

.split ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 1.1rem;
}

.split li::marker {
  color: var(--pencil);
}

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 3rem;
  padding-block: 2.5rem 3rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
  color: var(--pencil);
}

.entry b {
  font: 650 1.625rem/1 var(--display);
  letter-spacing: -0.01em;
  color: var(--ink);
}

.entry .pron {
  margin-inline: 0.35rem;
}

.credits {
  max-width: 34rem;
}

/* Tablet and phone */

@media (max-width: 900px) {
  .app {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    height: auto;
  }

  .app-side {
    padding-bottom: 4px;
    border-right: 0;
    overflow: visible;
  }

  .video,
  .preview-row,
  .app-steps {
    display: none;
  }

  .transcript {
    overflow: visible;
  }

  .how,
  .timing,
  .local {
    grid-template-columns: minmax(0, 1fr);
  }

  .how .section-intro {
    position: static;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 2.5rem;
  }

  .script {
    column-gap: 0.75rem;
    padding-left: 0.875rem;
  }

  .hero-body {
    padding-left: 0.875rem;
  }

  .app-header .path,
  .app-header .divider,
  .transcript-bar > p:first-child {
    display: none;
  }

  .stat {
    padding: 6px 8px;
  }

  .stat b {
    font-size: 15px;
  }

  .transcript {
    padding: 8px 8px 16px 16px;
    font-size: 14px;
  }

  .row {
    gap: 8px;
    padding-inline: 6px;
  }

  .row time {
    min-width: 36px;
  }

  .pause {
    margin-left: 46px;
  }

  .pause::before {
    left: -58px;
  }

  .cut-state {
    display: none;
  }

  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps li {
    grid-template-columns: 2rem minmax(0, 1fr);
  }

  .step-number {
    font-size: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .struck,
  .mark-badge {
    animation: none;
  }
}
