/* ============================================================
   APPALACHIAN COFFEE PROVISIONS · SYLVA CHAPTER
   Concept C — PAPER-LED (bone / feed-sack). Warm paper ground,
   charcoal ink, oxblood + antique gold. Dark insets for the
   radio, testimonials, footer, and the member card.
   Subscription program: "The Circle".
   ============================================================ */

:root {
  /* dark ground (reskin: raised charcoal panels) */
  --paper:   #2a2016;
  --paper-2: #241b12;
  --paper-3: #1e150d;
  --bg: #141010;

  /* dark insets */
  --bg-2:  #1b1610;
  --char:  #15110c;
  --char-2:#1f1a13;
  --bone:  #ece2cd;
  --bone-soft: rgba(236,226,205,0.62);

  /* ink (default text: cream on dark) */
  --ink:      #ece2cd;
  --ink-soft: rgba(236,226,205,0.72);
  --ink-faint:rgba(236,226,205,0.5);
  --hair:     rgba(236,226,205,0.16);

  /* spot inks */
  --oxblood:  #8f3120;
  --oxblood-deep: #6e1f23;
  --gold:     #a9772b;
  --gold-brt: #cda24a;
  --gold-deep:#8a5f20;

  --slab:  'Alfa Slab One', Georgia, serif;
  --cond:  'Oswald', 'Arial Narrow', sans-serif;
  --stamp: 'Special Elite', 'Courier New', monospace;
  --body:  'Libre Franklin', system-ui, sans-serif;
  --serif: 'Libre Caslon Text', Georgia, serif;
  --ease: cubic-bezier(0.32, 0.08, 0.24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: radial-gradient(ellipse 90% 70% at 50% 30%, #3a2a1e 0%, #241a12 42%, #141010 100%) no-repeat fixed, #141010; }
body { -webkit-font-smoothing: antialiased; color: var(--ink); font-family: var(--body); overflow-x: hidden; line-height: 1.6; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* film grain (reskin: light speckle for the dark ground) */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.85 0 0 0 0 0.78 0 0 0 0 0.62 0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23p)'/></svg>");
  opacity: 0.5; mix-blend-mode: screen;
}
#app { position: relative; z-index: 2; }
::selection { background: rgba(143,49,32,0.22); }

@keyframes spin { from{transform:rotate(0)} to{transform:rotate(360deg)} }
@keyframes fadeUp { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }
@keyframes fade { from{opacity:0} to{opacity:1} }
@keyframes eq { 0%,100%{transform:scaleY(0.35)} 50%{transform:scaleY(1)} }

/* type primitives */
.stamp { font-family: var(--stamp); font-size: 12px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-soft); }
.kick  { font-family: var(--cond); font-weight: 600; font-size: 13px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--oxblood); }
.h-slab-xl { font-family: var(--slab); font-weight: 400; font-size: clamp(40px,6vw,92px); line-height: 1.0; letter-spacing: 0.01em; margin: 0; color: var(--ink); }
.h-cond-xl { font-family: var(--cond); font-weight: 700; font-size: clamp(42px,6.4vw,104px); line-height: 0.92; text-transform: uppercase; margin: 0; color: var(--ink); }
.h-cond    { font-family: var(--cond); font-weight: 700; font-size: clamp(28px,3.2vw,46px); line-height: 1.0; text-transform: uppercase; margin: 0; color: var(--ink); }
.lede { font-family: var(--serif); font-size: clamp(18px,1.5vw,22px); line-height: 1.5; color: var(--ink-soft); }
.rule { height: 1px; background: var(--hair); border: 0; }
.perf { border-left: 2px dashed var(--hair); }

/* buttons */
.btn { font-family: var(--cond); font-weight: 600; font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; padding: 15px 30px; transition: background 160ms var(--ease), color 160ms, border-color 160ms, transform 80ms; border: 0; display: inline-flex; align-items: center; gap: 10px; }
.btn:active { transform: translateY(1px); }
.btn-ox   { background: var(--oxblood); color: #f3e8d2; }
.btn-ox:hover { background: var(--oxblood-deep); }
.btn-gold { background: var(--gold); color: #1a1610; }
.btn-gold:hover { background: var(--gold-brt); }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); padding: 13px 28px; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.lnk { cursor: pointer; transition: color 150ms; }
.lnk:hover { color: var(--oxblood); }
.navlink { font-family: var(--cond); font-weight: 600; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); cursor: pointer; transition: color 150ms; }
.navlink:hover { color: var(--oxblood); }

