@font-face {
  font-family: "Shrikhand";
  src: url("/assets/fonts/shrikhand.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Rubik";
  src: url("/assets/fonts/rubik.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --plum: #22123b;
  --plum-2: #321f56;
  --plum-3: #4b3577;
  --peach: #ffe6d3;
  --peach-dim: #c9b0c9;
  --cream: #fff6e6;

  --tangerine: #ff7a3d;
  --marigold: #ffc23d;
  --pink: #ff5fa2;
  --lilac: #b9a0ff;
  --aqua: #45d6c6;
  --sky: #7db6ff;

  --display: "Shrikhand", "Cooper Black", Georgia, serif;
  --body: "Rubik", system-ui, sans-serif;

  --line: rgba(255, 230, 211, 0.09);
  --radius: 28px;
  --measure: 36rem;
}

* { box-sizing: border-box; }

html { background: var(--plum); }
body {
  margin: 0;
  color: var(--peach);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 4px; border-radius: 8px; }

h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.2px;
  line-height: 1.08;
  color: var(--cream);
}
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.3; color: var(--cream); }

.wrap {
  width: min(1320px, 100% - 2 * clamp(20px, 5vw, 64px));
  margin-inline: auto;
}

/* ---------- Header ---------- */

.top { position: relative; z-index: 3; }
.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 400 2rem/1 var(--display);
  color: var(--peach);
  text-decoration: none;
  /* stacked offset shadow, like a printed 70s sticker: same as the app */
  text-shadow: 2px 2px 0 var(--pink), 4px 4px 0 var(--tangerine);
  padding-bottom: 4px;
}
.login {
  padding: 9px 20px;
  border-radius: 999px;
  background: rgba(255, 230, 211, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 230, 211, 0.22);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 150ms, color 150ms;
}
.login:hover { background: var(--peach); color: var(--plum); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(36px, 7vw, 88px) 0 clamp(56px, 8vw, 110px);
  isolation: isolate;
  overflow-x: clip; /* the glow and strings spill past the edges on purpose */
}

/* Soft colour light behind the app window. */
.glow {
  position: absolute;
  z-index: -2;
  inset: 34% 0 0;
  background:
    radial-gradient(40% 50% at 28% 55%, rgba(255, 95, 162, 0.45), transparent 70%),
    radial-gradient(35% 45% at 70% 45%, rgba(185, 160, 255, 0.40), transparent 70%),
    radial-gradient(30% 40% at 52% 80%, rgba(255, 122, 61, 0.30), transparent 70%);
  filter: blur(40px);
}

/* Thin guitar-string waves running behind the window. */
.strings {
  position: absolute;
  z-index: -1;
  left: 0;
  top: 22%;
  width: 100%;
  height: 60%;
  overflow: visible;
}
.strings path { fill: none; stroke: url(#str); stroke-width: 1.6; opacity: 0.55; vector-effect: non-scaling-stroke; }
.strings .signal {
  stroke: var(--cream);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 1.5 18;
  opacity: 0.7;
  animation: flow 3s linear infinite;
}
@keyframes flow { to { stroke-dashoffset: -39; } }

.hero-copy { text-align: center; }
.hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.75rem);
  margin-inline: auto;
}
.hero h1 span { display: inline-block; }
.lead {
  margin: 22px auto 0;
  max-width: 34rem;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 1.55;
}
.fine { margin: 12px auto 0; max-width: 34rem; color: var(--peach-dim); font-size: 0.95rem; }

