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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding-top: 83px;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The header is fixed over the top 83px of the window, so a jump link lands
   with its heading hidden underneath it. This keeps the heading clear. */
#main [id] { scroll-margin-top: 104px; }

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-heading); margin: 0; }

p { margin: 0; }

button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

ul { margin: 0; padding: 0; list-style: none; }

section, .section { padding: var(--section-padding-y) var(--side-padding) 64px; }

.eyebrow-red { color: var(--color-red); }

/* Reusable pill buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.btn-lg { padding: 11px 26px; }
.btn-md { padding: 14px 28px; }
.btn-sm { padding: 11px 20px; font-size: 13px; }
.btn-xs { padding: 10px 18px; font-size: 13.5px; }

.btn-red {
  background: var(--color-red);
  color: #fff;
}
.btn-red:hover {
  background: var(--color-red-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-red-hover);
}

.btn-dark {
  background: var(--color-text);
  color: #fff;
}
.btn-dark:hover {
  background: #3a3436;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--color-border-strong);
  color: var(--color-text);
}
.btn-outline:hover {
  background: #fff;
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}
.btn-outline-white:hover {
  background: #fff;
  color: var(--color-red);
}

.btn-white {
  background: #fff;
  color: var(--color-red);
}
.btn-white:hover {
  background: #ffe4e6;
  transform: translateY(-2px);
}

.btn-pill-pink {
  background: transparent;
  color: var(--color-red);
  border: 1.5px solid var(--color-red);
}
.btn-pill-pink:hover {
  background: var(--tint-rose);
}

.link-red {
  color: var(--color-red);
  font-weight: 700;
  font-family: var(--font-heading);
}

.visually-hidden {
  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: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-red);
  color: #fff;
  padding: 12px 20px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* Consistent breathing room between each page's last section and the footer,
   regardless of what that last section happens to be. */
main > *:last-child {
  margin-bottom: 100px;
}

/* ============ Keyboard focus ============ */
/* One visible indicator for every interactive element. :focus-visible so a
   mouse click does not leave a ring behind, but tabbing always shows where
   you are. On dark and red surfaces the ring flips to white to stay visible. */
:focus-visible {
  outline: 3px solid var(--color-red);
  outline-offset: 3px;
  border-radius: 3px;
}
.site-footer :focus-visible,
.cta-banner :focus-visible,
.mv-mission :focus-visible {
  outline-color: #fff;
}
