/* =====================================================
   TYPE & RHYTHM — the single scale for the whole site.
   Loaded last on every page, so a role's size is set here
   and nowhere else.
   Scale: 12 · 14 · 16 · 18 · 20 · 24 · 30 · 38 · 52
   ===================================================== */

:root {
  --fs-12: 0.75rem;
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-18: clamp(1.0625rem, 1.3vw, 1.125rem);
  --fs-20: clamp(1.125rem, 1.4vw, 1.25rem);
  --fs-24: clamp(1.25rem, 1.7vw, 1.5rem);
  --fs-30: clamp(1.4rem, 2.2vw, 1.875rem);
  --fs-38: clamp(1.75rem, 3vw, 2.375rem);
  --fs-52: clamp(2.25rem, 4.4vw, 3.25rem);
  --radius-card: 14px;
  --gap-card: 1.25rem;
  --pad-card: 1.5rem;
  --space-section: clamp(4rem, 8vw, 6rem);
}

body { font-size: var(--fs-16); line-height: 1.7; }

/* ── 52: page titles ────────────────────────────────── */
.page-hero__title, .xp-hero h1, .ar-title, .cs-hero h1 {
  font-size: var(--fs-52) !important; line-height: 1.08 !important; letter-spacing: -0.025em !important;
}

/* ── 38: section titles and big numbers ─────────────── */
.section__title, .xp-head h2, .cs-section h2 {
  font-size: var(--fs-38) !important; line-height: 1.15 !important; letter-spacing: -0.02em !important;
}
.contact .section__title { max-width: 14ch; }
.about-split__title { font-size: min(2.375rem, 3.7cqi); }
@media (max-width: 700px) { .about-split__title { font-size: var(--fs-30); } }
.impact-card__num, .story__pull { font-size: var(--fs-38); }

/* ── 30: feature titles ─────────────────────────────── */
.feature__title, .story--lead .story__title, .edu h3, .index__title{
  font-size: var(--fs-30) !important; line-height: 1.2; letter-spacing: -0.02em;
}

/* ── 24: primary card titles ────────────────────────── */
.work__title, .role__card h3, .ar-body__inner h2 {
  font-size: var(--fs-24) !important; line-height: 1.25 !important; letter-spacing: -0.015em !important;
}

/* ── 20: secondary card titles ──────────────────────── */
.program h3, .about-chapter h3, .impact-card h3, .skill h3, .tile__title, .tile--h .tile__title,
.story__title, .entry__title, .xp-row h3, .ar-next__title, .ar-body__inner h3,
.story--quote .story__title, .lightbox__title, .cs-section h3 {
  font-size: var(--fs-20) !important; line-height: 1.3 !important; letter-spacing: -0.01em !important;
}

/* ── 18: lead paragraphs and article reading text ───── */
.hero__lead, .page-hero__lead, .xp-hero__lead, .ar-subtitle, .cs-hero-subtitle, .contact__lead,
.feature__excerpt, .ar-lead, .ar-body__inner p, .ar-body__inner li {
  font-size: var(--fs-18) !important; line-height: 1.75 !important;
}

/* ── 16: body text ──────────────────────────────────── */
.work__desc, .about-split__body > p, .about-chapter p, .impact-card p:last-child,
.role__desc, .role__points li, .edu__courses p, .edu__org, .tile__desc, .entry__excerpt, .lightbox__desc,
.split__lead, .cs-section p, .field input, .field textarea, .contact__item{
  font-size: var(--fs-16) !important; line-height: 1.7 !important;
}


/* ── 14: supporting text, controls, navigation ──────── */
.site-nav__list a, .site-header__cta, .site-footer__nav a, .site-footer__bottom,
.action-link, .seg__btn, .form__topics button, .field label, .form__topics legend, .field__hint,
.work__meta dd, .about-facts dd, .role__when span, .role__org, .tags li, .xp-row p, .xp-row__date,
.entry__date, .entry__meta, .index__count, .search__input,
.ar-next__meta, .ar-byline__info, .ar-byline__name, .impact-photo figcaption,
.cs-overview-value, .cs-step-content p, .cs-tool-use, .cs-outcome-desc, .cs-poster-caption, .ar-toc__item a,
.facts dd, .facts dt, .form__status {
  font-size: var(--fs-14) !important;
}
.btn { font-size: var(--fs-16); }
.role__when strong { font-size: var(--fs-16); }
.cs-step-content h4, .cs-tool-name, .cs-outcome-title { font-size: var(--fs-16) !important; } .ar-kicker, .cs-kicker, .kicker,
.work__index, .work__meta dt, .about-facts dt, .tile__kicker, .story__meta, .edu__when, .edu__courses h4,
.program__when, .contact__item small, .ar-continue__title, .ar-next__label, .ar-toc__title, .ar-share-label,
.cs-section-label, .cs-overview-label, .cs-share-label, .xp-row__tag {
  font-size: var(--fs-12) !important; letter-spacing: 0.1em !important;
}

