/* StudioRiffs brand: colours and fonts from brand/README.txt */
:root {
  --ink: #0E0D0C;          /* page background */
  --surface: #171513;      /* raised panels: player, video */
  --surface-2: #211E1B;    /* controls inside panels */
  --bone: #EFE9DF;         /* text */
  --muted: #A9A296;        /* secondary text on ink */
  --brass: #BE9E62;        /* accents, the amped signal */
  --brass-bright: #D1B47E; /* brass on hover */
  --line: rgba(239, 233, 223, .12);  /* hairlines */
  --line-brass: rgba(190, 158, 98, .35);
  --di: #CFC8BC;           /* clean DI signal in the waveform */

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1120px;
  --head: "Montserrat", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }

/* Header */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--gutter);
}
.brand { display: block; line-height: 0; text-decoration: none; }
.brand img { display: block; height: auto; }
.brand-full { width: 190px; }
.brand-icon { display: none !important; width: 32px; }
.top-cta {
  font-family: var(--head);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--brass);
  padding: 11px 18px;
  border: 1px solid var(--line-brass);
  border-radius: 999px;
  transition: border-color .2s ease, color .2s ease;
}
.top-cta:hover { border-color: var(--brass); color: var(--brass-bright); }

main { position: relative; isolation: isolate; }
main > section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Shared type */
h1, h2, .files strong {
  font-family: var(--head);
  color: var(--bone);
}
h1 {
  margin: 0;
  max-width: 15ch;
  font-weight: 300;
  font-size: clamp(42px, 7.6vw, 96px);
  line-height: 1.04;
  letter-spacing: -0.025em;
}
h1 span { font-weight: 600; }
h2 {
  margin: 0;
  max-width: 22ch;
  font-weight: 400;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.lede, .section-lede { color: var(--muted); }
.lede {
  max-width: 54ch;
  margin: 32px 0 0;
  font-size: clamp(17px, 1.6vw, 19px);
}
.section-lede { max-width: 56ch; margin: 20px 0 0; }

/* Hero */
.hero {
  position: relative;
  padding-top: clamp(40px, 8vw, 104px);
  padding-bottom: clamp(72px, 11vw, 136px);
}
.hero::before {           /* soft brass glow behind the headline */
  content: "";
  position: absolute;
  top: -140px;
  right: 0;
  width: min(720px, 100%);
  height: 560px;
  background: radial-gradient(closest-side, rgba(190, 158, 98, .13), transparent);
  pointer-events: none;
  z-index: -1;
}

/* Player: the one loud thing on the page */
.player {
  margin-top: clamp(44px, 7vw, 80px);
  background: linear-gradient(180deg, var(--surface-2), var(--surface) 55%);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(18px, 3vw, 32px);
  box-shadow: 0 1px 0 rgba(239, 233, 223, .06) inset, 0 40px 80px -40px rgba(0, 0, 0, .8);
}
.player-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.play {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 0;
  background: var(--brass);
  color: var(--ink);
  display: grid; place-items: center;
  cursor: pointer;
  flex: none;
  box-shadow: 0 0 0 6px rgba(190, 158, 98, .12);
  transition: background-color .2s ease, box-shadow .2s ease;
}
.play:hover { background: var(--brass-bright); box-shadow: 0 0 0 8px rgba(190, 158, 98, .16); }
.play svg { width: 24px; height: 24px; fill: currentColor; }
.play .icon-pause { display: none; }
.player.is-playing .play .icon-play { display: none; }
.player.is-playing .play .icon-pause { display: block; }

.switch {
  display: inline-flex;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
}
.switch button {
  font-family: var(--head);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .16em;
  text-transform: uppercase;
  min-width: 112px;
  padding: 13px 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.switch button:hover { color: var(--bone); }
.switch button[aria-checked="true"][data-mode="di"] { background: var(--bone); color: var(--ink); }
.switch button[aria-checked="true"][data-mode="amped"] { background: var(--brass); color: var(--ink); }

.meta {
  margin: 0 0 0 auto;
  font-family: var(--head);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

#wave {
  display: block;
  width: 100%;
  height: clamp(120px, 18vw, 190px);
  margin-top: 24px;
  cursor: pointer;
}
.hint { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

/* What's in a riff */
.riff-files { padding-bottom: clamp(72px, 11vw, 136px); }
.riff-files h2 {
  padding-top: clamp(64px, 9vw, 112px);
  border-top: 1px solid var(--line);
  max-width: none;
}
.files {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.files li {
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top-color: var(--line-brass);
  border-radius: 16px;
}
.files strong {
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.files span { max-width: 44ch; font-size: 16px; color: var(--muted); }

.specs {
  margin: 48px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.specs > div { padding-top: 18px; border-top: 1px solid var(--line); }
.specs dt {
  font-family: var(--head);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass);
}
.specs dd { margin: 8px 0 0; font-size: 16px; color: var(--bone); }

/* Session video slot */
.session { padding-bottom: clamp(72px, 11vw, 136px); }
.video {
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(closest-side, rgba(190, 158, 98, .08), transparent) center / 70% 90% no-repeat,
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.video p {
  margin: 0;
  font-family: var(--head);
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.caption { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

/* Sign-up */
.join { padding-bottom: clamp(72px, 11vw, 136px); }
.join-card {
  padding: clamp(28px, 6vw, 72px);
  background:
    radial-gradient(closest-side, rgba(190, 158, 98, .12), transparent) 100% 0 / 70% 120% no-repeat,
    var(--surface);
  border: 1px solid var(--line-brass);
  border-radius: 24px;
}
form { margin-top: 32px; max-width: 620px; }
label {
  display: block;
  font-family: var(--head);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.field { display: flex; gap: 10px; }
input[type="email"] {
  flex: 1;
  min-width: 0;
  font: inherit;
  padding: 16px 20px;
  border: 1px solid rgba(239, 233, 223, .22);
  border-radius: 999px;
  background: var(--ink);
  color: var(--bone);
  transition: border-color .2s ease;
}
input[type="email"]::placeholder { color: #6F6A62; }
input[type="email"]:focus { border-color: var(--brass); outline: none; }
form button {
  font-family: var(--head);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 16px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--brass);
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .2s ease;
}
form button:hover { background: var(--brass-bright); }
form button:disabled { opacity: .6; cursor: progress; }
.status { min-height: 1.5em; margin: 14px 0 0; font-size: 15px; }
.status.is-error { color: #E48C77; }
.status.is-ok { color: var(--brass); font-weight: 600; }

.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) 48px;
  font-size: 14px;
  color: var(--muted);
}
.foot-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.foot img { flex: none; }
.foot p { margin: 0; }

@media (max-width: 760px) {
  .files { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; gap: 18px; }
  .meta { margin-left: 0; width: 100%; }
  .field { flex-direction: column; }
  .top { padding-top: 20px; padding-bottom: 20px; }
}
@media (max-width: 480px) {
  .brand-full { width: 164px; }
  .top-cta { font-size: 11px; letter-spacing: .1em; padding: 9px 13px; }
  .switch button { min-width: 0; padding: 11px 18px; }
  .play { width: 56px; height: 56px; }
}
/* Below the logo's 160 px minimum, the pick stands alone (brand rule). */
@media (max-width: 370px) {
  .brand-full { display: none !important; }
  .brand-icon { display: block !important; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
