/* ==========================================================================
   TextFA — مارکت‌پلیس ترانه
   Hand-written, no build step. Shared cPanel hosting has no Node, so shipping
   plain CSS means deploys are a file copy and never a broken asset pipeline.
   ========================================================================== */

/* --- Fonts ---------------------------------------------------------------
   Self-hosted (see `php artisan textfa:fonts`). font-display:swap so text is
   readable immediately — a FOUT beats a blank page, especially on the slow
   mobile connections most of this audience arrives on. */

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/vazirmatn-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/vazirmatn-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/vazirmatn-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/vazirmatn-800.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('../fonts/outfit-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('../fonts/outfit-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

/* --- Tokens --------------------------------------------------------------
   Straight from the approved brand board. Gold is the only accent; anything
   that needs emphasis competes for it, which is what keeps the hierarchy real. */

:root {
  --paper:      #FBF7F0;
  --card:       #FFFDF9;
  --sand:       #F3EDE2;
  --ink:        #16171B;
  --text:       #3A382F;
  --muted:      #7C7365;
  --muted-2:    #4A4739;
  --gold:       #D4A86A;
  --gold-deep:  #B0813C;
  --gold-text:  #8A6220;
  --gold-soft:  rgba(212, 168, 106, .22);
  --on-dark:    #FBF7F0;
  --on-dark-70: rgba(251, 247, 240, .72);
  --on-dark-55: rgba(251, 247, 240, .55);
  --on-dark-45: rgba(251, 247, 240, .45);
  --gold-light: #E7C795;
  --line:       rgba(22, 23, 27, .09);
  --line-2:     rgba(22, 23, 27, .16);

  --r-sm: 14px; --r-md: 22px; --r-lg: 26px; --r-xl: 28px; --r-2xl: 32px;
  --shadow:      0 1px 2px rgba(22, 23, 27, .04);
  --shadow-lift: 0 12px 30px rgba(176, 129, 60, .16);

  --wrap: 1280px;
  --pad: 20px;
  --header-h: 68px;
}

/* --- Reset ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  padding-bottom: 104px; /* room for the fixed player bar */
  font-family: Vazirmatn, system-ui, 'Segoe UI', Tahoma, sans-serif;
  color: var(--ink);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  /* Depth without a single image request. Two very soft gold/sand radial
     washes anchored to the top corners, over a faint paper grain drawn as a
     repeating gradient. A flat fill was reading as unfinished; this gives the
     page a surface without competing with the content. */
  background-color: var(--paper);
  background-image:
    radial-gradient(60rem 40rem at 88% -10%, rgba(212, 168, 106, .16), transparent 60%),
    radial-gradient(50rem 34rem at 6% 2%,  rgba(176, 129, 60, .09), transparent 62%),
    repeating-linear-gradient(115deg, rgba(22, 23, 27, .017) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(25deg,  rgba(22, 23, 27, .013) 0 1px, transparent 1px 4px);
  background-attachment: fixed, fixed, scroll, scroll;
}

img, svg, audio { max-width: 100%; display: block; }
img { height: auto; }

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--gold-deep); }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

h1, h2, h3 { line-height: 1.3; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; }

::selection { background: var(--gold); color: var(--ink); }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: rgba(22, 23, 27, .2); border-radius: 999px; }

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Hidden off the TOP, not off the side. The usual `inset-inline-start:-9999px`
   trick resolves to `right:-9999px` in RTL, which pushes the link far past the
   right edge and makes the whole document horizontally scrollable. Moving it
   vertically is direction-agnostic and never creates scrollable overflow. */
.skip-link {
  position: absolute; inset-inline-start: 0; top: 0; z-index: 100;
  transform: translateY(-200%);
  background: var(--ink); color: var(--on-dark);
  padding: 12px 20px; border-radius: 0 0 12px 0;
  transition: transform .16s;
}
.skip-link:focus { transform: translateY(0); color: var(--on-dark); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Honeypot: present in the DOM (so bots fill it) but never visible or
   focusable. Clipped rather than pushed off-canvas — an off-canvas offset in an
   RTL document becomes real horizontal scroll. */
.honeypot {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  pointer-events: none;
}

/* --- Layout --------------------------------------------------------------- */

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: 60px 0; }
.section--tight { padding-block: 34px 0; }
.section--end { padding-block-end: 76px; }

