/* ==========================================================================
   base.css
   Design tokens, reset, typography and layout primitives.
   Load this first on every page. Change a token here and the whole site follows.
   ========================================================================== */

:root {
  /* Colour */
  --paper: #ffffff;
  --mist: #f3f6fb;
  --ink: #10203a;
  --slate: #56667f;
  --line: #e2e8f2;
  --line-strong: #c9d3e3;

  --signal: #2f5bff;
  --signal-dark: #2247d6;
  --signal-soft: #e8edff;

  --online: #14a44d;
  --online-soft: #e3f6ea;
  --online-text: #0d7a38;

  --outage: #e03e3e;
  --outage-soft: #fdeaea;
  --outage-text: #b42323;

  /* Type */
  --font-display: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Shape */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-panel: 0 28px 56px -28px rgba(16, 32, 58, 0.28);

  /* Layout */
  --container: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --space-section: clamp(64px, 9vw, 112px);
  --header-height: 72px;
}

/* Reset ------------------------------------------------------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* Typography ------------------------------------------------------------- */

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.35rem, 5.2vw, 3.75rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
}

h3 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
  max-width: 65ch;
}

a {
  color: var(--signal);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--signal-dark);
}

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
  border-radius: 4px;
}

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--slate);
}

/* Layout primitives ------------------------------------------------------ */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--space-section);
}

.section--tint {
  background: var(--mist);
}

.section__intro {
  max-width: 44rem;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }
}

/* Accessibility helpers -------------------------------------------------- */

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}