/* chapter radio (dark inset) */
.radio { background: #100d0a; color: var(--bone); height: 40px; display: flex; align-items: center; gap: 16px; padding: 0 22px; font-family: var(--stamp); font-size: 11.5px; letter-spacing: 0.03em; text-transform: uppercase; overflow: hidden; }
.radio .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-brt); }
.radio.on .dot { animation: fade 1.2s ease-in-out infinite alternate; }
.radio .eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 13px; }
.radio .eq i { width: 2.5px; height: 100%; background: var(--bone-soft); transform-origin: bottom; }
.radio.on .eq i { background: var(--gold-brt); animation: eq 800ms var(--ease) infinite; }
.radio.on .eq i:nth-child(2){animation-delay:.15s} .radio.on .eq i:nth-child(3){animation-delay:.3s} .radio.on .eq i:nth-child(4){animation-delay:.1s}
.radio .play { cursor: pointer; display: inline-flex; align-items: center; gap: 8px; color: var(--bone); background:none; border:0; }
.radio .play:hover { color: var(--gold-brt); }

/* supply tag (paper label) */
.tag, .paper-ctx { background: var(--paper-2); }
.tag { position: relative; border: 1px solid var(--hair); display: flex; flex-direction: column; transition: transform 200ms var(--ease), box-shadow 200ms var(--ease); }
.tag:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(32,28,22,0.2); }
.tag .field { position: relative; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tag .field img { width: 76%; height: 76%; object-fit: contain; }
.punch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 26px; height: 8px; border-radius: 5px; background: rgba(0,0,0,0.4); box-shadow: inset 0 1px 2px rgba(0,0,0,0.5); z-index: 2; }
.tag .badge { position: absolute; top: 12px; left: 12px; background: var(--oxblood); color: #f3e8d2; font-family: var(--cond); font-weight: 600; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; padding: 5px 10px; }

.data { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; }
.data dt { font-family: var(--stamp); font-size: 10.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-faint); }
.data dd { margin: 0; font-family: var(--stamp); font-size: 11.5px; letter-spacing: 0.02em; color: var(--ink); text-transform: uppercase; }
.cat-no { font-family: var(--stamp); font-size: 12px; letter-spacing: 0.04em; color: var(--ink-faint); }

.pbtn { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid currentColor; background: transparent; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; transition: background 150ms, color 150ms, border-color 150ms, transform 80ms; }
.pbtn:hover { background: var(--oxblood); border-color: var(--oxblood); color: #f3e8d2; }
.pbtn:active { transform: scale(0.93); }

.ledger-row { display: grid; grid-template-columns: 30px 56px 1fr auto auto; gap: 18px; align-items: center; padding: 15px 8px; border-bottom: 1px solid var(--hair); cursor: pointer; transition: background 150ms, padding-left 150ms; }
.ledger-row:hover { background: rgba(32,28,22,0.05); padding-left: 16px; }

.card-mem { background: var(--char); color: var(--bone); border: 1px solid rgba(236,226,205,0.18); position: relative; overflow: hidden; }
.card-mem .foil { position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(205,162,74,0.22), transparent 70%); }

.card { transition: transform 200ms var(--ease); }

a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 3px; }

@media (max-width: 920px) {
  .hide-sm { display: none !important; }
  .ledger-row { grid-template-columns: 26px 1fr auto; gap: 12px; }
}
@media (min-width: 921px) { .hide-lg { display: none !important; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation-duration:.001ms!important; transition-duration:.001ms!important; } }

/* ============================================================
   Added in the July 24 fix pass
   ============================================================ */

/* Form placeholders were browser-default grey on a dark ground
   and effectively unreadable. */
input::placeholder, textarea::placeholder { color: rgba(236,226,205,0.42); opacity: 1; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

/* Partner logo marquee. The track holds two copies of the logo run,
   so translating it exactly -50% loops with no visible seam. */
@keyframes mq-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.mq { width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.mq-track { display: flex; align-items: center; gap: 64px; width: max-content; animation: mq-scroll 42s linear infinite; }
.mq:hover .mq-track { animation-play-state: paused; }
.mq-item { flex: 0 0 auto; display: grid; place-items: center; height: 74px; }
.mq-item img { max-height: 74px; width: auto; max-width: 190px; object-fit: contain; opacity: 0.82; filter: saturate(0.15) brightness(1.5); transition: opacity 200ms var(--ease), filter 200ms var(--ease); }
.mq-item img:hover { opacity: 1; filter: none; }

@media (prefers-reduced-motion: reduce) {
  .mq-track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; gap: 40px; }
}
