@layer reset, base, layout, components, utilities;

/* Tokens do design system da Arbeit (arbeit-studio-website, src/styles/tokens.css).
   Os nomes e os valores de cor vêm de lá. O que o app acrescenta está marcado. */
:root {
  --paper: #f6f3ee;
  --white: #ffffff;
  --bg: #f6f3ee;
  --ink: #2b0f11;
  --ink-soft: #5b524d;
  --ink-faint: #746a64;
  --ink-ghost: #948b84;
  --red: #8a1620;
  --red-deep: #5e0f17;
  --red-tint: #fbe7e4;
  --orange: #d97742;
  --yellow: #f59536;
  --cyan: #1fb298;
  --cyan-deep: #17826f;
  --line: #e4ddd3;
  --line-soft: #efe9e0;

  --disp: "Martian Mono", ui-monospace, monospace;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  /* Acrescentados pelo app: a escala de espaço que o design system documenta e não define */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-6: 24px;
  --s-8: 32px;
  --s-12: 48px;

  /* Acrescentados pelo app: superfícies, texto sobre cor e significado */
  --surface: var(--white);
  --on-accent: #ffffff;
  --danger: #a12a1c;
  --danger-tint: #fbe7e4;
  --success: var(--cyan-deep);
  --warning: #9a5a1c;

  --radius: 2px;
  --text: 13px;
  --text-small: 11.5px;
  --text-micro: 10.5px;

  color-scheme: light;
}

/* Tema escuro: proposta do app, a devolver ao design system depois de usada */
html[data-theme="dark"] {
  --paper: #1a1014;
  --white: #241619;
  --bg: #1a1014;
  --ink: #e9e2db;
  --ink-soft: #c8c0b9;
  --ink-faint: #a39a93;
  --ink-ghost: #8c837c;
  --red: #e0606a;
  --red-deep: #f08a92;
  --red-tint: #3d1a1e;
  --cyan-deep: #4fd0b8;
  --line: #3a2a2d;
  --line-soft: #2c1e21;
  --on-accent: #1a1014;
  --danger: #f08a92;
  --danger-tint: #3d1a1e;
  --warning: #f0b070;

  color-scheme: dark;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/jetbrains-mono-7c88d0cc.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/jetbrains-mono-ext-6168ff55.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Martian Mono";
  src: url("/assets/martian-mono-a3073b30.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Martian Mono";
  src: url("/assets/martian-mono-ext-72f60a1a.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
