:root {
  --night: #101020;
  --panel: #18182a;
  --panel-strong: #202033;
  --line: #32324a;
  --text: #f7f3ff;
  --muted: #c9c3de;
  --quiet: #8f88aa;
  --cyan: #5fd8ff;
  --green: #62f6a5;
  --gold: #ffd166;
  --orange: #ff9f43;
  --red: #ff6b6b;
  --paper: #f4fbfa;
  --ink: #17202a;
  --max: 1180px;
  --heading: "Nunito Sans", "Avenir Next", Arial, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    linear-gradient(120deg, rgba(95, 216, 255, 0.08), transparent 32rem),
    linear-gradient(210deg, rgba(255, 209, 102, 0.08), transparent 30rem),
    var(--night);
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  margin: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.skip-link {
  background: var(--gold);
  color: var(--ink);
  left: 1rem;
  padding: 0.6rem 0.8rem;
  position: absolute;
  top: -4rem;
  z-index: 20;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  background: var(--night);
  border-bottom: 1px solid rgba(95, 216, 255, 0.18);
  box-shadow: 0 0.65rem 1rem rgba(8, 8, 18, 0.42);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max);
  min-width: 0;
  padding: 0.85rem 1.25rem;
}

.brand {
  display: grid;
  font-family: var(--heading);
  font-weight: 900;
  line-height: 0.95;
  min-width: 11.5rem;
  text-decoration: none;
  text-transform: uppercase;
}

.brand span {
  white-space: nowrap;
}

.brand span:first-child {
  color: var(--cyan);
}

.brand span:last-child {
  color: var(--gold);
}

.nav-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  justify-content: flex-end;
  min-width: 0;
}

.nav-links a {
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.48rem 0.65rem;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a[aria-current="page"] {
  background: rgba(95, 216, 255, 0.1);
  border-color: rgba(95, 216, 255, 0.28);
  color: var(--text);
}

main {
  margin: 0 auto;
  max-width: var(--max);
  min-width: 0;
  padding: 0 1.25rem 4rem;
  width: 100%;
}

.page-head {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1.25rem;
  max-width: 860px;
}

.page-head.wide {
  max-width: 100%;
}

.page-head.page-hero {
  max-width: none;
}

.page-hero {
  background: #0a0a14;
  border-bottom: 1px solid rgba(95, 216, 255, 0.2);
  border-top: 1px solid rgba(95, 216, 255, 0.12);
  isolation: isolate;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: none;
  min-height: clamp(20rem, 42vh, 30rem);
  overflow: hidden;
  padding:
    clamp(2.6rem, 6vw, 4.7rem)
    max(1.25rem, calc((100vw - var(--max)) / 2 + 1.25rem));
  position: relative;
  width: 100vw;
}

.page-hero::before,
.page-hero::after {
  content: "";
  inset: 0;
  position: absolute;
  pointer-events: none;
}

.page-hero::before {
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  filter: saturate(1.08) contrast(1.04);
  opacity: 0.72;
  z-index: -2;
}

.page-hero::after {
  background:
    linear-gradient(90deg, rgba(10, 10, 20, 0.92), rgba(10, 10, 20, 0.72) 45%, rgba(10, 10, 20, 0.38) 78%, rgba(10, 10, 20, 0.72)),
    linear-gradient(180deg, rgba(10, 10, 20, 0.16), rgba(10, 10, 20, 0.88));
  z-index: -1;
}

.page-hero h1,
.page-hero .lede,
.page-hero .toolbar {
  position: relative;
  text-shadow: 0 0.25rem 0.9rem rgba(0, 0, 0, 0.55);
}

.page-hero .lede {
  color: #f7f3ff;
  max-width: 70ch;
}

h1,
h2,
h3 {
  font-family: var(--heading);
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0;
}

h1 {
  font-size: 3.4rem;
  max-width: 18ch;
}

h2 {
  font-size: 2.35rem;
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0;
}

.lede {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 780px;
  overflow-wrap: anywhere;
}

.home-main {
  display: grid;
  gap: 1.25rem;
  min-width: 0;
  padding-top: 0;
}

.home-hero {
  align-items: stretch;
  background: #0a0a14;
  border: 1px solid rgba(95, 216, 255, 0.22);
  border-left: 0;
  border-radius: 0;
  border-right: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.25fr) minmax(19rem, 0.75fr);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: clamp(32rem, 68vh, 44rem);
  overflow: hidden;
  padding:
    clamp(1.1rem, 3vw, 2rem)
    max(1.25rem, calc((100vw - var(--max)) / 2 + 1.25rem));
  position: relative;
  width: 100vw;
}

