/* NEONMAX: packaging yellow and violet, real black and white for the player. */
:root {
  --lemon: #f0ff10;
  --violet: #6433ff;
  --fuchsia: #ff00c8;
  --lime: #65ff00;
  --blue: #00a8ff;
  --orange: #ff9100;
  --ink: #000;
  --paper: #fff;

  --font: "Archivo", system-ui, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 76rem;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 { margin: 0; line-height: 1.05; }

h1, h2 {
  font-weight: 900;
  font-style: italic;
  font-stretch: 125%;
  letter-spacing: -.02em;
}

h2 { font-size: clamp(2.25rem, 6vw, 4.5rem); }

h3 { font-size: 1.125rem; font-weight: 800; font-stretch: 110%; }

p { margin: 0; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--ink);
  color: var(--paper);
}
.skip:focus { top: 1rem; }

.fine { font-size: .875rem; font-stretch: 90%; line-height: 1.45; }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .75rem 1.5rem;
  border: 3px solid var(--ink);
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  font-stretch: 110%;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.button-ink { background: var(--ink); color: var(--paper); }
.button-line { background: transparent; color: var(--ink); }
.button:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--violet); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .875rem var(--gutter);
  background: var(--ink);
  color: var(--paper);
}

.brand { display: block; color: var(--paper); }
.site-header .logo { display: block; width: clamp(8rem, 18vw, 11rem); height: auto; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: .3em;
  text-decoration-thickness: 3px;
}
.site-nav a:hover { text-decoration-line: underline; }
.site-nav a[aria-current="page"] { text-decoration-line: underline; }
.site-nav .nav-cta {
  padding: .5rem 1rem;
  border-radius: 999px;
  background: var(--lemon);
  color: var(--ink);
}
.site-nav .nav-cta:hover { text-decoration: none; background: var(--paper); }
.site-header :focus-visible { outline-color: var(--lemon); }

.nav-toggle {
  display: none;
  width: 2.75rem; height: 2.75rem;
  padding: 0;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.1rem; height: 3px;
  margin: 0 auto;
  background: var(--paper);
  transition: transform .2s var(--ease);
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero: the box front, opened up */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: var(--gutter);
  max-width: none;
  padding: clamp(3rem, 8vw, 6rem) var(--gutter) clamp(3.5rem, 8vw, 6rem);
  background: var(--lemon);
  overflow: hidden;
}

.hero-copy { max-width: 36rem; justify-self: end; }

.hero-kicker {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: .3rem .9rem;
  background: var(--violet);
  color: var(--paper);
  font-weight: 700;
  font-stretch: 105%;
}

.hero h1 {
  font-size: clamp(2.75rem, 6.2vw, 6rem);
  line-height: .92;
  letter-spacing: -.035em;
}

.hero-lede { margin-top: 1.5rem; max-width: 32rem; font-size: 1.1875rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(18rem, 42vw, 34rem);
}

.hero-disc {
  position: absolute;
  width: min(88%, 32rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--lemon) 0 7%, var(--ink) 7.5% 9%, transparent 9.5%),
    var(--violet);
  border: 3px solid var(--ink);
  box-shadow: 12px 12px 0 var(--fuchsia);
}

.hero-player {
  position: relative;
  width: min(100%, 46rem);
  max-width: none;
  filter: drop-shadow(0 28px 30px rgba(40, 0, 120, .35));
}

/* Pattern band from the packaging art */
.pattern-band {
  height: clamp(5rem, 10vw, 8rem);
  background: url("assets/pattern.webp") center / auto 220% repeat-x;
  border-block: 3px solid var(--ink);
}

/* Story */
.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
}

.story-intro p { margin-top: 1.25rem; max-width: 34rem; font-size: 1.1875rem; }

.story-image {
  width: min(100%, 26rem);
  margin-top: 2rem;
}

.then-now {
  display: grid;
  gap: 1.5rem;
  align-content: center;
}

.then-now-col {
  padding: 1.75rem;
  border: 3px solid var(--ink);
}
.then-now-col.then { background: var(--lemon); }
.then-now-col.now { background: var(--violet); color: var(--paper); box-shadow: 8px 8px 0 var(--ink); }

.then-now-col h3 { font-size: 1.5rem; font-style: italic; font-weight: 900; font-stretch: 125%; }

