:root {
  --paper: #f7f7f3;
  --ink: #353535;
  --muted: #74746d;
  --wine: #960000;
  --line: #c8c4c0;
  --white: #ffffff;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'League Spartan', Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  width: min(1160px, calc(100% - 64px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 44px 0 36px;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
}

.brand-logo {
  display: block;
  width: clamp(144px, 15vw, 188px);
  height: auto;
  mix-blend-mode: multiply;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 1.1rem;
  letter-spacing: 0;
}

.lesson {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.activity {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(300px, .82fr) minmax(470px, 1.18fr);
  gap: clamp(56px, 8vw, 112px);
  align-items: center;
  padding: 70px 0 58px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--wine);
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .13em;
}

h1 {
  margin: 0;
  font-size: clamp(4rem, 7.3vw, 6.8rem);
  font-weight: 500;
  line-height: .84;
  letter-spacing: -.055em;
}

h1 em {
  color: var(--muted);
  font-weight: 400;
}

.instruction {
  max-width: 430px;
  margin: 36px 0 0;
  font-size: 1.2rem;
  line-height: 1.5;
}

.player-card {
  position: relative;
  padding: 34px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(53, 53, 53, .07);
}

.player-card::before {
  content: '';
  position: absolute;
  inset: 7px -7px -7px 7px;
  z-index: -1;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #eeede8;
  transform: rotate(.7deg);
}

.player-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.track-label {
  display: block;
  margin-bottom: 9px;
  color: var(--wine);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .13em;
}

h2 {
  margin: 0;
  font-size: clamp(1.65rem, 2.8vw, 2.3rem);
  font-weight: 500;
  letter-spacing: -.025em;
}

.sound-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--wine);
}

.sound-icon i {
  width: 2px;
  border-radius: 9px;
  background: var(--white);
}
.sound-icon i:nth-child(1), .sound-icon i:nth-child(5) { height: 9px; }
.sound-icon i:nth-child(2), .sound-icon i:nth-child(4) { height: 17px; }
.sound-icon i:nth-child(3) { height: 25px; }

.soundcloud-player {
  overflow: hidden;
  min-height: 166px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.soundcloud-player iframe { display: block; }

.open-audio {
  margin-top: 22px;
  min-height: 52px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--white);
  background: var(--wine);
  border-radius: 12px;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 700;
}

.open-audio:hover { background: #7e0000; }
.open-audio:focus-visible { outline: 3px solid rgba(150, 0, 0, .23); outline-offset: 3px; }
.open-audio span { font-size: 1.15rem; }

footer {
  padding-top: 24px;
  display: flex;
  gap: 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 820px) {
  .page { width: min(100% - 34px, 600px); padding: 24px 0 28px; }
  .brand-logo { width: 140px; }
  .brand-mark { width: 30px; height: 30px; }
  .lesson { font-size: .62rem; }
  .activity { grid-template-columns: 1fr; gap: 42px; padding: 56px 0 42px; }
  h1 { font-size: clamp(4.1rem, 21vw, 6rem); }
  .instruction { margin-top: 27px; font-size: 1.08rem; }
  .player-card { padding: 25px 22px 22px; }
  footer { flex-direction: column; gap: 8px; }
}

@media (max-width: 390px) {
  .lesson { max-width: 90px; text-align: right; line-height: 1.35; }
  .activity { padding-top: 45px; }
  .sound-icon { width: 42px; height: 42px; }
}
