/* Bible Biker Ministries — GO HARD mockup base sheet.
 *
 * Rules that belong to the whole site once, not to any one page. If a
 * future page needs its own copy of a reset rule or the rough-texture
 * recipe, that is this file's bug, not that page's. Site-specific
 * components (the hero, the patch, the ticker) stay in each page's own
 * <style>, using only the tokens and surfaces from tokens.css.
 */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--black); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Literata", serif;
  font-size: var(--text-body);
  line-height: var(--lh-body);
}
img { max-width: 100%; display: block; }

/* Ruled 2026-09-14: any heading that can wrap gets balance by default.
 * This is not new to the mockup -- the live site already does this on
 * .video-caption. The miss was not applying it everywhere a heading
 * could wrap; this rule makes that impossible going forward. */
h1, h2, h3, .balance { text-wrap: balance; }
p { text-wrap: pretty; }

.wide { font-family: "Archivo Black", sans-serif; letter-spacing: var(--track-wide); line-height: var(--lh-label); }
.label {
  font-family: "Archivo Black"; text-transform: uppercase;
  letter-spacing: var(--track-kicker); font-size: var(--text-label);
}

/* Ruled 2026-09-14: cream is the site's DEFAULT ground. Dark (leather or
 * rough) is the exception for moments that should carry weight (hero,
 * closing, one color punch) -- not the baseline. body already defaults
 * to --paper (above); this comment is the ruling, not a new rule. */

/* The site header: identical on every page, so it lives here once, not
 * copy-pasted into each page's <style>. Ruled 2026-09-14, round 5: the
 * bar itself is gold now (a coachbuilt nameplate, not a black strip), so
 * the mark's name and the nav both moved to --ink for contrast against
 * gold -- cream-on-gold and gold-on-gold both fail. */
header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .75rem 1.5rem; padding: 1.1rem var(--page-margin);
  background: var(--gold);
}
.mark { display: flex; align-items: center; gap: .85rem; text-decoration: none; }
.mark img { height: var(--logo-nav-h); width: auto; flex-shrink: 0; }
.mark span { color: var(--ink); font-size: var(--text-label); line-height: var(--lh-label); }
header nav { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
header nav a {
  display: inline-block; color: var(--ink); text-decoration: none; font-size: var(--text-label);
  transition: transform .15s ease, color .15s ease;
}
header nav a:hover, header nav a:focus-visible { color: var(--black); transform: scale(1.1); }
header nav a[aria-current="page"] { color: var(--black); box-shadow: inset 0 -3px 0 var(--black); padding-bottom: .15em; } /* you-are-here marker (Mike, round 15) */
/* Hamburger below 900px (Mike, round 18: the six links ran to two lines on
   tablets). Above it the nav is inline and the button is gone. */
.nav-toggle { display: none; }
@media (max-width: 899px) {
  header { flex-wrap: wrap; gap: .5rem .75rem; }
  .mark { flex: 1 1 0; min-width: 0; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 8px; margin-left: auto; border: 2px solid var(--ink); border-radius: 2px;
    background: transparent; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 3px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
  header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  /* Round 22 (Fable): the menu overlays the page instead of pushing it down. */
  header { position: relative; z-index: 40; }
  header nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; padding: .25rem var(--page-margin) 1rem; background: var(--gold); border-top: 2px solid var(--ink); box-shadow: 0 12px 24px rgba(0,0,0,.35); max-height: calc(100vh - 100%); overflow-y: auto; }
  header.nav-open nav { display: flex; }
  body.nav-lock { overflow: hidden; }
  header nav a { padding: .8rem 0; border-bottom: 1px solid rgba(0,0,0,.15); }
  header nav a:hover, header nav a:focus-visible { transform: none; }
  header nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--black); padding-left: .75rem; }
}

/* The seam: ruled 2026-09-14, round 5 -- a gold hairline plus a dashed
 * line just read as a thick border, not thread. Real topstitch: a
 * shadowed groove for the thread to sit in, and short angled ticks in a
 * muted thread color (not the bright accent gold) each carrying its own
 * tiny shadow-below/highlight-above so it reads as raised, not printed.
 * Drop <div class="seam" aria-hidden="true"></div> at a boundary where
 * two different surfaces actually meet -- not every boundary needs one. */
