/* ==========================================================================
   FORMED BY SCRIPTURE — BRAND SYSTEM  (HopeX alignment, 12 Nov 2026)
   ==========================================================================
   Formed by Scripture is the discipleship resource hub of HopeX Church, so
   the platform wears HopeX's colours: black, white and mint.

   SOURCE OF THE VALUES
   Black #000000, white #FFFFFF and mint #80F6AE are the HopeX values this
   site was first built with (the top of styles.css). Nothing new was
   invented. If HopeX's brand guide gives different values, change them in
   the BRAND block below and the whole platform follows.

   HOW TO USE THE TOKENS
     --brand-*    the three HopeX colours. Never use a raw hex in page CSS.
     --bg, --surface, --surface-soft     page, card, quiet panel
     --text, --text-muted                 body copy and secondary copy
     --border, --border-strong            hairlines
     --accent, --accent-soft              mint, and a pale mint wash
     --btn-*                              primary and secondary buttons
     --ring, --ring-on-dark               keyboard focus
     --radius, --radius-sm, --lift        rounded surfaces and their shadow

   MINT IS AN ACCENT. It marks eyebrows, numerals, the selected state, the
   primary button on black, and hover. It is not a background for sections.

   Labs and tools keep their own look inside their own pages and previews:
   Well Versed is navy and red, Bible GPS has its map colours.

   This file sits on top of styles.css, which is unchanged.
   ========================================================================== */
:root {
  /* BRAND — HopeX */
  --brand-black: #000000;
  --brand-white: #FFFFFF;
  --brand-mint:  #80F6AE;

  /* NEUTRALS */
  --bg:            #FAF8F5;   /* warm page */
  --surface:       #FFFFFF;   /* cards */
  --surface-soft:  #F3F1EC;   /* quiet panels */
  --text:          #111111;   /* 17.9 : 1 on --bg */
  --text-muted:    #5C5C5C;   /*  6.3 : 1 on --bg, 5.9 : 1 on --surface-soft */
  --border:        #E3E0DA;
  --border-strong: #C9C5BD;

  /* ACCENT */
  --accent:      var(--brand-mint);
  --accent-soft: #E4FCEE;     /* pale mint wash; black text on it is 19 : 1 */

  /* BUTTONS */
  --btn-bg: var(--brand-black);  --btn-text: var(--brand-white);
  --btn-hover-bg: var(--brand-mint);  --btn-hover-text: var(--brand-black);
  --btn2-text: var(--brand-black);  --btn2-border: var(--brand-black);

  /* INTERACTION */
  --ring: var(--brand-black);  --ring-on-dark: var(--brand-mint);
  --radius: 22px;  --radius-sm: 14px;
  --lift: 0 1px 0 rgba(0,0,0,.05), 0 18px 44px -28px rgba(0,0,0,.4);
  --lift-hover: 0 1px 0 rgba(0,0,0,.05), 0 30px 60px -28px rgba(0,0,0,.5);

  /* The tokens styles.css already uses, re-pointed at the system above. */
  --ink: var(--brand-black);  --paper: var(--brand-white);
  --ink-90: var(--text);  --ink-70: #444444;  --ink-55: var(--text-muted);  --ink-40: var(--text-muted);
  --rule: var(--border);  --rule-heavy: var(--border-strong);
  --wash: var(--surface-soft);  --wash-warm: var(--bg);
  --on-dark-60: rgba(255,255,255,.74);  --on-dark-40: rgba(255,255,255,.62);  --rule-dark: rgba(255,255,255,.2);
  --mint: var(--brand-mint);  --yellow: var(--brand-mint);  --coral: var(--brand-mint);  --cyan: var(--brand-mint);
  --focus: var(--ring);

  /* names the homepage CSS uses */
  --forest: var(--brand-black);  --evergreen: var(--brand-black);  --sage: var(--accent-soft);  --offwhite: var(--bg);  --text-2: var(--text-muted);
}
.hero, .section--dark, .site-footer, .pw-hero, .hub-hopex { --focus: var(--ring-on-dark); }

body { background: var(--bg); color: var(--text); }
h1, h2, h3, h4 { color: var(--brand-black); }
.hero h1, .section--dark h1, .section--dark h2, .section--dark h3, .pw-hero h1, .hub-hopex h2 { color: var(--brand-white); }
.site-header { background: rgba(250,248,245,.94); backdrop-filter: blur(10px); }
.section-head { border-top: 0; padding-top: 0; }