/* ── Rhythm: one section spacing, card radius and gap ── */
.section, .xp-block { padding-block: var(--space-section); }
.xp-block--alt { padding-inline: 0; }
.about-split { padding-top: var(--space-section); }
.section__head, .xp-head, .index__bar { margin-bottom: clamp(2rem, 4vw, 2.75rem); }

.tile, .story, .work__media, .form, .impact-card, .impact-photo, .about-chapter, .about-split__photo,
.role__card, .program, .skill, .edu, .contact__grid, .ar-next, .feature__media, .cs-tool, .cs-outcome, .ar-hero img {
  border-radius: var(--radius-card) !important;
}
.form { border-radius: 0 !important; }

.impact, .impact-layout, .stories, .programs, .skills, .ar-continue__grid, .about-split__chapters { gap: var(--gap-card); }
.impact-card, .program, .skill, .about-chapter, .ar-next { padding: var(--pad-card); }

/* Remaining roles */
.year__label { font-size: var(--fs-30); }
.cs-step-num { font-size: var(--fs-20) !important; }
.ar-quote { font-size: var(--fs-18) !important; }
.ar-quote cite { font-size: var(--fs-14) !important; }

/* About opening line: sized to sit on two lines across the text column */
.about-split__body { container-type: inline-size; }
.about-split__body > .about-split__lead { max-width: none; width: 100%; font-size: clamp(1.2rem, 4.3cqi, 1.75rem) !important; line-height: 1.3 !important; letter-spacing: -0.015em; text-wrap: balance; }

/* Section titles: capitals everywhere */
.section__title, .xp-head h2, .cs-section h2, .index__title {
  text-transform: uppercase; letter-spacing: -0.015em !important; max-width: 26ch;
}
.contact .section__title { max-width: 14ch; }

