@font-face {
  font-family: "Anton";
  src: url("../assets/fonts/anton-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Yellowtail";
  src: url("../assets/fonts/yellowtail-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sriracha";
  src: url("../assets/fonts/sriracha-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-x: clip;
  scroll-behavior: auto;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    linear-gradient(
      180deg,
      var(--sky-day-0) 0%,
      var(--sky-day-15) 15%,
      var(--sky-day-30) 30%,
      var(--sky-day-50) 50%,
      var(--sky-day-70) 70%,
      var(--sky-day-85) 85%,
      var(--sky-day-100) 100%
    )
    fixed;
  color: var(--text-on-sky);
  font-family: var(--font-body);
  font-size: var(--type-body);
  font-weight: 500;
  line-height: 1.5;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::selection {
  background: rgba(255,255,255,.28);
  color: var(--text-on-sky);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img,
svg {
  display: block;
  max-width: 100%;
}

main {
  position: relative;
  z-index: var(--z-dom);
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
  gap: var(--gutter);
}

.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;
}

.section-kicker {
  margin: 0 0 22px;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
}

.section-heading {
  margin: 0;
  font-size: var(--type-h2);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
}

.section-copy {
  margin: 24px 0 0;
  color: var(--text-on-sky);
  font-size: var(--type-body);
  font-weight: 500;
  line-height: 1.5;
}

.script-accent {
  display: inline-block;
  font-family: var(--font-script);
  font-size: 1em;
  font-weight: 400;
  line-height: inherit;
  text-transform: none;
}

.display-italic {
  display: inline;
  font-family: var(--font-body);
  font-size: 1em;
  font-style: italic;
  font-weight: 720;
  line-height: inherit;
  text-transform: none;
}

.button {
  display: inline-flex;
  height: var(--button-height);
  min-height: var(--button-height);
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  padding: 0 16px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  transition: translate .5s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}

.button:focus-visible,
.nav-link:focus-visible,
.footer-link:focus-visible,
.social-link:focus-visible,
.tab-button:focus-visible,
.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: 2px solid rgba(255,255,255,.88);
  outline-offset: 3px;
}

.button-primary {
  background: var(--text-on-sky);
  color: var(--ink);
}

.button-secondary {
  border-color: #FFFFFF;
  background: transparent;
  color: var(--text-on-sky);
}

.button-ghost {
  background: transparent;
  color: var(--text-on-sky);
}

.button-primary:hover {
  background: rgba(255,255,255,.88);
}

.button-secondary:hover {
  background: rgba(255,255,255,.14);
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

@media (max-width: 1024px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .section-heading {
    font-size: clamp(38px, 10vw, var(--type-h2));
  }

  .section-copy {
    font-size: 18px;
  }
}

@media (max-width: 390px) {
  .container {
    width: min(calc(100% - 24px), var(--container));
  }
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}
