:root {
  color-scheme:dark;
  --ink:#071529;
  --light:#f2f7ff;
  --surf:#92ccff;
  --muted:#b8c9df;
  --line:#2b4260;
  font:100%/1.5 "Inter","Helvetica Neue",Arial,sans-serif;
}
* {
  box-sizing:border-box;
}
html {
  scroll-behavior:smooth;
}
body {
  margin:0;
  background:var(--ink);
  color:var(--light);
}
a {
  color:inherit;
  text-decoration:none;
}
a:focus-visible {
  outline:3px solid #e99d63;
  outline-offset:5px;
}
a:hover {
  text-decoration:underline;
  text-underline-offset:.23em;
}
.skip {
  position:absolute;
  left:-100vw;
}
.skip:focus {
  left:1rem;
  z-index:5;
  background:var(--ink);
}
header {
  border-bottom:1px solid var(--line);
  position:relative;
  z-index:2;
  background:var(--ink);
}
.bar,footer,.install-wrap {
  max-width:98rem;
  margin:auto;
  padding:1.15rem 5.5vw;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
}
.brand {
  display:inline-flex;
  align-items:center;
  gap:.38em;
  font-size:1.3rem;
  letter-spacing:-.055em;
  font-weight:750;
}
.brand img {
  width:2.15rem;
  height:2.15rem;
  margin-right:.35rem;
}
.brand span {
  font-weight:400;
  color:var(--muted);
}
nav,footer>div,.ref {
  display:flex;
  align-items:center;
  gap:clamp(.8rem,2.4vw,2.5rem);
}
nav a,footer>div {
  font-size:.92rem;
}
.small-cta,.cta {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:680;
  border-radius:.36rem;
}
.small-cta {
  padding:.42rem 1.3rem;
  border:1px solid #52779d;
}
.cta {
  padding:.86rem 1.35rem;
  background:var(--surf);
  color:#071e38;
}
.small-cta:hover,.cta:hover {
  background:#cce8ff;
  color:#071e38;
  text-decoration:none;
}
.showcase {
  position:relative;
  display:grid;
  grid-template-columns:38% 62%;
  max-width:110rem;
  margin:auto;
  background:radial-gradient(ellipse at 78% 13%,#14365a 0,transparent 28%), radial-gradient(ellipse at 50% 80%,#0c2543,transparent 45%);
}
.stage {
  position:sticky;
  top:0;
  align-self:start;
  grid-area:1/2;
  height:min(100svh,60rem);
  min-height:28rem;
  overflow:hidden;
}
.field,eddy-device {
  position:absolute;
  width:100%;
  height:100%;
  inset:0;
}
eddy-device {
  z-index:1;
}
.caption {
  position:absolute;
  bottom:9%;
  left:8%;
  right:8%;
  border-top:1px solid #355674;
  padding-top:.7rem;
  display:flex;
  justify-content:space-between;
  font-size:.72rem;
  font-weight:600;
  letter-spacing:.07em;
  color:#a6bfdc;
}
.chapters {
  grid-area:1/1;
}
.chapters section {
  min-height:81svh;
  padding:5rem 0 5rem 5.5vw;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
}
.chapters .hero {
  min-height:calc(100svh - 4.5rem);
}
.eyebrow {
  display:flex;
  align-items:center;
  gap:.7rem;
  font-size:.76rem;
  font-weight:650;
  letter-spacing:.12em;
  color:var(--surf);
}
.eyebrow::before, .eyebrow::after {
  content:"";
  width:1.15rem;
  height:1px;
  background:currentColor;
}
h1,h2,h3,p {
  margin:0;
}
h1,h2 {
  font-weight:560;
  letter-spacing:-.06em;
  line-height:.93;
}
h1 {
  font-size:clamp(4.5rem,7.7vw,9rem);
  margin:1.65rem 0;
}
em {
  font:inherit;
  color:inherit;
}
h2 {
  font-size:clamp(3.5rem,6.2vw,7rem);
  margin:1.35rem 0;
}
p {
  font-size:clamp(1rem,1.24vw,1.22rem);
  max-width:37ch;
  color:var(--muted);
  line-height:1.55;
}
.hero .cta {
  margin-top:1.8rem;
}
.tour {
  margin-top:1.05rem;
  font-size:.92rem;
  color:var(--muted);
}
.tour span {
  margin-left:.35rem;
}
.music-tour {
  border-top:1px solid var(--line);
  margin-top:1.75rem;
  padding-top:1.25rem;
}
.music-tour h3 {font-size:1.25rem}
.music-tour p {margin:.4rem 0 .9rem}
.music-tour .small-cta {
  font:inherit;background:transparent;color:var(--light);cursor:pointer;
  margin-right:.65rem;margin-bottom:.5rem;
}
.music-tour a:not(.small-cta) {display:inline-block;color:var(--surf);text-decoration:underline}
.install-wrap {
  padding-block:clamp(4rem,9vw,9rem);
}
#install {
  background:#101f37;
  color:var(--light);
}
#install .eyebrow {
  color:#9acdfd;
}
#install p {
  color:#c3d3e6;
}
.release {
  width:min(30rem,100%);
  border:1px solid #395470;
  border-radius:.7rem;
  background:#162d49;
  padding:clamp(1.4rem,3.4vw,3.3rem);
}
.release h3 {
  font-size:1.6rem;
  letter-spacing:-.045em;
}
.release h3 span {
  float:right;
  font:.9rem ui-monospace,monospace;
  color:#9ebcdd;
}
.release p {
  margin:1rem 0;
}
.release .cta {
  background:#9bd5ff;
  color:#071e38;
}
.release #download {
  display:block;
  margin-top:1rem;
  text-decoration:underline;
}
.article {
  max-width:62rem;
  padding:clamp(3rem,10vw,9rem) 5.5vw;
  margin:auto;
}
@media(max-width:500px) {
  .article h1 {font-size:clamp(2.85rem,14vw,4.5rem)}
}
.article p {
  max-width:62ch;
  margin:1.4rem 0;
}
.ref {
  flex-wrap:wrap;
  margin-top:2rem;
  color:var(--surf);
  text-decoration:underline;
}
footer {
  padding-block:2rem;
}
[hidden],.release #download[hidden] {
  display:none!important;
}
@media(max-width:760px) {
  .bar,footer {
    padding-inline:5vw;
  }
  .brand {
    font-size:1.05rem;
  }
  .brand img {
    width:1.65rem;
    margin-right:0;
  }
  .small-cta {
    padding:.32rem .65rem;
  }
  nav a,footer>div {
    font-size:.85rem;
  }
  .showcase {
    display:flex;
    flex-direction:column;
    --tour-height:clamp(10.5rem, 58vw, 34svh);
    background:var(--ink);
  }
  .stage {
    z-index:1;
    top:0;
    order:1;
    width:100%;
    height:var(--tour-height);
    min-height:0;
    background:linear-gradient(to bottom,var(--ink) 87%,transparent);
  }
  .chapters {
    display:contents;
  }
  .chapters .hero {
    order:0;
    min-height:auto;
    padding:3.15rem 6vw 1rem;
  }
  .chapters section:not(.hero) {
    order:2;
    min-height:56svh;
    padding:3rem 6vw;
    scroll-margin-top:var(--tour-height);
  }
  .hero h1 {
    font-size:clamp(3.6rem,12vw,6rem);
    margin:1rem 0;
  }
  .hero h1 br {
    display:none;
  }
  .hero h1 em {
    margin-left:.12em;
  }
  .hero .cta {
    margin-top:1rem;
  }
  .hero .tour {
    margin-top:.8rem;
  }
  .stage .caption {display:none}
  .field {mask-image:radial-gradient(ellipse,black 25%,transparent 72%)}
  .install-wrap {
    flex-direction:column;
    align-items:start;
  }
  .release {
    margin-top:1rem;
  }
  footer {
    flex-wrap:wrap;
  }
}
@media(max-width:390px) {
  .brand span {
    display:none;
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto;
  }
}

