/* =========================================================================
   Harmony by Design Music · The Artist's Journey
   Design system stylesheet. One file, ordered: fonts → tokens → base →
   layout → components → pages → utilities. Every component is documented
   live in /styleguide.html.
   ========================================================================= */

/* ---------- 1. Fonts (self-hosted, latin subset, variable weight) ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Pinyon Script";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/pinyon-script-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Great Vibes";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/great-vibes-latin.woff2") format("woff2");
}

/* ---------- 2. Tokens ---------- */
:root {
  /* Color */
  --navy-950: #070c1f;
  --navy-900: #0b1226;
  --navy-800: #141c36;
  --cream-50: #fdf9f0;
  --cream-100: #fbf4e4;
  --cream-200: #f3e7cc;
  --cream-wash: rgba(246, 237, 216, 0.87);
  --paper: rgba(253, 249, 240, 0.95);
  --plum-800: #3d1742;
  --plum-700: #4e1f55;
  --ink: #2b2129;
  --ink-soft: #4a3e47;
  --gold-700: #6f5119;
  --gold-600: #85631f;
  --gold-400: #c9a35a;
  --gold-300: #dcc08a;
  --gold-200: #e8d6ad;
  --amber-200: #f7d48d;
  --amber-400: #eaa94c;
  --hero-text: #f7efdd;
  --hero-accent: #f3cf8a;
  --focus: #6b2a73;

  /* Type */
  --font-serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --font-script: "Pinyon Script", "Snell Roundhand", "Apple Chancery", cursive;
  --font-signature: "Great Vibes", "Pinyon Script", cursive;
  --fs-body: clamp(1.1875rem, 1.05rem + 0.4vw, 1.3125rem);
  --fs-small: 1.0625rem;
  --fs-lead: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --fs-h3: clamp(1.5rem, 1.3rem + 0.6vw, 1.75rem);
  --fs-h2-serif: clamp(1.75rem, 1.4rem + 1vw, 2.25rem);
  --fs-display: clamp(3rem, 2rem + 4vw, 5rem);
  --fs-hero: clamp(2.75rem, 1.6rem + 4.6vw, 5.25rem);
  --fs-price: clamp(6rem, 4rem + 8vw, 10rem);
  --tracking-eyebrow: 0.3em;

  /* Space & shape */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --radius-sm: 4px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --shadow-card: 0 18px 40px -18px rgba(70, 48, 14, 0.35);
  --shadow-btn: 0 10px 24px -8px rgba(150, 95, 20, 0.55);
  --frame-inset: 7px;

  /* Widths */
  --w-prose: 52rem;
  --w-narrow: 49rem;
  --w-mid: 55rem;
  --w-wide: 65rem;
  --w-max: 70rem;
}

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-6);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink);
  background: var(--navy-950);
  font-variant-numeric: lining-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
img, video, svg { display: block; max-width: 100%; height: auto; }
audio { display: block; width: 100%; }
p, li, dd { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; font-weight: 600; line-height: 1.2; color: var(--plum-700); }
a { color: var(--plum-700); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--plum-800); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.hero :focus-visible, .site-header :focus-visible { outline-color: var(--hero-accent); }
strong { font-weight: 700; }

/* ---------- 4. Layout ---------- */
.container { width: min(100% - 2.5rem, var(--w-max)); margin-inline: auto; }
.container--wide { max-width: var(--w-wide); }
.container--mid { max-width: var(--w-mid); }
.container--narrow { max-width: var(--w-narrow); }
.container--prose { max-width: var(--w-prose); }
.center { text-align: center; }

/* ---------- 5. Components ---------- */

/* 5.1 Skip link */
.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 100;
  padding: var(--space-3) var(--space-5);
  background: var(--cream-50); color: var(--plum-800);
  border-radius: var(--radius-sm); font-weight: 700;
}
.skip-link:focus { top: var(--space-4); }

/* 5.2 Site header */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  padding: var(--space-5) clamp(1.25rem, 4vw, 3.5rem);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-5);
}
.site-header--solid { position: relative; background: var(--navy-900); }
.wordmark {
  font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--hero-text); text-decoration: none; white-space: nowrap;
}
.wordmark:hover { color: var(--hero-accent); }
.site-nav ul { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.25rem); }
.site-nav a {
  font-size: 1.125rem; font-weight: 600; color: var(--hero-text); text-decoration: none;
  padding-block: var(--space-2); display: inline-block;
}
.site-nav a:hover { color: var(--hero-accent); }
.site-nav a[aria-current="page"] { color: var(--hero-accent); box-shadow: inset 0 -1px 0 var(--hero-accent); }
.site-nav .nav-pill {
  padding: 0.3rem 1.1rem; border: 1px solid rgba(247, 239, 221, 0.55); border-radius: var(--radius-pill);
}
.site-nav .nav-pill:hover { border-color: var(--hero-accent); }
@media (max-width: 40rem) {
  .site-header { flex-direction: column; gap: var(--space-2); }
  .site-nav .nav-optional { display: none; }
}

/* 5.3 Brand badge (Harmony by Design Music lockup, live text) */
.brand-badge {
  display: inline-flex; flex-direction: column; align-items: center;
  padding: 1.1rem 2.75rem 0.85rem; min-width: min(100%, 25.5rem);
  background: var(--cream-100); border: 1px solid var(--gold-300); border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}
.brand-badge__name { font-family: var(--font-script); font-size: clamp(2.25rem, 1.8rem + 1.5vw, 2.75rem); line-height: 1.1; color: var(--plum-700); font-weight: 400; }
.brand-badge__sub { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.45em; color: var(--gold-700); text-transform: uppercase; margin-right: -0.45em; }