.hero-media,
.home-hero::after {
  inset: 0;
  position: absolute;
}

.hero-media {
  z-index: 0;
}

.hero-media img {
  filter: saturate(1.08) contrast(1.04);
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.home-hero::after {
  background:
    linear-gradient(90deg, rgba(10, 10, 20, 0.9), rgba(10, 10, 20, 0.68) 42%, rgba(10, 10, 20, 0.26) 74%, rgba(10, 10, 20, 0.54)),
    linear-gradient(180deg, rgba(10, 10, 20, 0.18), rgba(10, 10, 20, 0.9));
  content: "";
  pointer-events: none;
  z-index: 0;
}

.home-hero > :not(.hero-media) {
  position: relative;
  z-index: 1;
}

.home-copy,
.start-panel,
.home-section,
.anchor-strip {
  background:
    linear-gradient(135deg, rgba(95, 216, 255, 0.11), transparent 42%),
    rgba(24, 24, 42, 0.82);
  border: 1px solid rgba(247, 243, 255, 0.12);
  border-radius: 8px;
  min-width: 0;
}

.home-copy {
  align-content: center;
  display: grid;
  gap: 1rem;
  padding: 2rem;
}

.home-hero .home-copy {
  background: transparent;
  border: 0;
  padding: clamp(1rem, 2.4vw, 2.2rem);
  text-shadow: 0 0.25rem 0.9rem rgba(0, 0, 0, 0.55);
}

.home-copy h1 {
  font-size: 4.2rem;
  max-width: 10ch;
}

.home-copy .lede {
  max-width: 58ch;
}

.home-hero .home-copy .lede {
  color: #f7f3ff;
}

.home-date {
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 800;
}

.start-panel {
  align-content: start;
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.home-hero .start-panel {
  backdrop-filter: blur(8px);
  background:
    linear-gradient(135deg, rgba(95, 216, 255, 0.14), transparent 52%),
    rgba(10, 10, 20, 0.74);
}

.start-panel h2 {
  font-size: 1.35rem;
}

.start-link,
.index-card,
.journey-steps a,
.anchor-links a {
  min-width: 0;
  text-decoration: none;
}

.start-link {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(247, 243, 255, 0.12);
  border-radius: 8px;
  display: grid;
  gap: 0.32rem;
  grid-template-columns: 3rem minmax(0, 1fr);
  padding: 0.9rem;
}

.start-link.primary {
  background: rgba(255, 209, 102, 0.12);
  border-color: rgba(255, 209, 102, 0.32);
}

.start-link span {
  color: var(--cyan);
  font-family: var(--heading);
  font-weight: 900;
  line-height: 1.1;
}

.start-link strong,
.start-link small {
  grid-column: 2;
}

.start-link strong {
  color: var(--text);
  font-family: var(--heading);
  line-height: 1.15;
}

.start-link small {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.home-section {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
}

.section-head.compact {
  align-items: start;
  margin-bottom: 0;
}

.section-head.compact h2 {
  font-size: 1.6rem;
}

.journey-steps {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.journey-steps a {
  background: rgba(16, 16, 32, 0.62);
  border: 1px solid rgba(95, 216, 255, 0.18);
  border-radius: 8px;
  display: grid;
  gap: 0.3rem;
  min-height: 6.2rem;
  padding: 0.8rem;
}

.journey-steps strong {
  color: var(--text);
  font-family: var(--heading);
}

.journey-steps span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.song-byte-section {
  align-items: center;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 21rem);
  overflow: hidden;
}

.song-byte-copy {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}

.section-kicker {
  color: var(--cyan);
  font-family: var(--heading);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.song-byte-copy h2 {
  font-size: 2rem;
}

.song-byte-copy p:not(.section-kicker) {
  color: var(--muted);
  max-width: 58ch;
}

.lyric-byte {
  background: rgba(16, 16, 32, 0.58);
  border-left: 0.22rem solid var(--gold);
  border-radius: 8px;
  padding: 0.8rem 0.9rem;
}

.phone-frame {
  background:
    linear-gradient(145deg, rgba(247, 243, 255, 0.16), rgba(95, 216, 255, 0.08)),
    #0a0a14;
  border: 1px solid rgba(247, 243, 255, 0.2);
  border-radius: 2rem;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.34);
  display: grid;
  gap: 0.55rem;
  justify-self: center;
  max-width: 21rem;
  min-width: 0;
  padding: 0.65rem;
  width: 100%;
}

.phone-feature {
  display: grid;
  gap: 0.85rem;
  justify-items: center;
  min-width: 0;
}

.phone-speaker,
.phone-home {
  background: rgba(247, 243, 255, 0.24);
  justify-self: center;
}

.phone-speaker {
  border-radius: 999px;
  height: 0.26rem;
  margin-top: 0.25rem;
  width: 3.1rem;
}

.phone-home {
  border-radius: 999px;
  height: 0.32rem;
  margin-bottom: 0.12rem;
  width: 4.4rem;
}

.phone-screen {
  background: transparent;
  border: 0;
  border-radius: 1.35rem;
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

.phone-video {
  aspect-ratio: 824 / 1464;
  background: #000;
  border: 0;
  border-radius: 1.25rem;
  box-shadow: none;
  display: block;
  object-fit: cover;
  width: 100%;
}

.phone-caption {
  background: rgba(16, 16, 32, 0.72);
  border: 1px solid rgba(95, 216, 255, 0.18);
  border-radius: 8px;
  display: grid;
  gap: 0.35rem;
  max-width: 21rem;
  padding: 0.85rem;
  width: 100%;
}

.phone-caption strong {
  color: var(--gold);
  font-family: var(--heading);
}

.phone-caption span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.38;
}

.page-index {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.index-card {
  background: rgba(16, 16, 32, 0.58);
  border: 1px solid rgba(247, 243, 255, 0.12);
  border-radius: 8px;
  display: grid;
  gap: 0.35rem;
  min-height: 7rem;
  padding: 0.85rem;
}

.index-card.highlight {
  background: rgba(98, 246, 165, 0.09);
  border-color: rgba(98, 246, 165, 0.26);
}

.index-card strong {
  color: var(--text);
  font-family: var(--heading);
  line-height: 1.1;
}

.index-card span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

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

.anchor-strip h2 {
  font-size: 1.2rem;
}

.anchor-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.anchor-links a {
  border: 1px solid rgba(247, 243, 255, 0.16);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  padding: 0.48rem 0.65rem;
}

.start-link:hover,
.start-link:focus,
.index-card:hover,
.index-card:focus,
.journey-steps a:hover,
.journey-steps a:focus,
.anchor-links a:hover,
.anchor-links a:focus {
  border-color: rgba(95, 216, 255, 0.48);
  color: var(--text);
  outline: 2px solid rgba(95, 216, 255, 0.18);
}

.toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.5rem;
}

.button,
button.button {
  align-items: center;
  background: var(--cyan);
  border: 0;
  border-radius: 8px;
  color: #081019;
  cursor: pointer;
  display: inline-flex;
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 800;
  gap: 0.45rem;
  min-height: 2.8rem;
  padding: 0.7rem 0.95rem;
  text-decoration: none;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(247, 243, 255, 0.18);
  color: var(--text);
}

.button.gold {
  background: var(--gold);
}

.section {
  border-top: 1px solid rgba(247, 243, 255, 0.1);
  padding: 2rem 0;
}

.section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

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

.section-head p {
  color: var(--muted);
  max-width: 54ch;
}

.grid {
  display: grid;
  gap: 1rem;
}

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

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

.card,
.row-card {
  background: rgba(24, 24, 42, 0.88);
  border: 1px solid rgba(247, 243, 255, 0.12);
  border-radius: 8px;
}

.card {
  display: grid;
  gap: 0.7rem;
  padding: 1.1rem;
}

.row-card {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: 11rem minmax(0, 1fr) auto;
  padding: 1rem;
}

.card p,
.row-card p,
.table-wrap td {
  color: var(--muted);
}

.tag,
.status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  padding: 0.42rem 0.55rem;
  width: fit-content;
}

.tag {
  background: rgba(95, 216, 255, 0.12);
  color: var(--cyan);
}

.status.green {
  background: rgba(98, 246, 165, 0.13);
  color: var(--green);
}

.status.gold {
  background: rgba(255, 209, 102, 0.15);
  color: var(--gold);
}

.status.orange {
  background: rgba(255, 159, 67, 0.15);
  color: var(--orange);
}

.status.red {
  background: rgba(255, 107, 107, 0.15);
  color: var(--red);
}

.status.private {
  background: rgba(95, 216, 255, 0.12);
  color: var(--cyan);
}

.link-list {
  display: grid;
  gap: 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.link-list a {
  color: var(--cyan);
  font-weight: 800;
}

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

.metric {
  background: rgba(32, 32, 51, 0.85);
  border: 1px solid rgba(247, 243, 255, 0.12);
  border-radius: 8px;
  padding: 1rem;
}

.metric strong {
  color: var(--text);
  display: block;
  font-family: var(--heading);
  font-size: 1.75rem;
  line-height: 1;
}

.metric span {
  color: var(--muted);
  display: block;
  font-size: 0.88rem;
  margin-top: 0.45rem;
}

.table-wrap {
  border: 1px solid rgba(247, 243, 255, 0.12);
  border-radius: 8px;
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 720px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid rgba(247, 243, 255, 0.1);
  padding: 0.9rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: rgba(32, 32, 51, 0.95);
  color: var(--text);
  font-size: 0.85rem;
}

tr:last-child td {
  border-bottom: 0;
}

.score-list {
  display: grid;
  gap: 0.75rem;
}

.score-line {
  display: grid;
  gap: 0.35rem;
}

.score-line header {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.bar {
  background: rgba(247, 243, 255, 0.1);
  border-radius: 999px;
  height: 0.65rem;
  overflow: hidden;
}

.bar span {
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--gold));
  display: block;
  height: 100%;
}

.callout {
  background: rgba(255, 209, 102, 0.1);
  border: 1px solid rgba(255, 209, 102, 0.25);
  border-radius: 8px;
  color: var(--text);
  padding: 1rem;
}

.builder-layout {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.95fr);
  padding-top: 1rem;
}

.builder-form {
  display: grid;
  gap: 1rem;
}

.builder-form fieldset,
.output-panel {
  background: rgba(24, 24, 42, 0.88);
  border: 1px solid rgba(247, 243, 255, 0.12);
  border-radius: 8px;
  margin: 0;
  padding: 1.1rem;
}

.builder-form fieldset {
  display: flow-root;
}

.builder-form legend,
.output-panel label {
  color: var(--gold);
  display: block;
  font-family: var(--heading);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 0.9rem;
  max-width: 100%;
  padding: 0;
  width: 100%;
}

.builder-form legend {
  float: left;
  overflow-wrap: anywhere;
}

.builder-form legend + .field-grid {
  clear: both;
}

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

.builder-field {
  color: var(--text);
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 800;
  min-width: 0;
}

.builder-field > span:first-child {
  overflow-wrap: anywhere;
}

.field-help {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  overflow-wrap: anywhere;
}

.builder-field.span-all {
  grid-column: 1 / -1;
}

.builder-field.is-textarea {
  grid-column: 1 / -1;
}

.builder-field input,
.builder-field select,
.builder-field textarea,
.markdown-output {
  background: rgba(247, 243, 255, 0.06);
  border: 1px solid rgba(247, 243, 255, 0.18);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  min-height: 2.75rem;
  min-width: 0;
  padding: 0.75rem;
  width: 100%;
}

.builder-field input::placeholder,
.builder-field textarea::placeholder {
  color: rgba(247, 243, 255, 0.48);
  opacity: 1;
}

.builder-field textarea {
  min-height: 7rem;
  resize: vertical;
}

.builder-field select {
  color-scheme: dark;
}

.builder-field select option {
  background-color: #202033;
  color: #f7f3ff;
}

.builder-field select option:checked {
  background-color: #5fd8ff;
  color: #081019;
}

.builder-field input:focus,
.builder-field select:focus,
.builder-field textarea:focus,
.markdown-output:focus {
  border-color: rgba(95, 216, 255, 0.72);
  outline: 2px solid rgba(95, 216, 255, 0.28);
}

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

.check-option {
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(247, 243, 255, 0.12);
  border-radius: 8px;
  color: var(--text);
  display: flex;
  gap: 0.38rem;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.25;
  min-height: 1.75rem;
  min-width: 0;
  padding: 0.28rem 0.45rem;
}

.check-option span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.check-option input {
  accent-color: var(--cyan);
  flex: 0 0 auto;
  height: 0.95rem;
  margin: 0;
  width: 0.95rem;
}

.builder-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.form-pager {
  align-items: stretch;
  border-top: 1px solid rgba(247, 243, 255, 0.1);
  display: grid;
  gap: 0.7rem;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  margin-top: 0.2rem;
  padding-top: 1rem;
}

.form-pager-item {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(247, 243, 255, 0.14);
  border-radius: 8px;
  color: var(--text);
  display: grid;
  gap: 0.18rem;
  min-height: 4rem;
  min-width: 0;
  padding: 0.75rem;
  text-decoration: none;
}

.form-pager-item:last-child {
  text-align: right;
}

.form-pager-item:hover,
.form-pager-item:focus {
  border-color: rgba(95, 216, 255, 0.48);
  outline: 2px solid rgba(95, 216, 255, 0.18);
}

.form-pager-item.is-disabled {
  color: var(--quiet);
  opacity: 0.72;
}

.form-pager-eyebrow,
.form-pager-position {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
}

.form-pager-item strong {
  font-family: var(--heading);
  font-size: 0.95rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.form-pager-position {
  align-self: center;
  margin: 0;
  min-width: 5rem;
  text-align: center;
}

.builder-trail {
  align-items: center;
  background: rgba(32, 32, 51, 0.88);
  border: 1px solid rgba(95, 216, 255, 0.18);
  border-radius: 8px;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 0.75rem;
}

.builder-trail p {
  color: var(--gold);
  font-family: var(--heading);
  font-size: 0.95rem;
  font-weight: 900;
}

.builder-trail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.button.danger {
  background: rgba(255, 107, 107, 0.14);
  border: 1px solid rgba(255, 107, 107, 0.36);
  color: var(--text);
}

.status-message {
  color: var(--green);
  font-size: 0.92rem;
  min-height: 1.4rem;
}

.output-panel {
  display: grid;
  gap: 0.75rem;
  position: sticky;
  top: 5.5rem;
}

.markdown-output {
  color: var(--paper);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.84rem;
  line-height: 1.45;
  min-height: 38rem;
  resize: vertical;
}

.builder-card {
  align-content: start;
}

.footer {
  border-top: 1px solid rgba(247, 243, 255, 0.1);
  color: var(--quiet);
  margin: 2rem auto 0;
  max-width: var(--max);
  padding: 1.5rem 1.25rem 2rem;
}

.compat-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.compat-links span {
  color: var(--quiet);
  font-size: 0.88rem;
  font-weight: 800;
}

.compat-links a {
  border: 1px solid rgba(95, 216, 255, 0.22);
  border-radius: 8px;
  color: var(--cyan);
  font-size: 0.86rem;
  font-weight: 900;
  padding: 0.42rem 0.55rem;
  text-decoration: none;
}

.compat-links a:hover,
.compat-links a:focus {
  border-color: rgba(95, 216, 255, 0.52);
  outline: 2px solid rgba(95, 216, 255, 0.18);
}

.to-top {
  background: var(--gold);
  border: 0;
  border-radius: 8px;
  bottom: 1rem;
  box-shadow: 0 0.7rem 1.4rem rgba(0, 0, 0, 0.35);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 900;
  min-height: 2.8rem;
  opacity: 0;
  padding: 0.65rem 0.85rem;
  pointer-events: none;
  position: fixed;
  right: 1rem;
  transform: translateY(0.5rem);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 30;
}

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 860px) {
  .nav {
    align-items: start;
    display: grid;
    justify-items: stretch;
    width: 100%;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: start;
    min-width: 0;
    width: 100%;
  }

  .grid.three,
  .grid.two,
  .metric-grid,
  .builder-layout,
  .field-grid,
  .option-grid,
  .home-hero,
  .song-byte-section,
  .journey-steps,
  .page-index {
    grid-template-columns: 1fr;
  }

  .home-copy {
    padding: 1.3rem;
  }

  .home-copy h1 {
    font-size: 2.7rem;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .lede {
    font-size: 1.08rem;
  }

  .home-hero {
    min-height: 0;
    padding: 0.8rem;
  }

  .hero-media img {
    object-position: 58% center;
  }

  .journey-steps a,
  .index-card {
    min-height: 0;
  }

  .song-byte-section {
    justify-items: stretch;
  }

  .phone-frame {
    max-width: 19rem;
  }

  .anchor-strip {
    align-items: start;
    display: grid;
  }

  .builder-trail {
    align-items: start;
    display: grid;
  }

  .builder-trail-links {
    justify-content: start;
  }

  .form-pager {
    grid-template-columns: 1fr;
  }

  .form-pager-item:last-child,
  .form-pager-position {
    text-align: left;
  }

  .anchor-links {
    justify-content: start;
  }

  .row-card {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: start;
    display: grid;
  }

  .output-panel {
    position: static;
  }
}

@media (max-width: 520px) {
  main {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .home-copy h1 {
    font-size: 2.25rem;
  }

  h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .nav-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolbar .button,
  .toolbar button.button {
    justify-content: center;
    width: 100%;
  }

  .start-link {
    grid-template-columns: 2.4rem minmax(0, 1fr);
  }

  .phone-frame {
    max-width: 17.5rem;
  }

}

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