@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-latin.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 300 700;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-variable.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}

@font-face {
  font-family: "Caveat";
  src: url("/assets/fonts/caveat-variable.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400 700;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond-variable.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 300 700;
}

@font-face {
  font-family: "Cormorant Upright";
  src: url("/assets/fonts/cormorant-upright-semibold.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 600;
}

@font-face {
  font-family: "Alegreya";
  src: url("/assets/fonts/alegreya-variable.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400 900;
}

@font-face {
  font-family: "Kalam";
  src: url("/assets/fonts/kalam-bold.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

:root {
  color-scheme: light;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --forest-1000: #0d1710;
  --forest-950: #14261a;
  --forest-900: #1a3321;
  --forest-800: #284a30;
  --forest-700: #376240;
  --leaf-500: #648867;
  --leaf-300: #aecaa2;
  --leaf-100: #e1eadb;
  --ink: #202c20;
  --ink-soft: #465647;
  --muted: #6a7568;
  --paper: #f6f1e5;
  --paper-warm: #eee5d3;
  --paper-deep: #e2d6bd;
  --cream: #fffdf6;
  --coral: #bd6b4e;
  --coral-deep: #884630;
  --gold: #c5a763;
  --line: rgba(32, 44, 32, 0.14);
  --line-dark: rgba(255, 253, 247, 0.18);
  --shadow: 0 22px 70px rgba(4, 23, 26, 0.12);
  --shadow-small: 0 8px 28px rgba(4, 23, 26, 0.09);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;
  --container: 1180px;
  --narrow: 760px;
  --header-height: 72px;
  --space-1: 0.35rem;
  --space-2: 0.65rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.25rem;
  --space-6: 3.25rem;
  --space-7: 5rem;
  --space-8: 7.5rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 48px);
  background: var(--forest-1000);
}

body {
  margin: 0;
  min-width: 300px;
  background:
    radial-gradient(circle at 10% 6%, rgba(47, 129, 122, 0.05), transparent 28rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  content: "";
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

main {
  display: block;
  overflow: clip;
}

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

figure {
  margin: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-color: var(--coral);
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
  border-radius: 3px;
}

::selection {
  color: var(--cream);
  background: var(--forest-700);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10000;
  transform: translateY(-160%);
  padding: 0.7rem 1rem;
  border-radius: 99px;
  color: var(--forest-1000);
  background: var(--cream);
  font-weight: 750;
}

/* Without this the skip link is permanently offscreen and unreachable. */
.skip-link:focus-visible,
.skip-link:focus {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
