:root {
  color-scheme: dark;
  --base: #151320;
  --panel: #211d30;
  --ink: #fff8ec;
  --muted: #d4cbdf;
  --accent: #e5fc88;
  --line: #494052;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--base); color: var(--ink); font: 16px/1.55 "DM Sans", system-ui, sans-serif; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.top, footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.top { border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; text-decoration: none; }
.mark { color: var(--base); background: var(--accent); display: grid; place-items: center; width: 32px; aspect-ratio: 1; border-radius: 50%; }
nav a, footer > a:last-child { text-underline-offset: 5px; color: var(--muted); }
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; margin: 30px 0 66px; min-height: 480px; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; }
.hero-copy { padding: clamp(28px, 5.5vw, 74px); background: linear-gradient(145deg, #2e2442, var(--panel) 75%); }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; }
h1 { font-size: clamp(64px, 9vw, 116px); line-height: .85; letter-spacing: -.07em; }
h1 em { color: #ffc5de; font-weight: 400; }
.hero p { max-width: 34ch; margin: 24px 0; color: var(--muted); }
.button { display: inline-flex; padding: 11px 20px; border-radius: 99px; background: var(--accent); color: #211733; font-weight: 750; text-decoration: none; }
.button:hover { background: #f1ffb7; }
.art { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(ellipse at 62% 52%, #784caf, #39245f 65%, #261b3b); }
.art::before, .stage::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(#ffffff21 1px, transparent 1px), linear-gradient(90deg, #ffffff21 1px, transparent 1px); background-size: 34px 34px; mask-image: radial-gradient(ellipse, black, transparent 80%); }
.orb { position: absolute; width: 53%; aspect-ratio: 1; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 32% 26%, #fff7b7, #ffc790 24%, #f884a7 51%, #a54ac7 75%, #301847 100%); box-shadow: 0 0 72px #f6a7c971, inset -15px -16px 50px #5e2e80b0; }
.orbit { position: absolute; top: 49%; left: 50%; width: 87%; height: 43%; border: 1px solid #ffe8fcaf; border-radius: 50%; transform: translate(-50%, -50%) rotate(-32deg); }
.orbit-two { border-top-color: transparent; border-left-color: transparent; transform: translate(-50%, -50%) rotate(32deg); }
.star, .spark { position: absolute; color: var(--accent); font-size: clamp(30px, 6vw, 78px); }
.star { top: 12%; right: 16%; }
.spark { bottom: 11%; left: 13%; color: #ffe4ed; }
#tools { scroll-margin-top: 20px; }
h2 { font-size: clamp(42px, 6vw, 68px); line-height: 1; margin-bottom: 24px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; }
.card:hover, .card:focus-within { border-color: #afa0bd; }
.tile { position: relative; display: grid; place-items: center; overflow: hidden; height: 168px; }
.stage { background: #303f34; }
.track { position: absolute; width: 61%; height: 44px; border: 2px solid; border-radius: 50%; transform: rotate(-25deg); }
.track::after { content: ""; position: absolute; top: -7px; left: 19%; width: 12px; height: 12px; border-radius: 50%; background: currentColor; }
.amber { color: #ffce83; }
.mint { color: var(--accent); transform: rotate(25deg); }
.craft { background: #643755; }
.specimen { position: absolute; width: 76px; height: 96px; border-radius: 12px; }
.back { background: #c56bb2; transform: translateX(-24px) rotate(-20deg); }
.front { display: grid; place-items: center; background: #ffd3df; color: #612c54; font-size: 40px; transform: translateX(19px) rotate(14deg); }
.sound { background: #333064; }
.wave { display: flex; align-items: center; justify-content: center; gap: 8px; width: 70%; }
.wave i { width: 7px; height: 28px; border-radius: 8px; background: #d0c1ff; }
.wave i:nth-child(2n) { height: 51px; }
.wave i:nth-child(3n) { height: 73px; }
.wave i:nth-child(5) { height: 93px; background: var(--accent); }
.card-copy { padding: 22px; display: flex; flex: 1; flex-direction: column; align-items: start; }
h3 { font-size: clamp(20px, 2.2vw, 25px); line-height: 1.2; }
.card p { color: var(--muted); margin: 10px 0 20px; }
.card a { color: var(--accent); font-weight: 700; text-underline-offset: 5px; margin-top: auto; padding-block: 8px; }
footer { border-top: 1px solid var(--line); margin-top: 64px; }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; min-height: auto; margin-bottom: 46px; }
  .art { min-height: 230px; }
  .orb { width: min(42%, 180px); }
  .orbit { width: min(75%, 390px); }
  .grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
