/* The sign-up page ("/" for logged-out visitors). Plum theme, scoped to body.home so the rest of the site keeps its look.
   Re-theming works by overriding the colour variables style.css already uses. */
body.home {
  --bg: #1b1320;
  --surface: #261b2e;
  --surface-2: #3a2845;
  --line: #3a2a44;
  --text: #f3eaf0;
  --muted: #b9a6c0;
  --accent: #e0a184;
  --accent-ink: #1b1320;
  --soft: #f2c7b2;
  --deep: #150e1a;
  --edge: #4a3556;
  line-height: 1.5;
}
body.home a:focus-visible, body.home button:focus-visible { outline: 2px solid var(--soft); outline-offset: 2px; }

/* header + footer use the same width as the page */
body.home .top { max-width: 1120px; padding: 14px 32px; gap: 8px 24px; }
body.home .brand { font-size: 22px; min-height: 44px; }
body.home nav { gap: 0 22px; }
body.home nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
body.home .nav-cta { padding: 0 20px; border-radius: 22px; }
body.home main { max-width: 1120px; padding: 0 32px 24px; }
body.home .foot { max-width: 1120px; padding: 32px 32px 40px; }

/* ---- library reel ---- */
.hm-lib { --tw: 128px; --th: 72px; --rh: 92px; background: var(--deep); border-top: 1px solid #2e2236; border-bottom: 1px solid #2e2236; }
.hm-lib-in { max-width: 1440px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; }
.hm-lib-label { flex: 1 1 240px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 8px 0 4px 32px; }
.hm-lib-label b { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.hm-lib-label span { font-size: 12px; color: var(--muted); }
.hm-lib-label a { font-size: 13px; font-weight: 600; color: var(--soft); text-decoration: none; }
.hm-lib-label a:hover { text-decoration: underline; }
.hm-reelwrap { flex: 999 1 420px; min-width: 0; position: relative; height: var(--rh); }
.hm-reel { height: var(--rh); overflow: hidden; display: flex; align-items: center; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 72px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 72px), transparent 100%); }
.hm-track { display: flex; flex: none; width: max-content; animation: hm-roll var(--roll, 84s) linear infinite; will-change: transform; }
.hm-set { display: flex; flex: none; align-items: center; gap: 10px; padding-right: 10px; }
@keyframes hm-roll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* Paused by the button, by pointing at the reel (mouse only), or by keyboard focus on a tile. The pause button itself
   isn't part of the hover area, so pressing "play" resumes straight away. */
.hm-reelwrap.paused .hm-track { animation-play-state: paused; }
@media (hover: hover) { .hm-reel:hover .hm-track { animation-play-state: paused; } }
.hm-reelwrap:has(a:focus-visible) .hm-track { animation-play-state: paused; }

