/* The Tinker Cook: design tokens. One source for the landing page and the app (docs/COPY.md, section 3). */

@font-face {
  font-family: "Fraunces";
  src: url("/s/fonts/fraunces-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/s/fonts/fraunces-var-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/s/fonts/hanken-grotesk-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* paper and ink */
  --paper: #faf6ee;
  --paper-2: #f3ecdd;
  --card: #fffdf8;
  --line: #e4dac6;
  --chip-border: #cfc3aa; /* outlines of chips and badges: a line that shows on the card */
  --ink: #23201a;
  --ink-2: #5c564b;
  --ink-3: #8a8375;

  /* the three voices */
  --basil: #3f6b3a; /* action, picked */
  --basil-deep: #2b4c28;
  --basil-tint: #e4edda;
  --tomato: #b8402a; /* the second voice: red pesto, warnings, delete */
  --tomato-tint: #f7e0d8;
  --saffron: #d99a1c; /* "this costs", pending changes, small highlights */
  --saffron-tint: #fbf0cf;

  /* type */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: 1.75rem;
  --step-4: 2.375rem;
  --step-5: clamp(2.5rem, 6vw, 4.25rem);
  --leading: 1.55;
  --measure: 62ch;

  /* space, shape, depth */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 7rem;
  --radius-sm: 8px;
  --radius: 14px;
  --pill: 999px;
  --shadow-1: 0 1px 2px rgba(35, 32, 26, 0.06);
  --shadow-2: 0 1px 2px rgba(35, 32, 26, 0.06), 0 10px 28px rgba(35, 32, 26, 0.09);
  --focus: 0 0 0 3px var(--paper), 0 0 0 5px var(--basil);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: var(--leading);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
