/* ==========================================================================
   INFLUENZO — overrides on top of ReelNinja's tokens.css + page.css
   Same black/white system. One deep red accent, used sparingly:
     - a few words in the hero headline
     - the small section markers (index number + short rule)
     - link hover underlines
     - the active nav item
     - the primary button's hover state (the resting button stays paper)
     - the header's reading-progress line and the REC light in the hero frame
   Everything else stays ink, paper and grey.
   ========================================================================== */

:root {
  /* Deep red for paper grounds.
     7.75:1 on --paper-100, 7.23:1 on --paper-200, 6.55:1 on --paper-300. AA. */
  --accent: #9b1c2c;
  /* The same red, lifted for ink grounds, where #9b1c2c would only reach 2.45:1.
     5.16:1 on --ink-900, 4.80:1 on --ink-800. AA. */
  --accent-on-ink: #e0505e;
  /* Paper text on the deep red: 7.75:1. Used for the primary button hover. */
  --accent-text: #fafafa;

  /* Whatever ground an element sits on, --accent-here is the readable one. */
  --accent-here: var(--accent);
}
/* ReelNinja has no OS dark mode: light and dark are fixed paper and ink bands.
   The accent follows the band it is on instead of a media query. */
.band--ink, .site-head, footer.band--ink { --accent-here: var(--accent-on-ink); }
.band--paper, .band--paper-alt { --accent-here: var(--accent); }

/* ---------- the accent, in its few places ---------- */
.hl { color: var(--accent-here); }

.sec-mark {
  display: flex; align-items: center; gap: var(--s-3);
  color: var(--accent-here); margin-bottom: var(--s-6);
}
.sec-mark::before {
  content: ""; width: 1.5rem; height: 1px; background: currentColor; flex: 0 0 auto;
}

.link-u:hover, .link-u:focus-visible { border-color: var(--accent-here); }
.band--ink .link-u:hover, .site-foot .link-u:hover { border-color: var(--accent-on-ink); }
.prose a:hover { text-decoration-color: var(--accent); }
.post-card__title a:hover { text-decoration-color: var(--accent); }

.site-nav a.nav-link[aria-current="page"],
.site-head.is-open .nav-link[aria-current="page"] { color: var(--accent-on-ink); }

.btn--paper:hover { background: var(--accent); color: var(--accent-text); }

/* Deep red where it is large or not text (headline words, rules, dots):
   #c42b3c is 3.54:1 on ink, above the 3:1 AA floor for large text and
   graphics. Small text on ink keeps the lighter --accent-on-ink. */
.band--ink .hl, .site-head .hl { color: #c42b3c; }
.band--ink .sec-mark::before { background: #c42b3c; }
.progress { background: #c42b3c; }
.vf__rec::before { background: #c42b3c; }

/* ---------- small structural additions ---------- */
section[id], [id].guide__sec { scroll-margin-top: 5.5rem; }

/* hero frame: what the tools do to a piece of footage */
.flow__steps { margin-top: var(--s-2); border-top: 1px solid var(--line-invert); }
.flow__steps li {
  display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: var(--s-1) var(--s-4);
  align-items: baseline; padding-block: var(--s-4); border-bottom: 1px solid var(--line-invert);
}
.flow__idx { color: var(--text-invert-muted); }
.flow__name { font-weight: 500; letter-spacing: -0.012em; }
.flow__job { grid-column: 2; font-size: var(--t-small); color: var(--text-invert-muted); }

/* two-column intro: heading left, text right */
.split { display: grid; gap: var(--s-8) clamp(2.5rem, 6vw, 5rem); grid-template-columns: minmax(0, 1fr); }
.split > * { min-width: 0; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } }
.split__body > * + * { margin-top: var(--s-5); }
.split__body p { font-size: 1.125rem; line-height: 1.65; max-width: 62ch; }
.split__body p.muted { font-size: var(--t-body); }

/* mission and vision, set as statements */
.mv { display: grid; gap: var(--s-12) clamp(2.5rem, 6vw, 5rem); grid-template-columns: minmax(0, 1fr); }
.mv > * { min-width: 0; }
@media (min-width: 900px) { .mv { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.statement {
  margin-top: var(--s-5);
  font-family: var(--font-serif); font-size: clamp(1.25rem, 2.1vw, 1.5rem); line-height: 1.5;
  color: var(--text-invert); max-width: 40ch;
}

/* products: six cards in the guides grid */
.post-card__status { color: var(--text-faint); }
.post-card .small a { color: var(--text); border-bottom: 1px solid var(--line-strong); }
.post-card .small a:hover { border-color: var(--accent); }

/* earlier products */
.guide__sec .terms, .terms--wide { max-width: 52rem; }

/* clients: three short descriptions */
.layers--people .layer__name a { border-bottom: 1px solid var(--line-strong); }
@media (min-width: 900px) { .layers--two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.layer__role { color: var(--text-faint); }

/* achievements on ink */
.facts {
  margin-top: var(--s-10); display: grid; gap: 0 var(--s-10);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 760px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.facts li {
  padding-block: var(--s-5); border-top: 1px solid var(--line-invert);
  font-size: 1rem; line-height: 1.6; color: var(--text-invert-muted);
}
.facts strong { color: var(--text-invert); font-weight: 500; }

/* work with us */
.join { margin-top: var(--s-12); max-width: 46rem; }
.join p { margin-top: var(--s-3); color: var(--text-muted); }

/* the contact close */
.close__mail { margin-top: var(--s-6); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); font-size: 1.0625rem; }
.close__mail .link-u { display: inline-block; padding-block: var(--s-2); }

/* footer: products line */
.site-foot__guides .foot__label { color: var(--text-invert-muted); padding-block: var(--s-3); }

/* ---------- articles ---------- */
.post__meta a { color: var(--text-invert); border-bottom: 1px solid var(--line-invert-strong); }
.post__meta a:hover { border-color: var(--accent-on-ink); }
.post__meta + .post__meta { margin-top: calc(var(--s-3) * -1); }
.prose h3 { font-size: 1.125rem; font-weight: 500; letter-spacing: -0.012em; line-height: 1.35; margin-top: var(--s-8); }
.prose h2 + h3 { margin-top: var(--s-6); }
.prose h3 + p { margin-top: var(--s-2); }
.prose .compare-wrap { margin-top: var(--s-6); }
.prose .compare { min-width: 0; }
.prose .compare th, .prose .compare td { font-size: 0.9375rem; }
.prose .compare thead th:first-child { width: 26%; }
.prose .author { margin-top: var(--s-12); }
.prose .author p { font-size: var(--t-small); line-height: 1.6; }
.prose .sources { display: block; }
.prose .sources, .prose .sources a { color: var(--text-muted); }

/* screen-reader-only text */
.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;
}
