/* =========================================================
   Shared page primitives for Screens 02–07 and the footer.
   Loaded after hero.css; reuses its tokens (--ink, --paper,
   --red, --gutter, fonts) and the accepted .cta component.
   ========================================================= */

:root {
  --paper-3: #f3f0ea;
  --paper-4: #f4f1eb;
  --ink-3: #0d0d0f;
  --red-bright: #f22135;
  --section-rule: 8px;
}
@media (max-width: 599px) {
  :root { --section-rule: 6px; }
}

/* — anchor targets clear the sticky header — */
.screen, .site-footer, .next-anchor { scroll-margin-top: var(--header-h); }

/* — section shell — */
.screen {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.screen::before {
  content: "";
  position: absolute;
  z-index: 7;
  top: 0;
  left: 0;
  right: 0;
  height: var(--section-rule);
  background: var(--red);
  pointer-events: none;
}
.screen--light { background: var(--paper-2); color: var(--ink-2); }
.screen--dark { background: var(--ink); color: var(--paper); }

/* — section rubric (eyebrow with red rule) — */
.rubric {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  white-space: nowrap;
}
.rubric::before {
  content: "";
  display: block;
  flex: none;
  width: 38px;
  height: 3px;
  background: var(--red);
}
.screen--light .rubric { color: rgba(23, 23, 25, .70); }
.screen--dark .rubric { color: rgba(255, 255, 255, .70); }
@media (max-width: 599px) {
  .rubric { font-size: 10.5px; letter-spacing: .135em; gap: 10px; }
  .rubric::before { width: 25px; height: 2.5px; }
}

/* — section title / lead — */
.screen__title {
  margin: 0;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.045em;
  text-wrap: pretty;
}
.screen__lead {
  margin: 0;
  line-height: 1.5;
  letter-spacing: -.005em;
  text-wrap: pretty;
}
.screen--light .screen__lead { color: rgba(23, 23, 25, .72); }
.screen--dark .screen__lead { color: rgba(255, 255, 255, .74); }

/* art-directed line breaks: block on wide screens, natural flow below 600px */
.ln { display: block; }
@media (max-width: 599px) {
  .ln { display: inline; }
  .ln--m { display: block; }
}

/* — accepted CTA: large variant (Screens 03, 05, 06) and light-surface focus — */
.cta--lg {
  max-width: 440px;
  height: clamp(66px, 5.3vw, 76px);
  font-size: clamp(18px, 1.46vw, 21px);
}
.cta--lg .cta__arrow { width: 54px; height: 54px; }
@media (max-width: 899px) {
  .cta--lg { height: 70px; font-size: 19px; }
}
@media (max-width: 599px) {
  .cta--lg { max-width: none; height: 66px; font-size: 17px; }
  .cta--lg .cta__arrow { width: 46px; height: 46px; }
}
.screen--light .cta:focus-visible { outline: 3px solid var(--ink-2); outline-offset: 3px; }
.screen--light .cta { box-shadow: 0 8px 0 rgba(67, 0, 9, .20), 0 14px 42px rgba(227, 27, 43, .16); }
.screen--light .cta:hover,
.screen--light .cta:focus-visible { box-shadow: 0 9px 0 rgba(67, 0, 9, .22), 0 18px 48px rgba(227, 27, 43, .26); }

/* — supporting line under a CTA — */
.cta-note {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  text-wrap: pretty;
}
.screen--light .cta-note { color: rgba(23, 23, 25, .66); }
.screen--dark .cta-note { color: rgba(255, 255, 255, .66); }

/* — editorial serif accent — */
.serif {
  font-family: var(--font-serif);
  font-weight: 700;
  font-style: italic;
}

/* — red-bar statement (quote / assurance) — */
.barline {
  margin: 0;
  padding-left: 22px;
  border-left: 5px solid var(--red);
}
@media (max-width: 599px) {
  .barline { padding-left: 16px; border-left-width: 4px; }
}

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