/* 5.4 Buttons & links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 3rem; padding: 0.85rem 2.6rem;
  font: 700 1.5rem/1.1 var(--font-serif); color: var(--plum-800); text-decoration: none; text-align: center;
  background: linear-gradient(180deg, var(--amber-200) 0%, var(--amber-400) 100%);
  border: 1px solid rgba(255, 240, 205, 0.8); border-radius: var(--radius-pill);
  box-shadow: var(--shadow-btn), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn:hover { color: var(--plum-800); text-decoration: none; filter: brightness(1.04); transform: translateY(-1px); box-shadow: 0 14px 28px -8px rgba(150, 95, 20, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.55); }
.btn:active { transform: translateY(0); filter: brightness(0.97); }
.btn--hero { padding: 1.1rem 2.9rem; font-size: 1.625rem; box-shadow: 0 0 0 4px rgba(20, 20, 30, 0.55), var(--shadow-btn), inset 0 1px 0 rgba(255, 255, 255, 0.55); }
.btn__sep { font-weight: 500; font-size: 0.8em; }
.btn__price { font-size: 1.08em; }
.text-link { font-weight: 600; color: var(--plum-700); text-decoration: underline; text-decoration-color: var(--gold-400); text-decoration-thickness: 2px; text-underline-offset: 0.22em; }
.text-link--light { color: var(--hero-accent); text-decoration-color: var(--hero-accent); font-size: 1.375rem; }
.text-link--light:hover { color: #fff; }
.cta-block { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); margin-top: var(--space-7); text-align: center; }
.fineprint { font-size: var(--fs-small); color: var(--ink); }
.fineprint em { font-weight: 600; }

/* 5.5 Section wrapper */
.section { position: relative; padding-block: clamp(4rem, 3rem + 4vw, 7.5rem); }
.section--paper {
  background:
    linear-gradient(var(--cream-wash), var(--cream-wash)),
    url("../img/texture.webp") center / cover no-repeat,
    var(--cream-200);
  border-top: 1px solid var(--gold-300);
}
.section--tight-top { padding-top: clamp(3rem, 2rem + 3vw, 5rem); }

/* 5.6 Paper card (double-rule frame) */
.card {
  position: relative; background: var(--paper);
  border: 1px solid var(--gold-300); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  padding: clamp(1.75rem, 1rem + 3vw, 4.5rem);
}
.card::before {
  content: ""; position: absolute; inset: var(--frame-inset); pointer-events: none;
  border: 1px solid var(--gold-200); border-radius: 2px;
}
.card--compact { padding: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); }
.card--plain { box-shadow: none; }
.card--plain::before { display: none; }

/* 5.7 Headings */
.eyebrow { font-size: 1rem; font-weight: 600; letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--gold-700); line-height: 1.4; }
.eyebrow--light { color: var(--hero-accent); }
.display { font-family: var(--font-script); font-weight: 400; font-size: var(--fs-display); line-height: 1.15; color: var(--plum-700); }
.display--sm { font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem); }
.heading-serif { font-size: var(--fs-h2-serif); font-weight: 600; color: var(--plum-700); }
.subhead { font-size: var(--fs-h3); font-weight: 600; color: var(--plum-700); line-height: 1.3; }
.section-head { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); text-align: center; margin-bottom: var(--space-7); }

/* 5.8 Divider ornament */
.divider { display: flex; align-items: center; justify-content: center; gap: var(--space-4); color: var(--gold-400); }
.divider::before, .divider::after { content: ""; width: 5rem; height: 1px; background: currentColor; }
.divider svg { width: 20px; height: 14px; }

/* 5.9 Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-950); color: var(--hero-text); min-height: min(60.3rem, 100svh); display: flex; align-items: center; }
.hero__art { position: absolute; z-index: -2; top: 0; right: 0; width: 88%; height: 100%; }
.hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, var(--navy-950) 8%, rgba(7, 12, 31, 0.88) 26%, rgba(7, 12, 31, 0.35) 48%, rgba(7, 12, 31, 0) 64%),
    linear-gradient(0deg, var(--navy-950) 6%, rgba(7, 12, 31, 0) 32%);
}
.hero__inner { width: 100%; padding: 7rem clamp(1.25rem, 6.7vw, 6rem) 7.5rem; }
.hero__content { max-width: 41rem; display: flex; flex-direction: column; align-items: flex-start; }
.hero__content .brand-badge { margin-bottom: var(--space-7); }
.hero__title { font-family: var(--font-script); font-weight: 400; font-size: var(--fs-hero); line-height: 1.12; color: var(--hero-text); margin-top: var(--space-2); text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45); }
.hero__lead { margin-top: var(--space-5); max-width: 37rem; font-size: 1.375rem; line-height: 1.5; color: var(--hero-text); }
.hero__actions { margin-top: var(--space-6); display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-5); }
@media (max-width: 56rem) {
  .hero { align-items: flex-end; }
  .hero__art { width: 100%; }
  .hero::before { background: linear-gradient(0deg, var(--navy-950) 30%, rgba(7, 12, 31, 0.78) 60%, rgba(7, 12, 31, 0.35) 100%); }
  .hero__inner { padding-top: 9rem; padding-bottom: 4rem; }
  .hero__lead { font-size: 1.25rem; }
}

/* 5.10 Letter */
.letter { font-size: var(--fs-lead); line-height: 1.55; }
.letter p + p { margin-top: var(--space-5); }
.signature { font-family: var(--font-signature); font-size: clamp(2.5rem, 2rem + 1.5vw, 3.25rem); color: var(--plum-700); text-align: right; line-height: 1; margin-top: var(--space-5); }

