/* sounds.cbsound.de — design tokens taken from the Packs Home draft,
   kept in sync with tools.cbsound.de. */

:root {
  /* Shared with tools.cbsound.de — keep these in sync across both sites. */
  --bg: #060608;
  --bg-raised: #0d0d12;
  --bg-card: #0a0a0e;
  --border: #23232e;
  --border-strong: #33333f;
  --text: #f2f2f0;
  --text-dim: #8a8a94;
  --text-faint: #55555f;
  --accent-purple: #7b5cf5;
  --accent-teal: #00ffe0;
  --radius: 2px;

  /* Only on this site — no equivalent on the tools page.
     --bg-deep / --bg-hover are the darker panel and card-hover shades
     from the Packs Home design; --paper is the light mat behind the
     square cover art. */
  --bg-deep: #09090d;
  --bg-hover: #101017;
  --paper: #e9e9ec;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
}

body { min-height: 100vh; }

a { color: var(--accent-teal); text-decoration: none; }
a:hover { color: var(--text); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-teal); outline-offset: 2px; }
::selection { background: var(--accent-teal); color: var(--bg); }

@keyframes cbblink { 0%, 49% { opacity: 1 } 50%, 100% { opacity: 0 } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

.mono {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.wrap { max-width: 1180px; margin: 0 auto; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 18px 24px;
  background: rgba(6, 6, 8, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .brand { color: var(--text); }

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: flex-end;
}

.site-header nav a { color: var(--text-faint); }
.site-header nav a:hover { color: var(--text); }
.site-header nav a.cross { color: var(--accent-teal); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero canvas {
  display: block;
  width: 100%;
  height: min(58vh, 520px);
  background: var(--bg);
}

.hero-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: 0 24px;
  max-width: 1180px;
  margin: 0 auto;
  pointer-events: none;
}

.hero-copy {
  max-width: 860px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-copy .kicker { color: var(--text-faint); }

.hero h1 {
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(38px, 6.6vw, 88px);
  line-height: .98;
  letter-spacing: .01em;
  text-wrap: balance;
}

.hero .lede {
  margin: 0;
  font-weight: 400;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.45;
  max-width: 700px;
  text-wrap: pretty;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  pointer-events: auto;
  margin-top: 6px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.btn-teal {
  border: 1px solid var(--accent-teal);
  background: rgba(0, 255, 224, .08);
  color: var(--accent-teal);
}
.btn-teal:hover { background: rgba(0, 255, 224, .16); color: var(--accent-teal); }

.btn-ghost {
  border: 1px solid var(--border);
  background: var(--bg-raised);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--text-faint); color: var(--text); }

.btn-dark {
  border: 1px solid var(--border);
  background: var(--bg-deep);
  color: var(--text);
}
.btn-dark:hover { border-color: var(--text-faint); color: var(--text); }

/* ---------- status ticker ---------- */
.status-bar {
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
}

.status-bar .inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-faint);
  overflow-x: auto;
  white-space: nowrap;
}

.caret {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: var(--accent-teal);
  animation: cbblink 1.1s steps(1) infinite;
  flex-shrink: 0;
}

/* ---------- featured ---------- */
.section { max-width: 1180px; margin: 0 auto; padding: 76px 24px 0; }
#featured { padding-top: 56px; }

.featured-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent-teal);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 -1px 18px rgba(0, 255, 224, .16);
}

.featured-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 6px solid var(--paper);
  border-radius: var(--radius);
  background: var(--paper);
}

.featured-cover img,
.pack-cover img,
.inst-cover img,
.sb-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms cubic-bezier(.25, 0, 0, 1);
}

.featured-card:hover .featured-cover img,
.pack-card:hover .pack-cover img,
.inst-card:hover .inst-cover img { transform: scale(1.045); }

.featured-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.featured-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.tag-featured {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: 1px solid var(--accent-teal);
  border-radius: var(--radius);
  background: rgba(0, 255, 224, .09);
  color: var(--accent-teal);
}

.featured-meta .sub { color: var(--text-faint); }

.featured-body h2 {
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.02;
  letter-spacing: .01em;
  text-wrap: balance;
}

.featured-body p {
  margin: 0;
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.45;
  max-width: 560px;
  text-wrap: pretty;
}

.featured-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

/* ---------- section heads ---------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(27px, 3.2vw, 40px);
  letter-spacing: .02em;
}

.section-head .count { color: var(--text-faint); }

/* ---------- filter chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 22px 0 26px; }

.chip {
  padding: 11px 18px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.chip:hover { border-color: var(--text-faint); }

.chip[aria-pressed="true"] {
  border-color: var(--accent-teal);
  background: rgba(0, 255, 224, .1);
  color: var(--accent-teal);
}

/* ---------- pack grid ---------- */
.pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 286px), 1fr));
  gap: 14px;
}

.pack-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-top: 3px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  overflow: hidden;
}

