:root {
  --steel: #e4e9e6;
  --ink: #14211c;
  --ticket: #f3f6f4;
  --verdigris: #0c6a52;
  --verdigris-deep: #084838;
  --bed: #10211c;
  --pen: #f4f7f5;
  --blip: #8fdecb;
  --rule: #c5cec9;
  --muted: #3e524a;
  --display: "Anybody", "Avenir Next Condensed", sans-serif;
  --body: "Atkinson Hyperlegible", "Avenir Next", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --measure: 72rem;
  --pad: clamp(1.1rem, 3vw, 2rem);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--steel);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
}

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

a {
  color: var(--verdigris-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

:focus-visible {
  outline: 2px solid var(--verdigris-deep);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: var(--pad);
  top: -4rem;
  z-index: 5;
  background: var(--ink);
  color: var(--pen);
  padding: 0.55rem 0.8rem;
  text-decoration: none;
}

.skip:focus {
  top: 0.8rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(var(--measure), calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--measure), calc(100% - var(--pad) * 2));
  margin: 0 auto;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-variation-settings: "wdth" 108, "wght" 680;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-family: var(--mono);
  font-size: 0.78rem;
}

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

.nav a:hover {
  color: var(--verdigris-deep);
  text-decoration: underline;
}

.hero {
  padding: clamp(2.2rem, 6vw, 4.5rem) 0 1.5rem;
}

.kicker {
  margin: 0 0 0.8rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
  margin-top: 0.85rem;
}

.hero-grid > *,
.stack > *,
.slip,
.fold,
.ledger,
.assets {
  min-width: 0;
  max-width: 100%;
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 740;
  font-stretch: 112%;
  font-variation-settings: "wdth" 112, "wght" 740;
  font-size: clamp(2.7rem, 4.7vw, 4.6rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
}

.deck {
  margin: 1rem 0 0;
  max-width: 38rem;
  font-size: 1.12rem;
}

.deck a,
.deck code {
  white-space: nowrap;
}

.deck a {
  font-family: var(--mono);
  font-size: 0.92em;
}

.slip {
  background: var(--ticket);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--verdigris);
  border-radius: 2px;
}

.slip + .slip {
  margin-top: 0.7rem;
}

.slip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0.7rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.copy {
  appearance: none;
  border: 1px solid var(--verdigris-deep);
  background: var(--verdigris);
  color: var(--pen);
  font-family: var(--display);
  font-variation-settings: "wdth" 100, "wght" 650;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  padding: 0.28rem 0.7rem;
  border-radius: 2px;
  cursor: pointer;
}

.copy:hover {
  background: var(--verdigris-deep);
}

.copy[data-state="copied"] {
  background: var(--ink);
  border-color: var(--ink);
}

pre {
  margin: 0;
  padding: 0.85rem 0.9rem 1rem;
  max-width: 100%;
  overflow-x: auto;
}

code,
.mono {
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.55;
}

.copy-status {
  min-height: 1.2em;
  margin: 0.55rem 0 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.recorder {
  margin: 0.4rem 0 0;
}

.bed {
  background: var(--bed);
  color: var(--pen);
  border-radius: 2px;
  padding: 0.9rem 0.9rem 0.75rem;
}

.bed-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.55rem;
}

.bed-title {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(244, 247, 245, 0.72);
}

.readout {
  font-family: var(--display);
  font-variation-settings: "wdth" 72, "wght" 680;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
}

.readout small {
  font-size: 0.42em;
  margin-left: 0.12em;
  letter-spacing: 0;
  color: var(--blip);
}

.track {
  position: relative;
  height: 8.5rem;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent calc(100% / 6 - 1px),
      rgba(244, 247, 245, 0.42) calc(100% / 6 - 1px),
      rgba(244, 247, 245, 0.42) calc(100% / 6)
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent calc(100% / 60 - 1px),
      rgba(244, 247, 245, 0.16) calc(100% / 60 - 1px),
      rgba(244, 247, 245, 0.16) calc(100% / 60)
    );
}

.track::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.35rem;
  height: 1px;
  background: rgba(244, 247, 245, 0.38);
}

.mark {
  position: absolute;
  bottom: 1.35rem;
  left: calc(var(--sec) / 60 * 100%);
  transform: translateX(-50%);
  width: 2px;
  height: 2.4rem;
  background: var(--blip);
}

