:root {
  color-scheme: light;
  font-family: system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #18251f;
  background: #f4f5ee;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main { width: min(48rem, calc(100% - 2.5rem)); margin: clamp(3rem, 10vh, 7rem) auto 3rem; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2.25rem, 6.5vw, 4rem); line-height: 1.14; letter-spacing: -.055em; }
.intro p { margin-top: .9rem; color: #4f5d52; line-height: 1.7; }

.board {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  margin-top: 2rem;
  background: #fff;
  border: 1px solid #d9dfd5;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 16px 45px #1c352511;
}

.preview {
  min-height: 15.5rem;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1rem;
  padding: 2rem;
  background: #dce9d5;
  background-image: radial-gradient(#82977d60 1px, transparent 1px);
  background-size: 16px 16px;
}

.preview p { color: #364b3d; font-size: .875rem; font-weight: 650; }
.app-icon { position: relative; }
.app-icon img { display: block; border-radius: 28%; box-shadow: 0 10px 18px #1a302338; }
.badge {
  position: absolute;
  top: -.5rem;
  right: -.5rem;
  min-width: 1.875rem;
  height: 1.875rem;
  padding: 0 .35rem;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 2rem;
  background: #ca293a;
  color: #fff;
  font: 700 .875rem/1 system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}

.controls { align-self: center; padding: clamp(1.25rem, 5vw, 2rem); }
form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .6rem; }
label { grid-column: 1 / -1; font-weight: 700; }
input, button { min-height: 2.875rem; border-radius: .65rem; font: inherit; }
input { width: 100%; border: 1px solid #aab6ab; padding: .5rem .75rem; color: inherit; background: #fff; }
input[aria-invalid="true"] { border-color: #b32533; }
button { border: 1px solid #203a2e; padding: .5rem .9rem; background: #203a2e; color: #fff; cursor: pointer; font-weight: 650; }
button:hover { background: #315543; }
button:disabled { cursor: wait; opacity: .65; }
button.secondary { background: #fff; color: #203a2e; border-color: #aab6ab; }
button.secondary:hover { background: #edf3ea; }
:focus-visible { outline: 3px solid #2a7350; outline-offset: 3px; }
.status { min-height: 3em; margin-top: .8rem; color: #4f5d52; font-size: .9375rem; line-height: 1.6; }
.status[data-error] { color: #a3212d; }
#allow { margin-top: .6rem; }

.installation { margin-top: 1.75rem; }
.installation h2 { margin-bottom: .5rem; font-size: 1rem; }
.installation p { color: #4f5d52; line-height: 1.7; }
#install { margin: .3rem 0 .75rem; }

@media (max-width: 36rem) {
  .board { grid-template-columns: minmax(0, 1fr); }
  .preview { min-height: 12rem; padding: 1.5rem; }
}