/* 5.11 Song card (free listen) */
.song-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: var(--space-5); margin-top: var(--space-6); }
.song-card { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-5); background: var(--cream-50); border: 1px solid var(--gold-300); border-radius: var(--radius-md); }
.song-card__head { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-1); text-align: left; }
.song-card__title { font-size: 1.5rem; font-weight: 600; color: var(--plum-700); }
.song-card__num { color: var(--gold-700); font-weight: 700; margin-right: 0.35em; }
.song-card__tag { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-700); }
.song-card__page { border: 1px solid var(--gold-300); background: #fff; }
.song-card__page img { width: 100%; aspect-ratio: 398 / 298; object-fit: cover; object-position: top; }

/* 5.12 Collection video */
.video-frame { width: min(100%, 30rem); margin: var(--space-6) auto 0; border: 2px solid #2a2418; border-radius: var(--radius-sm); overflow: hidden; background: #000; box-shadow: 0 22px 40px -16px rgba(0, 0, 0, 0.55); }
.video-frame video { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }

/* 5.13 Tracklist (movements) */
.movement-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); gap: var(--space-6); align-items: stretch; }
.movement__head { text-align: center; padding-bottom: var(--space-5); border-bottom: 1px solid var(--gold-400); display: flex; flex-direction: column; gap: var(--space-2); }
.movement__title { font-family: var(--font-script); font-weight: 400; font-size: clamp(2.25rem, 1.8rem + 1.4vw, 2.75rem); line-height: 1.15; color: var(--plum-700); }
.movement__sub { font-size: 1.25rem; }
.tracklist { counter-reset: none; }
.track { display: grid; grid-template-columns: 3rem 1fr; padding-block: var(--space-4); border-bottom: 1px dotted var(--gold-300); }
.track:last-child { border-bottom: 0; }
.track__num { font-weight: 700; color: var(--gold-700); font-variant-numeric: lining-nums tabular-nums; padding-top: 0.1em; }
.track__title { font-size: 1.375rem; font-weight: 600; color: var(--plum-700); line-height: 1.3; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.track__title::before { content: "~"; color: var(--gold-600); font-weight: 500; margin-right: 0.1rem; }
.track__line { font-style: italic; font-size: 1.1875rem; color: var(--ink-soft); padding-left: 1.2rem; }
.badge { display: inline-block; padding: 0.05rem 0.55rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; color: var(--gold-700); background: #f3e2b4; border: 1px solid var(--gold-400); border-radius: var(--radius-pill); line-height: 1.5; }

/* 5.14 Feature cards (what's included) */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: var(--space-5); }
.feature { text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--space-3); }
.feature__icon { width: 48px; height: 48px; color: var(--gold-600); }
.feature__title { font-size: 1.625rem; }
.feature p { font-size: 1.25rem; line-height: 1.6; }
.summary { text-align: center; margin-block: var(--space-7); display: flex; flex-direction: column; gap: var(--space-2); }
.summary__text { font-size: var(--fs-lead); font-weight: 600; color: var(--plum-700); max-width: 50rem; margin-inline: auto; }

/* 5.15 Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: var(--space-5) var(--space-6); margin-top: var(--space-5); }
.step { display: flex; flex-direction: column; gap: var(--space-4); font-size: 1.25rem; }
.step__num { width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border: 1px solid var(--gold-600); border-radius: 50%; font-weight: 600; font-size: 1.125rem; color: var(--ink); }
.step strong { color: var(--plum-700); }

/* 5.16 Fit list (who it's for) */
.fit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 1fr 1fr auto; gap: var(--space-5); max-width: 56rem; margin-inline: auto; }
.fit-grid > :nth-child(5) { grid-column: 1 / -1; }
@media (max-width: 44rem) {
  .fit-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
}
.fit { display: grid; grid-template-columns: 2rem 1fr; gap: var(--space-4); align-items: start; font-size: 1.375rem; line-height: 1.55; }
.fit svg { width: 26px; height: 26px; color: var(--gold-600); margin-top: 0.2rem; }
.not-for { margin-top: var(--space-8); text-align: center; }
.not-for .card { margin-top: var(--space-3); font-size: 1.375rem; }

/* 5.17 Quote cards */
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: var(--space-5); }
.quote { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--space-5); padding: var(--space-5) var(--space-5) var(--space-6); background: var(--paper); border: 1px dashed var(--gold-400); border-radius: var(--radius-sm); text-align: center; }
.quote__mark { font-size: 4rem; line-height: 0.6; color: var(--gold-400); font-family: var(--font-serif); padding-top: var(--space-4); }
.quote blockquote { font-size: 1.375rem; line-height: 1.5; }
.quote figcaption { font-size: 1.375rem; }


/* 5.19 Price block */
.price { text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--space-5); }
.price__amount { font-family: var(--font-script); font-weight: 400; font-size: var(--fs-price); line-height: 1; color: var(--plum-700); }
.price__copy { max-width: 36rem; font-size: 1.375rem; }
.price__value { max-width: 36rem; font-size: 1.375rem; font-weight: 700; color: var(--plum-700); line-height: 1.45; }
.price__rule { width: 100%; height: 1px; background: var(--gold-400); border: 0; margin: var(--space-2) 0; }
.price__closing { font-family: var(--font-script); font-size: clamp(2.25rem, 1.8rem + 1.5vw, 2.75rem); line-height: 1.25; color: var(--plum-700); max-width: 34rem; }

/* 5.20 FAQ */
.faq__item { padding-block: var(--space-6); border-bottom: 1px solid var(--gold-400); }
.faq__item:first-child { padding-top: 0; }
.faq__item:last-of-type { border-bottom: 0; }
.faq__q { font-size: 1.625rem; margin-bottom: var(--space-2); }
.faq__a { font-size: 1.3125rem; }
.faq-title { font-size: 1.875rem; font-weight: 700; letter-spacing: 0.3em; color: var(--gold-700); margin-right: -0.3em; }

