@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/manrope-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  color-scheme: light;
  background: var(--bg);
  scroll-behavior: auto;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overflow-x: clip;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body {
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
.text-display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

h1,
.text-display {
  font-size: var(--text-h1);
  letter-spacing: -0.05em;
}

.text-display {
  font-size: var(--text-display);
  line-height: 0.92;
}

h2 {
  font-size: var(--text-h2);
}

h3 {
  font-size: var(--text-h3);
  letter-spacing: -0.03em;
}

h4 {
  font-size: var(--text-h4);
  letter-spacing: -0.02em;
}

p {
  max-width: 65ch;
}

small,
.text-small {
  font-size: var(--text-small);
  letter-spacing: 0.01em;
}

.text-muted {
  color: var(--text-muted);
}

::selection {
  background: color-mix(in srgb, var(--accent) 18%, white);
  color: var(--text);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: var(--space-3);
  z-index: 80;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: var(--text-small);
  letter-spacing: 0.04em;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.site-main {
  position: relative;
  z-index: 1;
  min-height: 50svh;
}

.js [data-reveal],
.js [data-reveal-stagger] > * {
  opacity: 0;
}

.js.is-reduced-motion [data-reveal],
.js.is-reduced-motion [data-reveal-stagger] > * {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal],
  .js [data-reveal-stagger] > * {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 4rem;
  }
}

/* The mobile toolbar is absolutely positioned under the 46px html offset, so a blank band sits above it. */
@media (max-width: 782px) {
  html.admin-bar {
    margin-top: 0 !important;
  }

  body.admin-bar {
    padding-top: var(--wp-admin--admin-bar--height, 46px);
  }

  #wpadminbar,
  html #wpadminbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}
