/* legibility.css: loaded last on every light page.
   1. Type scales up on large and 4K screens (everything sized in rem follows).
   2. The scanlines scale with the type, and are a touch lighter, so they stop cutting through small text.
   3. Small and thin text gets more weight and contrast so it stays readable under the lines. */

/* 1. Large screens. 16px up to 1920 wide, then grows steadily: about 21px at 2560, 32px at 3840,
      so a 4K screen shows the page at the same proportions as a normal one. Column widths follow. */
@media (min-width: 1921px) {
  html { font-size: calc(16px + (100vw - 1920px) * 0.00833); }
}
.sv-body { max-width: 47.5rem; }
.sv-body.wide { max-width: 67.5rem; }
.cs-container { max-width: 56.25rem; }
.sv-dek, .sv-cta .cta-desc, .sv-cta .cta-title { max-width: 39rem; }
.sv-proof { max-width: 47.5rem; }
.sv-pull { max-width: 34rem; }
.arch-intro { max-width: 46rem; }

/* 2. Scanlines: same look at normal size (a line every 4px), proportionally thicker on big screens. */
.scanline-overlay {
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 0.125rem,
    rgba(0, 0, 0, 0.055) 0.1875rem,
    rgba(0, 0, 0, 0.055) 0.25rem
  );
}

/* 3a. Body and descriptive text: darker, and never the thinnest weight. */
.sv-dek, .hm-dek,
.sv-body p, .sv-body li,
.sv-tier .t-desc, .sv-tier .t-list li,
.sv-feat .f-desc, .sv-ap .ap-desc, .sv-who-item .w-desc,
.sv-faq-item .faq-a, .sv-faq-item p, .sv-faq-item .faq-q,
.sv-cta .cta-desc,
.hm-box li, .hm-card .c-desc, .hm-facts li,
.cs-body p, .cs-body li, .cs-dek, .ct-dek,
.wf-sec p, .proj-desc, .project-summary,
.cu-body p, .cu-body li, .sp-foot-note {
  opacity: 0.92;
  font-weight: 450;
}
.sv-body p.lede, .cs-body p.lede { opacity: 1; font-weight: 500; }

/* Small descriptive text was 0.85rem at half opacity; give it size as well as weight. */
.sv-tier .t-list li, .sv-feat .f-desc, .sv-ap .ap-desc, .sv-who-item .w-desc,
.sv-faq-item .faq-a, .hm-card .c-desc {
  font-size: 0.95rem;
  line-height: 1.6;
}
.sv-faq-item p { font-size: 1rem; }

/* 3b. Small monospace labels: Courier's hairline strokes vanish under the lines, so bold, larger and darker. */
.sv-tag, .sv-proof, .sv-scroll,
.sv-body h2 .num, .cs-num, .cs-tag, .ct-tag, .cs-meta, .ct-meta,
.sv-tier .t-for, .sv-tier .t-include, .sv-tier .t-name .rec, .sv-tier a,
.sv-feat .f-num, .sv-ap .ap-num, .sv-who-item .w-label,
.sv-media figcaption, .sv-cta .cta-label, .sv-cta .cta-note,
.hm-next, .hm-more, .hm-facts li b, .hm-film figcaption, .hm-film figcaption span,
.hm-box h3, .hm-card .c-kind, .fq-toc,
.project-meta, .ar-action, .meta-label, .wf-stat .stat-label, .f-tag, .f-label, .card-label {
  font-weight: 700;
  opacity: 0.85;
}
.sv-tag, .sv-proof, .sv-body h2 .num, .cs-num,
.sv-tier .t-for, .sv-tier .t-include, .sv-tier a,
.sv-who-item .w-label, .sv-media figcaption, .sv-cta .cta-label, .sv-cta .cta-note,
.hm-next, .hm-more, .hm-film figcaption, .hm-box h3, .hm-card .c-kind, .fq-toc {
  font-size: 0.74rem;
  letter-spacing: 0.07em;
}
.hm-facts li b, .sv-tier .t-name .rec, .sv-feat .f-num { font-size: 0.68rem; }
.sv-tier .t-for, .hm-card .c-kind, .hm-film figcaption a { opacity: 1; }

/* Buttons: same treatment so the label reads at a glance. */
.sv-btn { font-size: 0.76rem; }

/* "What to expect" block above each call to action (built by tools/next_steps.py) */
.wm-next { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 3rem; margin: 3rem 0 2rem; padding-top: 1.6rem; border-top: 2px solid #1a1a1a; text-align: left; }
.wm-next h3 { font-family: 'Courier New', monospace; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: #d43e35; margin: 0 0 0.9rem; }
.wm-next ol { list-style: none; counter-reset: wm; margin: 0; padding: 0; }
.wm-next li { counter-increment: wm; position: relative; padding: 0.75rem 0 0.75rem 2.4rem; border-top: 1px solid rgba(0,0,0,0.14); margin: 0; opacity: 1; }
.wm-next li::before { content: counter(wm, decimal-leading-zero); position: absolute; left: 0; top: 0.85rem; font-family: 'Courier New', monospace; font-size: 0.78rem; font-weight: 700; opacity: 0.6; }
.wm-next li b { display: block; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.wm-next li span { display: block; font-size: 0.96rem; line-height: 1.5; font-weight: 450; margin-top: 0.2rem; opacity: 0.9; }
@media (max-width: 768px) { .wm-next { grid-template-columns: 1fr; } }