/* Coordinates are percentages of the final face-on CAD projection. */
.stage {container-type:size}
#playable {
  position:absolute;
  z-index:1;
  top:50%;
  left:50%;
  width:min(150cqw,300cqh);
  aspect-ratio:2;
  transform:translate(-57.4074%,-46.3889%);
  pointer-events:none;
}
#playable img {display:block;width:100%;height:100%}
.device-controls {
  position:absolute;left:24.0741%;top:13.0556%;width:66.6667%;height:66.6667%;
}
#preview-lcd, #playable button {pointer-events:auto}
@media (max-width:760px), (max-width:960px) and (max-height:500px) {
  #playable {width:min(100cqw,200cqh);transform:translate(-50%,-50%)}
}
/* Frame the LCD and physical controls closely enough to read and tap on a phone. */
@media (max-width:500px) and (orientation:portrait), (max-width:960px) and (orientation:landscape) and (max-height:500px) {
  #playable {width:min(150cqw,300cqh);transform:translate(-57.4074%,-46.3889%)}
}
@media (orientation:landscape) and (max-width:960px) and (max-height:500px) {
  .showcase {display:grid;grid-template-columns:45% 55%;background:var(--ink)}
  .stage {grid-area:1/2;min-height:0;height:100svh;mask-image:none}
  .stage .caption {display:none}
  .chapters {display:block;grid-area:1/1}
  .chapters section,.chapters .hero,.chapters section:not(.hero) {
    min-height:86svh;padding:2rem 1rem 2rem 5vw;scroll-margin-top:0
  }
  .chapters h1 {font-size:clamp(2.8rem,6vw,4.2rem)}
  .chapters h2 {font-size:clamp(2.4rem,5vw,3.5rem)}
}

