/* ============================================================
   site.css
   Shared base layer: reset, paper texture, containers, type,
   links, eyebrows, buttons, scrollbar. Site-specific files
   (library.css) build on top of this.
   ============================================================ */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  background-color: var(--paper);
  /* layered paper: fibre grain + a faint warm vignette */
  background-image:
    radial-gradient(120% 90% at 50% -10%, rgba(225,220,201,.65), rgba(225,220,201,0) 55%),
    radial-gradient(100% 120% at 100% 100%, rgba(65,45,21,.10), rgba(65,45,21,0) 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-attachment: fixed, fixed, fixed;
  line-height: 1.6;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

::selection { background: rgba(65,45,21,.28); }

/* containers ------------------------------------------------ */
.wrap        { max-width: var(--wrap);        margin-inline: auto; padding-inline: 28px; }
.wrap-narrow { max-width: var(--wrap-narrow); margin-inline: auto; padding-inline: 28px; }

/* type primitives ------------------------------------------- */
h1, h2, h3, h4 { font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }

.eyebrow {
  font-size: .72rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-style: normal;
  font-feature-settings: "smcp" 1;
}

.lead { font-size: 1.22rem; line-height: 1.62; color: var(--ink-soft); }

a { color: inherit; text-decoration: none; }

/* quiet link — slight underline grow on hover */
.qlink {
  color: var(--ink);
  background-image: linear-gradient(var(--line-strong), var(--line-strong));
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 1.15em;
  transition: color .3s ease, background-position .3s ease;
}
.qlink:hover { color: var(--blood); background-position: 0 1.25em; }

/* hairline divider */
.rule { border: 0; height: 1px; background: var(--line); margin: 0; }

/* buttons --------------------------------------------------- */
.btn {
  font-family: var(--mono);
  font-size: .74rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--ink);
  background: transparent;
  padding: 0 1.7em; min-height: 48px;
  border-radius: 999px;
  cursor: pointer; line-height: 1;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .2s ease, box-shadow .25s ease;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
}
.btn:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); transform: translateY(-1px); box-shadow: var(--lift); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink-soft); }
.btn--ghost:hover { color: var(--cream); }
.btn--sage { background: var(--sage-deep); color: var(--cream); border-color: var(--sage-deep); }  /* primary, filled */
.btn--sage:hover { background: var(--ink-strong); border-color: var(--ink-strong); color: var(--cream); }

/* fields (shared <Field/>) ---------------------------------- */
.field { display: block; margin-bottom: 14px; }
.field__label {
  display: block;
  font-size: .7rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 6px;
}
.field__input, .field textarea {
  width: 100%;
  font-family: var(--serif); font-size: 1rem; color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .62em .8em;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.field__input:focus, .field textarea:focus {
  outline: none; border-color: var(--sage-deep);
  box-shadow: 0 0 0 3px rgba(65,45,21,.18);
}
.field textarea { resize: vertical; min-height: 92px; line-height: 1.5; }

/* scrollbar ------------------------------------------------- */
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; border: 3px solid var(--paper); }

/* fade-up on scroll (intersection observer toggles .in) ----- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   SHARED COMPONENT LAYER  (used by both pages)
   ============================================================ */

/* ---- brand lockup ---- */
/* wordmark logo image (footer + reused) */
.lockup-img { display: block; width: auto; height: 88px; max-width: 100%; }
.lockup-img--small { height: 58px; }
.lockup-img--invert { filter: invert(1); }   /* black ink -> white on dark backgrounds */

/* ---- ornament divider ---- */
.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold); }
.sepia { display: block; overflow: hidden; border-radius: 2px; }