/* 5.21 Site footer */
.site-footer { background: var(--navy-950); color: var(--hero-text); padding: var(--space-8) 0 var(--space-7); text-align: center; }
.site-footer .wordmark { display: inline-block; }
.footer-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2) var(--space-5); margin-top: var(--space-5); }
.footer-nav a, .footer-nav button { color: var(--hero-text); font: 600 1.0625rem var(--font-serif); text-decoration: none; background: none; border: 0; padding: var(--space-2) 0; cursor: pointer; }
.footer-nav a:hover, .footer-nav button:hover { color: var(--hero-accent); text-decoration: underline; }
.footer-meta { margin-top: var(--space-5); font-size: 1rem; color: #cfc4ad; }
.footer-meta a { color: inherit; }
.footer-meta a:hover { color: var(--hero-accent); }

.btn--small { min-height: 2.75rem; padding: 0.5rem 1.5rem; font-size: 1.125rem; }
.btn--ghost { background: transparent; box-shadow: none; border: 1px solid var(--plum-700); }
.btn--ghost:hover { background: var(--cream-200); box-shadow: none; }

/* 5.23 Prose (legal & utility pages) */
.prose { font-size: 1.25rem; }
.prose h1 { font-family: var(--font-script); font-weight: 400; font-size: var(--fs-display); line-height: 1.15; margin-bottom: var(--space-3); }
.prose h2 { font-size: 1.625rem; margin-top: var(--space-7); margin-bottom: var(--space-3); }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: var(--space-4); }
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: var(--space-2); }
.prose .updated { font-style: italic; color: var(--ink-soft); }

/* 5.24 Checkout */
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: var(--space-6); align-items: start; }
@media (max-width: 52rem) { .checkout-grid { grid-template-columns: 1fr; } }
.order-summary { display: flex; flex-direction: column; gap: var(--space-4); }
.order-summary img { width: 100%; max-width: 15rem; border-radius: var(--radius-sm); }
.order-summary ul { padding-left: 1.2rem; font-size: 1.1875rem; }
.order-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: var(--space-4); border-top: 1px solid var(--gold-400); font-weight: 700; font-size: 1.375rem; color: var(--plum-700); }
.pay-card { display: flex; flex-direction: column; gap: var(--space-3); text-align: center; }
.pay-card .btn { width: 100%; flex-wrap: wrap; padding-inline: 1rem; row-gap: 0.15em; }
.pay-card .btn__label, .pay-card .btn__price { white-space: nowrap; }
[data-ty-state][hidden] { display: none; }
.secure-note { font-size: 1rem; color: var(--ink-soft); text-align: center; margin-top: var(--space-3); }