#preview-lcd {
  position:absolute;
  left:7.58%;top:22.36%;
  width:44.17%;height:44.17%;
  image-rendering:pixelated;
}
#playable button {
  position:absolute;
  transform:translate(-50%,-50%);
  width:9%;height:18%;
  border:0;border-radius:50%;
  background:transparent;color:transparent;
  cursor:pointer;touch-action:manipulation;
}
#playable button:hover {background:#fff2}
#playable button:focus-visible {outline:3px solid #092c52;outline-offset:-2px;background:#fff3}
#playable button:active {background:#54210833}
#playable [data-key=ok] {left:74.1%;top:44.45%}
#playable [data-key=up] {left:74.1%;top:24.7%}
#playable [data-key=down] {left:74.1%;top:64.1%}
#playable [data-key=left] {left:64.4%;top:44.45%}
#playable [data-key=right] {left:83.85%;top:44.45%}
#playable [data-key=back] {left:93.55%;top:64.7%}
@media (pointer:coarse) {
  #playable button {min-width:44px;min-height:44px}
  /* Extend finger targets away from OK while keeping the printed arrows inside. */
  #playable [data-key=up] {top:min(24.7%,calc(44.45% - 42px))}
  #playable [data-key=down] {top:max(64.1%,calc(44.45% + 42px))}
  #playable [data-key=left] {left:min(64.4%,calc(74.1% - 42px))}
  #playable [data-key=right] {left:max(83.85%,calc(74.1% + 42px))}
  #playable [data-key=back] {left:min(93.55%,calc(100% - 22px));top:max(64.7%,calc(44.45% + 42px))}
}
.sr-only {
  position:absolute;width:1px;height:1px;padding:0;
  overflow:hidden;clip-path:inset(50%);white-space:nowrap;
}

