@property --mood {
  syntax: "<color>";
  inherits: true;
  initial-value: #FF9500;
}

:root {
  --ink: #1C1C1C;
  --paper: #F2F2F2;
  --muted: #A3A3A3;
  --accent: #FF9500;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(120% 70% at 0% 0%, color-mix(in srgb, var(--mood) 45%, transparent), transparent 70%),
    var(--ink);
  transition: --mood 1.1s ease-in-out;
}

.wrap {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  padding: 48px 16px 64px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
}

.cover {
  width: 200px;
  height: 300px;
  border-radius: 14px;
  background: linear-gradient(160deg, #2a2a2a, #141414);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  object-fit: cover;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
}

.cover img { width: 100%; height: 100%; object-fit: cover; }

.kicker {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 10px;
}

h1 {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 10px;
}

.subtitle {
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 28px;
}

.desc {
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 28px;
  text-align: left;
}

.cta, .play {
  display: inline-block;
  background: var(--accent);
  color: var(--ink);
  border: 0;
  font: inherit;
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.play { background: var(--paper); margin-bottom: 4px; }

.cta:active, .play:active { transform: scale(0.97); }

a:focus-visible, button:focus-visible, .cliff:focus-visible {
  outline: 3px solid var(--paper);
  outline-offset: 3px;
}

.ghost, .ghost-link {
  margin-top: 18px;
  background: rgba(242, 242, 242, 0.14);
  color: var(--paper);
  border: 0;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
}

.note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
  max-width: 320px;
}

.foot {
  margin-top: auto;
  padding-top: 40px;
  font-size: 12px;
  color: #7a7a7a;
}

/* ---- lesson player ---- */

.backdrop {
  position: fixed;
  inset: -40px;
  background-size: cover;
  background-position: center;
  filter: blur(32px);
  opacity: 0.35;
  animation: kenburns 30s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes kenburns {
  from { transform: scale(1.05) translate(0, 0); }
  to { transform: scale(1.25) translate(-3%, -2%); }
}

.intro .cover { animation: kenburns-soft 24s ease-in-out infinite alternate; }

@keyframes kenburns-soft {
  from { transform: scale(1); }
  to { transform: scale(1.04); }
}

.intro { display: flex; flex-direction: column; align-items: center; margin-bottom: 28px; }

.player {
  width: 100%;
  min-height: 60vh;
  text-align: left;
  display: flex;
  flex-direction: column;
  margin-bottom: 28px;
}

.bar {
  height: 4px;
  border-radius: 2px;
  background: rgba(242, 242, 242, 0.18);
  margin-bottom: 28px;
  overflow: hidden;
}

.bar span { display: block; height: 100%; width: 0; background: var(--mood); }

.label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin: 0 0 18px;
  color: var(--muted);
}

.lines { flex: 1; }

.line {
  font-size: 25px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 14px;
  opacity: 0;
  transform: translateY(14px);
  filter: blur(4px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out, filter 0.5s ease-out;
}

.line.on { opacity: 1; transform: none; filter: none; }

mark {
  background: var(--mood);
  color: var(--mood-ink, var(--ink));
  padding: 0 0.15em;
  border-radius: 4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.player .ghost { align-self: center; }

.cliff {
  width: 100%;
  background: rgba(28, 28, 28, 0.72);
  border: 1px solid rgba(242, 242, 242, 0.14);
  border-radius: 18px;
  padding: 28px 20px;
  margin-bottom: 24px;
}

.cliff h2 { font-size: 24px; font-weight: 800; margin: 0 0 8px; }
.cliff p { margin: 0; font-size: 16px; }
.cliff .locked { margin-top: 16px; font-size: 14px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .backdrop, .intro .cover { animation: none; }
  body { transition: none; }
  .line { transition: none; transform: none; filter: none; }
}
