/* DM ORIGINALS: design tokens. Every section stylesheet reads from here. */

@font-face {
  font-family: "Frank Ruhl Libre";
  src: url("../assets/fonts/frank-ruhl-libre-hebrew-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Frank Ruhl Libre";
  src: url("../assets/fonts/frank-ruhl-libre-latin-700-normal.woff2") format("woff2");
  font-weight: 700; 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: "Frank Ruhl Libre";
  src: url("../assets/fonts/frank-ruhl-libre-hebrew-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Frank Ruhl Libre";
  src: url("../assets/fonts/frank-ruhl-libre-latin-400-normal.woff2") format("woff2");
  font-weight: 400; 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: "Heebo";
  src: url("../assets/fonts/heebo-hebrew-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Heebo";
  src: url("../assets/fonts/heebo-latin-400-normal.woff2") format("woff2");
  font-weight: 400; 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: "Heebo";
  src: url("../assets/fonts/heebo-hebrew-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Heebo";
  src: url("../assets/fonts/heebo-latin-500-normal.woff2") format("woff2");
  font-weight: 500; 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;
}

:root {
  color-scheme: dark;

  /* Depth: the dive goes from lit water to the abyss */
  --abyss: #050914;
  --deep: #0a1226;
  --navy-900: #0e1a36;
  --navy-800: #13224a;
  --navy-700: #1a2d5c;
  --navy-600: #22386b;
  --navy-brand: #2b4069;

  /* Type on navy */
  --paper: #f2eee6;
  --ink-2: #bcc1cd;
  --ink-3: #8f97ab;

  /* The bulb: the only light source. Focus, motion, the one thing that matters now. */
  --tungsten: #ffc978;
  --tungsten-soft: #ffe2b0;
  --tungsten-glow: rgba(255, 201, 120, 0.22);

  /* Hairlines and surfaces */
  --line: rgba(242, 238, 230, 0.10);
  --line-strong: rgba(242, 238, 230, 0.18);
  --surface: rgba(19, 34, 74, 0.55);
  --surface-solid: #111f42;
  --surface-raised: #172a57;
  --scrim: rgba(5, 9, 20, 0.74);

  /* Type */
  --font-display: "Frank Ruhl Libre", "Times New Roman", serif;
  --font-ui: "Heebo", system-ui, sans-serif;
  --font-slate: "Heebo", system-ui, sans-serif; /* one family for all text: numbers, Latin and the slate too */

  --step-display-xl: clamp(2.6rem, 1.2rem + 7.2vw, 5.75rem);
  --step-display-l: clamp(2.05rem, 1.2rem + 4.4vw, 4.25rem);
  --step-display-m: clamp(1.55rem, 1.1rem + 2.3vw, 2.6rem);
  --step-display-s: clamp(1.25rem, 1.05rem + 1vw, 1.6rem);
  --step-body-l: clamp(1.075rem, 1rem + 0.35vw, 1.25rem);
  --step-body: 1rem;
  --step-small: 0.875rem;
  --step-micro: 0.75rem;

  /* Space: 4px base */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px;
  --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px; --s-20: 80px; --s-24: 96px;
  --gutter: clamp(20px, 5vw, 48px);
  --wrap: 1180px;
  --chapter-pad: clamp(44px, 6.5vh, 76px);

  /* Shape lock: interactive = pill, containers = 24/18 concentric, posters = 14 */
  --r-pill: 999px;
  --r-shell: 24px;
  --r-core: 18px;
  --r-poster: 14px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --t-micro: 220ms;
  --t-reveal: 900ms;
  --t-sheet: 460ms;

  /* Layers */
  --z-content: 1;
  --z-slate: 20;
  --z-tabbar: 40;
  --z-toast: 50;
  --z-sheet: 60;
  --z-grain: 70;

  /* The floating chapter bar needs room under the last line of every chapter */
  --tabbar-space: calc(88px + env(safe-area-inset-bottom, 0px));
  /* the least room beside the content; on wide screens it holds the upright chapter bar */
  --edge: 0px;
}
/* From 1200px the chapter bar stands upright on the right edge: the bottom is free, and the content
   keeps at least 152px on each side so the bar never covers a line (and stays centred) */
@media (min-width: 1200px) {
  :root {
    --tabbar-space: calc(28px + env(safe-area-inset-bottom, 0px));
    --edge: 152px;
  }
}