/* eyebrow: grey label with a short mint bar. The bar is the HopeX mark. */
.eyebrow { color: var(--text-muted); display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 22px; height: 6px; border-radius: 3px; background: var(--accent); box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); flex: 0 0 auto; }
.eyebrow--onDark, .section--dark .eyebrow, .hub-hopex .eyebrow { color: var(--accent); }
.eyebrow--onDark::before, .section--dark .eyebrow::before, .hub-hopex .eyebrow::before { box-shadow: none; }

/* buttons */
.btn { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-text); border-radius: var(--radius-sm); letter-spacing: .04em; text-transform: none; font-size: 1rem; min-height: 52px; padding-inline: var(--s-6); }
.btn:hover { background: var(--btn-hover-bg); border-color: var(--brand-black); color: var(--btn-hover-text); }
.btn--sm { font-size: .9375rem; min-height: 46px; }
.btn--ghost { background: transparent; color: var(--btn2-text); border-color: var(--btn2-border); }
.btn--ghost:hover { background: var(--brand-black); color: var(--brand-white); }
.btn--onDark { background: var(--accent); border-color: var(--accent); color: var(--brand-black); }
.btn--onDark:hover { background: var(--brand-white); border-color: var(--brand-white); color: var(--brand-black); }
.btn--ghostOnDark { border-radius: var(--radius-sm); }
.btn--ghostOnDark:hover { background: var(--accent); border-color: var(--accent); color: var(--brand-black); }
.filter, .filters__select { border-radius: 999px; }
.filter[aria-selected='true'] { background: var(--brand-black); border-color: var(--brand-black); color: var(--brand-white); }
.filters { border: 0; padding-block: 0; }
.link:hover { text-decoration-color: var(--accent); }

/* the retired four-colour strip and coloured season tags */
.hero__chips { display: none; }
.hero-season__name[data-accent] { background: var(--accent); color: var(--brand-black); border-radius: 8px; }
.hero__aside { border-top: 0; background: rgba(255,255,255,.08); border-radius: var(--radius); padding: var(--s-5); }

/* rounded, soft surfaces */
.lab, .empty-state, .scripture { border-radius: var(--radius); }
.lab { border: 0; background: var(--surface); box-shadow: var(--lift); }
.site-footer { border-radius: 28px 28px 0 0; }

/* --------------------------------------------------------------------------
   MOTION  (switched on by motion() in js/app.js; off for reduced motion)
   -------------------------------------------------------------------------- */
.word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.word > span { display: inline-block; transform: translateY(105%); animation: fbs-word .7s cubic-bezier(.2,.8,.2,1) both; }
@keyframes fbs-word { from { transform: translateY(105%); } to { transform: none; } }
.rise { animation: fbs-rise .7s cubic-bezier(.2,.8,.2,1) both; }
@keyframes fbs-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.hub-card.reveal.is-in:hover, .hub-card.reveal.is-in:focus-within { transform: translateY(-4px); transition-delay: 0ms !important; }
/* a slow breathing glow behind the hero */
.has-motion .hub-hero--center { background-size: 140% 140%, auto; animation: fbs-glow 14s ease-in-out infinite alternate; }
@keyframes fbs-glow { from { background-position: 30% 0%, 0 0; } to { background-position: 70% 0%, 0 0; } }
.btn { transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
@media (prefers-reduced-motion: reduce) {
  .word > span, .rise { animation: none; transform: none; opacity: 1; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .btn:hover, .btn:active { transition: none; transform: none; }
}

/* MOBILE MENU. A blurred header traps the menu inside the header's own
   height, so the blur is desktop-only. The menu opens to fit every link,
   the page behind dims, and a tap outside (or Close) returns to the page. */
@media (max-width: 939px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .nav-panel { inset: 74px 0 auto 0; max-height: calc(100dvh - 74px); padding: 8px var(--gutter) 24px; border-radius: 0 0 24px 24px; box-shadow: 0 0 0 100vmax rgba(0,0,0,.4); }
  .nav-panel a { font-size: 1.2rem; padding: 14px 0; }
  .nav-panel li:last-child { border-bottom: 0; }
  .nav-panel .btn { margin-top: 16px; }
}
.nav-panel a.btn { display: flex; color: var(--brand-white); font-size: 1rem; padding: 14px 20px; text-align: center; justify-content: center;
}