/* 5.25 Auth (sign-in page; also loaded by the app's web view) */
.auth { position: relative; isolation: isolate; min-height: 100svh; display: grid; place-items: center; padding: 7rem 1.25rem var(--space-8); background: var(--navy-950); overflow: hidden; }
.auth__art { position: absolute; inset: 0; z-index: -2; }
.auth__art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.auth::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 40%, rgba(7, 12, 31, 0.35) 0%, rgba(7, 12, 31, 0.8) 70%), linear-gradient(0deg, var(--navy-950) 0%, rgba(7, 12, 31, 0) 40%); }
.auth__inner { width: min(100%, 30rem); display: flex; flex-direction: column; align-items: center; gap: var(--space-6); }
.auth__card { width: 100%; text-align: center; }
.auth__title { font-family: var(--font-script); font-weight: 400; font-size: clamp(2.75rem, 2.2rem + 2vw, 3.5rem); line-height: 1.15; color: var(--plum-700); margin-top: var(--space-2); }
.auth__title:focus { outline: none; }
.auth__lead { font-size: 1.1875rem; margin-top: var(--space-3); }
.auth__form { display: flex; flex-direction: column; gap: var(--space-5); margin-top: var(--space-6); text-align: left; }
.auth__form .btn { width: 100%; font-size: 1.375rem; }
.auth__alt { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); margin-top: var(--space-5); font-size: 1.125rem; }
.auth__help { color: var(--hero-text); font-size: 1.0625rem; text-align: center; }
.auth__help a { color: var(--hero-accent); }
.auth__help a:hover { color: #fff; }
.auth__icon { width: 56px; height: 56px; margin: 0 auto var(--space-3); color: var(--gold-600); }
.site-nav .nav-pill[aria-current="page"] { border-color: var(--hero-accent); box-shadow: none; }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field__label { font-size: 1.125rem; font-weight: 700; color: var(--plum-700); }
.field__link { font-size: 1rem; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.input { width: 100%; min-height: 3.25rem; padding: 0.7rem 1rem; font: 500 1.1875rem/1.3 var(--font-serif); color: var(--ink); background: #fff; border: 1px solid var(--gold-400); border-radius: 10px; box-shadow: inset 0 1px 2px rgba(70, 48, 14, 0.08); transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.input::placeholder { color: #7a6c5c; }
.input:hover { border-color: var(--gold-600); }
.input:focus { outline: none; border-color: var(--plum-700); box-shadow: 0 0 0 3px rgba(107, 42, 115, 0.22); }
.input[aria-invalid="true"] { border-color: #9b2c2c; }
.field__error { font-size: 1rem; font-weight: 600; color: #8f2424; }
.field__error:empty { display: none; }
.or { display: flex; align-items: center; gap: var(--space-3); font-size: 1rem; font-style: italic; color: var(--ink-soft); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--gold-300); }
.form-alert { padding: var(--space-3) var(--space-4); border: 1px solid #c58b8b; background: #fbeeee; color: #6e1c1c; border-radius: 10px; font-size: 1.0625rem; font-weight: 600; }
.form-alert[hidden], [data-view][hidden] { display: none; }
.btn[aria-busy="true"] { opacity: 0.75; pointer-events: none; }

/* 5.26 Member area (library.html, song.html; also loaded by the app web view) */
.member-nav a[aria-current="page"] { color: var(--hero-accent); box-shadow: inset 0 -1px 0 var(--hero-accent); }
.member-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-950); color: var(--hero-text); padding: var(--space-7) 0 var(--space-8); }
.member-hero__art { position: absolute; z-index: -2; inset: 0 0 0 35%; }
.member-hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.member-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--navy-950) 30%, rgba(7, 12, 31, 0.8) 55%, rgba(7, 12, 31, 0.35) 100%), linear-gradient(0deg, var(--navy-950) 0%, rgba(7, 12, 31, 0) 35%); }
.member-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 27rem); gap: var(--space-7); align-items: end; }
@media (max-width: 56rem) { .member-hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); } .member-hero__art { inset: 0; opacity: 0.45; } }
.member-hero__title { font-family: var(--font-script); font-weight: 400; font-size: clamp(2.75rem, 2rem + 3vw, 4.25rem); line-height: 1.12; color: var(--hero-text); margin-top: var(--space-2); text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45); }
.member-hero__lead { margin-top: var(--space-4); max-width: 34rem; font-size: 1.3125rem; }
.progress { margin-top: var(--space-6); max-width: 28rem; display: flex; flex-direction: column; gap: var(--space-2); font-size: 1.0625rem; }
.progress__bar { height: 4px; border-radius: var(--radius-pill); background: rgba(247, 239, 221, 0.22); overflow: hidden; }
.progress__bar span { display: block; height: 100%; background: var(--hero-accent); }
.resume { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: var(--space-5); align-items: center; text-align: left; }
.resume img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--gold-300); }
.resume__title { font-size: 1.625rem; line-height: 1.2; margin-top: var(--space-1); }
.resume__line { font-style: italic; color: var(--ink-soft); font-size: 1.125rem; }
.resume__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); }
.resume__actions .btn { font-size: 1.3125rem; padding-inline: 2rem; }
.btn svg { width: 1em; height: 1em; }
.call { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-5); align-items: center; }
@media (max-width: 44rem) { .call { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; } }
.call__date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 5.5rem; height: 5.5rem; border: 1px solid var(--gold-400); border-radius: var(--radius-sm); background: var(--cream-50); line-height: 1; }
.call__dow { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-700); margin-right: -0.2em; }
.call__day { font-size: 2.5rem; font-weight: 600; color: var(--plum-700); margin-top: 0.15rem; }
.call__title { font-size: 1.625rem; }
.call__meta { font-size: 1.1875rem; }
.call__actions { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); }
.call__actions .btn { font-size: 1.25rem; }
.lib-track { display: grid; grid-template-columns: 2.75rem 2.25rem minmax(0, 1fr) auto; gap: var(--space-3); align-items: center; padding-block: var(--space-3); border-bottom: 1px dotted var(--gold-300); }
.lib-track:last-child { border-bottom: 0; }
.lib-track.is-current .track__title { color: var(--plum-800); }
.lib-track__body { min-width: 0; }
.lib-track__body a { text-decoration: none; }
.lib-track__body a:hover .track__title { text-decoration: underline; text-decoration-color: var(--gold-400); }
.lib-track .track__line { padding-left: 0; font-size: 1.0625rem; }
.lib-track .track__title::before { content: none; }
.play-btn { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; padding: 0; border: 1px solid var(--gold-400); border-radius: 50%; background: var(--cream-50); color: var(--plum-700); cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease; }
.play-btn:hover { background: linear-gradient(180deg, var(--amber-200), var(--amber-400)); border-color: var(--gold-600); }
.play-btn svg { width: 14px; height: 14px; }
.play-btn .i-pause, .play-btn[aria-pressed="true"] .i-play { display: none; }
.play-btn[aria-pressed="true"] .i-pause { display: block; }
.play-btn[aria-pressed="true"] { background: linear-gradient(180deg, var(--amber-200), var(--amber-400)); border-color: var(--gold-600); }
.status { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-700); white-space: nowrap; }
.status svg { width: 14px; height: 14px; }
.status--open { color: var(--ink-soft); font-weight: 600; }
@media (max-width: 75rem) { .lib-track .status { width: 2rem; justify-content: center; } .lib-track .status__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .lib-track .status--open { display: none; } }
@media (max-width: 30rem) { .status__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
.journal-dl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4) var(--space-6); }
.journal-dl .btn { font-size: 1.25rem; }
.player { position: fixed; z-index: 40; inset: auto 0 0 0; background: var(--navy-900); color: var(--hero-text); border-top: 1px solid rgba(220, 192, 138, 0.35); padding: var(--space-3) clamp(1rem, 3vw, 2.5rem) calc(var(--space-3) + env(safe-area-inset-bottom)); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--space-5); align-items: center; }
.player :focus-visible { outline-color: var(--hero-accent); }
.player__now { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.player__now img { width: 3rem; height: 3rem; border-radius: 3px; object-fit: cover; flex: none; }
.player__title { font-weight: 700; font-size: 1.125rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__sub { font-size: 0.9375rem; color: #cfc4ad; }
.player__controls { display: flex; align-items: center; gap: var(--space-3); }
.player__btn { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; padding: 0; background: none; border: 0; border-radius: 50%; color: var(--hero-text); cursor: pointer; }
.player__btn:hover { color: var(--hero-accent); }
.player__btn svg { width: 18px; height: 18px; }
.player__btn--main { width: 3.25rem; height: 3.25rem; color: var(--plum-800); background: linear-gradient(180deg, var(--amber-200), var(--amber-400)); }
.player__btn--main:hover { color: var(--plum-800); filter: brightness(1.05); }
.player__btn .i-pause, .player__btn[aria-pressed="true"] .i-play { display: none; }
.player__btn[aria-pressed="true"] .i-pause { display: block; }
.player__seek { display: flex; align-items: center; gap: var(--space-3); font-size: 0.9375rem; font-variant-numeric: tabular-nums; color: #cfc4ad; }
.player__seek input { flex: 1; min-width: 4rem; accent-color: var(--hero-accent); }
.has-player { padding-bottom: 6rem; }
@media (max-width: 44rem) { .player { grid-template-columns: minmax(0, 1fr) auto; } .player__seek { grid-column: 1 / -1; order: 3; } .has-player { padding-bottom: 9rem; } }
.journal-layout { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: var(--space-6); align-items: start; }
@media (max-width: 56rem) { .journal-layout { grid-template-columns: minmax(0, 1fr); } }
.song-panel { position: sticky; top: var(--space-5); display: flex; flex-direction: column; gap: var(--space-4); }
@media (max-width: 56rem) { .song-panel { position: static; } }
.song-panel img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--gold-300); }
.song-panel__nav { display: flex; justify-content: space-between; gap: var(--space-3); font-size: 1.0625rem; }
.back-link { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 1.125rem; font-weight: 600; color: var(--hero-text); text-decoration: none; }
.back-link:hover { color: var(--hero-accent); }
.journal-page__title { font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem); margin-top: var(--space-2); }
.journal-page__epigraph { font-style: italic; font-size: 1.375rem; color: var(--gold-700); margin-top: var(--space-1); }
.journal-page h2 { font-size: 1.5rem; margin-top: var(--space-6); margin-bottom: var(--space-2); }
.listen-for { margin-top: var(--space-5); padding: var(--space-4) var(--space-5); background: var(--cream-100); border: 1px solid var(--gold-300); border-radius: var(--radius-sm); font-size: 1.1875rem; }
.listen-for .eyebrow { font-size: 0.875rem; }
.prompt { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-5); }
.prompt__label { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-700); }
.prompt__q { font-size: 1.25rem; font-weight: 600; color: var(--plum-700); line-height: 1.4; }
.input--area { min-height: 8rem; resize: vertical; line-height: 1.55; }
.save-state { font-size: 1rem; font-style: italic; color: var(--ink-soft); min-height: 1.6em; }
.journal-page__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-4); margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--gold-400); }
.journal-page__foot .btn { font-size: 1.25rem; }