.window {
  margin-top: clamp(40px, 6vw, 64px);
  border-radius: 18px;
  overflow: hidden;
  background: #1a0e2e;
  box-shadow:
    0 0 0 1px rgba(255, 230, 211, 0.12),
    0 30px 80px -20px rgba(8, 2, 20, 0.85),
    0 12px 30px -10px rgba(8, 2, 20, 0.6);
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  background: #2a1848;
  border-bottom: 1px solid rgba(255, 230, 211, 0.07);
}
.window-bar span { width: 12px; height: 12px; border-radius: 50%; }
.window-bar span:nth-child(1) { background: #ff5f57; }
.window-bar span:nth-child(2) { background: #febc2e; }
.window-bar span:nth-child(3) { background: #28c840; }
.window-bar b { margin-inline: auto; padding-right: 52px; font-size: 0.85rem; font-weight: 500; color: var(--peach-dim); }
.window img { width: 100%; }

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

.nav { display: flex; gap: clamp(14px, 2.4vw, 32px); }
.nav a { text-decoration: none; font-weight: 500; font-size: 0.98rem; color: var(--peach-dim); transition: color 150ms; }
.nav a:hover { color: var(--cream); }

/* ---------- Sections ---------- */

.section { padding: clamp(70px, 10vw, 130px) 0; scroll-margin-top: 10px; overflow-x: clip; }
.section-tint { background: linear-gradient(180deg, rgba(50, 31, 86, 0.55), rgba(50, 31, 86, 0.25)); border-block: 1px solid var(--line); }
.section-head { max-width: 44rem; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.section-head p { margin-top: 16px; font-size: 1.18rem; }

/* ---------- Story ---------- */

.story { padding: clamp(60px, 9vw, 120px) 0 clamp(40px, 6vw, 80px); }
.story h2 { color: var(--marigold); font-size: clamp(1.6rem, 2.6vw, 2rem); }
.story-lead {
  margin-top: 22px;
  max-width: 30ch;
  font: 500 clamp(1.8rem, 3.6vw, 3rem)/1.25 var(--body);
  color: var(--cream);
  letter-spacing: -0.01em;
}
.story-cols {
  margin-top: clamp(28px, 4vw, 44px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 64px);
  max-width: 62rem;
}
.story-cols p { font-size: 1.15rem; line-height: 1.7; }
.story .sign { margin-top: 30px; font: 400 1.7rem/1 var(--display); color: var(--pink); }

/* ---------- How it works ---------- */

.path {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  position: relative;
}
.path::before {
  /* the cable joining every stop */
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  top: 50%;
  height: 6px;
  margin-top: -3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--peach-dim), var(--tangerine), var(--marigold), var(--pink), var(--plum-3), var(--lilac), var(--sky), var(--peach-dim));
  opacity: 0.8;
}
.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-height: 150px;
  padding: 16px 14px;
  border-radius: 18px;
  background: var(--c);
  color: var(--plum);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.4), 0 10px 24px -12px rgba(8, 2, 20, 0.8);
}
.stage img { width: 100%; border-radius: 10px; background: var(--cream); padding: 3px; margin-bottom: auto; }
.stage b { font: 400 1.15rem/1.1 var(--display); margin-top: auto; }
.stage span { font-size: 0.85rem; line-height: 1.35; opacity: 0.85; }
.st-guitar, .st-out { --c: var(--plum-2); color: var(--peach); box-shadow: inset 0 0 0 1px var(--line); }
.st-dyn { --c: #ff7a3d; }
.st-drive { --c: #ffc23d; }
.st-amp { --c: #ff5fa2; }
.st-cab { --c: #4b3577; color: var(--peach); }
.st-mod { --c: #b9a0ff; }
.st-space { --c: #7db6ff; }

.facts {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.fact {
  padding: 26px;
  border-radius: 22px;
  background: rgba(50, 31, 86, 0.5);
  box-shadow: inset 0 0 0 1px var(--line);
}
.fact h3 { color: var(--marigold); }
.fact p { margin-top: 10px; font-size: 1rem; }

/* ---------- Amp ---------- */

.amp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.amp-copy h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.amp-copy > p { margin-top: 18px; font-size: 1.15rem; max-width: 36rem; }
.ladder { margin-top: 30px; display: grid; gap: 8px; max-width: 36rem; }
.ladder li {
  --w: 20%;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(34, 18, 59, 0.55);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
  isolation: isolate;
}
.ladder li::before {
  /* how much drive, as a fill */
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 0;
  width: var(--w);
  background: linear-gradient(90deg, rgba(255, 95, 162, 0.08), rgba(255, 95, 162, 0.35));
}
.ladder li:nth-child(2) { --w: 35%; }
.ladder li:nth-child(3) { --w: 55%; }
.ladder li:nth-child(4) { --w: 75%; }
.ladder li:nth-child(5) { --w: 96%; }
.ladder b { font-weight: 700; color: var(--cream); }
.ladder span { color: var(--peach-dim); font-size: 0.95rem; }
.note-small { margin-top: 20px; color: var(--peach-dim); font-size: 0.95rem; }
.amp-figure { position: relative; justify-self: center; width: min(100%, 520px); }
.amp-figure::before {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 95, 162, 0.5), transparent);
  filter: blur(30px);
}
.amp-figure img { width: 100%; border-radius: 26px; box-shadow: 0 30px 70px -24px rgba(8, 2, 20, 0.9); }

/* ---------- Chips used as filters ---------- */

.chip-btn {
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 230, 211, 0.06);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--peach);
  font: 600 0.95rem/1 var(--body);
  cursor: pointer;
  transition: background 150ms, color 150ms;
}
.chip-btn:hover { background: rgba(255, 230, 211, 0.12); }
.chip-btn[aria-pressed="true"] { background: var(--peach); color: var(--plum); }

/* ---------- Pedal explorer ---------- */

.ex-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.ex-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}
.ex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.ex-pedal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 12px 12px 14px;
  border: 0;
  border-radius: 18px;
  background: var(--c);
  color: var(--plum);
  text-align: left;
  font: inherit;
  cursor: pointer;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.4), 0 8px 0 -2px rgba(8, 2, 20, 0.5);
  transition: transform 140ms, box-shadow 140ms;
}
.ex-pedal:hover { transform: translateY(-2px); }
.ex-pedal[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--plum), 0 0 0 6px var(--cream), 0 8px 0 -2px rgba(8, 2, 20, 0.5); }
.ex-pedal img, .ex-pedal .no-art { width: 100%; aspect-ratio: 170 / 96; border-radius: 10px; background: var(--cream); padding: 3px; margin-bottom: 8px; }
.ex-pedal b { font: 400 1.2rem/1.1 var(--display); }
.ex-pedal span:not(.no-art) { font-size: 0.85rem; opacity: 0.8; }
.ex-pedal.dark, .ex-head.dark { color: var(--peach); }
.no-art { display: grid; place-items: center; font: 400 1.6rem/1 var(--display); color: var(--plum); }