.then-now-col ul { margin: 1rem 0 0; padding: 0; list-style: none; }
.then-now-col li { padding: .75rem 0; border-top: 2px solid currentColor; }
.then-now-col li strong { display: block; font-stretch: 110%; }

/* Player finish switcher: the section flips to contrast the chosen finish */
.player {
  background: var(--paper);
  color: var(--ink);
  border-top: 3px solid var(--ink);
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
.player[data-finish="white"] { background: var(--ink); color: var(--paper); }

.player-inner {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
}

.player-copy p { margin-top: 1.25rem; max-width: 26rem; }

.finish-switch {
  display: inline-flex;
  gap: .25rem;
  margin-top: 2rem;
  padding: .3rem;
  border: 3px solid currentColor;
  border-radius: 999px;
}
.finish-switch button {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 2.75rem;
  padding: .5rem 1.25rem .5rem .6rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.finish-switch button[aria-checked="true"] { background: var(--lemon); color: var(--ink); }
.player :focus-visible { outline-color: var(--fuchsia); }

.swatch {
  width: 1.75rem; height: 1.75rem;
  border-radius: 50%;
  border: 2px solid currentColor;
}
.swatch-black { background: var(--ink); }
.swatch-white { background: var(--paper); }

.finish-meta {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 2rem;
  margin: 2rem 0 0;
}
.finish-meta dt { font-size: .875rem; font-stretch: 90%; opacity: .75; }
.finish-meta dd { margin: 0; font-weight: 800; font-stretch: 110%; }

.player-figure { margin: 0; }
.player-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  transition: opacity .25s var(--ease);
}
.player-image.is-swapping { opacity: 0; }
.player-figure figcaption { margin-top: 1rem; font-size: .8125rem; opacity: .75; }

/* Features */
.features {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: clamp(2rem, 6vw, 5rem);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
}
.features h2 { grid-column: 1 / -1; margin-bottom: 2.5rem; }

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 3px solid var(--ink);
}
.feature-list li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  column-gap: 1rem;
  padding: 1.5rem 1rem 1.5rem 0;
  border-bottom: 3px solid var(--ink);
}
/* Each marker is a little disc: coloured ring around a spindle hole */
.feature-list li::before {
  content: "";
  grid-row: span 2;
  width: 2.5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: radial-gradient(circle, var(--paper) 0 18%, var(--ink) 19% 25%, var(--dot) 26%);
}
.feature-list p { margin-top: .25rem; }

.car-figure { margin: 0; align-self: start; }
.car-figure img { width: 100%; border: 3px solid var(--ink); box-shadow: 10px 10px 0 var(--lemon); }

/* Specs */
.specs {
  background: var(--lemon);
  border-block: 3px solid var(--ink);
}
.specs > h2,
.specs-grid {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.specs > h2 { padding-top: clamp(4rem, 10vw, 7rem); margin-bottom: 2.5rem; }
.specs-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  padding-bottom: clamp(4rem, 10vw, 7rem);
}

.spec-table { width: 100%; border-collapse: collapse; background: var(--paper); border: 3px solid var(--ink); }
.spec-table th,
.spec-table td { padding: .75rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--ink); }
.spec-table th { width: 40%; font-weight: 700; font-stretch: 95%; }
.spec-table tr:last-child > * { border-bottom: 0; }

.in-the-box h3 { font-size: 1.5rem; font-style: italic; font-weight: 900; font-stretch: 125%; }
.in-the-box ul { margin: 1rem 0 1.5rem; padding-left: 1.25rem; font-weight: 700; }
.in-the-box li { padding: .25rem 0; }

/* Available in */
.available {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5rem) var(--gutter);
}
.available h2 { font-size: clamp(1.75rem, 4vw, 3rem); }
.retailer-logo {
  width: min(100%, 18rem);
  aspect-ratio: 408 / 82;
  object-fit: cover;
  border: 3px solid var(--ink);
}

/* About page */
.about-hero {
  padding: clamp(3.5rem, 9vw, 7rem) max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))) clamp(3rem, 8vw, 6rem);
  background: var(--lemon);
}
.about-hero h1 {
  max-width: 14ch;
  font-size: clamp(2.75rem, 7vw, 6.5rem);
  line-height: .92;
  letter-spacing: -.035em;
}