/* ============================================================
   PRIMARY NAV — professional top header
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 200;
  background: rgba(243,234,214,.85);
  -webkit-backdrop-filter: saturate(1.1) blur(12px); backdrop-filter: saturate(1.1) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar__in { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.topbar__brand { display: inline-flex; align-items: center; gap: 12px; }
.topbar__mark { height: 30px; width: auto; display: block; }
.topbar__word { font-family: var(--serif); font-style: italic; font-size: 1.04rem; color: var(--ink); white-space: nowrap; }
.topbar__nav { display: flex; align-items: center; gap: 4px; }
.topbar__right { display: flex; align-items: center; gap: 22px; }
.topbar__cta {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 9px 15px; border: 1px solid var(--ink); border-radius: 999px; color: var(--ink);
  transition: background .2s ease, color .2s ease; white-space: nowrap;
}
.topbar__cta:hover { background: var(--ink); color: var(--paper); }
.navlink {
  position: relative; font-family: var(--mono); font-size: .72rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-soft);
  padding: 11px 18px; border-radius: 999px;
  transition: color .25s ease, background .25s ease;
}
.navlink:hover { color: var(--ink); background: rgba(31,21,12,.06); }
.navlink.is-active { color: var(--ink); }
.navlink.is-active::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 5px; height: 2px;
  background: var(--gold); border-radius: 2px;
}

/* ============================================================
   PRIMARY NAV — bottom tab bar (mobile only)
   ============================================================ */
.tab-nav {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 160;
  grid-template-columns: 1fr 1fr 1fr;
  background: rgba(31,21,12,.97); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(225,220,201,.16);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tab {
  display: flex; align-items: center; justify-content: center;
  padding: 17px 0; color: rgba(225,220,201,.6);
  font-family: var(--mono); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  position: relative; transition: color .3s ease;
}
.tab + .tab { border-left: 1px solid rgba(225,220,201,.12); }
.tab.is-active { color: var(--cream); }
.tab.is-active::before {
  content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 2px;
  background: var(--gold-soft); border-radius: 0 0 3px 3px;
}

/* ============================================================
   MODAL  (shared; library.css may restate for its page)
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 400; display: flex; animation: fadein .3s ease; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.modal__panel { position: relative; background: var(--paper); }
.modal__close {
  position: absolute; top: 18px; right: 18px; z-index: 3;
  width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--cream); color: var(--ink);
  cursor: pointer; display: grid; place-items: center;
  transition: background .3s ease, transform .3s ease;
}
.modal__close:hover { background: var(--ink); color: var(--cream); transform: rotate(90deg); }
.modal__body { overflow-y: auto; max-height: 100%; padding: 64px 24px; }
.modal--page { background: rgba(20,13,7,.5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modal--page .modal__panel { margin: auto; width: min(900px, 100%); min-height: 100%;
  background-image: radial-gradient(120% 60% at 50% 0%, rgba(65,45,21,.10), rgba(65,45,21,0) 50%); }
.modal--page .modal__body { min-height: 100vh; min-height: 100dvh; }
.modal--card { background: rgba(20,13,7,.5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); align-items: center; justify-content: center; padding: 24px; }
.modal--card .modal__panel { width: min(560px, 100%); max-height: 90vh; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--lift-2);
  animation: pop .35s cubic-bezier(.2,.7,.3,1); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal--card .modal__body { padding: 44px 36px; }

/* ---- reader (modal content) ---- */
.reader { max-width: 640px; margin: 0 auto; padding: 8px 4px 40px; }
.reader__orn { margin: 0 auto 30px; }
.reader__kicker { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-faint); text-align: center; }
.reader__title { font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 5vw, 3rem); text-align: center; margin: 10px 0 6px; }
.reader__by { text-align: center; color: var(--ink-faint); font-style: italic; margin-bottom: 34px; }
.reader__p { font-size: 1.12rem; line-height: 1.78; color: var(--ink); margin: 0 0 1.25em; }
.reader__p--quiet { color: var(--ink-faint); font-style: italic; font-size: 1rem; }
.reader--letter .reader__p:first-of-type::first-letter { font-family: var(--gothic); font-size: 3.2rem; line-height: .8; float: left; padding: 6px 12px 0 0; color: var(--gold); }
.reader__end { text-align: center; margin-top: 24px; }
.reader__lyrics { font-family: var(--serif); font-size: 1.18rem; line-height: 1.85; color: var(--ink); white-space: pre-wrap; text-align: center; margin: 0; }
.reader__play { margin: 0 auto 34px; display: block; }
.reader--form { padding-bottom: 20px; }
.reader__submit { margin-top: 14px; }