.article p a,.chapters p a {color:var(--surf);text-decoration:underline;text-underline-offset:.18em}
.resource-list {list-style:none;padding:0;margin:2.5rem 0 0;border-top:1px solid var(--line)}
.resource-list li {border-bottom:1px solid var(--line)}
.resource-list a {
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  gap:.15rem 1rem;
  padding:1.2rem .4rem;
}
.resource-list a::after {content:"→";grid-column:2;grid-row:1/3;color:var(--surf);font-size:1.5rem}
.resource-list strong {font-size:1.25rem;font-weight:600}
.resource-list span {grid-column:1;color:var(--muted);font-size:1rem}
.resource-list a:hover {background:#132a44;text-decoration:none}
nav [aria-current=page] {color:var(--surf)}

.updater {align-items:flex-start}
.updater h1 {font-size:clamp(3.3rem,7vw,7rem)}
.updater .release h2 {font-size:2rem;line-height:1.1;letter-spacing:-.035em;margin:0}
.updater button {font:inherit;font-weight:650;border:0;cursor:pointer}
.updater button:disabled {opacity:.55;cursor:default}
.updater .downloads {display:flex;flex-direction:column;align-items:flex-start;gap:.5rem;font-size:.92rem}
.updater .downloads a {color:var(--surf);text-decoration:underline;margin:0}
.updater progress {width:100%;accent-color:var(--surf);margin-bottom:1rem}

#preview-lcd.selectable {cursor:pointer}

#return-to-picker {margin-top:1.35rem}
#return-to-picker[hidden], .picker-preview .chapters section:not(#home-screen),
.picker-preview .music-tour, .picker-preview #install {display:none}
.picker-preview .stage {position:relative; height:clamp(20rem,60vw,42rem); min-height:0}
.picker-preview .caption {bottom:4%}
.picker-preview .chapters #home-screen {min-height:0; height:100%; scroll-margin:6rem}
@media(max-width:760px) {
  .picker-preview .stage {height:52vw; margin-top:1rem}
  .picker-preview .caption {display:none}
  .picker-preview .chapters #home-screen {padding:1.5rem 6vw 3rem; height:auto; scroll-margin:65vh}
}

@media (orientation:landscape) and (max-width:960px) and (max-height:500px) {
  .picker-preview .stage {height:78svh;margin-top:0}
  .picker-preview .chapters #home-screen {scroll-margin:0;height:auto}
}

#device-preview-notice:empty, #present-sample[hidden], #lesson-start[hidden], #spotify-lesson[hidden], #preview-intro[hidden] {display:none}
#spotify-buttons {width:min(100%,29rem); margin:.75rem 0}
#spotify-buttons summary {cursor:pointer; color:var(--surf); padding:.55rem 0; font-weight:600}
#spotify-buttons .controls-guide {margin:.25rem 0 1rem}
#spotify-buttons dt {font-weight:700; margin-top:.8rem}
#spotify-buttons dd {margin:.2rem 0 0; color:var(--muted)}
#lesson-start, .lesson-actions button {font:inherit; cursor:pointer}
#lesson-start {background:transparent; color:var(--surf); margin:0 0 1rem}
#spotify-lesson {width:min(100%,29rem); margin:1.1rem 0}
#lesson-step {color:var(--surf); font-size:.84rem; margin:0 0 .45rem}
#lesson-title {line-height:1.2; font-size:clamp(1.35rem,2.8vw,2rem)}
#lesson-instruction {margin:.4rem 0; font-size:1.04rem}
#lesson-progress {width:100%; height:.35rem; border:0; border-radius:.25rem; overflow:hidden; accent-color:var(--surf)}
#lesson-progress::-webkit-progress-bar {background:#19314b}
#lesson-progress::-webkit-progress-value {background:var(--surf)}
#lesson-hint {margin:.25rem 0; font-size:.88rem}
#lesson-hint:empty {display:none}
.lesson-actions {display:flex; flex-wrap:wrap; gap:1rem; margin-top:.75rem}
.lesson-actions button {min-height:44px; background:transparent; border:0; color:var(--surf); padding:.3rem 0; text-decoration:underline; text-underline-offset:.22em}
#playable button.tour-cue {outline:3px solid #07599b; outline-offset:-3px; box-shadow:0 0 0 2px #ecf8ff; background:#1c89d83d}
#playable button.tour-cue:active {background:#1079b184}
.guided-preview .chapters #home-screen h2 {font-size:clamp(2.5rem,6vw,5em)}
.guided-preview #return-to-picker {background:none; border:0; padding:0; color:var(--surf); text-decoration:underline; text-underline-offset:.22em}
@media (max-width:400px) and (max-height:700px) {
  .guided-preview .stage {margin-top:0}
  .guided-preview .chapters #home-screen {padding:.5rem 6vw 1rem}
  .guided-preview #home-screen .eyebrow {display:none}
  .guided-preview #home-screen h2 {font-size:2rem; margin:0}
  .guided-preview #spotify-lesson {margin:.55rem 0}
  .guided-preview .lesson-actions {margin-top:.2rem}
}