/* 5.26b Collection (member home: every album/collection the member owns) */
.member-hero--short { padding-bottom: var(--space-7); }
.collection-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: var(--space-6); }
.collection-card { display: flex; flex-direction: column; gap: var(--space-5); }
.collection-card__cover img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--gold-300); }
.collection-card__body { display: flex; flex-direction: column; gap: var(--space-3); }
.collection-card__title { font-family: var(--font-script); font-weight: 400; font-size: clamp(2.25rem, 1.9rem + 1vw, 2.75rem); line-height: 1.15; }
.collection-card__title a { text-decoration: none; color: inherit; }
.collection-card__title a:hover { text-decoration: underline; text-decoration-color: var(--gold-400); text-decoration-thickness: 2px; }
.collection-card__meta { font-size: 1.125rem; color: var(--ink-soft); }
.collection-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); margin-top: var(--space-2); }
.collection-card__actions .btn { font-size: 1.3125rem; padding-inline: 2rem; }

/* 5.27 Install as app (PWA). member.js picks the variant: data-platform="prompt" (Android, desktop Chrome/Edge) or "ios" (Safari share-sheet steps). Hidden once installed. */
.install { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) auto; gap: var(--space-4) var(--space-5); align-items: center; }
.install[hidden], .install-sheet[hidden] { display: none; }
.install__icon { width: 3.5rem; height: 3.5rem; border-radius: 22%; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.45); }
.install__title { font-size: 1.4375rem; line-height: 1.25; }
.install__copy { font-size: 1.125rem; margin-top: var(--space-1); }
.install__actions { display: flex; align-items: center; gap: var(--space-4); }
.install__actions .btn { font-size: 1.25rem; white-space: nowrap; }
.install__dismiss { font: 600 1.0625rem var(--font-serif); color: var(--ink-soft); background: none; border: 0; padding: var(--space-2); min-height: 2.75rem; cursor: pointer; }
.install__dismiss:hover { color: var(--plum-700); text-decoration: underline; }
.install:not([data-platform="prompt"]) [data-only="prompt"], .install:not([data-platform="ios"]) [data-only="ios"] { display: none; }
@media (max-width: 44rem) { .install { grid-template-columns: 3.5rem minmax(0, 1fr); } .install__actions { grid-column: 1 / -1; justify-content: space-between; } .install__actions .btn { flex: 1; } }
.install-sheet { position: fixed; z-index: 60; inset: 0; display: flex; align-items: flex-end; justify-content: center; background: rgba(7, 12, 31, 0.6); padding: var(--space-4); }
.install-sheet__panel { position: relative; width: min(100%, 26rem); max-height: 100%; overflow: auto; background: var(--paper); border: 1px solid var(--gold-300); border-radius: var(--radius-md); padding: var(--space-6) var(--space-5) var(--space-5); box-shadow: 0 -10px 40px -10px rgba(0, 0, 0, 0.5); margin-bottom: env(safe-area-inset-bottom); }
.install-sheet__title { font-family: var(--font-script); font-weight: 400; font-size: 2.5rem; line-height: 1.15; text-align: center; }
.install-steps { display: flex; flex-direction: column; gap: var(--space-4); margin-top: var(--space-5); counter-reset: step; }
.install-steps li { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: var(--space-3); align-items: center; font-size: 1.1875rem; line-height: 1.4; }
.install-steps li::before { counter-increment: step; content: counter(step); width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border: 1px solid var(--gold-600); border-radius: 50%; font-weight: 600; }
.install-steps svg { display: inline-block; width: 1.25em; height: 1.25em; vertical-align: -0.25em; color: #0a66d8; margin-inline: 0.15em; }
.install-sheet .btn { width: 100%; margin-top: var(--space-6); font-size: 1.25rem; }
.install-sheet__arrow { position: fixed; left: 50%; bottom: calc(0.25rem + env(safe-area-inset-bottom)); transform: translateX(-50%); width: 28px; height: 28px; color: var(--hero-accent); }
/* Installed (standalone) app: no browser chrome, so respect the notch and home indicator. */
@media (display-mode: standalone) { .site-header--solid { padding-top: calc(var(--space-3) + env(safe-area-inset-top)); } }
.is-standalone .site-header--solid { padding-top: calc(var(--space-5) + env(safe-area-inset-top)); }
.is-standalone .member-hero { padding-top: var(--space-6); }

/* ---------- 6. Utilities ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); }

@media print {
  .site-header, .site-footer, .player, .btn, .video-frame, audio { display: none !important; }
  body { background: #fff; color: #000; }
  .section--paper { background: none; }
  .card { box-shadow: none; }
}

/* Performance (2026-10-26): below-fold sections skip style/layout until scrolled.
   No visual change; hero is untouched. */
.section { content-visibility: auto; contain-intrinsic-size: auto 900px; }

/* AJ-V15-FIXES START rev 1 (2026-10-27, Mandie's member-area feedback, fixes 1-11).
   Applied by scripts/aj-merge.sh step 12; replaced wholesale on every run. */
.nowrap { white-space: nowrap; }

/* Fix 9: slim member header, butterfly mark in place of the spelled-out name, Sign out moved to the footer. */
.site-header--member { padding-block: var(--space-3); flex-direction: row; gap: var(--space-4); }
.wordmark--mark { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--cream-50); letter-spacing: 0; }
.wordmark--mark img { display: block; width: 2rem; height: auto; }
.wordmark--mark:hover { box-shadow: 0 0 0 2px var(--hero-accent); }
.site-header--member .member-nav ul { gap: clamp(1.25rem, 3vw, 2.25rem); }
@media (max-width: 40rem) {
  .site-header--member { flex-direction: row; }
  .site-header--member .site-nav a { font-size: 1.0625rem; }
}
.is-standalone .site-header--member { padding-top: calc(var(--space-3) + env(safe-area-inset-top)); }
@media (display-mode: standalone) { .site-header--member { padding-top: calc(var(--space-3) + env(safe-area-inset-top)); } }