.mark-sec {
  position: absolute;
  top: -1.25rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--display);
  font-variation-settings: "wdth" 72, "wght" 650;
  font-size: 0.95rem;
  letter-spacing: -0.03em;
  color: var(--blip);
}

.mark.is-hot {
  height: 3.6rem;
  background: var(--pen);
}

.mark.is-hot .mark-sec {
  color: var(--pen);
}

.playhead {
  position: absolute;
  top: 0;
  bottom: 1.35rem;
  left: calc(var(--sec, 26) / 60 * 100%);
  width: 2px;
  background: var(--pen);
  transform: translateX(-1px);
  z-index: 1;
}

.playhead::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid var(--pen);
}

.scale {
  position: relative;
  height: 1.2rem;
  margin-top: 0.25rem;
}

.scale span {
  position: absolute;
  top: 0;
  left: calc(var(--sec) / 60 * 100%);
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.68rem;
  color: rgba(244, 247, 245, 0.62);
}

.scale span:first-child {
  transform: none;
}

.scale span:last-child {
  transform: translateX(-100%);
}

.recorder-note {
  margin: 0.85rem 0 0;
  max-width: 68ch;
  color: var(--muted);
}

.section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  border-top: 1px solid var(--rule);
}

h2 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: "wdth" 118, "wght" 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.lede {
  margin: 0 0 1.4rem;
  max-width: 46rem;
  color: var(--muted);
}

.unit {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0 0 1.5rem;
  padding: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.unit div {
  padding: 0.8rem 0.75rem 0.9rem 0;
}

.unit dt {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.unit dd {
  margin: 0.25rem 0 0;
  font-family: var(--mono);
  font-size: 0.88rem;
}

.ledger {
  width: 100%;
  border-collapse: collapse;
}

.ledger th {
  text-align: left;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 0.6rem 0.45rem 0;
}

.ledger td {
  vertical-align: top;
  padding: 0.85rem 1rem 0.85rem 0;
  border-top: 1px solid var(--rule);
}

.ledger td:first-child {
  font-family: var(--mono);
  font-size: 0.84rem;
  white-space: nowrap;
  color: var(--verdigris-deep);
  width: 9.5rem;
}

.steps {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.8rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--rule);
}

.steps li::before {
  content: counter(step);
  font-family: var(--display);
  font-variation-settings: "wdth" 80, "wght" 700;
  font-size: 1.45rem;
  line-height: 1;
  color: var(--verdigris);
}

.steps h3,
.qa h3 {
  margin: 0 0 0.2rem;
  font-family: var(--display);
  font-variation-settings: "wdth" 108, "wght" 680;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.steps p,
.qa p {
  margin: 0;
}

.stack {
  display: grid;
  gap: 0.75rem;
}

.fold {
  background: var(--ticket);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0.2rem 0.9rem 0.15rem;
}

.fold summary {
  cursor: pointer;
  font-family: var(--display);
  font-variation-settings: "wdth" 108, "wght" 650;
  padding: 0.7rem 0;
}

.fold p {
  margin: 0 0 0.8rem;
  color: var(--muted);
}

.assets {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.4rem;
}

.assets th,
.assets td {
  text-align: left;
  padding: 0.65rem 0.6rem 0.65rem 0;
  border-top: 1px solid var(--rule);
  vertical-align: baseline;
}

.assets th {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.assets td:last-child {
  font-family: var(--mono);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.note {
  margin: 0.8rem 0 0;
  color: var(--muted);
  max-width: 68ch;
}

.release-title {
  margin: 2.2rem 0 0;
  font-family: var(--display);
  font-variation-settings: "wdth" 108, "wght" 680;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.qa {
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
}

.foot {
  border-top: 1px solid var(--rule);
  padding: 1.4rem 0 2.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
  font-family: var(--mono);
  font-size: 0.78rem;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}

.missing {
  padding: 4rem 0 5rem;
}

.missing h1 {
  font-size: clamp(2.6rem, 7vw, 4.5rem);
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .unit {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 640px) {
  .ledger th {
    display: none;
  }

  .ledger,
  .ledger tbody,
  .ledger tr,
  .ledger td {
    display: block;
    width: auto;
  }

  .ledger tr {
    padding: 0.85rem 0;
    border-top: 1px solid var(--rule);
  }

  .ledger td {
    border-top: 0;
    padding: 0.15rem 0;
  }

  .mark-sec {
    font-size: 0.78rem;
  }
}

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

  .playhead {
    left: calc(26 / 60 * 100%);
  }
}