.ex-detail {
  position: sticky;
  top: 20px;
  border-radius: 26px;
  overflow: hidden;
  background: var(--plum-2);
  box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -30px rgba(8, 2, 20, 0.9);
}
.ex-head {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 24px;
  background: var(--c);
  color: var(--plum);
}
.ex-art img, .ex-art .no-art { width: 100%; aspect-ratio: 170 / 96; border-radius: 14px; background: var(--cream); padding: 4px; }
.ex-head h3 { font: 400 2rem/1 var(--display); color: inherit; }
.ex-kind { margin-top: 6px; font-weight: 600; opacity: 0.8; }
.ex-blurb { margin-top: 8px; font-size: 0.98rem; }
.ex-about { padding: 24px 24px 6px; font-size: 1.05rem; }
.ex-knobs { padding: 10px 24px 20px; display: grid; gap: 4px; }
.ex-knobs li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.ex-knobs li p { font-size: 0.98rem; }
.ex-knob-name { font-weight: 700; color: var(--cream); }
.ex-knob-name span { font-weight: 400; color: var(--peach-dim); font-size: 0.88rem; }
.knob { width: 40px; height: 40px; }
.knob-body { fill: var(--plum); stroke: var(--plum-3); stroke-width: 2; }
.knob-tick { stroke: var(--cream); stroke-width: 3; stroke-linecap: round; }
.ex-none { padding: 8px 24px 24px; color: var(--peach-dim); }
.ex-heard { padding: 0 24px 26px; }
.ex-heard > p { font-weight: 700; color: var(--marigold); margin-bottom: 10px; }
.mini-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-chips li { padding: 5px 11px; border-radius: 999px; background: rgba(34, 18, 59, 0.7); font-size: 0.88rem; }

/* ---------- Presets ---------- */

.preset-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.preset-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.preset {
  padding: 20px 22px 22px;
  border-radius: 20px;
  background: rgba(34, 18, 59, 0.6);
  box-shadow: inset 0 0 0 1px var(--line);
}
.preset-strip { display: flex; gap: 4px; margin-bottom: 16px; }
.preset-strip span { flex: 1; height: 6px; border-radius: 3px; background: var(--c); }
.preset h3 { font: 400 1.35rem/1.15 var(--display); }
.preset-artist { margin-top: 4px; color: var(--marigold); font-weight: 600; font-size: 0.95rem; }
.preset-notes { margin-top: 8px; color: var(--peach-dim); font-size: 0.95rem; line-height: 1.5; }

/* ---------- Footer ---------- */

.bottom { padding: clamp(50px, 7vw, 90px) 0 60px; }
.bottom-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.invite { font: 400 clamp(1.6rem, 3.2vw, 2.4rem)/1.2 var(--display); color: var(--cream); }
.invite a { color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.small { margin-top: 14px; color: var(--peach-dim); font-size: 0.92rem; }
.wordmark img { width: 1.1em; height: 1.1em; margin-bottom: 4px; flex: none; }
.wordmark-small { font-size: 1.6rem; }

/* ---------- Small pages (log in, not found) ---------- */

body.plain { min-height: 100vh; display: flex; flex-direction: column; }
.note { flex: 1; padding: clamp(40px, 10vw, 120px) 0 40px; }
.note h1 { font-size: clamp(2.4rem, 6vw, 3.75rem); max-width: 16ch; }
.note p { margin-top: 20px; max-width: var(--measure); font-size: 1.15rem; }
.note a { color: var(--marigold); font-weight: 600; }
.wave-foot { display: block; width: 100%; height: 80px; }
.wave-foot path { fill: none; stroke: var(--plum-3); stroke-width: 1.5; vector-effect: non-scaling-stroke; }

/* ---------- Smaller screens ---------- */

@media (max-width: 1100px) {
  .path { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .path::before { display: none; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ex-body { grid-template-columns: minmax(0, 1fr); }
  .ex-detail { position: static; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .story-cols, .amp-grid { grid-template-columns: minmax(0, 1fr); }
  .path { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ex-head { grid-template-columns: 110px minmax(0, 1fr); padding: 18px; gap: 14px; }
  .ex-head h3 { font-size: 1.6rem; }
  .hero h1 span { display: inline; }
  .window { border-radius: 12px; }
  .window-bar { height: 28px; }
  .window-bar span { width: 9px; height: 9px; }
  .window-bar b { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .strings .signal { animation: none; }
  .login, .nav a, .chip-btn, .ex-pedal { transition: none; }
}
