/* ------------------------------------------------------------
   Tokens (light only)
   ------------------------------------------------------------ */
:root {
  color-scheme: light;

  --eggplant: #4a2545;
  --eggplant-deep: #331830;
  --mauve: #8a6a84;
  --mist: #efeaee;         /* hero band */
  --paper: #faf9f7;        /* page */
  --white: #ffffff;
  --ink: #221c21;
  --muted: #5f5860;
  --rule: #e2dce1;
  --rule-strong: #c9bfc7;

  --font: "Public Sans", Arial, sans-serif;

  --gutter: clamp(1rem, 4vw, 3rem);
  --reading: 46rem;
  --frame: 76rem;
}

/* ------------------------------------------------------------
   Base
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (min-width: 1100px) { html { scroll-padding-top: 1.5rem; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4 { margin: 0; color: var(--ink); }
p { margin: 0 0 1rem; }

a { color: var(--eggplant); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--eggplant); outline-offset: 2px; border-radius: 2px; }

.muted { color: var(--muted); }

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -3rem;
  z-index: 50;
  padding: 0.5rem 0.75rem;
  background: var(--eggplant);
  color: var(--white);
}
.skip-link:focus { top: 0.5rem; }

/* Small uppercase label used above headings */
.label {
  margin: 0 0 0.75rem;
  color: var(--mauve);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------
   Masthead
   ------------------------------------------------------------ */
.masthead {
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}
.masthead .inner {
  width: min(100% - 2 * var(--gutter), var(--frame));
  margin-inline: auto;
  padding-block: 1rem;
}
.site-name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.site-name span { font-weight: 400; color: var(--muted); }

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
  background: var(--mist);
  border-bottom: 1px solid var(--rule-strong);
  padding-block: clamp(3rem, 8vw, 6rem);
}
.hero .inner {
  width: min(100% - 2 * var(--gutter), var(--frame));
  margin-inline: auto;
}
.hero-title {
  max-width: 17ch;
  color: var(--eggplant);
  font-size: clamp(2.4rem, 6.5vw, 4.25rem);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.04;
}
.hero-title strong {
  display: block;
  font-weight: 800;
  color: var(--eggplant-deep);
}
.hero-lede {
  max-width: 60ch;
  margin-top: 1.75rem;
  font-size: 1.125rem;
  line-height: 1.6;
}
.hero-lede p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------
   Page frame: section nav + sections
   ------------------------------------------------------------ */
.section-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 1.5rem;
  padding-inline: var(--gutter);
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}
.section-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}
.section-nav a:hover { color: var(--eggplant); border-bottom-color: var(--eggplant); }
@media (min-width: 701px) { .section-nav { justify-content: flex-start; gap: 0 2rem; } }

