/* Local fonts, design tokens, element defaults, and accessibility. */

@font-face {
  font-family: "League Spartan";
  src: url("../assets/league-spartan.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: Figtree;
  src: url("../assets/figtree.ttf") format("truetype");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --font-body: "Figtree", Arial, sans-serif;
  --font-heading: "League Spartan", "Figtree", sans-serif;
  --color-text: #222927;
  --color-background: #ffffff;
  --color-surface: #f1f4f2;
  --color-text-muted: #535c57;
  --color-accent: #ff7900;
  --color-accent-hover: #eb7000;
  --font-size-body: 1.0625rem;
  --font-size-small: 0.875rem;
  --font-size-lead: 1.1875rem;
  --font-size-heading: clamp(2rem, 3.4vw, 3rem);
  --font-size-display: clamp(2.5rem, 4.1vw, 4rem);
  --section-spacing: clamp(3.5rem, 6vw, 5rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font: var(--font-size-body)/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

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

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

a {
  color: inherit;
  text-underline-offset: 0.3em;
}

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

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 5px;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--color-accent);
  color: var(--color-text);
}

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

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

h2 {
  font-size: var(--font-size-heading);
}

h3 {
  font-size: 2rem;
}