/* ============================================================
   AUDIO BAR (shared)
   ============================================================ */
.audiobar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  background: rgba(31,21,12,.94); color: var(--paper);
  border-top: 1px solid rgba(225,220,201,.16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: barup .4s ease; }
@keyframes barup { from { transform: translateY(100%); } to { transform: none; } }
.audiobar__inner { display: flex; align-items: center; gap: 18px; padding: 12px 28px; }
.audiobar__pp { width: 42px; height: 42px; border-radius: 999px; flex: none; border: 1px solid rgba(225,220,201,.3); background: var(--paper); color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: transform .25s ease; }
.audiobar__pp:hover { transform: scale(1.06); }
.audiobar__meta { display: flex; flex-direction: column; min-width: 120px; }
.audiobar__title { font-family: var(--serif); font-style: italic; font-size: 1.05rem; }
.audiobar__artist { font-size: .78rem; color: rgba(225,220,201,.6); }
.audiobar__prog { display: flex; align-items: center; gap: 12px; flex: 1; }
.audiobar__time { font-size: .74rem; color: rgba(225,220,201,.6); font-variant-numeric: tabular-nums; min-width: 34px; }
.audiobar__track { flex: 1; height: 4px; border-radius: 99px; background: rgba(225,220,201,.18); cursor: pointer; overflow: hidden; }
.audiobar__track:hover { height: 6px; }
.audiobar__fill { height: 100%; background: var(--gold-soft); transition: width .25s linear; }
.audiobar__ctl { display: flex; gap: 6px; }
.audiobar__skip { background: none; border: 0; color: rgba(225,220,201,.7); cursor: pointer; padding: 6px; border-radius: 6px; transition: color .25s ease; }
.audiobar__skip:hover { color: var(--paper); }
.audiobar__sim { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(225,220,201,.4); flex: none; }

/* ============================================================
   NEWSLETTER (shared)
   ============================================================ */
.newsletter { padding: 88px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(65,45,21,.08), rgba(65,45,21,0)); }
.newsletter__inner { text-align: center; }
.newsletter__head { font-family: var(--serif); font-style: italic; font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 12px 0 14px; }
.newsletter__sub { color: var(--ink-soft); max-width: 48ch; margin: 0 auto 28px; line-height: 1.6; }
.newsletter__row { display: flex; gap: 12px; justify-content: center; max-width: 480px; margin: 0 auto; flex-wrap: wrap; }
.newsletter__email { max-width: 300px; }
.newsletter__fine { font-size: .8rem; color: var(--ink-faint); margin-top: 16px; }
.newsletter__done { padding: 10px 0; }
.newsletter__kicker { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--sage-deep); }

/* ============================================================
   SITE FOOTER (shared)
   ============================================================ */
/* ============================================================
   FOOTER — MONOLOG-style, dark, with live clock
   ============================================================ */
.site-foot { padding: clamp(60px,9vh,110px) 0 44px; background: var(--ink); color: var(--paper); }
.site-foot__in { display: block; }
.site-foot__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap;
  padding-bottom: clamp(44px,7vh,84px); border-bottom: 1px solid rgba(232,228,217,.16); }
.site-foot__big { font-family: var(--serif); font-weight: 500; letter-spacing: -.022em;
  font-size: clamp(2.3rem,7vw,5rem); line-height: .96; color: var(--paper); }
