/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
/* 15px root: every rem-based size and space on the site is about 6% calmer than the browser default */
html { font-size: 93.75%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 8rem; }
body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
p, h1, h2, h3, h4, li { overflow-wrap: break-word; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; padding: 0; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, .display, .h1, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--heading);
  text-wrap: balance;
  letter-spacing: -0.015em;
}
.display { font-size: var(--text-display); line-height: 1.15; letter-spacing: -0.02em; }
h1, .h1 { font-size: var(--text-h1); line-height: 1.15; }
h2, .h2 { font-size: var(--text-h2); line-height: 1.2; }
h3, .h3 { font-size: var(--text-h3); line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
h4 { font-size: 1.0625rem; font-weight: 600; line-height: 1.4; letter-spacing: 0; }
p { text-wrap: pretty; }
.lead { font-size: var(--text-lg); line-height: 1.6; color: var(--text-muted); max-width: 62ch; }
.small, small { font-size: var(--text-sm); line-height: 1.5; }
.muted { color: var(--text-muted); }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: color var(--duration) var(--ease-out); }
a:hover { color: var(--link-hover); }

/* Small uppercase label above headings */
.eyebrow {
  display: inline-block;
  font-family: var(--font-display); font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.5;
  color: var(--accent);
  margin-bottom: var(--space-4);
}
.eyebrow--muted { color: var(--text-muted); }

/* Long-form content written in the admin */
.prose { max-width: 70ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.625rem, 1.4vw + 1rem, 2.125rem); margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--blue-700); }
.prose blockquote {
  border-left: 4px solid var(--azure-500); padding: var(--space-4) var(--space-6);
  background: var(--sky-50); border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-display); font-weight: 500; font-size: 1.375rem; line-height: 1.4; color: var(--heading);
}
.prose img, .prose figure { border-radius: var(--radius-md); }
.prose figcaption { font-size: var(--text-sm); color: var(--text-muted); margin-top: var(--space-2); }
.prose table { width: 100%; font-size: var(--text-sm); }
.prose th, .prose td { text-align: left; padding: var(--space-3); border-bottom: 1px solid var(--rule); }
.prose hr { border: 0; border-top: 1px solid var(--rule); }
.prose a { font-weight: 500; }

/* ==========================================================================
   Layout
   ========================================================================== */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(840px + 2 * var(--gutter)); }
.section { padding-block: var(--section-pad); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 4vw, 3.75rem); }
.section--flush-top { padding-top: clamp(2.75rem, 4.5vw, 4rem); }
.stack > * + * { margin-top: var(--space-6); }
.stack-sm > * + * { margin-top: var(--space-3); }
.stack-lg > * + * { margin-top: var(--space-12); }

/* 12 / 6 / 4 column grid */
.grid { display: grid; gap: var(--space-8) var(--gutter); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid > * { grid-column: 1 / -1; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 768px) {
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .col-3 { grid-column: span 3; } .col-4 { grid-column: span 4; } .col-5 { grid-column: span 5; }
  .col-6 { grid-column: span 6; } .col-7 { grid-column: span 7; } .col-8 { grid-column: span 8; }
  .col-start-8 { grid-column-start: 8; } .col-start-7 { grid-column-start: 7; } .col-start-9 { grid-column-start: 9; }
}

.cards { display: grid; gap: var(--space-8) var(--space-8); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cards--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
@media (min-width: 900px) { .cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.section-head { display: grid; gap: var(--space-4); margin-bottom: clamp(2rem, 3.5vw, 2.75rem); }
.section-head .eyebrow { margin-bottom: 0; }
.section-head h2 { max-width: 24ch; }
.section-head p { color: var(--text-muted); max-width: 52ch; }
@media (min-width: 768px) {
  .section-head--split { grid-template-columns: 7fr 4fr; align-items: end; column-gap: clamp(2rem, 8vw, 8rem); }
  .section-head--split > :not(h2):not(.section-head__title) { justify-self: end; }
}
.section-head--center { text-align: center; justify-items: center; }
.section-head--center h2 { max-width: 22ch; }
.section-head .actions { margin-top: var(--space-2); }

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 1000;
  background: var(--blue-700); color: #FFFFFF;
  padding: var(--space-3) var(--space-6); border-radius: var(--radius-pill); font-weight: 600;
}
.skip-link:focus { top: var(--space-4); color: #FFFFFF; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.rule { border: 0; border-top: 1px solid var(--rule); }
.icon { flex: none; }
.img-fallback {
  width: 100%; background:
    radial-gradient(circle at 80% 20%, rgba(10, 111, 224, 0.55), transparent 55%),
    linear-gradient(150deg, var(--navy-900), var(--blue-700) 60%, var(--azure-500));
}
.media { border-radius: var(--radius-lg); overflow: hidden; background: var(--sky-100); }
.media img { width: 100%; height: auto; }  /* whole image at its own shape */

.mt-0 { margin-top: 0 !important; }
.center { text-align: center; }
