/* ============================================================
   page.css, Shared styling for About + Get Involved
   Intro blocks, numbered sections, link lists. Single text column.
   Builds on shared.css tokens; does not redefine them.
   ============================================================ */

@layer page;

@layer page {
  /* ---- page shell ---- */
  .page {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: clamp(48px, 7vw, 96px) var(--gutter-x) clamp(40px, 6vw, 80px);
  }

  .page-inner {
    max-width: 64ch;
  }

  /* ---- page head (eyebrow + h1 + intro), narrower than grid ---- */
  .page-head {
    max-width: 64ch;
    margin-bottom: clamp(28px, 4vw, 48px);
  }

  /* ---- two-column section grid (about + get-involved) ---- */
  .page-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(36px, 5vw, 72px);
    row-gap: clamp(28px, 4vw, 48px);
    align-items: start;
  }
  .page-grid .page-section {
    margin-top: 0;
  }
  @media (max-width: 760px) {
    .page-grid {
      grid-template-columns: 1fr;
      row-gap: clamp(24px, 4vw, 36px);
    }
  }

  /* ---- page header (eyebrow + h1 + intro) ---- */
  .page-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-3);
    display: inline-flex;
    align-items: center;
    gap: 0.65em;
    margin-bottom: clamp(18px, 2vw, 26px);
  }
  .page-eyebrow::before {
    content: "";
    display: inline-block;
    width: 0.55em;
    height: 0.55em;
    background: var(--accent);
    flex-shrink: 0;
  }

  .page-title {
    font-family: var(--font-sans);
    font-size: clamp(2.2rem, 4.4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.035em;
    color: var(--ink);
    margin: 0 0 clamp(18px, 2.5vw, 30px);
    max-width: 18ch;
  }

  .page-lede {
    font-family: var(--font-serif);
    font-size: var(--step-1);
    line-height: 1.5;
    font-style: italic;
    color: var(--ink-2);
    max-width: 56ch;
    margin: 0 0 clamp(36px, 5vw, 56px);
    padding-bottom: clamp(28px, 4vw, 44px);
    border-bottom: 1px solid var(--rule);
  }

  /* ---- numbered section block ---- */
  .page-section {
    margin-top: clamp(32px, 4.5vw, 56px);
  }
  .page-section:first-of-type {
    margin-top: 0;
  }

  .page-section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-3);
    display: inline-flex;
    align-items: center;
    gap: 0.8em;
    margin-bottom: 10px;
  }
  .page-section-eyebrow::before {
    content: "";
    display: inline-block;
    width: 1.8em;
    height: 2px;
    background: var(--accent);
    flex-shrink: 0;
  }

  .page-section-title {
    font-family: var(--font-sans);
    font-size: clamp(1.35rem, 2vw, 1.65rem);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.022em;
    color: var(--ink);
    margin: 0 0 clamp(12px, 1.4vw, 18px);
  }

  .page-section-body {
    font-family: var(--font-serif);
    font-size: var(--step-0);
    line-height: 1.68;
    color: var(--ink);
  }
  .page-section-body p + p {
    margin-top: 1em;
  }
  .page-section-body a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: var(--ink-4);
    transition: color 120ms ease, text-decoration-color 120ms ease;
  }
  .page-section-body a:hover {
    color: var(--accent-deep);
    text-decoration-color: var(--accent);
  }

  /* ---- source link list (About §4, Get Involved §4) ---- */
  .page-list {
    list-style: none;
    margin: 1.1em 0 0;
    padding: 0;
    display: grid;
    gap: 0.9em;
    border-top: 1px solid var(--rule);
    padding-top: 1.1em;
  }
  .page-list li {
    font-family: var(--font-serif);
    line-height: 1.5;
    padding-left: 1.1em;
    position: relative;
  }
  .page-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.78em;
    width: 0.5em;
    height: 1px;
    background: var(--accent);
  }
  .page-list a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: var(--ink-4);
  }
  .page-list a:hover {
    color: var(--accent-deep);
    text-decoration-color: var(--accent);
  }
}

/* ---- mobile refinements ---- */
@media (max-width: 640px) {
  .page {
    padding-top: clamp(32px, 8vw, 48px);
  }
  .page-title {
    font-size: clamp(1.9rem, 9vw, 2.4rem);
    max-width: 100%;
  }
  .page-lede {
    font-size: var(--step-1);
  }
}
