/* Thing Collector design tokens. See design/DESIGN.md for when to use each one.
   Load Schibsted Grotesk in index.php:
   <link href="https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:wght@400;500;700;800&display=swap" rel="stylesheet"> */

:root {
  /* Color */
  --tc-steel-0: #eef1f4;   /* page background */
  --tc-steel-1: #c9d6e1;   /* light drawer, hairlines on white */
  --tc-steel-2: #8fb0c8;   /* mid drawer, big numerals */
  --tc-steel-3: #4f7896;   /* dark drawer, icons, borders (not small text on steel-0) */
  --tc-steel-text: #45698a;/* muted text */
  --tc-navy: #1f3a52;      /* primary action, selected drawer, dark band */
  --tc-ink: #14202b;       /* text */
  --tc-red: #d2453b;       /* rules, markers, focus ring */
  --tc-red-text: #c23b31;  /* error / destructive text */
  --tc-white: #ffffff;     /* cards, labels, inputs */

  /* Type */
  --tc-font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tc-text-base: 17px;
  --tc-leading: 1.6;
  --tc-display: clamp(2.5rem, 5.4vw, 4.4rem);
  --tc-h1: clamp(1.8rem, 3.4vw, 2.6rem);
  --tc-h2: 1.5rem;
  --tc-title: 1.1rem;
  --tc-small: 0.9rem;
  --tc-label: 0.85rem;

  /* Space */
  --tc-s1: 0.25rem; --tc-s2: 0.5rem; --tc-s3: 0.75rem; --tc-s4: 1rem;
  --tc-s5: 1.5rem;  --tc-s6: 2rem;   --tc-s7: 3rem;    --tc-s8: 5rem;
  --tc-gap-grid: 8px;
  --tc-width: min(70rem, 100% - 2.5rem);

  /* Shape */
  --tc-radius-control: 4px;   /* buttons, inputs, chips */
  --tc-radius-block: 0;       /* drawers, cards, labels, panels */
  --tc-rule: 3px;             /* label / list-card red edge */
  --tc-rule-strong: 4px;      /* open card top edge, kind tiles */
  --tc-hairline: 1px solid var(--tc-steel-1);
  --tc-pull: rgba(20, 32, 43, .28);

  /* Motion */
  --tc-ease: cubic-bezier(.2, .8, .2, 1);
  --tc-card-open: .7s;
  --tc-card-close: .3s;
  --tc-quick: .2s;
}

/* Baseline every screen shares */
body {
  font-family: var(--tc-font);
  font-size: var(--tc-text-base);
  line-height: var(--tc-leading);
  color: var(--tc-ink);
  background: var(--tc-steel-0);
}
:focus-visible { outline: 3px solid var(--tc-red); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