.pack-card:hover {
  border-top-color: var(--accent-teal);
  box-shadow: 0 -1px 14px rgba(0, 255, 224, .28);
  background: var(--bg-hover);
  color: var(--text);
}

.pack-card.is-picked {
  border-top-color: var(--accent-teal);
  box-shadow: 0 -1px 14px rgba(0, 255, 224, .28);
}

.pack-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--paper);
  border: 4px solid var(--paper);
  overflow: hidden;
}

.pack-body { display: flex; flex-direction: column; gap: 9px; padding: 16px 16px 18px; }
.pack-body .desc { font-size: 18px; line-height: 1.5; color: var(--text-dim); text-wrap: pretty; }

.card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
}

.card-foot .id { color: var(--text-faint); }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 255, 224, .45);
  background: rgba(0, 255, 224, .09);
  color: var(--accent-teal);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.badge.purple {
  border-color: var(--accent-purple);
  background: rgba(123, 92, 245, .12);
  color: var(--accent-purple);
  flex: 0 0 auto;
  white-space: nowrap;
}

/* visually hidden but readable by screen readers / search engines */
.sr-name {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- art strips ---------- */
.art-strip {
  margin-top: 76px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-deep);
  position: relative;
  overflow: hidden;
}

.art-strip .row { display: flex; gap: 1px; height: clamp(110px, 15vw, 168px); }

.art-strip .row span {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg-raised);
}

.art-strip .row img {
  display: block;
  width: 100%;
  height: 200%;
  object-fit: cover;
  object-position: center center;
  transform: translateY(-25%);
  opacity: .6;
}

.art-strip .veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(6, 6, 8, .55), rgba(6, 6, 8, .15) 45%, rgba(6, 6, 8, .85));
}

/* ---------- instruments ---------- */
#instruments, #soundbox, #about { padding-top: 88px; }

.inst-box {
  background: var(--bg-deep);
  border: 1px solid var(--accent-purple);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 48px);
}

.inst-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.inst-head h2 {
  margin: 0;
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: .02em;
}

.inst-head .count { color: var(--accent-purple); }

.inst-intro {
  margin: 16px 0 34px;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.45;
  max-width: 640px;
  text-wrap: pretty;
}

.inst-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 246px), 1fr));
  gap: 14px;
  align-items: start;
}

.inst-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-top: 3px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  overflow: hidden;
}

.inst-card:hover {
  border-top-color: var(--accent-purple);
  box-shadow: 0 -1px 14px rgba(123, 92, 245, .3);
  background: var(--bg-hover);
  color: var(--text);
}

.inst-cover {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--bg-deep);
  overflow: hidden;
}

.inst-foot-note {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: baseline;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
}

.inst-foot-note .purple { color: var(--accent-purple); }

/* ---------- soundbox ---------- */
.sb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 14px;
  padding-top: 26px;
}

.sb-card {
  display: grid;
  grid-template-columns: clamp(104px, 20vw, 168px) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 26px);
  padding: 18px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.sb-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 4px solid var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}

.sb-body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sb-body .edition { color: var(--accent-purple); }

.sb-body .name {
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(21px, 2.4vw, 27px);
  line-height: 1.15;
  letter-spacing: .02em;
}

.sb-body .desc { font-size: 18px; line-height: 1.5; color: var(--text-dim); text-wrap: pretty; }

.sb-note { margin: 26px 0 0; color: var(--text-faint); }

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(20px, 4vw, 64px);
  padding: 0 0 44px;
}

.about-grid h2 {
  margin: 0;
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(25px, 2.9vw, 34px);
  letter-spacing: .02em;
}

.about-body { display: flex; flex-direction: column; gap: 16px; max-width: 620px; }
.about-body p { margin: 0; font-size: 19px; line-height: 1.55; text-wrap: pretty; }
.about-body p.dim { color: var(--text-faint); }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-raised);
  margin-top: 20px;
}

.site-footer .inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 24px 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: space-between;
  align-items: flex-start;
  color: var(--text-faint);
}

.site-footer .brand-block { display: flex; flex-direction: column; gap: 10px; }
.site-footer .brand-block .name { color: var(--text); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer nav a { color: var(--text-faint); }
.site-footer nav a:hover { color: var(--text); }

.site-footer .claim {
  flex: 1 1 100%;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* Cards for products that have no shop URL yet: same look, but not
   clickable and without the hover lift, so nothing dead-ends. */
.pack-card.is-soon,
.inst-card.is-soon { cursor: default; }

.pack-card.is-soon:hover {
  border-top-color: var(--border);
  box-shadow: none;
  background: var(--bg-raised);
}

.inst-card.is-soon:hover {
  border-top-color: var(--border);
  box-shadow: none;
  background: var(--bg-raised);
}

.pack-card.is-soon:hover .pack-cover img,
.inst-card.is-soon:hover .inst-cover img { transform: none; }

/* Soundbox cards that link to a marketplace */
a.sb-card { color: inherit; text-decoration: none; }
a.sb-card:hover { border-color: var(--accent-teal); }