/* Fixes 5 and 8: resume card. Computer: cover beside the song and its three choices. Phone: stacked. */
/* BN-10: no saved place on this device, no "Pick up where you left off" card. aj-member-fixes.js sets data-has-place. */
.resume:not([data-has-place]) { display: none !important; }
.resume { grid-template-columns: 4.5rem minmax(0, 1fr); grid-template-areas: "eye eye" "cover head" "act act"; gap: var(--space-3) var(--space-4); align-items: center; }
.resume__eyebrow { grid-area: eye; font-size: 0.8125rem; letter-spacing: 0.2em; }
.resume__cover { grid-area: cover; }
.resume__head { grid-area: head; min-width: 0; }
.resume .resume__actions { grid-area: act; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-top: var(--space-2); }
.resume .resume__actions .btn { flex: 1 1 auto; font-size: 1.1875rem; padding-inline: 1.25rem; }
@media (max-width: 55.99rem) {
  .resume .resume__actions .btn { flex: 1 1 0; min-width: max-content; font-size: 1.0625rem; padding-inline: 0.9rem; min-height: 2.75rem; }
}
.resume__links { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); font-size: 1.0625rem; margin-top: var(--space-1); }
@media (min-width: 56rem) {
  .member-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 34rem); }
  .resume { grid-template-columns: 9rem minmax(0, 1fr); grid-template-areas: "cover eye" "cover head" "cover act"; column-gap: var(--space-5); row-gap: var(--space-2); align-items: start; }
  .resume .resume__actions { flex-direction: column; align-items: stretch; }
  .resume .resume__actions .btn { width: 100%; }
}

/* Fix 5: one collection on a computer, laid out sideways and centred. */
.collection-card:only-child { grid-column: 1 / -1; }
.collection-card__resume { font-size: 1.125rem; color: var(--ink-soft); }
.collection-card__resume strong { color: var(--plum-800); }
@media (min-width: 48rem) {
  .collection-card:only-child { flex-direction: row; align-items: center; gap: var(--space-7); width: 100%; max-width: 60rem; margin-inline: auto; }
  .collection-card:only-child .collection-card__cover { flex: 0 0 min(22rem, 40%); }
  .collection-card:only-child .collection-card__body { flex: 1 1 auto; min-width: 0; }
  .collection-card:only-child .collection-card__title { white-space: nowrap; }
}
.collection-card__actions .btn--ghost { font-size: 1.1875rem; padding-inline: 1.5rem; }

/* Fixes 3 and 4: the home screen invitation now sits after the music and fades into place. */
@keyframes aj-fade-in { from { opacity: 0; } to { opacity: 1; } }
[data-install]:not([hidden]) .install { animation: aj-fade-in 0.6s ease both; }

