@import url('./control-colors.css');

:root {
  color-scheme: light;
  font-family: 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  color: #443b35;
  background: #fffaf3;
  --accent: #a34b6b;
  --muted: #75685e;
  --line: #e9d9cc;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid #a34b6b;
  outline-offset: 4px;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
button {
  font: inherit;
  color: inherit;
}
p,
figure {
  margin: 0;
}
.wrap {
  width: min(1152px, calc(100% - 96px));
  margin-inline: auto;
}
section[id] {
  scroll-margin-top: 24px;
}
.site-header,
.footer {
  min-height: 85px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #e9d9cc;
}
.brand,
nav,
.actions {
  display: flex;
  align-items: center;
}
.brand {
  gap: 10px;
  font-weight: 720;
  white-space: nowrap;
}
.brand img {
  border-radius: 9px;
  background: #f7e1e7;
}
nav {
  gap: clamp(15px, 3vw, 39px);
  font-size: 14px;
}
nav a:hover,
.footer a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.nav-download {
  font-weight: 700;
  color: var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 24px;
  align-items: center;
  min-height: 620px;
  padding-block: 44px 65px;
}
.hero-copy {
  z-index: 1;
}
h1,
h2 {
  margin: 0;
  line-height: 1.17;
}
h1 {
  font-size: clamp(53px, 6.9vw, 102px);
  font-weight: 850;
  letter-spacing: -0.09em;
}
h1 em {
  color: var(--accent);
  font-style: normal;
}
.hero-copy > p:not(.availability) {
  max-width: 440px;
  margin-block: 26px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}
.actions {
  flex-wrap: wrap;
  gap: 12px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  padding: 12px 19px;
  min-height: 48px;
  border: 1px solid #dec8c4;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
}
.button:not(.primary):hover {
  background: #f7e1e7;
}
.button:not(.primary):active,
.modes button:active {
  background: #f0ceda;
}
.availability {
  color: var(--muted);
  margin-top: 16px;
  font-size: 13px;
}
.hero-art {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-width: 0;
  aspect-ratio: 1.06;
}
.hero-art::before,
.hero-art::after {
  content: '';
  position: absolute;
  inset: 8% 5% 8%;
  border: 1px dashed #be89aa;
  background: #f7e1e746;
  border-radius: 50%;
  transform: rotate(-24deg);
  z-index: -1;
}
.hero-art::after {
  inset: -3% 0 10%;
  opacity: 0.36;
  background: transparent;
}
.radio-art {
  width: 100%;
  filter: drop-shadow(0 14px 16px #91456820);
}
.radio-note {
  position: absolute;
  right: -2%;
  bottom: 9%;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #ecd3cf;
  padding: 12px 17px;
  background: #fffaf5;
  border-radius: 13px;
  box-shadow: 0 4px 14px #55357118;
  color: #73394f;
  font-size: 14px;
  font-weight: 700;
}
.radio-note span {
  display: block;
  width: 9px;
  height: 9px;
  background: #d75436;
  border-radius: 50%;
}
h2 {
  font-size: clamp(30px, 4vw, 55px);
  letter-spacing: -0.065em;
  font-weight: 800;
}
.section-copy {
  max-width: 670px;
  margin-top: 17px;
  line-height: 1.85;
  color: var(--muted);
}
.play-section {
  background: #f7e1e7;
  padding-block: clamp(48px, 7vw, 95px);
}
.demo {
  display: grid;
  grid-template-columns: 0.65fr 1fr;
  gap: 28px;
  margin-top: 32px;
}
.modes {
  display: grid;
  align-content: start;
  gap: 10px;
}
.modes button {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 18px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.modes button:hover {
  border-color: #d7b2bd;
}
.modes button[aria-pressed='true'] {
  background: #fff8f5;
  border-color: #c58da1;
}
.modes strong {
  font-size: 18px;
  color: #73394f;
}
.modes span {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.exchange {
  min-height: 330px;
  padding: clamp(18px, 3vw, 28px);
  border-radius: 20px;
  border: 1px solid #ebcbd6;
  background: #fffbf7;
}
.demo-label {
  font-size: 13px;
  font-weight: 730;
  color: var(--accent);
  margin-bottom: 18px;
}
.message {
  margin-top: 12px;
  max-width: 86%;
}
.message > span {
  font-size: 12px;
  color: var(--muted);
}
.message > p {
  margin-top: 5px;
  padding: 9px 13px;
  border-radius: 9px;
  background: #f7e1e7;
  line-height: 1.65;
  font-size: 14px;
}
.message.child {
  margin-left: auto;
  width: fit-content;
}
.message.child > span {
  display: block;
  text-align: right;
}
.message.child > p {
  background: #e8f1f5;
}
.setup {
  display: grid;
  grid-template-columns: 0.76fr 1fr;
  align-items: center;
  gap: clamp(28px, 5.5vw, 78px);
  padding-block: clamp(54px, 8.5vw, 118px);
}
.setup ol {
  display: grid;
  gap: 20px;
  margin: 27px 0 0;
  padding-left: 25px;
}
.setup li {
  padding-left: 4px;
}
.setup li::marker {
  color: var(--accent);
  font-weight: 700;
}
.setup li p {
  color: var(--muted);
  line-height: 1.8;
  margin-top: 4px;
}
.setup figure {
  min-width: 0;
}
.setup figure img {
  width: 100%;
  border: 1px solid #e9d9cc;
  border-radius: 13px;
  box-shadow: 0 12px 28px #2a163015;
}
.setup figcaption {
  color: var(--muted);
  font-size: 13px;
  margin-top: 12px;
}
.download {
  background: #f7e1e7;
  border: 1px solid #ebcbd6;
  border-radius: 22px;
  text-align: center;
  padding: 52px 22px;
}
.download p {
  margin: 16px 0 21px;
  color: var(--muted);
}
.download .actions {
  justify-content: center;
}
.footer {
  border: 0;
  font-size: 13px;
  color: var(--muted);
  min-height: 105px;
}

@media (max-width: 850px) {
  .wrap {
    width: calc(100% - 56px);
  }
  .hero {
    min-height: 520px;
  }
  .setup {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 650px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .site-header {
    min-height: 70px;
    gap: 12px;
  }
  .brand {
    font-size: 14px;
    gap: 5px;
  }
  .brand img {
    width: 28px;
  }
  nav {
    gap: 13px;
    font-size: 12px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 47px;
    padding-bottom: 33px;
  }
  h1 {
    font-size: clamp(53px, 12vw, 74px);
  }
  .hero-copy > p:not(.availability) {
    margin-block: 19px;
    font-size: 16px;
  }
  .hero-art {
    width: min(100%, 420px);
    margin-inline: auto;
  }
  .radio-note {
    right: 0;
  }
  .demo,
  .setup {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .modes {
    gap: 4px;
  }
  .modes button {
    padding: 12px 14px;
    gap: 4px;
  }
  .setup {
    gap: 27px;
  }
  .message {
    max-width: 96%;
  }
  .download {
    padding-block: 40px;
  }
}
