/* ==========================================================================
   Base: reset, tones, typography, layout primitives, utilities, site chrome (header, footer)
   ========================================================================== */

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
:where(ul[class], ol[class]) { padding: 0; list-style: none; }
img, svg, video, picture { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
table { border-collapse: collapse; border-spacing: 0; }

/* ---- tones: every section sets its surface + text colours as variables ----------------------------------
   Design v2: the tone classes (v1 names and the v2 tone-stone / tone-deep) are defined in static/css/gp-base.css
   (design/redesign/kit/css/gp-base.css) from the palette roles in tokens.css. */

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  letter-spacing: var(--tracking);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
main { display: block; outline: none; }

/* ---- typography ---- */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { color: var(--heading); font-family: var(--font-sans); text-wrap: pretty; }
h1, .h1 { font-size: var(--fs-h1); font-weight: 700; line-height: var(--lh-heading); letter-spacing: var(--tracking-tight); margin-bottom: 20px; text-wrap: balance; }
h2, .h2 { font-size: var(--fs-h2); font-weight: 700; line-height: 1.15; letter-spacing: var(--tracking-tight); margin-bottom: 20px; text-wrap: balance; }
h3, .h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.25; letter-spacing: -.01em; margin-bottom: 16px; }
h4, .h4 { font-size: var(--fs-h4); font-weight: 600; line-height: 1.3; margin-bottom: 12px; }
h5, .h5 { font-size: var(--fs-h5); font-weight: 600; line-height: 1.35; margin-bottom: 8px; }
h6, .h6 { font-size: var(--fs-h6); font-weight: 600; line-height: 1.4; margin-bottom: 8px; }
p { margin-bottom: 20px; }
p:last-child { margin-bottom: 0; }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em;
    transition: color var(--transition), text-decoration-color var(--transition); }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
strong, b { font-weight: 700; }
small { font-size: var(--fs-small); }
hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }
code, kbd, samp { font-family: var(--font-code); font-size: .9em; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---- layout primitives ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); }
.container--text { max-width: calc(var(--container-text) + 2 * var(--gutter)); }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: calc(var(--section-y) / 2); }
.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }
.section--clip { overflow: hidden; }

.grid { display: grid; gap: var(--grid-gap); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--7-5 { grid-template-columns: 7fr 5fr; }
.grid--5-7 { grid-template-columns: 5fr 7fr; }
.grid--gap-lg { gap: 48px; }
.grid--center { align-items: center; }
@media (max-width: 991px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .grid--2, .grid--3, .grid--4, .grid--7-5, .grid--5-7 { grid-template-columns: minmax(0, 1fr); }
}

/* ---- utilities ---- */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: calc(var(--z-header) + 1);
  background: var(--gp-dark); color: var(--gp-light); padding: 10px 16px; font-weight: 500; border-radius: var(--radius);
}
.skip-link:focus { top: 8px; color: var(--gp-light); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-accent { color: var(--accent-large); }
.text-muted { color: var(--muted); }
.text-lead { font-size: var(--fs-lead); line-height: 1.55; }
.text-medium { font-size: var(--fs-medium); }
.text-small { font-size: var(--fs-small); }
.text-xsmall { font-size: var(--fs-xsmall); }
.text-mono { font-family: var(--font-mono); }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.mx-auto { margin-inline: auto; }
.max-w-text { max-width: var(--container-text); }
.max-w-narrow { max-width: var(--container-narrow); }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 32px; } .mt-4 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 32px; } .mb-4 { margin-bottom: 48px; }
.stack > * + * { margin-top: 16px; }

/* ==========================================================================
   Site header, navigation and footer: design v2, see static/css/gp-header.css and static/css/gp-footer.css
   (design/redesign/kit/css/). The v1 rules were removed with the globals stage (tag design-v2-globals).
   ========================================================================== */
