/*
  Screening Room tokens
  Feel: a white gallery wall hung with film stills. The page is bright, square
  and quiet: a thin geometric wordmark, uppercase section labels, black square
  buttons. All the drama lives inside the stills, which are drawn with layered
  gradients, a soft vignette and film grain, with titles laid over them in
  white. Durations sit in small black boxes in a mono face. One signal red,
  used like a recording light.

  Fonts (free on Google Fonts):
  <link href="https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,500;1,8..60,400&family=DM+Mono:wght@400;500&display=swap" rel="stylesheet">
*/

:root {
  /* Page surfaces */
  --sr-paper: #FFFFFF;
  --sr-bone: #F3F1EC;
  --sr-bone-2: #E9E6DF;
  --sr-line: #E2DED7;

  /* Text */
  --sr-ink: #0D0D0D;
  --sr-grey: #67635E;
  --sr-mute: #9A958E;

  /* The screen (dark bands, badges, code) */
  --sr-screen: #151312;
  --sr-screen-2: #24201E;
  --sr-on-screen: #FFFFFF;
  --sr-on-screen-dim: rgba(255, 255, 255, 0.72);
  --sr-screen-line: rgba(255, 255, 255, 0.16);

  /* The one accent: signal red, like a recording light */
  --sr-rec: #D4372A;
  --sr-rec-soft: #FBE5E1;

  /* Still palette (only inside drawn stills) */
  --sr-still-ember: #C9783B;
  --sr-still-cream: #EBD8B4;
  --sr-still-dusk: #3B2C43;
  --sr-still-sea: #2B5660;
  --sr-still-moss: #5B6339;
  --sr-still-rose: #B8675D;
  --sr-still-night: #0F0E12;

  /* Fonts */
  --sr-font: "Jost", "Futura", "Century Gothic", Arial, sans-serif;
  --sr-serif: "Source Serif 4", Georgia, serif;
  --sr-mono: "DM Mono", ui-monospace, Menlo, monospace;

  /* Type scale */
  --sr-text-hero: clamp(36px, 4.6vw, 64px);
  --sr-text-h2: clamp(28px, 3.2vw, 44px);
  --sr-text-h3: 22px;
  --sr-text-label: 22px;
  --sr-text-lead: 19px;
  --sr-text-body: 16px;
  --sr-text-small: 14px;
  --sr-text-tiny: 12px;
  --sr-wordmark: clamp(28px, 3.2vw, 44px);

  /* Weights and tracking */
  --sr-weight-thin: 300;
  --sr-weight: 400;
  --sr-weight-mid: 500;
  --sr-weight-bold: 600;
  --sr-track-tight: -0.015em;
  --sr-track-caps: 0.06em;

  /* Shape: square everywhere */
  --sr-radius: 0;
  --sr-radius-dot: 999px;
  --sr-border: 1px solid var(--sr-line);
  --sr-border-ink: 1px solid var(--sr-ink);

  /* Depth lives inside stills only */
  --sr-vignette: radial-gradient(120% 90% at 50% 45%, transparent 45%, rgba(0, 0, 0, 0.55) 100%);
  --sr-title-shade: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.62) 100%);
  --sr-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  /* Space */
  --sr-gutter: clamp(16px, 3.8vw, 56px);
  --sr-container: 1330px;
  --sr-text-width: 700px;
  --sr-space-1: 4px;
  --sr-space-2: 8px;
  --sr-space-3: 12px;
  --sr-space-4: 16px;
  --sr-space-5: 24px;
  --sr-space-6: 32px;
  --sr-space-7: 48px;
  --sr-space-8: 72px;
  --sr-space-9: 104px;

  /* Motion */
  --sr-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --sr-slow: 600ms;
  --sr-fast: 180ms;
}
