*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  font: 400 1rem/1.5625 var(--font-body);
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 400;
}
h1,
.h1 {
  font-size: clamp(2.25rem, 3.889vw, 3.5rem);
  line-height: 1.143;
}
h2,
.h2 {
  font-size: clamp(1.875rem, 3.056vw, 2.75rem);
  line-height: 1.227;
}
h3,
.h3 {
  font-size: 1.625rem;
  line-height: 1.308;
  font-weight: 600;
}
p {
  max-width: 75ch;
}
a {
  color: inherit;
  text-underline-offset: 5px;
}
a:hover {
  color: var(--color-button);
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
img,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
button:disabled {
  cursor: not-allowed;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
}
::selection {
  background: var(--color-surface-sage);
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 24px;
  z-index: 100;
  background: var(--color-bg-primary);
  padding: 12px;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: translateY(0);
}
.lead {
  font-size: 1.25rem;
  line-height: 1.5;
}
.small,
small {
  font-size: 0.875rem;
  line-height: 1.571;
}
.muted {
  color: var(--color-text-secondary);
}
.eyebrow {
  font-size: 0.75rem;
  line-height: 1.5;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--color-accent);
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.stack-sm {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stack-lg {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.dark {
  background: var(--color-bg-technical);
  color: var(--color-bg-primary);
}
.dark .eyebrow,
.dark .muted {
  color: var(--color-on-dark);
}
.wash {
  background: var(--color-bg-secondary);
}
.sage {
  background: var(--color-surface-sage);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--color-button);
  color: var(--color-bg-primary);
  font-size: 0.875rem;
  line-height: 1.429;
  font-weight: 500;
  text-decoration: none;
  min-width: min(224px, 100%);
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
  transition: background 0.18s;
}
.button:hover {
  background: var(--color-button-hover);
  color: var(--color-bg-primary);
}
.button.secondary {
  background: var(--color-bg-primary);
  border-color: var(--color-border);
  color: var(--color-text-primary);
}
.button.secondary:hover {
  background: var(--color-bg-secondary);
}
.button:disabled {
  background: var(--color-bg-secondary);
  color: var(--color-text-secondary);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.divider {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 0;
}
.text-link {
  font-weight: 500;
}

/* Allow content to wrap before it can force a grid or flex track wider. */
:where(
  h1,
  h2,
  h3,
  p,
  li,
  address,
  label,
  button,
  .person-name,
  .partner,
  .footer-links a
) {
  overflow-wrap: anywhere;
}
:where(
    .stack,
    .stack-sm,
    .stack-lg,
    .actions,
    .inline-cta,
    .footer-top,
    .footer-bottom
  )
  > * {
  min-width: 0;
}
