:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #070707;
  color: #f7f4ef;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 70% 0%, #35100d 0, transparent 34rem),
    #070707;
}

button, input, textarea, select { font: inherit; }

main {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 5rem 0;
}

.hero { max-width: 820px; margin-bottom: 3rem; }

.eyebrow {
  margin: 0 0 .8rem;
  color: #ff6b61;
  font: 700 .78rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1, h2, h3 { margin-top: 0; letter-spacing: -.035em; }
h1 { margin-bottom: 1rem; font-size: clamp(2.8rem, 8vw, 6.8rem); line-height: .91; }
h2 { margin-bottom: 0; font-size: clamp(1.7rem, 4vw, 2.5rem); }
h3 { margin-bottom: .5rem; font-size: 1.2rem; }

.hero > p:last-child {
  max-width: 620px;
  color: #aaa39d;
  font-size: 1.15rem;
  line-height: 1.6;
}

.demo {
  padding: clamp(1rem, 4vw, 2rem);
  border: 1px solid #302d2a;
  border-radius: 1.4rem;
  background: rgb(15 14 13 / 88%);
  box-shadow: 0 2rem 6rem rgb(0 0 0 / 40%);
}

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

button {
  padding: .65rem 1rem;
  border: 1px solid #514b46;
  border-radius: 999px;
  background: #1d1a18;
  color: inherit;
  cursor: pointer;
}
button:hover { border-color: #ff6b61; }

retro-ticker { margin-bottom: 1.75rem; }

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

.controls label {
  display: grid;
  gap: .55rem;
  color: #c6c0bb;
  font-size: .85rem;
  font-weight: 650;
}

.controls .wide { grid-column: 1 / -1; }

textarea, select {
  width: 100%;
  border: 1px solid #37322f;
  border-radius: .65rem;
  background: #0c0b0a;
  color: #f7f4ef;
  padding: .8rem;
}

textarea { resize: vertical; line-height: 1.45; }
input[type="range"] { width: 100%; accent-color: #ff3b30; }
input[type="color"] { width: 100%; min-height: 2.4rem; border: 0; background: none; }
output { color: #746d67; font: .78rem ui-monospace, SFMono-Regular, Menlo, monospace; }

.notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.notes article {
  padding: 1.4rem;
  border: 1px solid #252321;
  border-radius: 1rem;
  background: rgb(13 12 11 / 70%);
}
.notes span { color: #ff6b61; font: .75rem ui-monospace, monospace; }
.notes p { margin-bottom: 0; color: #958e88; line-height: 1.55; }

@media (max-width: 720px) {
  main { padding: 2.5rem 0; }
  .controls, .notes { grid-template-columns: 1fr; }
  .controls .wide { grid-column: auto; }
}