.row-between {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 22px;
}

.grid { display: grid; gap: 18px; }
.grid--cards   { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.grid--writers { grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); gap: 16px; }
.grid--wide    { grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); }
.grid--auto    { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.grid--quotes  { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid--shots   { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }

.eyebrow { font-size: 14px; color: var(--muted); margin-top: 8px; }
.link-more { font-size: 14px; font-weight: 700; color: var(--gold-deep); }

h1.page-title { font-size: clamp(26px, 4.4vw, 32px); font-weight: 800; }
h2.section-title { font-size: clamp(23px, 3.4vw, 29px); font-weight: 700; }
.lede { margin-top: 14px; font-size: 16px; line-height: 2.05; color: var(--muted-2); max-width: 52ch; }

/* --- Header --------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 247, 240, .92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(22, 23, 27, .07);
}
.site-header__inner {
  max-width: var(--wrap); margin-inline: auto;
  padding: 14px var(--pad);
  display: flex; align-items: center; gap: 14px;
}
.site-header__logo { flex: none; display: flex; align-items: center; }
.site-header__logo img { height: 38px; width: auto; }

.site-nav {
  display: flex; gap: 4px; margin-inline-start: auto;
  overflow-x: auto; scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  flex: none; white-space: nowrap;
  padding: 9px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
}
.site-nav a[aria-current="page"] { font-weight: 700; background: rgba(212, 168, 106, .24); }

.site-header__account { display: flex; align-items: center; gap: 8px; flex: none; }

.account-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  background: var(--sand); font-size: 13.5px; font-weight: 600;
}
.account-chip:hover { background: rgba(212, 168, 106, .28); color: var(--ink); }
.account-chip__avatar {
  width: 28px; height: 28px; flex: none; border-radius: 50%;
  background: linear-gradient(140deg, var(--gold), var(--gold-deep)); color: var(--ink);
  display: grid; place-items: center; font-weight: 700; font-size: 13px;
}
.account-chip__name { max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 720px) { .account-chip__name { display: none; } }

/* --- Cart button ---------------------------------------------------------- */

.cart-link {
  position: relative; display: inline-grid; place-items: center;
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  background: var(--sand);
}
.cart-link:hover { background: rgba(212, 168, 106, .3); color: var(--ink); }
.cart-link__count {
  position: absolute; top: -4px; inset-inline-end: -4px;
  min-width: 19px; height: 19px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 999px;
  background: var(--ink); color: var(--on-dark);
  font-family: Outfit, sans-serif; font-size: 11px; font-weight: 700;
}

/* --- Blog ----------------------------------------------------------------- */

.post-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.post-card:hover {
  border-color: rgba(212, 168, 106, .7);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(22, 23, 27, .08);
}
.post-card__cover { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--sand); }
.post-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card__title { font-size: 19px; font-weight: 700; line-height: 1.6; }
.post-card__excerpt { font-size: 14px; line-height: 2; color: var(--muted-2); }
.post-card__meta { margin-top: auto; font-size: 12.5px; color: var(--muted); }

.post-cover {
  width: 100%; height: auto; margin-top: 26px;
  border-radius: var(--r-lg); border: 1px solid var(--line);
}

/* Long-form reading column: wider leading and a measure that stays readable
   in Persian, where letterforms are shorter and lines feel denser. */
.prose { margin-top: 30px; font-size: 17px; line-height: 2.15; color: var(--text); }
.prose p { margin-bottom: 1.35em; }
.prose p:last-child { margin-bottom: 0; }

/* --- Auth pages ----------------------------------------------------------- */

.auth-page {
  display: grid; place-items: center; min-height: 100vh; padding: 24px;
}
.auth-card {
  width: 100%; max-width: 460px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: clamp(24px, 4vw, 38px);
  box-shadow: 0 20px 50px rgba(22, 23, 27, .07);
}
.auth-card__title { font-size: 22px; font-weight: 800; }
.auth-card__lede { margin-top: 8px; margin-bottom: 22px; font-size: 14px; color: var(--muted); line-height: 1.9; }
.auth-card__foot { margin-top: 22px; text-align: center; font-size: 13.5px; color: var(--muted); }
.auth-card__foot a { font-weight: 700; color: var(--gold-deep); }

.alert--error { background: #fdecea; border-color: #e5a49c; color: #8a2018; }

/* --- Customer panel ------------------------------------------------------- */

.panel-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}

.order-row {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 20px 22px; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.order-row__main { min-width: 0; flex: 1; }
.order-row__title { font-family: Outfit, sans-serif; font-size: 19px; font-weight: 600; }
.order-row__meta { margin-top: 5px; font-size: 13px; color: var(--muted); }
.order-row__side { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.buybox__note { margin-top: 10px; font-size: 12.5px; color: var(--muted); line-height: 1.9; }

.pill {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
  background: var(--gold-soft); color: var(--gold-text);
}
.pill--off { background: rgba(22, 23, 27, .08); color: var(--muted); }

/* --- Mood picker ----------------------------------------------------------
   A real checkbox inside each chip, styled with :has(). No JS, correct
   keyboard and screen-reader behaviour, and the visual state can never drift
   from the value that actually submits. */

.mood-picker { border: 0; padding: 0; margin: 22px 0 0; }
.mood-picker legend { padding: 0; margin-bottom: 10px; }
.mood-picker__chips { display: flex; flex-wrap: wrap; gap: 8px; }

.mood-chip { position: relative; display: inline-flex; cursor: pointer; }
.mood-chip input {
  position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer;
}
.mood-chip span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 17px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--paper);
  font-size: 13px; font-weight: 600; color: var(--muted-2);
  transition: all .16s;
}
.mood-chip span::before {
  content: '+'; font-family: Outfit, sans-serif; opacity: .5; line-height: 1;
}
.mood-chip:hover span { border-color: var(--gold); }

/* Selected state is expressed three ways on purpose:
     .is-on            — set by JS, the one that always works
     :has(:checked)    — no-JS fallback on modern engines
     :checked + span   — no-JS fallback on older ones
   A form control whose visual state can silently disagree with its value is
   worse than no styling at all, so this does not rely on any single mechanism. */
.mood-chip.is-on span,
.mood-chip:has(input:checked) span,
.mood-chip input:checked + span {
  background: var(--ink); border-color: var(--ink); color: var(--on-dark);
}
.mood-chip.is-on span::before,
.mood-chip:has(input:checked) span::before,
.mood-chip input:checked + span::before { content: '✓'; opacity: 1; }

.mood-chip input:focus-visible + span {
  outline: 2px solid var(--gold-deep); outline-offset: 2px;
}

.linkish {
  background: none; border: 0; padding: 0;
  font-size: 13.5px; font-weight: 700; color: var(--gold-deep);
  text-decoration: underline; cursor: pointer;
}

.input--phone, .input--code {
  font-family: Outfit, sans-serif; letter-spacing: .1em; text-align: center; font-size: 17px;
}
.input--code { letter-spacing: .5em; font-size: 22px; }

/* --- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 30px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 700; text-align: center;
  transition: transform .16s, background .16s, border-color .16s;
}
.btn:active { transform: translateY(1px); }
.btn--ink   { background: var(--ink); color: var(--on-dark); }
.btn--ink:hover { color: var(--on-dark); background: #24262c; }
.btn--gold  { background: var(--gold); color: var(--ink); }
.btn--gold:hover { color: var(--ink); background: #e0b878; }
.btn--ghost { border-color: var(--line-2); background: var(--card); font-weight: 600; }
.btn--ghost-dark { border-color: rgba(251, 247, 240, .3); color: var(--on-dark); font-weight: 600; }
.btn--ghost-dark:hover { color: var(--on-dark); background: rgba(251, 247, 240, .08); }
.btn--sm { padding: 13px 18px; font-size: 14px; font-weight: 600; }
.btn--block { display: flex; width: 100%; }

.chip {
  flex: none; padding: 9px 17px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--paper);
  font-size: 13px; font-weight: 600; color: var(--muted-2);
  transition: all .16s;
}
.chip:hover { border-color: var(--gold); }
.chip[aria-pressed="true"], .chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }

/* --- Hero ----------------------------------------------------------------- */

.hero {
  position: relative; overflow: hidden;
  border-radius: var(--r-2xl);
  background: var(--ink); color: var(--on-dark);
  padding: clamp(30px, 5vw, 72px);
}
.hero::after {
  content: ''; position: absolute; inset-inline-end: -140px; top: -160px;
  width: 480px; height: 480px; pointer-events: none;
  background: radial-gradient(circle, rgba(212,168,106,.34) 0%, rgba(212,168,106,.12) 38%, rgba(212,168,106,0) 64%);
}
/* Copy first in source order (it is the important half); the grid places the
   artwork on the visual left in RTL. */
.hero__grid {
  position: relative;
  display: grid; gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); }
}

