@font-face {
  font-family: Almendra;
  src: url("fonts/Almendra-Regular.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: Figtree;
  src: url("fonts/Figtree-Variable.ttf") format("truetype");
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: Literata;
  src: url("fonts/Literata-Variable.ttf") format("truetype");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Crimson Text";
  src: url("fonts/CrimsonText-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/AtkinsonHyperlegible-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  /* Paleta Shrek · Pantano & Cabaña */
  --ogre-green: #8ba43a;
  --moss-green: #4f6b2a;
  --swamp-deep: #1f2a17;
  --swamp-night: #12180e;
  --cabin-wood: #5a3e28;
  --cabin-dark: #342214;
  --onion-parchment: #f3e6c4;
  --aged-paper: #e3d0a4;
  --ivory: #faf5e9;
  --swamp-mud: #7a5c3e;
  --firefly: #e8f26b;
  --fiona-crimson: #9c3b3b;
  --sunset-sky: #e9a66b;
  --old-gold: #c5a15c;

  /* Roles semánticos */
  --action-bg: var(--moss-green);
  --action-ink: var(--ivory);
  --focus-on-paper: #3b531d;
  --focus-in-cabin: var(--firefly);

  /* Tipografía */
  --type-display: Almendra, "Crimson Text", Georgia, serif;
  --type-reading: Literata, "Crimson Text", Georgia, serif;
  --type-ui: Figtree, "Atkinson Hyperlegible", system-ui, sans-serif;

  /* Geometría y tacto */
  --radius-control: 10px;
  --radius-card: 14px;
  --space-control: 8px;
  --target-touch: 44px;

  /* Curvas físicas y de diseño */
  --spring-snappy: linear(
    0, 0.009, 0.035 2.1%, 0.141 4.4%, 0.723 12.9%,
    0.938 16.7%, 1.017 19.4%, 1.067 22.5%, 1.089 26.0%,
    1.079 30.3%, 1.049 36.0%, 1.024 42.6%, 1.011 50.3%,
    1.004 59.2%, 1.001 69.3%, 1
  );
  --spring-smooth: linear(
    0, 0.004, 0.016 2.3%, 0.063 4.7%, 0.141 7.2%,
    0.25 9.9%, 0.601 16.5%, 0.815 21.0%, 0.929 25.2%,
    0.987 29.0%, 1.025 33.5%, 1.042 38.0%, 1.04 43.5%,
    1.027 50.0%, 1.013 57.5%, 1.005 67.0%, 1.001 79.0%, 1
  );
  --spring-bouncy: linear(
    0, 0.014, 0.055 1.8%, 0.218 3.7%, 0.867 8.5%,
    1.085 10.7%, 1.212 12.9%, 1.264 15.0%, 1.262 17.0%,
    1.217 19.5%, 1.098 24.0%, 1.035 28.5%, 0.993 33.0%,
    0.981 38.0%, 0.988 45.0%, 0.998 55.0%, 1.001 68.0%, 1
  );
  --ease-out-snappy: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --motion-press: 120ms;
  --motion-enter: 240ms;
}

/* Superficies nativas del navegador tematizadas */
::selection {
  background: rgba(139, 164, 58, 0.38);
  color: #162010;
}

input, textarea, select {
  caret-color: var(--moss-green);
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track {
  background: rgba(31, 42, 23, 0.25);
}
::-webkit-scrollbar-thumb {
  background: rgba(197, 161, 92, 0.55);
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(232, 242, 107, 0.72);
  border: 2px solid transparent;
  background-clip: content-box;
}
