/*
  Reelbrief design tokens
  Concept: a contact sheet on a lightbox, marked up with a red grease pencil.
  Source of truth for colours, type, spacing and motion. See DESIGN.md.
*/

/* Fonts: self-hosted, no Google Fonts CDN. Files in design/fonts (from the
   @fontsource-variable packages big-shoulders, big-shoulders-stencil,
   schibsted-grotesk). Latin + Latin Extended covers SK and EN. */
@font-face {
  font-family: "Big Shoulders";
  src: url("fonts/big-shoulders-latin-standard-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Big Shoulders";
  src: url("fonts/big-shoulders-latin-ext-standard-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; 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: "Big Shoulders Stencil";
  src: url("fonts/big-shoulders-stencil-latin-standard-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Big Shoulders Stencil";
  src: url("fonts/big-shoulders-stencil-latin-ext-standard-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; 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: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 400 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk-latin-ext-wght-normal.woff2") format("woff2-variations");
  font-weight: 400 900; font-style: normal; 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;
}

:root {
  /* Colour. Names describe the material, roles are in DESIGN.md. */
  --stol: #E9EEEA;            /* svetelný stôl: app background */
  --harok: #FBFCFA;           /* hárok: sheets, inputs, composer */
  --film: #23201C;            /* film: text, film bands, player, primary buttons */
  --emulzia: #3A3631;         /* hover/pressed on film, frame borders on bands */
  --film-text: #A9A49B;       /* edge numbers and secondary text on film */
  --grafit: #5E625D;          /* secondary text on light */
  --linka: #C9D0CA;           /* decorative rules only, never a control border */
  --okraj: #7E847F;           /* input and control borders (3:1 on hárok) */
  --ceruzka: #D3291C;         /* grease pencil: marks, focus, selection */
  --ceruzka-text: #B8231A;    /* red text on light surfaces */
  --ceruzka-na-filme: #F25C4B;/* red on film bands (playhead stays --harok) */
  --safelight: #C8611E;       /* AI is working: developing frames, progress */
  --safelight-text: #9A4A14;  /* "AI strihá" text on light */

  /* Type */
  --font-display: "Big Shoulders", "Arial Narrow", sans-serif;
  --font-stencil: "Big Shoulders Stencil", "Big Shoulders", sans-serif;
  --font-ui: "Schibsted Grotesk", system-ui, sans-serif;

  --text-13: 0.8125rem;  /* edge numbers, meta */
  --text-16: 1rem;       /* body, inputs, buttons */
  --text-20: 1.25rem;    /* project titles, section headings */
  --text-25: 1.5625rem;  /* screen title on video detail */
  --text-31: 1.9375rem;  /* wordmark */
  --text-39: 2.4375rem;  /* screen titles */
  --leading-ui: 1.45;
  --leading-display: 1.02;

  /* Space: 4px base */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px;
  --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px; --s16: 64px;

  /* Radius by hierarchy, not one radius everywhere */
  --r-frame: 2px;     /* film frames, thumbnails, player */
  --r-control: 6px;   /* buttons, inputs, textarea */
  --r-chip: 999px;    /* preset chips */
  --r-sheet: 14px;    /* top corners of the composer sheet */

  /* The one shadow: a sheet of paper lying on the lightbox */
  --shadow-sheet: 0 -1px 0 rgba(35, 32, 28, 0.06), 0 -10px 30px -12px rgba(35, 32, 28, 0.22);

  /* Marks */
  --mark-width: 3px;
  --mark-draw: 340ms;            /* one stroke draws in */
  --mark-stagger: 120ms;         /* between marks of one answer */
  --ease-pencil: cubic-bezier(0.3, 0.7, 0.2, 1);
  --develop: 1400ms;             /* a frame develops under the safelight */

  --tap: 44px;                   /* minimum touch target */
  --focus: 0 0 0 2px var(--harok), 0 0 0 4px var(--ceruzka);
}

@media (prefers-reduced-motion: reduce) {
  :root { --mark-draw: 0ms; --mark-stagger: 0ms; --develop: 0ms; }
}
