@font-face {
  font-family: "Fredoka";
  src: url("../assets/fonts/fredoka-latin-var.woff2") format("woff2-variations"),
    url("../assets/fonts/fredoka-latin-var.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("../assets/fonts/nunito-latin-var.woff2") format("woff2-variations"),
    url("../assets/fonts/nunito-latin-var.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("../assets/fonts/jbmono-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-body);
  line-height: 1.5;
  background-color: var(--paper);
  /* dotted grid paper */
  background-image: radial-gradient(var(--line-soft) 1px, transparent 1.2px);
  background-size: 22px 22px;
  background-position: 0 0;
  overflow-x: hidden;
}

/* Decorative doodles: flat SVG, behind everything, never over text */
.doodle {
  position: fixed;
  z-index: 0;
  color: var(--ink);
  opacity: 0.14;
  pointer-events: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
}

p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1 {
  font-size: var(--text-display);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-h2);
  line-height: 1.1;
}

a {
  color: var(--price);
  text-decoration: none;
  border-bottom: 2px dotted currentColor;
}

a:hover {
  border-bottom-style: solid;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
  border-radius: var(--pill);
}

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

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

.skip {
  position: absolute;
  left: 12px;
  top: -90px;
  z-index: 40;
  padding: 10px 18px;
  background: var(--mint);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  border: var(--outline);
  border-radius: var(--pill);
  box-shadow: var(--shadow-sm);
  transition: top 0.2s var(--bounce);
}

.skip:focus {
  top: 12px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
