:root {
  --foreground: #252a30;
  --muted: #697079;
  --soft: #f5f7f8;
  --border: #dce1e5;
  --activation: #7b828a;
  --direct: #7b828a;
  --fixed: #ff7a3d;
  --dbn: #cd5c5c;
  --plpdp: #708238;
  --casm: #4173c8;
  --danger: #d85555;
  --content: 1180px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--foreground);
  background: #fff;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  min-width: 320px;
  background: #fff;
  letter-spacing: 0;
}

button,
input { font: inherit; }

button,
label { -webkit-tap-highlight-color: transparent; }

a { color: inherit; }

.content-width,
.site-header__inner {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.site-header__inner {
  min-height: 148px;
  padding: 32px 0 27px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  color: #137b76;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
p { letter-spacing: 0; }

h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1.08;
  font-weight: 720;
}

h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 680;
}

.lede {
  margin: 10px 0 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.submission-note {
  margin: 8px 0 0;
  max-width: 820px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.submission-note a {
  color: #137b76;
  font-weight: 650;
}

.submission-note strong { color: var(--foreground); }

.github-link,
.command,
.icon-command {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--foreground);
  cursor: pointer;
  text-decoration: none;
  font-weight: 650;
}

.github-link {
  min-height: 42px;
  padding: 0 16px;
  border-color: #24292f;
  background: #24292f;
  color: #fff;
}

.command:hover,
.icon-command:hover { border-color: #aeb6bd; background: var(--soft); }

.github-link:hover {
  border-color: #111418;
  background: #111418;
}

.github-link svg,
.command svg,
.icon-command svg {
  width: 18px;
  height: 18px;
}

.github-link svg {
  width: 21px;
  height: 21px;
  stroke-width: 2;
}

.listening-band {
  padding: 28px 0 26px;
  border-bottom: 1px solid var(--border);
  background: var(--soft);
}

.band-heading,
.figure-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.figure-heading > div { min-width: 0; }
.figure-heading h2 { max-width: 100%; overflow-wrap: anywhere; }

.window-label {
  margin: 0;
  padding-bottom: 2px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.method-switch {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.method-option {
  position: relative;
  min-height: 47px;
  padding: 7px 10px 7px 14px;
  border: 0;
  border-right: 1px solid var(--border);
  background: #fff;
  color: var(--foreground);
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  font-weight: 650;
}

.method-option:last-child { border-right: 0; }

.method-option::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--method-color);
}

.method-option:hover:not(:disabled) { background: #f8fafb; }

.method-option[aria-checked="true"] {
  background: color-mix(in srgb, var(--method-color) 10%, white);
  box-shadow: inset 0 -3px 0 var(--method-color);
}

.method-option:disabled {
  cursor: not-allowed;
  color: #9da3a9;
  background: #f2f3f4;
}

.transport-row {
  display: grid;
  grid-template-columns: auto auto minmax(220px, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.command { padding: 0 18px; }

.command--primary {
  border-color: var(--foreground);
  background: var(--foreground);
  color: #fff;
}

.command--primary:hover { background: #373b40; border-color: #373b40; }

.icon-command {
  width: 40px;
  padding: 0;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.progress-block {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto;
  align-items: center;
  gap: 12px;
}

progress {
  width: 100%;
  height: 7px;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: #d9dde1;
}

progress::-webkit-progress-bar { background: #d9dde1; }
progress::-webkit-progress-value { background: var(--activation); }
progress::-moz-progress-bar { background: var(--activation); }

.tabular { font-variant-numeric: tabular-nums; }

#playTime {
  min-width: 132px;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.audio-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: 17px;
}

.toggle-control,
.range-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 620;
}

.toggle-control input { width: 16px; height: 16px; accent-color: var(--activation); }
.range-control input { width: 110px; accent-color: var(--activation); }

.status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.status-row p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.status-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--activation);
}

.status-dot[data-state="error"] { background: var(--danger); }
.status-dot[data-state="playing"] { background: var(--casm); }

.figure-section { padding: 22px 0 10px; }

.figure-heading p:last-child {
  margin: 0;
  max-width: 410px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: right;
}

#figureFrame {
  display: block;
  width: 100%;
  height: 800px;
  margin-top: 0;
  border: 0;
  background: #fff;
}

footer { padding: 22px 0 34px; }

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner a { color: #137b76; }

@media (max-width: 820px) {
  .site-header__inner,
  .band-heading,
  .figure-heading,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 { font-size: 30px; }
  .method-switch { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .method-option:nth-child(3) { border-right: 0; }
  .method-option:nth-child(-n + 3) { border-bottom: 1px solid var(--border); }
  .figure-heading p:last-child { text-align: left; }
}

@media (max-width: 560px) {
  .content-width,
  .site-header__inner { width: min(100% - 24px, var(--content)); }
  .site-header__inner { min-height: 0; padding: 25px 0 22px; }
  h1 { font-size: 27px; }
  h2 { font-size: 19px; }
  .method-switch { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-option:nth-child(2n) { border-right: 0; }
  .method-option:nth-child(3) { border-right: 1px solid var(--border); }
  .method-option:nth-child(-n + 4) { border-bottom: 1px solid var(--border); }
  .transport-row { grid-template-columns: auto auto 1fr; }
  .progress-block { grid-column: 1 / -1; }
  .range-control { width: 100%; justify-content: space-between; }
  .range-control input { width: min(220px, 65%); }
  #figureFrame { height: 1390px; }
}
