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

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--space-6));
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--color-ink-900);
  background: var(--color-canvas);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.navigation-open { overflow: hidden; }

button,
input,
select { font: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

a {
  color: var(--color-heading);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover { text-decoration-thickness: 2px; }

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

[hidden] { display: none !important; }

h1,
h2,
h3,
p { margin-top: 0; }

h1,
h2,
h3 {
  color: var(--color-heading);
  line-height: 1.35;
}

h1 { font-size: clamp(28px, 3vw, 38px); font-weight: 600; }
h2 { font-size: clamp(22px, 2vw, 27px); font-weight: 600; }
h3 { font-size: 18px; font-weight: 600; }

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

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

.content-container {
  width: min(100% - 48px, var(--content-max));
  margin-inline: auto;
}

.page-body { padding-block: var(--space-12) var(--space-16); }

@media (max-width: 767px) {
  .content-container { width: min(100% - 36px, var(--content-max)); }
  .page-body { padding-block: var(--space-8) var(--space-12); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-delay: 0s !important; transition-duration: 0.01ms !important; }
}