/* Fix 8: song list keeps a short word beside each journal mark on smaller screens. */
@media (max-width: 75rem) {
  .lib-track .status { width: auto; }
  .lib-track .status__text { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .lib-track .status__pre { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Fix 6: one picture per song page, the song's own cover. Phone: title first, then a compact play row. */
.song-strip { display: none; }
.song-panel__nav { flex-direction: column; gap: var(--space-2); }
.journal-page__lede { margin-top: 0; }
@media (max-width: 56rem) {
  .song-panel { display: none; }
  .song-strip { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); grid-template-areas: "cover play" "cover next"; gap: var(--space-2) var(--space-4); align-items: center; margin-top: var(--space-5); padding-block: var(--space-4); border-block: 1px dotted var(--gold-300); }
  .song-strip img { grid-area: cover; width: 4.5rem; height: 4.5rem; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--gold-300); }
  .song-strip .btn { grid-area: play; justify-self: start; }
  .song-strip .text-link { grid-area: next; justify-self: start; font-size: 1.0625rem; }
}

/* Fix 1: the small practice, in the same quiet box as Listen for. */
.practice { margin-top: var(--space-6); }
.practice strong { font-weight: 700; color: var(--plum-700); }

/* Fix 7: a quiet "Saved" under each box, about a second after she pauses. */
.field-saved { min-height: 1.5em; font-size: 1rem; font-style: italic; color: var(--ink-soft); opacity: 0; transition: opacity 0.5s ease; }
.field-saved.is-on { opacity: 1; }

/* Fix 10: on iPad and Chrome on iPhone, Share sits at the top right, so the arrow points there. */
.install-sheet[data-layout="top"] .install-sheet__arrow { top: calc(0.5rem + env(safe-area-inset-top)); bottom: auto; left: auto; right: 1rem; transform: rotate(-135deg); }


/* Release Captain 2026-10-28. Player on phones: now-playing row (cover, title, heart, menu room),
   controls and seek on the second row, so the title keeps at least 110 px at 360 and 390. */
@media (max-width: 44rem) {
  .player { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "now now" "controls seek"; row-gap: 6px; align-items: center; }
  .player__now { grid-area: now; min-width: 0; }
  .player__now img { width: 2.5rem; height: 2.5rem; }
  .player.has-player-menu .player__now { padding-right: 44px; }
  .player__title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .player__sub { white-space: nowrap; }
  .player__controls { grid-area: controls; }
  .player__seek { grid-area: seek; grid-column: auto; order: 0; }
}
/* Checkout: the two cards share the width with symmetric 20 px margins (no nowrap overflow). */
@media (max-width: 52rem) { .checkout-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 30rem) { .pay-card .btn__label { white-space: normal; } }
/* AJ-FIXES-REV 6 */
/* Contact (Release Captain 2026-11-05): a long label such as the email address wraps inside its card instead of running past it. */
.btn { box-sizing: border-box; max-width: 100%; overflow-wrap: anywhere; }
@media (max-width: 30rem) { .card .btn { padding-inline: 1.25rem; } }
/* Buy button price (Release Captain 2026-11-06): the overflow-wrap above let "$47 USD" break as US / D on a 360 px phone; the price never splits, the label before it wraps instead. */
.btn__price, .price__amount, .order-total span { white-space: nowrap; overflow-wrap: normal; }
/* FAQ answer link (Release Captain 2026-11-06): the refund address is wider than the answer's line on a phone (278 px against 222 at 320 px) and has no break opportunity, so it ran past the card.
   It breaks after the @ (the <wbr> the merge puts there) and, only when the domain alone is still too wide, anywhere. Scoped to this link so no price or other address splits. */
.faq__a a { overflow-wrap: anywhere; }
/* The big price stays on one line on a phone: 20vw is 6rem at 30rem wide and shrinks with the screen, so "$47 USD" fits at 320 px. */
@media (max-width: 30rem) { .price__amount { font-size: 20vw; } }
/* The sign-out notes (words not saved yet, sign-out not done) sit under their Sign out item, wrapped, instead of stretching the header row. */
.member-nav li { position: relative; }
.member-signout-wait { position: absolute; top: calc(100% + var(--space-3)); right: 0; z-index: 20; box-sizing: border-box; width: min(18rem, 80vw); padding: 0.75rem 1rem; border-radius: 10px; background: var(--cream-50); color: var(--ink); font-size: 0.9375rem; font-weight: 400; line-height: 1.45; text-align: left; white-space: normal; box-shadow: 0 6px 24px rgba(7, 12, 31, 0.35); }
/* Overflow sweep (Release Captain 2026-11-06, rounds 1 to 3; scripts/aj-overflow-sweep-unit.mjs). Cards hide overflow, so a line past its card passes a scroll test.
   An address in running text (not a button, whose wrap is set above) breaks after the @ at the <wbr> the merge puts there and, only if the domain alone is still too wide, inside it (break-word, not anywhere: anywhere re-wrapped the /thank-you address at 360 and 375 px). */
a[href^="mailto:"]:not(.btn) { overflow-wrap: break-word; }
/* Sign in: the grid column may shrink below its content, so no child can widen the page. */
.auth { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 22.4375rem) {
  .auth .brand-badge .brand-badge__name { font-size: 1.875rem; }
  /* Contact: the address button keeps "essentials4balance.com" on one line at 320 px (215 px at 24 px against 182 px of room). */
  .btn[href^="mailto:"] { padding-inline: 0.75rem; font-size: 1.25rem; }
}
/* Song page: on a 320 px phone the seek row (time, bar, duration) gives way in the bar, not past the screen. */
@media (max-width: 30rem) { .player__seek input { min-width: 0; } }
/* AJ-V15-FIXES END */
/* AJ-V15-FIXES sha 7f875af10cb7 */