.sections > section {
  width: min(100% - 2 * var(--gutter), var(--reading));
  margin-inline: auto;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.sections > section + section { border-top: 1px solid var(--rule); }

@media (min-width: 1100px) {
  .frame {
    display: grid;
    grid-template-columns: 11rem minmax(0, 1fr);
    column-gap: clamp(2rem, 4vw, 4rem);
    width: min(100% - 2 * var(--gutter), var(--frame));
    margin-inline: auto;
  }
  .section-nav {
    top: 1.5rem;
    align-self: start;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    margin-top: 4rem;
    padding: 0;
    background: none;
    border: 0;
  }
  .section-nav::before {
    content: "On this page";
    margin-bottom: 0.75rem;
    color: var(--mauve);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }
  .section-nav a {
    min-height: 40px;
    padding-left: 1rem;
    border-bottom: 0;
    border-left: 2px solid var(--rule);
  }
  .section-nav a:hover { border-left-color: var(--eggplant); }
  .sections > section { width: auto; max-width: var(--reading); margin-inline: 0; }
  .sections > section + section { border-top: 1px solid var(--rule); }
}

@media (max-width: 700px) {
  .section-nav { gap: 0 0.5rem; }
  .section-nav a { min-height: 44px; font-size: clamp(0.75rem, 3.4vw, 0.9375rem); }
}

/* Section headings */
.section-title {
  margin-bottom: 1.25rem;
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.section-intro {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.0625rem;
}
.subhead {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Buttons */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border: 2px solid var(--eggplant);
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}
.button-primary { background: var(--eggplant); color: var(--white); }
.button-primary:hover { background: var(--eggplant-deep); border-color: var(--eggplant-deep); }
.button-secondary { background: var(--white); color: var(--eggplant); }
.button-secondary:hover { background: var(--mist); }
@media (max-width: 480px) { .button { flex: 1 1 100%; } }

/* ------------------------------------------------------------
   Statement (letter)
   ------------------------------------------------------------ */
.letter {
  margin-top: 1.75rem;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--eggplant);
  font-size: 1.0625rem;
  line-height: 1.7;
}
.letter-subject {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.letter .salutation { font-style: italic; }
.letter .signoff { margin: 1.5rem 0 0; font-weight: 600; }

/* ------------------------------------------------------------
   Demands
   ------------------------------------------------------------ */
.numbered {
  list-style: none;
  counter-reset: demand;
  margin: 2rem 0 0;
  padding: 0;
  border-bottom: 1px solid var(--rule);
}
.numbered li {
  counter-increment: demand;
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 0.75rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--rule);
}
.numbered li::before {
  content: counter(demand, decimal-leading-zero);
  color: var(--eggplant);
  font-size: 1.375rem;
  font-weight: 300;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.numbered p { margin: 0; }
.numbered strong { font-weight: 700; color: var(--ink); }

.endorse {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--mist);
  border-left: 4px solid var(--eggplant);
}
.endorse p:last-child { margin-bottom: 0; }
.endorse .count {
  font-size: 1.125rem;
  font-weight: 700;
}

/* ------------------------------------------------------------
   Timeline
   ------------------------------------------------------------ */
.timeline {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0 0 0 1.5rem;
  border-left: 2px solid var(--rule-strong);
}
.timeline li {
  position: relative;
  padding: 0 0 1.75rem;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: calc(-1.5rem - 6px);
  top: 0.35rem;
  width: 10px;
  height: 10px;
  background: var(--paper);
  border: 2px solid var(--mauve);
}
.timeline li.key::before { background: var(--eggplant); border-color: var(--eggplant); }
.timeline .date {
  margin: 0 0 0.25rem;
  color: var(--eggplant);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.timeline .event p { margin-bottom: 0.4rem; }
.timeline .event p:last-child { margin-bottom: 0; }
.timeline .source { font-size: 0.875rem; color: var(--muted); }

/* The months between Childswork learning of the allegation and telling
   families: a shaded band with a heavy eggplant rule over the timeline line. */
.timeline li.silent {
  margin-left: calc(-1.5rem - 3px);
  padding: 0 1rem 1.75rem 1.5rem;
  background: var(--mist);
  border-left: 4px solid var(--eggplant);
}
.timeline li.silent::before { left: -9px; }
.timeline li.silent-start { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.timeline li.silent-start::before { display: none; }
.timeline li.silent-end { padding-bottom: 1.25rem; margin-bottom: 1.75rem; }
.silent-label {
  margin: 0;
  color: var(--eggplant-deep);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
}
.silent-label span {
  display: block;
  color: var(--eggplant);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

/* ------------------------------------------------------------
   Resources
   ------------------------------------------------------------ */
.feature {
  margin-top: 2rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--eggplant);
}
.feature h3 {
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.feature .links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--rule);
  font-weight: 600;
}

.contact {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.4rem 1.5rem;
  margin: 0;
}
.contact dt { font-weight: 600; }
.contact dd { margin: 0; }
@media (max-width: 540px) {
  .contact { grid-template-columns: 1fr; gap: 0; }
  .contact dd { margin-bottom: 0.75rem; }
}

.providers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}
@media (max-width: 640px) { .providers { grid-template-columns: 1fr; } }
.providers li {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 4px;
}
.providers h4 {
  margin-bottom: 0.2rem;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.providers h4 a { color: var(--ink); text-decoration: none; }
.providers h4 a:hover { color: var(--eggplant); text-decoration: underline; }
.providers p { margin: 0 0 0.35rem; font-size: 0.9375rem; }
.providers .ages { color: var(--eggplant); font-size: 0.8125rem; font-weight: 600; }
.providers .insurance {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.8125rem;
}
.providers a { overflow-wrap: anywhere; }

.report {
  margin-top: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--rule);
}

/* ------------------------------------------------------------
   Media
   ------------------------------------------------------------ */
.media-card {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--eggplant);
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.site-footer {
  margin-top: 2rem;
  background: var(--eggplant-deep);
  color: #e9dfe7;
  font-size: 0.875rem;
}
.site-footer .inner {
  width: min(100% - 2 * var(--gutter), var(--frame));
  margin-inline: auto;
  padding-block: 2.5rem 3rem;
}
.site-footer a { color: var(--white); }
.site-footer .site-name { margin-bottom: 0.75rem; color: var(--white); }

/* ------------------------------------------------------------
   Print
   ------------------------------------------------------------ */
@media print {
  .section-nav, .skip-link { display: none !important; }
  .hero, .masthead, .site-footer { background: #fff; color: #000; }
  .site-footer .site-name, .site-footer a { color: #000; }
  .frame { display: block; }
  body { font-size: 11pt; }
  .sections > section { padding-block: 1.5rem; max-width: none; }
  .numbered li, .timeline li, .providers li { break-inside: avoid; }
  .providers { grid-template-columns: 1fr 1fr; }
  a { color: inherit; text-decoration: none; }
}