.site-foot__big em { font-style: italic; color: var(--gold-soft); }
.site-foot__totop { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(232,228,217,.7); padding-top: 12px; white-space: nowrap; }
.site-foot__totop:hover { color: var(--paper); }
.site-foot__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 30px; padding: clamp(40px,6vh,68px) 0; }
.site-foot__h { font-family: var(--mono); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(232,228,217,.5); margin-bottom: 18px; }
.site-foot__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.site-foot__list a, .site-foot__list a.qlink { font-size: .98rem; color: rgba(232,228,217,.82); }
.site-foot__list a:hover, .site-foot__list a.qlink:hover { color: var(--paper); }
.site-foot__meta { font-size: .95rem; color: rgba(232,228,217,.7); margin-bottom: 8px; }
.site-foot__clock { font-family: var(--mono); font-size: .98rem; color: var(--paper); display: flex; flex-direction: column;
  gap: 3px; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.site-foot__date { font-size: .68rem; letter-spacing: .12em; color: rgba(232,228,217,.5); text-transform: uppercase; }
.site-foot__book { font-style: italic; font-family: var(--serif); color: rgba(232,228,217,.78); }
.site-foot__fine { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  padding-top: clamp(30px,5vh,56px); border-top: 1px solid rgba(232,228,217,.16); }
.site-foot__mark { max-width: 210px; }
.site-foot__finemeta { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; font-family: var(--mono);
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(232,228,217,.55); text-align: right; }
.site-foot__motto { font-family: var(--serif); font-style: italic; text-transform: none; letter-spacing: 0;
  font-size: 1.02rem; color: var(--gold-soft); }

/* ============================================================
   RESPONSIVE — top header collapses to logo; bottom tab bar appears
   ============================================================ */
@media (max-width: 720px) {
  .topbar__nav { display: none; }
  .topbar__cta { display: none; }
  .topbar__in { height: 58px; justify-content: center; }
  .tab-nav { display: grid; }
  /* leave room for the bottom bar + any audiobar */
  .site-foot { padding-bottom: calc(44px + 66px + env(safe-area-inset-bottom, 0px)); }
  .audiobar { bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
  .audiobar__meta, .audiobar__sim { display: none; }
  .audiobar__inner { gap: 12px; padding: 10px 16px; }
  .site-foot__grid { grid-template-columns: 1fr 1fr; gap: 30px 24px; }
  .site-foot__fine { flex-direction: column; align-items: flex-start; gap: 28px; }
  .site-foot__finemeta { align-items: flex-start; text-align: left; }
  .modal__body { padding: 60px 18px 30px; }
  .modal--card .modal__body { padding: 40px 24px; }
}

/* ============================================================
   v3 — mono metadata, focus, motion, cover/merch art, numbering
   ============================================================ */

/* ---- Space Mono for catalog metadata / eyebrows ---- */
.eyebrow {
  font-family: var(--mono); font-weight: 400; text-transform: uppercase;
  letter-spacing: .2em; font-size: .7rem; color: var(--ink-faint);
}
.cat-row__cat, .cat-row__year, .cat-row__dur, .audiobar__time,
.feat__cat, .cover-art__cat, .cover-art__foot, .lcard__since,
.merch-card__kind, .reader__kicker, .letter-card__no, .lly-stat__l {
  font-family: var(--mono);
}
.reader__kicker { letter-spacing: .16em; }

/* ---- focus-visible (keyboard) ---- */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px;
}
.navlink:focus-visible, .tab:focus-visible { outline-offset: -3px; }
.tab:focus-visible, .chip:focus-visible, .radio__disc:focus-visible,
.btn:focus-visible, .qlink:focus-visible { outline-offset: 3px; }
.radio__disc:focus-visible { border-radius: 999px; }

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .radio__disc, .home-hero__stars .star, .radio__icon { animation: none !important; }
  .home-hero__stars .star { opacity: .6 !important; }
}

/* ============================================================
   COVER ART — typographic record sleeve
   ============================================================ */
