:root {
  --spm-content-width: 75rem;
  --spm-space-page: clamp(1rem, 3vw, 2rem);
  --spm-space-section: clamp(3rem, 8vw, 7rem);
  --spm-radius: 0.75rem;
  --spm-text: #172033;
  --spm-muted: #5d6678;
  --spm-background: #ffffff;
  --spm-surface: #f4f6f9;
  --spm-border: #d9dee8;
  --spm-accent: #1f5f89;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--spm-text);
  background: var(--spm-background);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--spm-accent);
  text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 0.1875rem solid currentColor;
  outline-offset: 0.1875rem;
}

.site-shell {
  width: min(100% - (2 * var(--spm-space-page)), var(--spm-content-width));
  margin-inline: auto;
}

.site-header {
  border-bottom: 0.0625rem solid var(--spm-border);
  background: var(--spm-background);
}

.site-header__inner,
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 5rem;
}

.site-title {
  color: inherit;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.primary-navigation ul,
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-main {
  min-height: 60vh;
}

.front-page__content,
.content-stack {
  padding-block: var(--spm-space-section);
}

.content-entry + .content-entry {
  margin-top: 3rem;
}

.content-entry__title {
  line-height: 1.2;
}

.site-footer {
  border-top: 0.0625rem solid var(--spm-border);
  color: var(--spm-muted);
  background: var(--spm-surface);
}

.screen-reader-text {
  position: absolute;
  width: 0.0625rem;
  height: 0.0625rem;
  padding: 0;
  margin: -0.0625rem;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  position: fixed;
  z-index: 100000;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.75rem 1rem;
  clip: auto;
  color: var(--spm-text);
  background: var(--spm-background);
  border: 0.125rem solid currentColor;
}

@media (max-width: 48rem) {
  .site-header__inner,
  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 1rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
