:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #202936;
  background: #eef3fa;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --ink: #202936;
  --muted: #566780;
  --blue: #176fe5;
  --line: #d7e1ef;
  --focus: #155fca;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 32px 0 24px;
  background: linear-gradient(118deg, #eef3fa 0%, #f4f6fb 51%, #f0edfa 100%);
}

.site-header,
.page-content {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.04em;
}

.brand img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.github-link {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  color: var(--ink);
}

.github-link:hover {
  background: rgb(255 255 255 / 55%);
}

.github-link svg {
  display: block;
  width: 23px;
  height: 23px;
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.hero {
  max-width: 860px;
  margin-inline: auto;
  padding-top: clamp(48px, 5vw, 80px);
  text-align: center;
}

.hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.5rem, 5.7vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  text-wrap: balance;
}

.subtitle {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  line-height: 1.5;
  text-wrap: balance;
}

.download-button {
  display: inline-flex;
  min-height: 72px;
  min-width: 320px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
  padding: 16px 36px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 15px;
  background: var(--ink);
  box-shadow: 0 10px 24px rgb(32 41 54 / 14%);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 560;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.download-button:hover {
  background: #29384c;
}

.download-button svg {
  width: 27px;
  height: 27px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.compatibility {
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.compatibility span {
  display: inline-block;
}

.compatibility span + span::before {
  content: " · ";
  white-space: pre;
}

.mixer-figure {
  margin: 48px 0 0;
}

.mixer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgb(255 255 255 / 82%);
  border-radius: 20px;
  background: rgb(255 255 255 / 58%);
  box-shadow: 0 10px 28px rgb(53 76 121 / 7%);
}

.channel {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 24px 20px;
}

.channel + .channel::before {
  position: absolute;
  inset: 20px auto 20px -9px;
  border-left: 1px solid var(--line);
  content: "";
}

.channel--selected {
  border-radius: 13px;
  background: linear-gradient(145deg, rgb(225 239 255 / 92%), rgb(233 243 255 / 70%));
  box-shadow: inset 0 0 0 1px rgb(187 214 246 / 38%);
}

.channel-heading {
  display: flex;
  min-height: 28px;
  align-items: center;
  gap: 12px;
  color: #28364a;
  font-size: 18px;
  font-weight: 550;
  letter-spacing: -0.02em;
}

.channel-icon {
  display: block;
  width: 27px;
  height: 27px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.channel-meter {
  display: flex;
  align-items: center;
  gap: 16px;
}

.meter-track {
  display: block;
  height: 8px;
  min-width: 0;
  flex: 1;
  overflow: visible;
  border-radius: 999px;
  background: #d7e0ed;
}

.meter-fill {
  position: relative;
  display: block;
  width: var(--level);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #176fe5, #1686f6);
}

.meter-fill::after {
  position: absolute;
  top: 50%;
  right: 0;
  width: 24px;
  height: 24px;
  border: 1px solid #d3e1f3;
  border-radius: 50%;
  background: #f8fbff;
  box-shadow: 0 3px 9px rgb(50 77 123 / 14%);
  content: "";
  transform: translate(50%, -50%);
}

.meter-value {
  flex: 0 0 26px;
  color: #4f617a;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.mixer-figure figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

.shortcut {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.shortcut kbd {
  padding: 9px 14px;
  border: 1px solid #d1dced;
  border-radius: 8px;
  background: rgb(255 255 255 / 70%);
  box-shadow: 0 3px 9px rgb(51 75 116 / 9%);
  color: #34445a;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.2;
}

.shortcut-plus {
  color: #64738a;
}

.shortcut-instruction {
  color: var(--muted);
}

@media (max-width: 799px) {
  .mixer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .channel:nth-child(3)::before {
    content: none;
  }
}

@media (max-width: 639px) {
  body {
    padding-top: 24px;
  }

  .hero {
    padding-top: 40px;
  }

  .mixer-figure {
    margin-top: 32px;
  }

  .download-button {
    min-height: 64px;
    min-width: 0;
    width: min(100%, 320px);
    padding-inline: 24px;
    font-size: 1.125rem;
    margin-top: 24px;
  }

  .compatibility {
    max-width: 280px;
    font-size: 0.875rem;
    line-height: 1.6;
    text-wrap: balance;
  }

  .compatibility span {
    display: block;
  }

  .compatibility span + span::before {
    content: none;
  }

  .mixer {
    gap: 8px 12px;
    padding: 12px;
  }

  .channel {
    gap: 24px;
    padding: 16px 12px;
  }

  .channel + .channel::before {
    inset: 16px auto 16px -7px;
  }

  .channel-heading {
    gap: 8px;
    font-size: 16px;
  }

  .channel-icon {
    width: 23px;
    height: 23px;
  }

  .channel-meter {
    gap: 12px;
  }

  .meter-value {
    flex-basis: 22px;
    font-size: 14px;
  }

  .meter-fill::after {
    width: 20px;
    height: 20px;
  }

  .shortcut {
    margin-top: 24px;
  }

  .shortcut-instruction {
    flex-basis: 100%;
    text-align: center;
  }
}

@media (max-width: 359px) {
  .brand {
    gap: 9px;
    font-size: 23px;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .hero h1 {
    font-size: 2.35rem;
  }
}

.policy {
  margin: 32px 0 0;
  text-align: center;
  font-size: 0.875rem;
}

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