@font-face {
  font-family: 'Anton';
  src: local('Anton');
}

:root {
  --ink: #000000;
  --ink-soft: #121212;
  --paper: #ffffff;
  --paper-dim: #b8b3a8;
  --riso-orange: #c9c5c4;
  --riso-teal: #f56965;
  --muted: #8a8578;
  --line: rgba(255, 255, 255, 0.14);
  --max: 920px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper-dim);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.display {
  font-family: 'Anton', 'Arial Narrow', sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.92;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- nav ---------- */

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 24px;
  max-width: var(--max);
  margin: 0 auto;
}

.nav-mark {
  font-family: 'Arial Narrow', 'Helvetica Neue Condensed', Arial, sans-serif;
  font-weight: 400;
  text-transform: lowercase;
  filter: blur(0.4px);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--paper);
  text-decoration: none;
}

.nav-mark span { color: var(--riso-orange); }

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  margin-left: 22px;
}

.nav-links a:hover { color: var(--riso-teal); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 72vh;
  min-height: 72svh;
  display: flex;
  align-items: center;
  padding: 60px 24px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
}

.hero .wrap {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-family: 'Arial Narrow', 'Helvetica Neue Condensed', Arial, sans-serif;
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: -0.01em;
  filter: blur(0.5px);
  font-size: clamp(34px, 10vw, 100px);
  margin: 0 0 28px;
  color: var(--paper);
}

.hero h1 em {
  font-style: normal;
  color: var(--riso-orange);
}

.hero.reveal h1 {
  animation: flicker-in 0.9s ease-out both;
  animation-delay: 0.08s;
}

@keyframes flicker-in {
  0% { opacity: 0; }
  8% { opacity: 1; }
  14% { opacity: 0.2; }
  20% { opacity: 1; }
  100% { opacity: 1; }
}

/* stamp used inside a kit block (e.g. "new drop") */
.kit-stamp {
  display: inline-block;
  border: 1px solid var(--riso-teal);
  color: var(--riso-teal);
  font-size: 14px;
  padding: 5px 10px;
  margin-bottom: 18px;
  transform: rotate(-1.5deg);
}

/* ---------- kit blocks (manifest / tracklist style) ---------- */

.catalog {
  padding: 20px 24px 100px;
}

.kit {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  padding: 56px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.kit:last-child { border-bottom: 1px solid var(--line); }

.kit.flip { direction: rtl; }
.kit.flip > * { direction: ltr; }

.kit-plate {
  aspect-ratio: 1 / 1;
  background: var(--ink-soft);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.kit-plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.kit-body { padding-top: 4px; }

.kit-name {
  font-family: 'Arial Narrow', 'Helvetica Neue Condensed', Arial, sans-serif;
  font-weight: 400;
  text-transform: lowercase;
  filter: blur(0.4px);
  letter-spacing: -0.01em;
  font-size: clamp(26px, 4.5vw, 42px);
  color: var(--paper);
  margin: 0 0 6px;
}

.kit-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  font-size: 12px;
  color: var(--muted);
}

.kit-tags span {
  border: 1px solid var(--line);
  padding: 3px 8px;
}

.kit-desc {
  color: var(--paper-dim);
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 46ch;
  margin: 0 0 26px;
}

/* spec table = manifest, encodes real info, not decoration */
.kit-specs {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 26px;
  font-size: 13px;
}

.kit-specs td {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--paper-dim);
}

.kit-specs td:first-child {
  color: var(--muted);
  width: 40%;
}

/* preview player */
.player {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.player-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--paper);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background 0.15s ease, color 0.15s ease;
}

.player-btn:hover,
.player-btn.playing {
  background: var(--paper);
  color: var(--ink);
}

.player-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 36px;
  flex: 1;
  min-width: 0;
}

.player-bars span {
  width: 2px;
  flex-shrink: 0;
  height: 100%;
  background: var(--muted);
  border-radius: 1px;
  transform: scaleY(0.06);
  transform-origin: bottom;
  transition: background 0.15s ease, transform 0.05s linear;
}

.player.playing .player-bars span {
  background: var(--riso-orange);
}