.about-story {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 6rem) var(--gutter);
}
.about-story p { font-size: 1.1875rem; }
.about-story p + p { margin-top: 1.25rem; }
.about-story p:first-child { font-size: 1.5rem; font-weight: 700; line-height: 1.35; }

.stand-for {
  background: var(--violet);
  color: var(--paper);
  border-block: 3px solid var(--ink);
}
.stand-for-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 7rem) var(--gutter);
}
.stand-for h2 { margin-bottom: 2.5rem; }
.stand-for-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.stand-for-list li {
  padding: 1.75rem;
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
}
.stand-for-list h3 { font-size: 1.5rem; font-style: italic; font-weight: 900; font-stretch: 125%; }
.stand-for-list p { margin-top: .5rem; }

.about-close {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 6rem) var(--gutter);
}
.about-close p { font-size: 1.1875rem; }
.about-sign {
  margin: 1.5rem 0 2rem;
  font-size: clamp(2.25rem, 6vw, 4.5rem) !important;
  font-weight: 900;
  font-style: italic;
  font-stretch: 125%;
  line-height: 1;
  letter-spacing: -.02em;
}

/* Notify */
.notify {
  padding: clamp(4rem, 10vw, 7rem) var(--gutter);
  background: var(--violet);
  color: var(--paper);
  text-align: center;
}
.notify > p { max-width: 34rem; margin: 1.25rem auto 0; font-size: 1.1875rem; }

.notify-form { max-width: 34rem; margin: 2rem auto 0; text-align: left; }
.notify-form label { display: block; margin-bottom: .5rem; font-weight: 700; }
.notify-row { display: flex; gap: .5rem; }
.notify-row input {
  flex: 1;
  min-width: 0;
  min-height: 3rem;
  padding: .75rem 1.25rem;
  border: 3px solid var(--ink);
  border-radius: 999px;
  font: inherit;
}
.notify-row .button { border-color: var(--ink); }
.notify-row .button:hover { box-shadow: 4px 4px 0 var(--lemon); }
.notify :focus-visible { outline-color: var(--lemon); }
.notify-status { min-height: 1.5em; margin-top: .75rem; font-weight: 700; }
.notify-status.is-error { color: var(--lemon); }

/* Footer */
.site-footer {
  /* padding: clamp(4rem, 10vw, 6rem) var(--gutter) 2.5rem; */
  padding: 2.5rem;
  background: var(--ink);
  color: var(--paper);
}

.footer-logo { max-width: var(--max); margin: 0 auto; color: var(--paper); }
.footer-logo .logo { display: block; width: 100%; height: auto; }
.site-footer :focus-visible { outline-color: var(--paper); }

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 2.5rem;
  max-width: var(--max);
  margin: 0 auto;
  /* padding-top: 1.5rem; */
  /* border-top: 1px solid #555; */
}
.footer-meta .fine { flex-basis: 100%; color: #bbb; }

/* Scroll reveal (only when JS is running and motion is allowed) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Page-load moment: disc spins in, player drops onto it */
@keyframes disc-in { from { transform: scale(.6) rotate(-120deg); opacity: 0; } }
@keyframes player-in { from { transform: translateY(-40px) rotate(-6deg); opacity: 0; } }
.hero-disc { animation: disc-in .9s var(--ease) both; }
.hero-player { animation: player-in .8s .35s var(--ease) both; }

/* Responsive */
@media (max-width: 60rem) {
  .hero,
  .story,
  .player-inner,
  .features,
  .specs-grid,
  .stand-for-list { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { justify-self: start; }
  .hero-stage { order: -1; min-height: min(92vw, 34rem); }
  .hero-disc { width: min(84vw, 31rem); }
  .hero-player { width: min(100%, 40rem); }
  .car-figure { margin-top: 2.5rem; }
  .story-image { width: min(100%, 22rem); }
}

@media (max-width: 44rem) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: none;
    padding: 1rem var(--gutter) 1.5rem;
    background: var(--ink);
    border-top: 1px solid #555;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .feature-list { grid-template-columns: minmax(0, 1fr); }
  .finish-meta { gap: 1.25rem; }
  .notify-row { flex-direction: column; }
  .spec-table th, .spec-table td { display: block; width: auto; border-bottom: 0; }
  .spec-table th { padding-bottom: 0; }
  .spec-table td { padding-top: .2rem; border-bottom: 1px solid var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