.cover-art {
  position: relative; width: 100%; aspect-ratio: 1/1; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 18px 18px 16px; color: var(--cream);
  font-family: var(--serif);
}
.cover-art__tex { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 80% at 25% 12%, rgba(255,255,255,.16), rgba(255,255,255,0) 55%),
    radial-gradient(140% 120% at 80% 110%, rgba(0,0,0,.32), rgba(0,0,0,0) 60%); }
.cover-art__cat { position: relative; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; opacity: .8; }
.cover-art__mid { position: relative; text-align: center; padding: 0 6px; }
.cover-art__orn { display: block; color: var(--gold-soft); margin-bottom: 8px; font-size: 1rem; }
.cover-art__title { font-style: italic; font-weight: 500; font-size: clamp(1.7rem, 5.2vw, 2.6rem); line-height: 1.02; }
.cover-art__artist { display: block; margin-top: 8px; font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.cover-art__foot { position: relative; font-size: .58rem; letter-spacing: .26em; text-transform: uppercase; opacity: .6; text-align: center; }

/* ---- shared tone palettes (cover + merch) ---- */
.cover-art.tone-sage      { background: linear-gradient(155deg, #4A3219, #20160B); }
.cover-art.tone-espresso  { background: linear-gradient(155deg, #2A1D10, #120C06); }
.cover-art.tone-blood     { background: linear-gradient(155deg, #3A2614, #1B1108); }
.cover-art.tone-parchment { background: linear-gradient(155deg, #CFC4A6, #B2A47E); color: #1F150C; }
.cover-art.tone-parchment .cover-art__orn { color: var(--gold); }

/* ============================================================
   MERCH MOCK — product line-art
   ============================================================ */
.merch-mock { position: relative; width: 100%; aspect-ratio: 1/1; display: grid; place-items: center; overflow: hidden; }
.merch-mock__tex { position: absolute; inset: 0; background: radial-gradient(120% 90% at 30% 15%, rgba(255,255,255,.14), rgba(255,255,255,0) 55%); }
.merch-mock__art { position: relative; width: 56%; height: 56%; }
.merch-mock.tone-sage      { background: #687457; color: var(--cream); }
.merch-mock.tone-espresso  { background: #4f3d2b; color: var(--cream); }
.merch-mock.tone-blood     { background: #7c3b32; color: var(--cream); }
.merch-mock.tone-parchment { background: #e3d4b4; color: #4a3a25; }

/* ============================================================
   SECTION NUMBERING — § with roman numerals (auto)
   ============================================================ */
.home, .lly { counter-reset: sec; }
.home > section[id], .lly > section[id] { counter-increment: sec; }
.home > section[id] .eyebrow::before,
.lly  > section[id] .eyebrow::before {
  content: "/ " counter(sec, decimal-leading-zero) "  \2014  ";
  color: var(--gold); opacity: .8;
}

/* ============================================================
   SUBMISSIONS PAGE
   ============================================================ */
.submit-head { padding: 64px 0 44px; text-align: center;
  background: linear-gradient(180deg, var(--cream), var(--paper)); border-bottom: 1px solid var(--line); }
.submit-head__title { font-family: var(--gothic); font-size: clamp(2.8rem, 9vw, 5rem); line-height: .92; color: var(--ink); margin: 10px 0 16px; }
.submit-head__lead { max-width: 52ch; margin: 0 auto; }
.submit-wrap { padding: 64px 0 48px; }
.submit-wrap__in { display: grid; grid-template-columns: 1fr minmax(0, 440px); gap: 64px; align-items: start; }
.submit-guide { display: flex; flex-direction: column; gap: 30px; }
.guide-item { display: flex; gap: 18px; }
.guide-item__n { font-family: var(--mono); color: var(--gold); font-size: .8rem; padding-top: 5px; }
.guide-item__h { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--ink); margin-bottom: 4px; }
.guide-item__p { color: var(--ink-soft); line-height: 1.72; }
.submit-form { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 32px; box-shadow: var(--lift); position: sticky; top: 28px; }
.submit-form__h { font-family: var(--serif); font-style: italic; font-size: 1.7rem; margin: 8px 0 18px; color: var(--ink); }
.submit-form__btn { margin-top: 14px; }
.submit-form__fine { font-size: .82rem; color: var(--ink-faint); margin-top: 12px; }
.submit-form--done { text-align: center; }
.submit-form__done-h { font-family: var(--serif); font-style: italic; font-size: 1.8rem; margin: 8px 0 14px; color: var(--ink); }
.submit-form__done-p { color: var(--ink-soft); line-height: 1.72; }
@media (max-width: 820px) {
  .submit-wrap__in { grid-template-columns: 1fr; gap: 40px; }
  .submit-form { position: static; }
  .submit-head { padding: 44px 0 34px; }
}
@media (max-width: 720px) { .submitpage { padding-bottom: 72px; } }

/* ============================================================
   v4 — mobile & touch optimization
   ============================================================ */

/* stop iOS from auto-inflating text; calmer tap highlight */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 84px; }
body { -webkit-tap-highlight-color: transparent; }

/* comfortable tap targets on touch devices (>=44px) */
@media (pointer: coarse) {
  .btn { min-height: 44px; }
  .cat-row__play { width: 44px; height: 44px; }
  .modal__close { width: 44px; height: 44px; }
  .audiobar__pp { width: 46px; height: 46px; }
  .audiobar__skip { padding: 9px; }
  .tab { padding: 12px 0 14px; }
  .lcard__link, .feat__lyrics, .qlink { padding-block: 4px; }
}

/* on touch there is no hover — surface the affordances desktop reveals */
@media (hover: none) {
  .radio__icon { opacity: .92; background: rgba(16,11,7,.30); }      /* show play/pause glyph on the disc */
  .radio__disc:active .radio__icon { background: rgba(16,11,7,.5); }
  .letter-card::after { opacity: .9; transform: scale(1) rotate(-6deg); }  /* the wax seal stays pressed */
}

/* bottom tab bar + now-playing bar: keep anchored content clear of them */
@media (max-width: 720px) {
  html { scroll-padding-bottom: 132px; }
  .home, .lly, .submitpage { overflow-x: hidden; }
  .home { padding-bottom: 0; }      /* footer already pads for the tab bar */
}

/* tighten gutters + stack the newsletter on small phones */
@media (max-width: 480px) {
  .wrap, .wrap-narrow { padding-inline: 18px; }
  .newsletter__row { flex-direction: column; align-items: stretch; }
  .newsletter__email { max-width: none; }
  .newsletter__row .btn { width: 100%; justify-content: center; }
  .modal__body { padding: 56px 16px 28px; }
  .modal--card .modal__body { padding: 34px 20px; }
  .home > section[id] .eyebrow::before,
  .lly  > section[id] .eyebrow::before { letter-spacing: 0; }  /* number never crowds short labels */
}

/* ============================================================
   v5 — iPhone / iOS Safari specifics
   ============================================================ */
body { -webkit-font-smoothing: antialiased; }

/* never let Safari zoom in when a form field is focused (needs >=16px) */
@media (pointer: coarse) {
  .field__input, .field textarea, .newsletter__email { font-size: 16px; }
  .btn, .tab, .chip, .cat-row__play, .audiobar__pp, .audiobar__skip,
  .modal__close, .radio__disc, .feat__play, .rel-card__play { touch-action: manipulation; }
}

/* boot screen uses the dynamic viewport so it isn't cut by the Safari toolbar */
#boot { min-height: 100vh; min-height: 100dvh; }

/* visually-hidden (screen-reader only) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (max-width: 480px) {
  .site-foot__grid { grid-template-columns: 1fr; gap: 26px; }
}
