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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--so-font-body);
  font-size: var(--so-fs-base);
  line-height: var(--so-lh-body);
  color: var(--so-text);
  background: var(--so-ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  color: var(--so-forest);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--so-dur) var(--so-ease);
}

a:hover {
  color: var(--so-terracotta);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.button:focus-visible,
.so-chip:focus-visible {
  outline: 2px solid var(--so-focus);
  outline-offset: 3px;
}

h1, h2, h3, h4, h5, h6,
.so-display {
  font-family: var(--so-font-display);
  font-weight: 560;
  line-height: var(--so-lh-tight);
  letter-spacing: -0.02em;
  color: var(--so-forest-deep);
  margin: 0 0 var(--so-space-4);
}

h1, .so-h1 { font-size: var(--so-fs-3xl); }
h2, .so-h2 { font-size: var(--so-fs-2xl); }
h3, .so-h3 { font-size: var(--so-fs-xl); }
h4, .so-h4 { font-size: var(--so-fs-lg); }

p {
  margin: 0 0 var(--so-space-4);
}

p:last-child {
  margin-bottom: 0;
}

ul, ol {
  margin: 0 0 var(--so-space-4);
  padding-left: 1.2em;
}

.so-skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.so-skip:focus {
  left: var(--so-space-4);
  top: var(--so-space-4);
  width: auto;
  height: auto;
  padding: var(--so-space-3) var(--so-space-4);
  background: var(--so-white);
  z-index: 10000;
  border-radius: var(--so-radius-sm);
}

.so-container {
  width: min(100% - 2rem, var(--so-container));
  margin-inline: auto;
}

.so-container--wide {
  width: min(100% - 2rem, var(--so-editorial));
}

.so-main {
  min-height: 50vh;
  padding-block: var(--so-space-7);
}

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

.so-section--sand {
  background: var(--so-sand);
}

.so-section--forest {
  background: var(--so-forest);
  color: var(--so-ivory);
}

.so-section--forest h2,
.so-section--forest h3,
.so-section--forest .so-eyebrow {
  color: var(--so-ivory);
}

.so-eyebrow {
  display: inline-block;
  font-family: var(--so-font-body);
  font-size: var(--so-fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--so-botanical);
  margin-bottom: var(--so-space-3);
}

.so-lede {
  font-size: var(--so-fs-md);
  color: var(--so-text-muted);
  max-width: 38rem;
}

.so-grid {
  display: grid;
  gap: var(--so-space-5);
}

.so-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--so-ease), transform 0.6s var(--so-ease);
}

.so-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .so-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.screen-reader-text,
.sr-only {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.so-prose {
  font-size: var(--so-fs-base);
  line-height: var(--so-lh-body);
}

.so-prose h2,
.so-prose h3 {
  margin-top: var(--so-space-6);
}

.so-prose a {
  text-decoration: underline;
}

.so-prose ul,
.so-prose ol {
  padding-left: 1.25em;
}
