/* Home-page-only color study. Keep the imported structure and typefaces intact. */
:root {
  --editorial-ink: oklch(0.29 0.003 60);
  --editorial-ink-2: oklch(0.33 0.003 60);
  --editorial-paper: oklch(0.977 0.005 85);
  --editorial-surface: oklch(0.991 0.002 85);
  --editorial-stone: oklch(0.946 0.006 85);
  --editorial-red: #C82E33;
  --editorial-red-hover: #A8242A;
  --editorial-red-light: #E5555A;
  --editorial-red-tint: #F7E8E8;
  --editorial-muted: oklch(0.46 0.006 70);
  --editorial-muted-dark: oklch(0.84 0.005 85);
  --editorial-line: oklch(0.86 0.007 85);
  --editorial-line-dark: color-mix(in oklab, var(--editorial-surface) 24%, transparent);
  --editorial-hero-overlay: linear-gradient(180deg,
    color-mix(in oklab, var(--editorial-ink) 58%, transparent) 0%,
    color-mix(in oklab, var(--editorial-ink) 38%, transparent) 35%,
    color-mix(in oklab, var(--editorial-ink) 91%, transparent) 78%,
    var(--editorial-ink) 100%);
}

body.home-editorial {
  --ink: var(--editorial-ink);
  --ink-2: var(--editorial-ink-2);
  --ink-3: var(--editorial-ink-2);
  --red: var(--editorial-red);
  --red-dark: var(--editorial-red-hover);
  --red-on-dark: var(--editorial-red-light);
  --paper: var(--editorial-paper);
  --white: var(--editorial-surface);
  --stone: var(--editorial-stone);
  --muted: var(--editorial-muted);
  --muted-dark: var(--editorial-muted-dark);
  --line: var(--editorial-line);
  --line-dark: var(--editorial-line-dark);
}

.home-editorial main h1,
.home-editorial main h2,
.home-editorial main h3,
.home-editorial .accent { letter-spacing: 0; }
.home-editorial .hero,
.home-editorial .dark,
.home-editorial .cta-final { color: var(--white); }
.home-editorial .hero-media::after { background: var(--editorial-hero-overlay); }
.home-editorial .hero .lede,
.home-editorial .dark .lede,
.home-editorial .dark .checks,
.home-editorial .site-footer,
.home-editorial .site-footer .legal { color: var(--muted-dark); }
.home-editorial .site-header.over {
  background: linear-gradient(var(--ink), color-mix(in oklab, var(--ink) 0%, transparent));
}
.home-editorial .site-header.over.menu-open { background: var(--ink); }
body.home-editorial main .section h2:not(.lines-h):not(.sr-only)::after,
.home-editorial main .cta-final h2::after,
.home-editorial .ind-card h3::after { background: var(--red); }
.home-editorial .dark h2::after,
.home-editorial main .cta-final h2::after { background: var(--red-on-dark); }
.home-editorial .diff-ico { background: var(--editorial-red-tint); color: var(--red); }
/* Direction A: card numbers in the same clean display face as the titles,
   not the italic serif, so the section reads as one family.
   The scroll animation adds html.m2 and .is-active/.is-past on the cards,
   and restyle.css re-declares the serif for those states at higher
   specificity, so those states have to be covered here too. */
body.home-editorial main .diff .diff-card .diff-n,
body.home-editorial main .diff .diff-card.is-active .diff-n,
body.home-editorial main .diff .diff-card.is-past .diff-n,
html.m2 body.home-editorial main .diff .diff-card .diff-n,
html.m2 body.home-editorial main .diff .diff-card.is-active .diff-n,
html.m2 body.home-editorial main .diff .diff-card.is-past .diff-n {
  color: var(--red);
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.1rem, 3vw, 2.7rem);
  letter-spacing: .01em;
  opacity: .9;
}
/* Sentence case on the six difference-card titles: the base h3 rule
   uppercases everything, so this has to win over it and over the
   scroll-animation state classes. */
body.home-editorial main .diff .diff-card h3,
body.home-editorial main .diff .diff-card.is-active h3,
body.home-editorial main .diff .diff-card.is-past h3,
html.m2 body.home-editorial main .diff .diff-card h3,
html.m2 body.home-editorial main .diff .diff-card.is-active h3,
html.m2 body.home-editorial main .diff .diff-card.is-past h3 {
  text-transform: none;
  letter-spacing: -.005em;
}
.home-editorial .diff .diff-card,
.home-editorial .diff .diff-card:nth-child(n) { background: var(--paper); }
.home-editorial .diff .diff-card:hover,
.home-editorial .diff .diff-card.open { background: var(--white); }
.home-editorial .ind-card:hover .more,
.home-editorial .ind-card:focus-visible .more { background: var(--red); border-color: var(--red); }
.home-editorial .tech-band { background: var(--stone); color: var(--ink); }
.home-editorial .tech-band h2 { color: var(--ink); }
.home-editorial .tech-band .accent { color: var(--red); }
.home-editorial .tech-band .lede { color: var(--muted); }
.home-editorial .dark .offices .office { background: var(--ink-2); border-color: var(--line-dark); }
.home-editorial .dark .offices .office address a,
.home-editorial .dark .offices .office.soon p { color: var(--muted-dark); }
.home-editorial .cta-final .eyebrow,
.home-editorial .purpose-cite { color: var(--red-on-dark); }
.home-editorial .cta-final .split > div > p:not(.eyebrow) { color: var(--muted-dark) !important; }
.home-editorial .btn-primary,
.home-editorial .nav-cta a,
.home-editorial .m-bar a { color: var(--white); }
.home-editorial .m-bar .m-claim { background: var(--ink); color: var(--white); }
.home-editorial .site-footer h2,
.home-editorial .site-footer a { color: var(--white); }
.home-editorial .purpose .w { opacity: 1; }
@media (min-width:1081px) {
  .home-editorial .nav-bar { gap: 10px; }
  .home-editorial .nav-actions { margin-left: 8px; }
  .home-editorial .primary-nav .nav-tf { margin-left: 8px; padding-left: 12px; }
  .home-editorial .primary-nav .nav-cta { margin-left: 6px; }
}
/* Full-screen first cover, balanced on phone and computer */
.home-editorial .hero{min-height:100vh;min-height:100svh;align-items:center}
.home-editorial .hero .wrap{padding-top:clamp(120px,14vh,170px);padding-bottom:clamp(56px,8vh,96px)}
.home-editorial .hero h1.hero-title{font-size:clamp(2.3rem,5vw,4.6rem);max-width:16ch}
.home-editorial .hero .lede{margin-top:clamp(22px,4vh,40px)}
@media (max-width:760px){
  .home-editorial .hero{min-height:100svh;align-items:center}
  .home-editorial .hero .wrap{padding-top:110px;padding-bottom:48px}
  .home-editorial .hero h1.hero-title{font-size:clamp(2.1rem,10vw,2.8rem)}
  .home-editorial .hero .lede{margin-top:20px}
}
