/* DermaVTO design tokens. Every colour, type family, space step, easing and
   radius used by styles.css is declared here and referenced with var(--...). */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond.woff2") format("woff2");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colour */
  --color-paper: #faf7f2;
  --color-surface: #f1ece3;
  --color-surface-deep: #e7e0d3;
  --color-ink: #181514;
  --color-muted: #675f5a;
  --color-line: #d9d1c4;
  --color-line-strong: #b9ae9d;
  --color-accent: #b84a39;
  --color-accent-deep: #94392b;
  --color-sage: #2a6f62;
  --color-sage-deep: #1f5248;
  --color-on-ink: #faf7f2;
  --color-error: #9b2c1f;
  --color-zone-cool: #dfe3e6;
  --color-zone-neutral: #e9e3d6;
  --color-zone-warm: #f0dcc4;
  --color-zone-olive: #dcdcbf;
  --color-scrim: rgb(24 21 20 / 0.55);

  /* Type */
  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --text-xs: 0.78rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: clamp(1.4rem, 1.1rem + 1vw, 1.75rem);
  --text-2xl: clamp(1.9rem, 1.3rem + 2vw, 2.7rem);
  --text-display: clamp(2.6rem, 1.4rem + 5.2vw, 5.2rem);

  /* Space (4pt scale) */
  --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: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Shape and rules */
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-pill: 999px;
  --rule-hair: 1px;
  --rule-strong: 2px;
  --measure: 62ch;
  --page-max: 1320px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.64, 0, 0.78, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
}
