@import url("./tokens.css");

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--sd-white);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
select,
textarea { font: inherit; }

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

::selection { background: var(--sd-teal); color: var(--sd-navy); }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 9999;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  background: var(--sd-navy);
  color: var(--sd-white);
  padding: 0 16px;
  border-radius: var(--radius-sm);
}

.skip-link:focus { left: 16px; }

h1, h2, h3, h4 {
  margin-top: 0;
  font-family: var(--font-display);
  color: var(--text-primary);
  letter-spacing: -.035em;
  line-height: 1.08;
  font-weight: 600;
  text-wrap: balance;
}

h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); letter-spacing: -.025em; }
h4 { letter-spacing: -.015em; }

p { color: var(--text-secondary); }

strong { color: inherit; }

main { overflow: clip; }

hr { border: 0; border-top: 1px solid var(--border); }

@media (max-width: 767px) {
  body { line-height: 1.62; }
  h1 { font-size: clamp(2.35rem, 11vw, 3.35rem); }
  h2 { font-size: clamp(1.85rem, 8.5vw, 2.6rem); }
}