.hero__body { position: relative; max-width: 44ch; }

.hero__art { margin: 0; position: relative; }
.hero__art img {
  width: 100%; height: auto;
  border-radius: 20px;
  /* The artwork is a paper collage on cream; a plain edge on the dark hero
     looks pasted-on. A hairline plus a lifted shadow sets it into the surface. */
  box-shadow: 0 26px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(251, 247, 240, .1);
  transform: rotate(-1.4deg);
}
@media (max-width: 899px) {
  .hero__art { max-width: 420px; margin-inline: auto; }
  .hero__art img { transform: none; }
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px; border-radius: 999px;
  background: var(--gold-soft); color: var(--gold-light);
  font-size: 12.5px; font-weight: 600;
}
.hero__badge span { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.hero h1 {
  margin-top: 22px;
  font-size: clamp(34px, 5.6vw, 74px); font-weight: 800;
  line-height: 1.2; letter-spacing: -.02em;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero__lede { margin-top: 22px; font-size: 17px; line-height: 2.05; color: var(--on-dark-70); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__stats {
  position: relative; margin-top: 48px; padding-top: 26px;
  border-top: 1px solid rgba(251, 247, 240, .14);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 20px;
}
.hero__stats dt { font-family: Outfit, sans-serif; font-size: 24px; font-weight: 600; }
.hero__stats dd { margin: 4px 0 0; font-size: 12.5px; color: var(--on-dark-55); }

/* --- Search --------------------------------------------------------------- */

.hero__search { position: relative; margin-top: 34px; max-width: 720px; }

.search__bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 8px 7px 7px;
  box-shadow: 0 8px 24px rgba(22, 23, 27, .1);
}
.search__bar:focus-within { border-color: var(--gold); box-shadow: 0 8px 28px rgba(176, 129, 60, .22); }
.search__icon { flex: none; margin-inline-start: 14px; color: var(--muted); }
.search__input {
  flex: 1; min-width: 0;
  border: none; background: none; outline: none;
  font-size: 15px; color: var(--ink); padding: 10px 0;
}
.search__input::placeholder { color: var(--muted); }
/* Chrome draws its own clear button; it collides with the pill shape in RTL. */
.search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search__submit {
  flex: none; border: none; border-radius: 999px;
  padding: 13px 26px; background: var(--ink); color: var(--on-dark);
  font-size: 14.5px; font-weight: 700;
}
.search__submit:hover { background: #24262c; }

.search__advanced { margin-top: 12px; }
.search__advanced summary {
  display: inline-flex; align-items: center; gap: 7px;
  cursor: pointer; list-style: none;
  font-size: 13.5px; font-weight: 600; color: var(--gold-light);
  padding: 6px 2px;
}
.search__advanced summary::-webkit-details-marker { display: none; }
.search__advanced summary:hover { color: var(--gold); }
/* On the light catalog page the same control sits on paper, not on ink. */
.catalog-search .search__advanced summary,
.wrap > div > .search .search__advanced summary { color: var(--gold-deep); }

.search__panel {
  margin-top: 12px; padding: 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px;
}
.search__panel-actions {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}

/* --- Chips row ------------------------------------------------------------ */

.chips--scroll {
  display: flex; gap: 8px; overflow-x: auto;
  padding-bottom: 4px; scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.chips--scroll::-webkit-scrollbar { display: none; }
.chips--scroll .chip { scroll-snap-align: start; }
a.chip { display: inline-flex; align-items: center; }
a.chip.is-on { color: var(--on-dark); }

.mood-tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: rgba(22, 23, 27, .05); border: 1px solid transparent;
  font-size: 11.5px; font-weight: 600; color: var(--muted);
}
.mood-tag:hover { border-color: var(--gold); color: var(--gold-deep); }
.card__moods { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.card__dur {
  display: inline-block; margin-inline-start: 6px;
  font-family: Outfit, sans-serif; font-size: 11.5px;
  padding: 2px 7px; border-radius: 6px;
  background: rgba(22, 23, 27, .06); color: var(--muted-2);
}

/* --- Featured rail -------------------------------------------------------- */

.rail {
  display: flex; gap: 18px; overflow-x: auto;
  padding-bottom: 10px; scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.rail__item { flex: 0 0 300px; scroll-snap-align: start; }
.rail__item > .card { height: 100%; }
@media (max-width: 520px) { .rail__item { flex-basis: 82vw; } }

/* --- How it works --------------------------------------------------------- */

.steps-flow {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px;
}
.step {
  position: relative;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px;
}
.step__num {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 14px;
  background: var(--sand); color: var(--gold-deep);
  font-family: Outfit, sans-serif; font-size: 15px; font-weight: 600;
}
.step__title { margin-top: 16px; font-size: 19px; font-weight: 700; }
.step__body { margin-top: 10px; font-size: 14px; line-height: 2; color: var(--muted-2); }

/* --- Newsletter ----------------------------------------------------------- */

.newsletter { background: var(--sand); }
.newsletter__inner {
  max-width: var(--wrap); margin-inline: auto; padding: 46px var(--pad);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; align-items: center;
}
.newsletter__form { display: flex; gap: 10px; flex-wrap: wrap; position: relative; }
.newsletter__form .input { flex: 1; min-width: 200px; border-radius: 999px; padding: 14px 20px; background: var(--card); }
.newsletter__form .btn { flex: none; }
.newsletter__status { grid-column: 1 / -1; font-size: 13.5px; font-weight: 600; color: var(--gold-deep); }

/* --- Track card ----------------------------------------------------------- */

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.card:hover {
  border-color: rgba(212, 168, 106, .7);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(22, 23, 27, .08);
}
.card.is-playing { border-color: rgba(212, 168, 106, .85); box-shadow: var(--shadow-lift); }

.card__head { display: flex; align-items: flex-start; gap: 14px; }
.card__meta { min-width: 0; flex: 1; }
.card__titles { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card__title { font-family: Outfit, sans-serif; font-size: 21px; font-weight: 600; }
.card__sub { margin-top: 6px; font-size: 13px; color: var(--muted); }

.play {
  width: 52px; height: 52px; flex: none;
  border-radius: 16px; border: none;
  display: grid; place-items: center; font-size: 15px;
  background: linear-gradient(140deg, var(--gold), #C0913F); color: var(--ink);
  transition: all .18s;
}
.play--lg { width: 64px; height: 64px; border-radius: 22px; background: var(--gold); font-size: 18px; }
.play[aria-pressed="true"] { background: var(--ink); color: var(--gold); font-size: 13px; }

.badge {
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em;
  font-family: Outfit, sans-serif;
  padding: 3px 9px; border-radius: 999px;
  background: var(--gold-soft); color: var(--gold-text);
}
.badge--sold { background: var(--ink); color: var(--on-dark); letter-spacing: 0; font-family: inherit; }
.badge--on-dark { background: rgba(212,168,106,.2); color: var(--gold-light); }
.badge--sold-on-dark { background: var(--on-dark); color: var(--ink); letter-spacing: 0; font-family: inherit; }

/* The teaser is the product sample. It fades rather than clips so the cut-off
   reads as deliberate — a hard truncation looks like a rendering bug. */
.teaser {
  margin-top: 16px; font-size: 15px; line-height: 2.1; color: var(--text);
  white-space: pre-line;
  -webkit-mask-image: linear-gradient(180deg, #000 45%, rgba(0,0,0,.1));
          mask-image: linear-gradient(180deg, #000 45%, rgba(0,0,0,.1));
}

.card__foot {
  margin-top: 18px; padding-top: 16px;
  border-top: 1px dashed var(--line-2);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.price { font-family: Outfit, sans-serif; font-size: 20px; font-weight: 600; }
.price__unit { font-size: 12px; color: var(--muted); margin-inline-start: 5px; }

.code-btn {
  padding: 8px 13px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--paper);
  font-size: 12.5px; font-weight: 600; color: var(--muted-2);
}
.code-btn.is-copied { border-color: var(--gold-deep); background: rgba(212, 168, 106, .2); }

.card__actions { margin-top: 14px; display: flex; gap: 10px; }

/* --- Catalog -------------------------------------------------------------- */

.catalog { margin-top: 26px; display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .catalog { grid-template-columns: 268px minmax(0, 1fr); } }

.filters {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 24px; padding: 22px;
  display: flex; flex-direction: column; gap: 22px;
}
@media (min-width: 900px) { .filters { position: sticky; top: calc(var(--header-h) + 20px); } }

.filters label.field-label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.filters .chips { display: flex; flex-wrap: wrap; gap: 8px; }

.input, .select, .textarea {
  width: 100%; padding: 12px 15px;
  border: 1px solid rgba(22, 23, 27, .14); background: var(--paper);
  border-radius: var(--r-sm); font-size: 14px; color: var(--ink);
  outline: none;
}
.textarea { border-radius: 16px; line-height: 2; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--gold-deep); }

.range { width: 100%; accent-color: var(--gold-deep); }

.reset {
  padding: 12px; border: 1px dashed rgba(22, 23, 27, .24);
  background: transparent; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; color: var(--muted-2);
}

.empty {
  grid-column: 1 / -1; padding: 50px 24px; text-align: center;
  border: 1px dashed rgba(22, 23, 27, .2); border-radius: 24px; color: var(--muted);
}

.pagination-wrap { margin-top: 34px; }
.pagination-wrap ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; justify-content: center; }
.pagination-wrap li a, .pagination-wrap li span {
  display: grid; place-items: center; min-width: 42px; height: 42px; padding-inline: 12px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  font-size: 14px; font-weight: 600;
}
.pagination-wrap li.active span { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.pagination-wrap li.disabled span { opacity: .4; }

/* --- Track detail --------------------------------------------------------- */

.detail { margin-top: 18px; display: grid; gap: 26px; align-items: start; }
@media (min-width: 900px) { .detail { grid-template-columns: minmax(0, 1fr) 340px; } }

.detail__hero { background: var(--ink); color: var(--on-dark); border-radius: var(--r-xl); padding: clamp(24px, 3.4vw, 40px); }
.detail__hero h1 { margin-top: 16px; font-family: Outfit, sans-serif; font-size: clamp(34px, 5vw, 58px); font-weight: 600; letter-spacing: .01em; }
.detail__facts { margin-top: 10px; font-size: 14.5px; color: rgba(251, 247, 240, .6); }
.detail__player { margin-top: 28px; display: flex; align-items: center; gap: 16px; }
.detail__note { margin-top: 18px; font-size: 12.5px; color: var(--on-dark-45); }

.panel { margin-top: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(24px, 3vw, 38px); }
.panel h2 { font-size: 19px; font-weight: 700; }

.lyrics { margin-top: 20px; font-size: 19px; line-height: 2.15; color: #26251F; white-space: pre-line; }

/* Paywall: the locked remainder is never sent to the browser. Blurring real
   text client-side would put the whole product one devtools click away. */
.paywall { margin-top: 8px; position: relative; overflow: hidden; border-radius: 20px; background: linear-gradient(180deg, rgba(243,237,226,.5), rgba(255,253,249,.98)); }
.paywall__ghost { padding: 26px 0 34px; display: flex; flex-direction: column; gap: 14px; }
.paywall__ghost span { display: block; height: 12px; border-radius: 999px; background: rgba(22, 23, 27, .1); }
.paywall__body { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 12px; padding: 18px; text-align: center; }
.paywall__title { font-size: 14.5px; font-weight: 700; }
.paywall__hint { font-size: 13px; color: var(--muted); max-width: 34ch; line-height: 1.9; }

.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line); }
.spec-grid > div { background: var(--card); padding: 16px 4px; }
.spec-grid dt { font-size: 12.5px; color: var(--muted); }
.spec-grid dd { margin: 6px 0 0; font-size: 15.5px; font-weight: 600; }

.buybox { background: var(--sand); border-radius: var(--r-xl); padding: 26px; }
.buybox__price { display: flex; align-items: baseline; gap: 8px; }
.buybox__price .price { font-size: 34px; }
.buybox ul { margin-top: 20px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; color: var(--muted-2); line-height: 1.8; }
.buybox__actions { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }

.sticky-side { display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 900px) { .sticky-side { position: sticky; top: calc(var(--header-h) + 20px); } }

/* --- Writers -------------------------------------------------------------- */

.avatar {
  width: 52px; height: 52px; flex: none; border-radius: 16px;
  background: linear-gradient(140deg, var(--gold), var(--gold-deep)); color: var(--ink);
  display: grid; place-items: center;
  font-family: Outfit, sans-serif; font-weight: 600; font-size: 18px;
}
.avatar--lg { width: 88px; height: 88px; border-radius: 26px; font-size: 30px; }

.writer-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow);
}
.writer-card:hover { border-color: rgba(212, 168, 106, .7); }
.writer-card__name { font-size: 16px; font-weight: 700; }
.writer-card__genres { font-size: 12.5px; color: var(--gold-deep); margin-top: 4px; font-weight: 600; }
.writer-card__count { margin-top: auto; font-size: 12.5px; color: var(--muted); }

.writer-hero {
  margin-top: 18px; background: var(--ink); color: var(--on-dark);
  border-radius: 30px; padding: clamp(26px, 4vw, 48px);
  display: flex; flex-wrap: wrap; gap: 26px; align-items: center;
}
.writer-hero h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
.writer-hero__genres { margin-top: 10px; font-size: 14px; color: var(--gold-light); font-weight: 600; }
.writer-hero__bio { margin-top: 14px; font-size: 15.5px; line-height: 2.05; color: var(--on-dark-70); max-width: 52ch; }

.stat-strip {
  margin-top: 26px; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px; background: rgba(22, 23, 27, .1); border-radius: 20px; overflow: hidden;
}
.stat-strip > div { background: var(--card); padding: 20px; }
.stat-strip dt { font-family: Outfit, sans-serif; font-size: 22px; font-weight: 600; }
.stat-strip dd { margin: 5px 0 0; font-size: 12.5px; color: var(--muted); }

/* --- Services / commission / proof ---------------------------------------- */

.tile { border-radius: var(--r-lg); padding: 30px; display: flex; flex-direction: column; }
.tile--light { background: var(--card); border: 1px solid var(--line); }
.tile--dark  { background: var(--ink); color: var(--on-dark); }
.tile--sand  { background: var(--sand); }
.tile__num { font-family: Outfit, sans-serif; font-size: 13px; letter-spacing: .24em; opacity: .6; }
.tile h3 { margin-top: 14px; font-size: 22px; font-weight: 700; }
.tile p { margin-top: 12px; font-size: 14.5px; line-height: 2; opacity: .8; }
.tile__cta { margin-top: 20px; font-size: 14px; font-weight: 700; color: var(--gold-deep); }
.tile--dark .tile__cta { color: var(--gold); }

.cta-band {
  margin-top: 26px; background: var(--sand); border-radius: var(--r-xl);
  padding: clamp(24px, 4vw, 44px);
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
}

.form-card { margin-top: 34px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(22px, 3vw, 34px); }
.steps { display: flex; gap: 8px; margin-bottom: 26px; }
.steps > div { flex: 1; text-align: center; padding: 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--sand); color: #6B6455; }
.steps > div:first-child { background: var(--ink); color: var(--on-dark); }

.form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 9px; font-size: 12.5px; color: var(--muted); }
.field-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); }
.check input { width: 18px; height: 18px; accent-color: var(--gold-deep); }
.form-note { font-size: 12.5px; color: var(--muted); text-align: center; }
.error { color: #B3261E; font-size: 12.5px; }

.alert {
  padding: 16px 20px; border-radius: 18px;
  background: rgba(212, 168, 106, .18); border: 1px solid var(--gold);
  font-size: 14.5px; font-weight: 600; margin-bottom: 22px;
}

.quote { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.quote__mark { font-family: Outfit, sans-serif; font-size: 34px; line-height: 1; color: var(--gold); }
.quote blockquote { margin: 0; font-size: 15px; line-height: 2.1; color: var(--text); }
.quote figcaption { font-size: 12.5px; color: var(--muted); }

.shot {
  border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line);
  background: repeating-linear-gradient(135deg, #F3EDE2 0 8px, #EDE5D6 8px 16px);
  aspect-ratio: 3 / 4; display: flex; align-items: flex-end; padding: 16px;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot__caption { font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; background: var(--card); padding: 6px 10px; border-radius: 8px; color: #5C5648; }

.process { margin: 0; padding-inline-start: 18px; display: flex; flex-direction: column; gap: 14px; font-size: 14px; line-height: 2; color: var(--muted-2); }

/* --- Footer --------------------------------------------------------------- */

.site-footer { margin-top: 76px; background: var(--ink); color: var(--on-dark); }
.site-footer__inner {
  max-width: var(--wrap); margin-inline: auto; padding: 52px var(--pad);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 34px;
}
.site-footer img { height: 74px; width: auto; }
.site-footer h3 { margin-bottom: 14px; font-size: 14px; font-weight: 700; color: var(--gold-light); }
.site-footer__links { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.site-footer a { color: rgba(251, 247, 240, .75); }
.site-footer a:hover { color: var(--gold); }
.site-footer__blurb { margin-top: 16px; font-size: 13.5px; line-height: 2; color: rgba(251, 247, 240, .6); max-width: 32ch; }
.site-footer__legal { border-top: 1px solid rgba(251, 247, 240, .12); }
.site-footer__legal p { max-width: var(--wrap); margin-inline: auto; padding: 20px; font-size: 12.5px; color: var(--on-dark-45); }

/* --- Player bar ----------------------------------------------------------- */

.player {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 50;
  background: var(--ink);
  transform: translateY(110%);
  transition: transform .32s cubic-bezier(.2, .8, .2, 1);
  padding-bottom: env(safe-area-inset-bottom);
}
.player.is-open { transform: translateY(0); }
.player__inner { max-width: var(--wrap); margin-inline: auto; padding: 12px var(--pad); display: flex; align-items: center; gap: 14px; }
.player__toggle { width: 44px; height: 44px; flex: none; border-radius: 50%; border: none; background: var(--gold); color: var(--ink); font-size: 15px; }
.player__meta { min-width: 0; max-width: 34vw; }
.player__title { font-family: Outfit, sans-serif; font-size: 15px; font-weight: 600; color: var(--on-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__sub { font-size: 12px; color: var(--on-dark-55); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__time { font-family: Outfit, sans-serif; font-size: 12.5px; color: var(--on-dark-55); direction: ltr; flex: none; }

.seek { flex: 1; height: 34px; display: flex; align-items: center; min-width: 50px; border: none; background: none; padding: 0; }
.seek--lg { height: 44px; }
.seek__track { width: 100%; height: 4px; border-radius: 999px; background: rgba(251, 247, 240, .16); position: relative; }
.seek--lg .seek__track { height: 5px; }
.seek__fill { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: 999px; width: 0; background: var(--gold); }

/* --- Print ---------------------------------------------------------------- */

@media print {
  .site-header, .site-footer, .player, .card__actions, .buybox__actions { display: none; }
  body { padding: 0; background: #fff; }
}
