/* Resets, typography, controls. No content or page-specific styling here. */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

[hidden] {
  display: none !important;
}

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

button, input {
  font: inherit;
  color: inherit;
}

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

button {
  cursor: pointer;
}

button {
  border: 0;
}

input {
  min-width: 0;
}

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

img {
  display: block;
  height: auto;
}

figure, h1, h2, h3, p {
  margin: 0;
}

h1, h2, h3 {
  font-weight: 760;
  line-height: 1.14;
  letter-spacing: -.045em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(40px, 5.3vw, 72px);
}

h2 {
  font-size: clamp(27px, 3vw, 40px);
}

h3 {
  font-size: 23px;
}

p {
  color: var(--muted);
}

strong {
  color: var(--text);
}

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

:target {
  scroll-margin-top: 112px;
}

section[id] {
  scroll-margin-top: 112px;
}

::selection {
  background: #bed5ff;
  color: #102b58;
}

.icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  vertical-align: middle;
}

.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: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--surface);
  border: 2px solid var(--focus);
  border-radius: 12px;
}

.skip-link:focus {
  top: 12px;
}

.eyebrow {
  color: var(--blue);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .13em;
  font-weight: 750;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  transition: background .2s, border-color .2s, transform .2s;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  min-height: 50px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 720;
  line-height: 1.4;
  text-align: center;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s;
}

.button .icon {
  width: 19px;
  height: 19px;
}

.button-blue {
  background: #215bd7;
  color: white;
  box-shadow: 0 7px 20px -8px #215bd770;
}

.button-gold {
  background: var(--gold-button);
  color: #30270b;
}

.button-outline {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

.button-color {
  background: var(--button-bg);
  color: var(--button-text);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
}

.text-link .icon {
  width: 17px;
  height: 17px;
}

.icon-tile {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 15px;
  background: var(--tint, var(--blue-soft));
  color: var(--accent, var(--blue));
  flex: 0 0 auto;
}

.icon-tile .icon {
  width: 25px;
  height: 25px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--tint, var(--blue-soft));
  color: var(--accent, var(--blue));
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

@media (hover: hover) and (pointer: fine) {
  .icon-button:hover {
    background: var(--blue-soft);
    border-color: var(--blue);
  }
  .button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
  }
  .text-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
  }
}