.hm-tile { position: relative; flex: none; display: block; width: var(--tw); height: var(--th); border-radius: 9px; overflow: hidden; background: var(--surface-2); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
a.hm-tile:hover, a.hm-tile:focus-visible { transform: scale(1.07); box-shadow: 0 8px 20px rgba(0, 0, 0, .5); z-index: 2; }
.hm-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hm-title { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 16px 8px 5px; background: linear-gradient(180deg, rgba(27, 19, 32, 0) 0%, rgba(27, 19, 32, .92) 75%); color: var(--text); font-size: 11px; font-weight: 600; line-height: 1.2; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Not released yet: the real cover, a soft low-opacity veil, and the release date. */
.hm-tile.later::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(44, 36, 54, .6) 0%, rgba(44, 36, 54, .42) 50%, rgba(44, 36, 54, .32) 100%); transition: opacity .18s ease; }
a.hm-tile.later:hover::before { opacity: .65; }
.hm-tile.later .hm-title { color: #e6dcec; }
.hm-when { position: absolute; z-index: 2; left: 0; right: 0; top: 9px; text-align: center; color: #f6eef4; line-height: 1.1; text-shadow: 0 1px 5px rgba(20, 12, 26, .9), 0 0 2px rgba(20, 12, 26, .7); }
.hm-when small { display: block; font-size: 8.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.hm-when b { display: block; margin-top: 2px; font-size: 15px; font-weight: 700; letter-spacing: .01em; }

.hm-pause { position: absolute; right: 12px; top: calc((var(--rh) - 44px) / 2); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--edge); background: var(--bg); color: var(--text); display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; }
.hm-pause:hover { background: var(--surface); }
.hm-reelwrap.paused .hm-pause .i-pause, .hm-reelwrap:not(.paused) .hm-pause .i-play { display: none; }

/* ---- hero ---- */
.hm-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 56px; padding: 56px 0 72px; }
.hm-hero-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.hm-eyebrow { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); }
.hm-hero h1 { margin: 0; font-size: clamp(42px, 6vw, 68px); line-height: 1.03; letter-spacing: -.02em; }
.hm-hero h1 em { font-style: italic; font-weight: 400; color: var(--soft); }
.hm-lede { margin: 0; max-width: 34em; font-size: 18px; line-height: 1.6; color: #e2d5e7; }
.hm-cta { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
.hm-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 26px; background: var(--accent); color: var(--accent-ink); border: 1px solid transparent; font: 600 16px Inter, sans-serif; text-decoration: none; text-align: center; }
.hm-btn:hover { filter: brightness(1.08); }
.hm-btn.ghost { background: transparent; border-color: var(--edge); color: var(--text); padding: 0 24px; }
.hm-btn.ghost:hover { background: var(--surface); filter: none; }
.hm-ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: #d9cce0; }
.hm-ticks li { display: flex; align-items: center; gap: 8px; }
.hm-ticks svg { color: var(--accent); flex: none; }

.hm-sample-wrap { flex: 1 1 400px; min-width: 0; max-width: 560px; }
.hm-sample { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 28px 60px rgba(0, 0, 0, .4); }
.hm-sample-cover { position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); }
.hm-sample-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hm-chip { position: absolute; left: 14px; top: 14px; padding: 5px 12px; border-radius: 14px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hm-player { display: flex; align-items: center; gap: 14px; padding: 16px 18px 6px; }
.hm-player[hidden], .hm-native[hidden] { display: none; }
.hm-play { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; }
.hm-play:hover { filter: brightness(1.08); }
.hm-play .i-pause, .hm-play.playing .i-play { display: none; }
.hm-play.playing .i-pause { display: block; }
.hm-bars { flex: 1; min-width: 0; display: flex; align-items: center; gap: 3px; height: 36px; cursor: pointer; }
.hm-bars i { display: block; flex: 1; max-width: 4px; min-width: 2px; border-radius: 2px; background: #6b5578; }
.hm-bars i.on { background: var(--accent); }
.hm-time { flex: none; font-size: 13px; color: #d9cce0; font-variant-numeric: tabular-nums; }
.hm-native { display: block; width: calc(100% - 36px); margin: 14px 18px 4px; }
.hm-note { margin: 0; padding: 6px 18px 18px; font-size: 14px; font-style: italic; color: var(--muted); }

/* ---- sections ---- */
.hm-sec { padding-bottom: 72px; }
.hm-sec h2 { margin: 0 0 24px; font-size: 32px; letter-spacing: -.01em; }
.hm-feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.hm-feat { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.hm-ico { width: 46px; height: 46px; border-radius: 50%; background: var(--surface-2); color: var(--soft); display: flex; align-items: center; justify-content: center; }
.hm-feat h3 { margin: 6px 0 0; font-size: 21px; }
.hm-feat p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }

.hm-row-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 24px; }
.hm-row-h h2 { margin: 0; }
.hm-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--soft); font-weight: 600; font-size: 15px; text-decoration: none; }
.hm-link:hover { text-decoration: underline; }
.hm-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.hm-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: transform .18s ease, border-color .18s ease; }
.hm-card:hover { transform: translateY(-3px); border-color: var(--edge); }
.hm-card-img { display: block; aspect-ratio: 16 / 9; background: var(--surface-2); }
.hm-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hm-card-body { flex: 1; padding: 18px 20px 12px; display: flex; flex-direction: column; gap: 8px; }
.hm-label { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.hm-card h3 { margin: 0; font-size: 21px; line-height: 1.2; }
.hm-card h3 a { color: var(--text); text-decoration: none; }
.hm-blurb { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.hm-listen { margin-top: auto; display: inline-flex; align-items: center; min-height: 44px; color: var(--soft); font-weight: 600; font-size: 15px; text-decoration: none; }
.hm-listen:hover { text-decoration: underline; }
.hm-more { display: flex; align-items: center; gap: 8px; margin: 20px 0 0; font-size: 14px; color: var(--muted); }

.hm-band { background: var(--surface); border: 1px solid var(--edge); border-radius: 24px; padding: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 28px 48px; }
.hm-band-copy { flex: 1 1 380px; min-width: 0; }
.hm-band h2 { margin: 0 0 12px; font-size: 34px; line-height: 1.12; }
.hm-band p { margin: 0; font-size: 16px; line-height: 1.6; color: #d9cce0; }
.hm-band p b { color: var(--text); }
.hm-band-cta { flex: 0 1 300px; min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.hm-band-cta .hm-btn { min-height: 54px; border-radius: 27px; }
.hm-band-cta .hm-link { justify-content: center; font-size: 14px; }

/* ---- phones ---- */
@media (max-width: 640px) {
  body.home .top { padding: 10px 16px; }
  body.home main { padding: 0 16px 16px; }
  body.home .foot { padding: 28px 16px 36px; }
  body.home nav a[href="/audios"], body.home nav a[href="/join"] { display: none; }
  .hm-lib { --tw: 112px; --th: 63px; --rh: 78px; }
  .hm-lib-label { padding: 6px 0 0 16px; }
  .hm-title { padding: 14px 7px 4px; font-size: 10.5px; }
  .hm-when { top: 7px; }
  .hm-when small { font-size: 8px; }
  .hm-when b { font-size: 13.5px; }
  .hm-cta { width: 100%; }
  .hm-cta .hm-btn { flex: 1 1 100%; }
  .hm-hero { padding: 32px 0 48px; }
  .hm-sec { padding-bottom: 48px; }
  .hm-sec h2 { font-size: 28px; }
  .hm-band { padding: 28px 22px; }
  .hm-band h2 { font-size: 28px; }
  .hm-cards { grid-template-columns: 1fr; }
}

/* ---- reduced motion: no drifting; the reel scrolls by hand instead ---- */
@media (prefers-reduced-motion: reduce) {
  .hm-track { animation: none; }
  .hm-reel { overflow-x: auto; }
  .hm-set[aria-hidden="true"], .hm-pause { display: none; }
  .hm-tile, .hm-card, .hm-tile.later::before { transition: none; }
}