.seam { height: var(--seam-h); position: relative; }
.seam::before {
  content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 1px;
  background: var(--thread-groove);
  box-shadow: 0 1px 0 var(--thread-highlight);
}
.seam::after {
  content: "";
  position: absolute; left: 0; right: 0; top: var(--thread-y); height: var(--thread-h);
  background-image: repeating-linear-gradient(100deg, var(--thread) 0 3px, transparent 3px 11px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 35%, black 65%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, black 35%, black 65%, transparent 100%);
  filter: drop-shadow(0 1px 0 var(--thread-groove)) drop-shadow(0 -1px 0 var(--thread-highlight));
  opacity: var(--veil-texture);
}
/* A seam has no background of its own -- without one of these it shows
 * the plain body/cream ground behind it, which reads as a stray gap
 * wherever the two real neighboring surfaces are darker. Pick the one
 * that matches the section the seam is about to introduce. */
.seam.on-cream { background: var(--paper); }
.seam.on-dark  { background: var(--black); }
.seam.on-red   { background-image: var(--surface-leather-red); background-size: cover; }

/* The rough dark ground: streaked, anisotropic noise, deliberately not
 * leather grain. Ruled surface for every dark section that is NOT the
 * hero (the hero is leather -- see --surface-leather-dark). */
.rough { background: var(--black); position: relative; }
.rough::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(-32deg, transparent 0 7px, var(--grain-line) 7px 8px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.015 0.6' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .8 0 0 0 0 .8 0 0 0 0 .8 0 0 0 1 0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='0 0 0 .5 1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: auto, var(--grain-tile);
  mix-blend-mode: overlay; opacity: var(--blend-texture);
}
.rough > * { position: relative; z-index: 1; }

/* The ticker: the one motion move, everywhere it appears. */
.ticker {
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold);
  padding: .6rem 0; position: relative; z-index: 2;
}
.ticker-track {
  display: inline-block; padding-left: 100%;
  animation: ticker-scroll 26s linear infinite;
  text-transform: uppercase; letter-spacing: var(--track-wide); color: var(--gold);
  font-size: var(--text-label);
}
.ticker-track span, .ticker-track a { padding: 0 1.5rem; }
.ticker-track a { color: inherit; text-decoration: none; display: inline-block; }
.ticker-track a:hover, .ticker-track a:focus-visible { text-decoration: underline; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

.reveal { opacity: 0; transform: translateY(var(--reveal-shift)); transition: opacity var(--reveal-dur) ease, transform var(--reveal-dur) ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* The button: one shape sitewide (blood fill, cream Archivo Black label, four
 * gold rivets in the corners). Moved here from path-d 2026-09-14 the round the
 * sermon and studies pages needed the same button. Hover matches the live
 * site's own .btn:hover (same lift, same darken). */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--blood); color: var(--cream); text-decoration: none;
  font-family: "Archivo Black"; text-transform: uppercase; letter-spacing: var(--track-btn);
  font-size: var(--text-btn);
  padding: 1rem 2rem; position: relative;
  transition: background-color .15s ease, transform .15s ease;
  background-image:
    radial-gradient(circle at 10px 10px, var(--gold) 0 2.5px, transparent 3.5px),
    radial-gradient(circle at calc(100% - 10px) 10px, var(--gold) 0 2.5px, transparent 3.5px),
    radial-gradient(circle at 10px calc(100% - 10px), var(--gold) 0 2.5px, transparent 3.5px),
    radial-gradient(circle at calc(100% - 10px) calc(100% - 10px), var(--gold) 0 2.5px, transparent 3.5px);
}
/* Matches the live site's own .btn:hover exactly (assets/css/style.css)
   -- same lift, same darken -- rather than inventing a new hover feel
   for this one page. */
.btn:hover, .btn:focus-visible { background-color: var(--blood-dark); transform: translateY(-1px); }

/* Section heading: Anton, uppercase, double gold rule on top. Moved here from
 * path-d 2026-09-14 for the same reason as .btn. */
h2.slab {
  font-family: "Anton", sans-serif; font-weight: 400; text-transform: uppercase;
  font-size: var(--text-h2); line-height: var(--lh-snug); margin: 0 0 1rem;
  border-top: 4px double var(--gold); padding-top: .85rem; letter-spacing: var(--track-tight);
  color: var(--ink);
}

/* round 40 (Mike, universal): every all-caps selector in this file set solid. */
.btn,
.label,
.ticker-track,
h2.slab { line-height: var(--lh-caps); }

/* round 75: keyboard skip link, visible only when focused */
.skip { position: absolute; left: 1rem; top: -100px; z-index: 100; padding: .6rem 1rem; background: var(--gold); color: var(--black); font-family: "Archivo Black"; text-transform: uppercase; letter-spacing: var(--track-btn); font-size: var(--text-micro); line-height: var(--lh-caps); text-decoration: none; }
.skip:focus { top: 1rem; }
.ticker-track span[aria-hidden] { padding: 0; } /* round 77: the duplicate run is wrapped for assistive tech; no extra padding */
