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

@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/Montserrat-Medium.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 500;
}

:root {
  --font-display: "Montserrat", "Arial Black", sans-serif;
  --font-body: "Montserrat", Arial, sans-serif;

  --paper: #e8dfcd;
  --paper-deep: #d5c8af;
  --paper-light: #f8f3e8;
  --ink: #171717;
  --ink-soft: #37342f;
  --muted: #6d675e;
  --line: #9b9284;
  --line-dark: #292622;
  --red: #c51e29;
  --red-dark: #7e1118;
  --red-soft: #e7c5c1;
  --green: #3f6746;
  --gold: #a77b13;
  --white: #fffdf7;
  --cyan: #346f82;
  --cyan-dark: #204c59;
  --orange: #bd5528;
  --purple: #655064;
  --lime: #74843e;
  --sun: #e5b925;
  --chicha-pink: #ff008c;
  --chicha-yellow: #fff000;
  --chicha-green: #7dff00;
  --chicha-blue: #00ddff;
  --chicha-orange: #ff6a00;
  --chicha-violet: #8b39ff;
  --peru-red: #d91023;
  --on-magenta: #fff8db;
  --surface-translucent: rgba(248, 243, 232, 0.9);
  --result-bg: #d8e0c8;
  --result-ink: #29402b;
  --texture-dot: rgba(23, 23, 23, 0.13);

  --page-width: 1240px;
  --radius-sm: 3px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --shadow-soft: 7px 7px 0 rgba(23, 16, 14, 0.18);
  --shadow-card: 5px 5px 0 rgba(23, 16, 14, 0.2);

  --text-xs: 0.68rem;
  --text-sm: 0.78rem;
  --text-base: 0.95rem;
  --text-lg: 1.2rem;
  --text-xl: clamp(1.65rem, 3vw, 2.5rem);
  --text-hero: clamp(3.6rem, 8.7vw, 7.6rem);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #141412;
  --paper-deep: #23211d;
  --paper-light: #292722;
  --ink: #eee7d8;
  --ink-soft: #d0c6b6;
  --muted: #a59b8d;
  --line: #625d54;
  --line-dark: #d4c9b7;
  --red: #df443f;
  --red-dark: #f17a6e;
  --red-soft: #512a28;
  --green: #78927a;
  --gold: #d3aa3d;
  --white: #0f0f0e;
  --cyan: #6192a0;
  --cyan-dark: #83adba;
  --orange: #ce7143;
  --purple: #8a7187;
  --lime: #8d9d61;
  --sun: #d9b43f;
  --peru-red: #e34a46;
  --on-magenta: #fff8e9;
  --surface-translucent: rgba(41, 39, 34, 0.9);
  --result-bg: #273128;
  --result-ink: #d9e4d2;
  --texture-dot: rgba(238, 231, 216, 0.08);
  --shadow-soft: 7px 7px 0 rgba(0, 0, 0, 0.56);
  --shadow-card: 5px 5px 0 rgba(0, 0, 0, 0.62);
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  background:
    linear-gradient(132deg, color-mix(in srgb, var(--sun) 9%, transparent) 0 11%, transparent 11% 84%, color-mix(in srgb, var(--cyan) 7%, transparent) 84%),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  -webkit-font-smoothing: antialiased;
  transition: background-color 180ms ease, color 180ms ease;
}

button,
input,
select { font: inherit; }

button { color: inherit; }

::selection { background: var(--red); color: var(--white); }