/* seek bar under the waveform */
.seek {
  margin-bottom: 26px;
}

.seek-track {
  position: relative;
  height: 4px;
  background: var(--line);
  cursor: pointer;
  touch-action: none;
}

.seek-track::before {
  /* invisible larger hit area for easier clicking/dragging */
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  bottom: -8px;
}

.seek-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: var(--riso-orange);
  pointer-events: none;
}

.seek-time {
  display: flex;
  justify-content: space-between;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}

.buy-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.price {
  font-family: 'Anton', sans-serif;
  font-size: 26px;
  color: var(--riso-orange);
}

.buy-btn {
  display: inline-block;
  background: var(--riso-orange);
  color: var(--ink);
  text-decoration: none;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  padding: 13px 26px;
  border: 1px solid var(--riso-orange);
  transition: background 0.15s ease, color 0.15s ease;
}

.buy-btn:hover {
  background: transparent;
  color: var(--riso-orange);
}

.sold-out {
  color: var(--muted);
  font-size: 13px;
  border: 1px dashed var(--muted);
  padding: 12px 18px;
}

@media (max-width: 720px) {
  .kit {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 0;
  }
  .kit.flip { direction: ltr; }

  .nav { padding: 20px 20px; }
  .nav-links a { margin-left: 16px; }

  .hero { min-height: 56vh; min-height: 56svh; padding: 40px 20px 56px; }

  .catalog { padding: 12px 20px 72px; }

  .buy-row {
    flex-wrap: wrap;
    row-gap: 14px;
  }

  .success-card { padding: 28px; }
}

@media (max-width: 460px) {
  .nav-mark { font-size: 19px; }
  .nav-links a { font-size: 13px; margin-left: 12px; }

  .hero { min-height: 46vh; min-height: 46svh; }

  .tier-btn { font-size: 11.5px; padding: 9px 12px; }

  .email-gate { flex-direction: column; align-items: stretch; }
  .email-gate input { min-width: 0; }
  .email-gate .buy-btn { width: 100%; text-align: center; }

  .price { font-size: 22px; }
  .buy-btn { font-size: 14px; padding: 13px 20px; }

  .footer-row { flex-direction: column; align-items: flex-start; }
}

/* ---------- tier selector ---------- */

.tier-select {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tier-btn {
  font-family: 'Space Mono', monospace;
  font-size: 12.5px;
  background: transparent;
  color: var(--paper-dim);
  border: 1px solid var(--line);
  padding: 8px 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.tier-btn:hover {
  border-color: var(--riso-teal);
  color: var(--riso-teal);
}

.tier-btn.active {
  border-color: var(--riso-orange);
  color: var(--riso-orange);
}

.tier-note {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 22px;
}

/* ---------- email gate (free tier) ---------- */

.email-gate {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.email-gate input {
  flex: 1;
  min-width: 180px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--paper);
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  padding: 13px 14px;
}

.email-gate input::placeholder { color: var(--muted); }

.email-gate input:focus {
  outline: none;
  border-color: var(--riso-teal);
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 40px 24px 60px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}

.footer-row a { color: var(--muted); }
.footer-row a:hover { color: var(--riso-teal); }

/* ---------- focus visibility ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--riso-teal);
  outline-offset: 3px;
}

/* ---------- success page ---------- */

.success-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.success-card {
  max-width: 460px;
  text-align: left;
  border: 1px solid var(--line);
  padding: 40px;
}

.success-stamp {
  display: inline-block;
  color: var(--riso-teal);
  border: 1px solid var(--riso-teal);
  font-size: 12px;
  padding: 4px 9px;
  margin-bottom: 22px;
  transform: rotate(-1.5deg);
}

.success-card h1 {
  font-size: 34px;
  margin: 0 0 14px;
  color: var(--paper);
}

.success-card p {
  color: var(--paper-dim);
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 26px;
}

.download-btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  background: var(--riso-orange);
  color: var(--ink);
  text-decoration: none;
  padding: 15px;
  font-size: 14px;
  border: 1px solid var(--riso-orange);
}

.download-btn:hover {
  background: transparent;
  color: var(--riso-orange);
}

.success-note {
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted);
}
