/* Final typography contract.
   Editorial copy uses Literata; interface and body copy use Work Sans. */
@font-face{
 font-family:Literata;
 src:url('/assets/fonts/literata-400.woff2') format('woff2');
 font-style:normal;
 font-weight:400;
 font-display:swap
}
@font-face{
 font-family:Literata;
 src:url('/assets/fonts/literata-600.woff2') format('woff2');
 font-style:normal;
 font-weight:600;
 font-display:swap
}
@font-face{
 font-family:'Work Sans';
 src:url('/assets/fonts/work-sans-400.woff2') format('woff2');
 font-style:normal;
 font-weight:400;
 font-display:swap
}
@font-face{
 font-family:'Work Sans';
 src:url('/assets/fonts/work-sans-500.woff2') format('woff2');
 font-style:normal;
 font-weight:500;
 font-display:swap
}
@font-face{
 font-family:'Work Sans';
 src:url('/assets/fonts/work-sans-600.woff2') format('woff2');
 font-style:normal;
 font-weight:600;
 font-display:swap
}

/* Preload the top bar's Work Sans weights on every page (scripts/build.mjs).
   Keep navigation and button labels visible even if the font request is slow. */

/* Brand tokens: the single source for the values the site shares.
   docs/brand-system.md explains when to use each one. Colour and shape tokens
   are prefixed --brand- so they never clash with older stylesheet variables. */
:root{
 --font-display:Literata,Georgia,serif;
 --font-body:'Work Sans',Arial,sans-serif;
 --weight-heading:600;
 --brand-shell:#faf7f0;
 --brand-shell-rgb:250,247,240;
 --brand-blue:#466773;
 --space-control:12px;
 --space-inline:20px;
 --space-gutter:clamp(20px,5vw,64px);
 --space-section:clamp(56px,7vw,104px);
 --space-columns:clamp(28px,5vw,76px);
 --content-width:1200px;
 --action-height:48px;
 --action-bg:var(--brand-sand);
 --action-ink:var(--brand-ink);
 --action-hover:color-mix(in srgb,var(--brand-sand) 90%,var(--brand-ink));
 --brand-sage:#dce7dd;
 --brand-sand:#ebddca;
 --brand-blue-deep:#365762;
 --brand-ink:#233b3a;
 --brand-ink-heading:#233b3a;
 --brand-ink-mid:#374e4b;
 --brand-ink-soft:#526561;
 --brand-wash:#f3f0e9;
 --brand-wash-card:#f5f2eb;
 --brand-pale:#dce8ec;
 --brand-divider:#d9dcd2;
 --brand-divider-strong:#c7cec5;
 --brand-border:#a8b6ae;
 --brand-border-strong:#788c83;
 --brand-focus:#365762;
 --brand-error:#a33135;
 --brand-error-text:#7e2025;
 --brand-error-wash:#fff4f4;
 --brand-scrim:9,24,20;
 --brand-radius:8px
}

body,button,input,select,textarea,
.desktop-navigation,.navigation-dialog,.subjects-panel,.site-footer{
 font-family:var(--font-body);
 font-synthesis:none
}

:is(h1,h2,h3,h4,h5,h6),blockquote,
.recognition-status,.school-heading,.partnership-subtitle,
.contact-location-place{
 font-family:var(--font-display)
}

/* Retire inherited Luengo utility classes without changing the logo artwork. */
main :is(h1,h2,h3,h4,h5,h6).font-luengo,
main :is(h1,h2,h3,h4,h5,h6) .font-luengo{
 font-family:var(--font-display)!important
}
main :is(p,li,span,div,a,button,label).font-luengo,
main :is(p,li,span,div,a,button,label) .font-luengo{
 font-family:var(--font-body)!important
}
.navigation-dialog :is(h2,a,button),.subjects-panel :is(h2,a,button){
 font-family:var(--font-body)
}

/* One heading voice: every page and section heading uses the homepage hero's
   Literata 600, so the hero no longer reads as a different typeface. */
main :is(h1,h2,h3){font-weight:var(--weight-heading)!important}

/* Use only weights for which the site ships a real font file. */
:is(strong,b),label,legend,th{font-weight:600}
body[data-page=home] .clean-hero .hero-copy h1,
.subject-hero-content h1{font-weight:600}
.nav-wipe-label::after,
.nav-subject-list>a:is(:hover,:focus-visible,[aria-current=page]) .nav-wipe-label::after,
.event-card-kicker,.event-meta,.contact-kicker,.subject-hero-level,
.contact-map .leaflet-popup-content strong{font-weight:600}
.nav-wipe-base{font-weight:400}
.contact-kicker,.subject-hero-level{font-weight:600!important}
.contact-location-place{font-weight:400!important}

/* Preserve the supplied Google wordmark treatment. */
.google-reviews-lockup,.google-reviews-lockup *{
 font-family:Arial,Helvetica,sans-serif
}

/* Shared primary actions, including the page and dialog forms. */
body :is(.top-bar-cta,.mobile-trial-link,.hp-button,.button,.form-actions button:not(.secondary),button[type=submit],a[data-trial-open]){
 background:var(--action-bg)!important;color:var(--action-ink)!important;
 border-color:var(--action-bg)!important;border-radius:var(--brand-radius);
 padding-inline:var(--space-inline);min-height:var(--action-height);
}
@media(hover:hover){
 body :is(.top-bar-cta,.mobile-trial-link,.hp-button,.button,.form-actions button:not(.secondary),button[type=submit],a[data-trial-open]):hover{
  background:var(--action-hover)!important;border-color:var(--action-hover)!important;
 }
}
:where(main a) .link-arrow{display:inline-block;flex:none;font-style:normal;transition:transform .2s ease}
main a:is(:hover,:focus-visible) .link-arrow{transform:translateX(4px)}
@media(prefers-reduced-motion:reduce){main a .link-arrow{transition:none}main a:is(:hover,:focus-visible) .link-arrow{transform:none}}