/* Writing cards: quieter titles and pull-quote */
.stories .story .story__title { font-size: var(--fs-18) !important; font-weight: 600; line-height: 1.35 !important; letter-spacing: -0.005em !important; }
.stories .story--lead .story__title { font-size: var(--fs-20) !important; }
.stories .story__pull { font-size: var(--fs-24); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.stories .story__meta { font-weight: 600; }

/* Article titles: at most two lines; they may run across the contents rail */
.ar-title { font-size: var(--fs-38) !important; line-height: 1.15 !important; letter-spacing: -0.015em !important; }
@media (min-width: 901px) {
  .ar-header__inner > .ar-title { max-width: none; width: calc(100% + 140px); margin-left: calc((100% - 700px) / 2); margin-right: 0; }
}
@media (max-width: 700px) {
  .ar-title { font-size: 1.2rem !important; letter-spacing: 0 !important; }
}

/* Article header text spans the cover image, edge to edge */
.ar-header__inner { padding-right: 0 !important; container-type: inline-size; }
.ar-header__inner > *, .ar-header__inner > .ar-title {
  width: 100%; max-width: none; margin-left: 0; margin-right: 0;
}
.ar-title { text-wrap: wrap; }
@media (min-width: 701px) {
  .ar-title { font-size: min(2.1rem, 3cqi) !important; }
}

/* ── Plain finish: no lifts, gradients, outlined numbers or counters ── */
.tile:hover, .story:hover, .story--quote:hover, .feature:hover, .impact-card:hover, .ar-next:hover,
.role__card:hover, .program:hover, .skill:hover, .cs-tool:hover, .cs-outcome:hover,
a.work__media:hover, a.feature__media:hover {
  transform: none !important; box-shadow: none !important;
}
.tile:hover, .feature:hover, .impact-card:hover, .ar-next:hover, .role__card:hover, .program:hover,
.skill:hover, a.work__media:hover { border-color: var(--site-orange) !important; }
.site-header__cta, .hero--video .btn--primary, .hero--video .btn--primary:hover, .cs-btn-view {
  background: var(--site-orange) !important; filter: none !important;
}
.site-header__cta:hover, .hero--video .btn--primary:hover, .cs-btn-view:hover { background: var(--site-orange-2) !important; transform: none; }
.year__label { color: var(--site-text-3); -webkit-text-stroke: 0; font-size: var(--fs-20); font-weight: 700; letter-spacing: 0; }
.cs-step-num { color: var(--site-ink) !important; }
.about-chapter { border-top: var(--site-stroke); }
.ar-body__inner h2[id]::before, .ar-toc__item a::before, .cs-section-label::before { content: none !important; }
.ar-toc__item a { display: block !important; }

/* Contact card sits on the same page edges as every other section */
.contact__grid { width: min(calc(var(--site-max) - 2 * var(--site-gutter)), calc(100% - 2 * var(--site-gutter))); }

/* Selected work wall */
.wall__piece--site .wall__name, .wall__piece--wide .wall__name { font-size: var(--fs-30); line-height: 1.15; }
.wall__name { font-size: var(--fs-20); line-height: 1.2; }
.wall__type { font-size: var(--fs-14); }
.wall__desc { font-size: var(--fs-16); line-height: 1.7; }

.about-split__body h3 { font-size: var(--fs-20); line-height: 1.3; letter-spacing: -0.01em; font-weight: 700; }

.about-split__body .about-split__heading {
  margin: 0 0 1rem; font-size: var(--fs-30); font-weight: 800; line-height: 1.15;
  letter-spacing: -0.015em; text-transform: uppercase; color: var(--site-ink);
}
.about-split__body > p + p { margin-top: 1rem; }

.index__title { white-space: nowrap; }

/* Articles: text runs the full width of the cover and the Continue reading cards */
.ar-layout, .ar-continue { max-width: calc(1080px + 3rem); }
.ar-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "toc" "body"; }
.ar-body__inner, .ar-footer__inner { max-width: none !important; }
.ar-body__inner > *, .ar-body__inner p, .ar-body__inner li { max-width: none; }
.ar-footer { padding-inline: 0; }
.ar-footer__inner { max-width: calc(1080px + 3rem) !important; padding-inline: 1.5rem; }
.ar-toc { position: static; max-height: none; overflow: visible; padding: 2rem 1.5rem 0; }
.ar-toc__list { flex-direction: row; flex-wrap: wrap; gap: 0.4rem !important; }
.ar-toc__item a {
  border: 1px solid var(--site-line-2); border-radius: 6px;
  padding: 0.3rem 0.75rem !important; background: none;
}
.ar-toc__item a:hover, .ar-toc__item a.ar-toc--active { border-color: var(--site-orange); background: none; }
.ar-body { padding-top: 2rem; }
.ar-body { padding-left: 1.5rem; padding-right: 1.5rem; }

/* Slim header: name on the left, menu on the right */
.site-header__inner { justify-content: flex-start; gap: 2rem; }
.site-name {
  margin-right: auto;
  font-family: var(--site-display); font-weight: 700; font-size: var(--fs-20);
  letter-spacing: -0.01em; white-space: nowrap;
  color: #fff !important; text-decoration: none !important;
}
.site-name:hover { color: var(--site-orange) !important; }
.site-name:focus-visible { outline: 2px solid var(--site-orange); outline-offset: 3px; }
@media (max-width: 860px) {
  .site-header__inner { justify-content: flex-start; gap: 0.75rem; }
}

/* Header name uses the footer signature font */
.site-name {
  font-family: 'Mrs Saint Delafield', 'Brush Script MT', cursive;
  font-weight: 400; font-size: 2.4rem; line-height: 1; letter-spacing: 0;
  padding: 0.2em 0.15em 0 0;
}

.about-split__photo, .about-split__photo img { border-radius: 0 !important; }

/* Recognition, Right now, moments */
.recognition__list, .moment__cap { font-size: var(--fs-14); }
.about-now { font-size: var(--fs-16); line-height: 1.6; }
