/* The site's tokens (SPEC-PAGES §0.10.5). Primitives (--p-*) hold the only raw values and are used here
   alone; roles name what a value is for and are what styles use; the dark theme changes roles only. The
   cascade follows the layers of the code: a slice's styles win over the ones it is built from. */
@layer base, shared, entities, features, widgets, views;

@font-face {
  font-family: "General Sans";
  src: url("/assets/general-sans.p1VyP7gg.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
  /* The characters of general-sans.woff2 (its cmap): a script it lacks gets its own face in the family. */
  unicode-range:
    U+0000, U+000D, U+0020-007E, U+00A0-0107, U+010C-0113, U+0116-011B, U+011E-011F, U+0122-0123,
    U+012A-012B, U+012E-0131, U+0136-0137, U+0139-013E, U+0141-0148, U+014C-014D, U+0150-015B, U+015E-0165,
    U+016A-016B, U+016E-017E, U+0192, U+0218-021B, U+0237, U+02C6-02C7, U+02C9, U+02D8-02DD, U+0300-0304,
    U+0306-0308, U+030A-030C, U+0312, U+0326-0328, U+0335, U+0337-0338, U+0394, U+03A9, U+03BC, U+03C0,
    U+1E80-1E85, U+1EF2-1EF3, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030,
    U+2039-203A, U+2044, U+2070, U+2074-2079, U+2080-2089, U+20AC, U+20B9-20BA, U+20BD, U+2122, U+212E,
    U+2202, U+2206, U+220F, U+2211-2212, U+2215, U+2219-221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265,
    U+25CA, U+F8FF, U+FB01-FB02;
}

/* Cyrillic: Onest in the site's family (SPEC-SEO §3.5), its letters only; General Sans keeps Latin, digits and marks. */
@font-face {
  font-family: "General Sans";
  src: url("/assets/onest-cyrillic.DOMjEr5M.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@layer base {
  :root {
    /* Neutrals, light to dark. */
    --p-white: #fff;
    --p-gray-25: #fcfcfc;
    --p-gray-50: #f0f0f0;
    --p-gray-150: #dcdcdc;
    --p-gray-300: #b4b4b4;
    --p-gray-350: #a0a09e;
    --p-gray-450: #8f8f8f;
    --p-gray-600: #575757;
    --p-gray-750: #363636;
    --p-gray-800: #2b2b2b;
    --p-gray-850: #262626;
    --p-gray-900: #1e1e1e;
    --p-gray-925: #141414;
    --p-gray-950: #111;
    --p-gray-975: #0b0b0b;
    --p-gray-990: #080808;
    --p-black: #000;

    /* The devices' titanium. */
    --p-metal-600: #6a6c71;
    --p-metal-550: #5b5c60;
    --p-metal-450: #3b3c40;
    --p-metal-350: #2d2d30;
    --p-metal-250: #1d1d1f;
    --p-metal-150: #161618;
    --p-metal-100: #0f0f10;

    /* The maple leaves of the hero. */
    --p-maple-50: #fff7f2;
    --p-maple-100: #f5d3c6;
    --p-maple-300: #e0664a;
    --p-maple-400: #c5502f;
    --p-maple-500: #c8452a;
    --p-maple-600: #b33c22;
    --p-maple-700: #a93b22;
    --p-maple-800: #8c2c17;
    --p-maple-a65: #c8452aa6;

    /* Light, dark and the hero's night in transparency. */
    --p-white-a03: #ffffff08;
    --p-white-a05: #ffffff0d;
    --p-white-a08: #ffffff14;
    --p-white-a09: #ffffff17;
    --p-white-a12: #ffffff1f;
    --p-white-a16: #ffffff29;
    --p-white-a20: #fff3;
    --p-white-a22: #ffffff38;
    --p-white-a30: #ffffff4d;
    --p-white-a31: #ffffff50;
    --p-white-a35: #ffffff59;
    --p-white-a70: #ffffffb3;
    --p-gray-25-a55: #fcfcfc8c;
    --p-black-a07: #00000012;
    --p-black-a12: #0000001f;
    --p-black-a40: #0006;
    --p-black-a48: #0000007a;
    --p-black-a50: #00000080;
    --p-black-a60: #0009;
    --p-night-a20: #08080833;
    --p-night-a27: #08080845;
    --p-night-a52: #08080885;
    --p-night-a55: #0808088c;
    --p-night-a62: #0808089e;
    --p-night-a67: #080808aa;
    --p-night-a72: #080808b8;
    --p-night-a96: #080808f5;

    /* Roles of a surface: they change with the theme. */
    --color-bg: var(--p-gray-25);
    --color-text: var(--p-gray-950);
    --color-text-muted: var(--p-gray-600);
    --color-text-body: var(--p-gray-800);
    --color-focus: var(--p-gray-950);
    --color-surface: var(--p-gray-50);
    --color-line: var(--p-gray-150);
    --color-accent: var(--p-maple-500);
    --color-accent-text: var(--p-maple-600);
    --color-field: var(--p-white);
    --color-field-edge: var(--p-gray-450);
    --color-action: var(--p-gray-950);
    --color-action-edge: var(--p-gray-950);
    --color-on-action: var(--p-gray-25);
    --color-action-hover: var(--p-gray-750);
    --color-action-hover-edge: var(--p-gray-750);
    --color-on-action-hover: var(--p-gray-25);
    --color-on-outline: currentcolor;
    --color-outline-edge: var(--p-gray-150);
    --color-outline-hover: var(--p-gray-50);
    --color-on-outline-hover: currentcolor;
    --brand-filter: none;

    /* Roles that stay in every theme: ink over pictures and dark controls, and their materials. */
    --color-light: var(--p-gray-25);
    --color-light-soft: var(--p-gray-150);
    --color-light-muted: var(--p-gray-300);
    --color-light-faint: var(--p-gray-350);
    --color-light-glass: var(--p-white-a05);
    --color-light-line: var(--p-white-a22);
    --color-light-edge: var(--p-white-a31);
    --color-dark: var(--p-gray-950);
    --color-white: var(--p-white);
    --color-black: var(--p-black);
    --color-night: var(--p-gray-990);
    --color-deep: var(--p-gray-975);
    --color-gateway: var(--p-gray-900);
    --color-label: var(--p-gray-850);
    --color-on-accent: var(--p-maple-50);
    --color-on-accent-muted: var(--p-maple-100);
    --color-on-accent-strong: var(--p-white);
    --color-phone-button: var(--p-metal-450);
    --color-map-wall: var(--p-white-a35);
    --color-map-wall-fill: var(--p-white-a03);
    --color-map-blocked: var(--p-white-a30);

    /* Materials, light and masks. */
    --gradient-phone: linear-gradient(
      150deg,
      var(--p-metal-600),
      var(--p-metal-250) 16%,
      var(--p-metal-350) 46%,
      var(--p-metal-100) 76%,
      var(--p-metal-550)
    );
    --gradient-laptop-base: linear-gradient(var(--p-metal-550), var(--p-metal-350) 45%, var(--p-metal-150));
    --gradient-tv-stand: linear-gradient(var(--p-metal-350), var(--p-gray-950));
    --gradient-maple: radial-gradient(130% 85% at 50% 0%, var(--p-maple-400), var(--p-maple-700) 55%, var(--p-maple-800));
    --gradient-place-exit: radial-gradient(
      circle,
      var(--p-gray-25) 0 2.6px,
      var(--p-maple-500) 3.2px 7.4px,
      var(--p-gray-25) 8px
    );
    --glow-stage: radial-gradient(closest-side, var(--p-white-a09), transparent);
    /* The One button scene, seen through the phone: the page's colour over the ground's dots, none round the way
       (the middle of the ground is the middle of the way), more further off and all at the edges, so the dots are
       darkest round the way as on the app's map; a trail in the colour of what runs, the shade on the ground under
       what stands, the person and the exit as the app's map marks them, the exit reached. */
    --gradient-ground: radial-gradient(
      50% 50% at 50% 54%,
      transparent,
      var(--p-gray-25-a55) 50%,
      var(--color-bg)
    );
    --gradient-trail: linear-gradient(90deg, transparent, currentcolor);
    --gradient-shade: radial-gradient(closest-side, var(--p-black-a12), transparent);
    --gradient-you: radial-gradient(circle closest-side, var(--p-gray-950) 0 58%, var(--p-white) 62%);
    --gradient-exit: radial-gradient(circle closest-side, var(--p-white) 0 22%, var(--p-gray-950) 25% 75%, var(--p-white) 78%);
    --gradient-reached: radial-gradient(circle closest-side, var(--p-white) 0 22%, var(--p-maple-500) 25% 75%, var(--p-white) 78%);
    --scrim-hero:
      linear-gradient(90deg, var(--p-night-a62), var(--p-night-a27) 32%, transparent 56%),
      linear-gradient(0deg, var(--p-night-a52), transparent 20%);
    --scrim-hero-portrait: linear-gradient(
      0deg,
      var(--p-gray-990) 0%,
      var(--p-night-a96) 25%,
      var(--p-night-a67) 36%,
      transparent 53%
    );
    --scrim-band:
      linear-gradient(90deg, var(--p-night-a72), var(--p-night-a52) 38%, transparent 62%),
      linear-gradient(0deg, var(--p-night-a55), transparent 45%);
    --mask-film: linear-gradient(transparent, var(--p-black) 14%, var(--p-black) 86%, transparent);
    --mask-fade-bottom: linear-gradient(var(--p-black) 82%, transparent);
    --mask-world:
      linear-gradient(90deg, transparent, var(--p-black) 8%, var(--p-black) 92%, transparent),
      linear-gradient(transparent, var(--p-black) 14%, var(--p-black) 76%, transparent);
    --fade-scene:
      linear-gradient(90deg, var(--color-bg), transparent 7%, transparent 93%, var(--color-bg)),
      linear-gradient(var(--color-bg), transparent 5%, transparent 93%, var(--color-bg));

    /* Shadows and rings. The rings of a choice are drawn in the light theme's colours, where the checkout is. */
    --shadow-phone:
      inset 0 0 0 1px var(--p-white-a16),
      0 0 0 1px var(--p-black-a60),
      0 44px 70px -34px var(--p-black-a48);
    --shadow-screen:
      inset 0 0 0 1px var(--p-white-a16),
      0 50px 90px -40px var(--p-black);
    --shadow-shot:
      0 0 0 1px var(--p-black-a12),
      0 40px 90px -40px var(--p-black-a40);
    --shadow-featured:
      inset 0 1px var(--p-white-a20),
      0 34px 60px -38px var(--p-maple-800);
    --shadow-menu: 0 12px 24px var(--p-black-a07);
    --shadow-menu-dark:
      inset 0 1px var(--p-white-a08),
      0 18px 30px var(--p-black-a50);
    --shadow-edge: inset 0 0 0 1px var(--p-white-a12);
    --ring-chosen:
      0 0 0 3px var(--p-gray-25),
      0 0 0 5px var(--p-gray-950);
    --ring-option: inset 0 0 0 1px var(--p-gray-950);
    --ring-place: 0 0 0 3px var(--p-gray-900);
    --glow-route: drop-shadow(0 0 5px var(--p-maple-a65));
    --glow-pulse: drop-shadow(0 0 4px var(--p-white-a70));
    --glow-signal: 0 0 16px 3px var(--p-black-a12);
    --glow-signal-answer: 0 0 22px 4px var(--p-maple-a65);

    /* Type: families, the text scale, display and figure roles, leading, tracking, weight. */
    --font-sans: "General Sans", arial, sans-serif;
    --font-mono: ui-monospace, "SF Mono", menlo, monospace;
    --text-xs: 13px;
    --text-sm: 14px;
    --text-md: 15px;
    --text-base: 16px;
    --text-lg: 18px;
    --text-xl: 20px;
    --text-2xl: 24px;
    --display-2xl: clamp(48px, 6.6vw, 96px);
    --display-xl: clamp(44px, 6.2vw, 88px);
    --display-lg: clamp(36px, 4.4vw, 64px);
    --display-lg-portrait: clamp(36px, 6.6vw, 52px);
    --display-lg-short: 48px;
    --figure-xl: clamp(60px, 7vw, 104px);
    --figure-lg: clamp(52px, 5vw, 76px);
    --figure-md: clamp(44px, 4.6vw, 68px);
    --figure-sm: 40px;
    --heading-lg: clamp(30px, 3vw, 42px);
    --heading-md: clamp(26px, 2.6vw, 34px);
    --heading-sm: clamp(22px, 2vw, 28px);
    --heading-xs: clamp(19px, 1.7vw, 22px);
    --leading-display: 0.98;
    --leading-none: 1;
    --leading-tight: 1.04;
    --leading-snug: 1.2;
    --leading-label: 1.3;
    --leading-body: 1.5;
    --leading-read: 1.65;
    --tracking-figure: -0.045em;
    --tracking-display: -0.035em;
    --tracking-heading: -0.03em;
    --tracking-title: -0.015em;
    --weight-light: 300;
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;

    /* Space on a 4px grid (--space-N is N × 4px), the frame of the page, radii. */
    --space-half: 2px;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 28px;
    --space-8: 32px;
    --space-9: 36px;
    --space-10: 40px;
    --space-11: 44px;
    --space-12: 48px;
    --space-14: 56px;
    --space-16: 64px;
    --space-18: 72px;
    --space-20: 80px;
    --space-22: 88px;
    --space-23: 92px;
    --space-24: 96px;
    --space-25: 100px;
    --space-28: 112px;
    --space-30: 120px;
    --space-32: 128px;
    --space-40: 160px;
    --space-45: 180px;
    --shell: 1152px;
    --gutter: var(--space-8);
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-2xl: 30px;
    --radius-pill: 999px;
    --radius-round: 50%;

    /* Motion: durations and curves (the main one, progress, the loops of a pulse and of a breath), layers. */
    --duration-fast: 180ms;
    --duration-base: 400ms;
    --duration-slow: 600ms;
    --duration-slower: 900ms;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-linear: linear;
    --ease-loop: ease-in-out;
    --ease-out: ease-out;
    --z-poster: -3;
    --z-media: -2;
    --z-scrim: -1;
    --z-header: 10;
    --z-skip: 100;
  }

  /* A dark surface: a whole page, a section, the footer. */
  [data-theme="dark"] {
    --color-bg: var(--p-gray-925);
    --color-text: var(--p-gray-25);
    --color-text-muted: var(--p-gray-300);
    --color-focus: var(--p-gray-25);
    --color-surface: var(--p-gray-900);
    --color-line: var(--p-gray-750);
    --color-accent-text: var(--p-maple-300);
    --color-action: var(--p-gray-25);
    --color-action-edge: var(--p-gray-25);
    --color-on-action: var(--p-gray-925);
    --color-action-hover: var(--p-gray-150);
    --color-on-action-hover: var(--p-gray-950);
    --color-outline-edge: var(--p-gray-750);
    --color-outline-hover: var(--p-gray-750);
    --color-on-outline-hover: var(--p-white);
    --brand-filter: invert(1);
  }

  @media (max-width: 760px) {
    :root {
      --gutter: var(--space-6);
      --figure-xl: clamp(34px, 10vw, 44px);
      --figure-md: min(40px, 8vw);
    }
  }
}
/* The page itself: the box model, the text, links and controls, focus, the skip link, a dark surface. */
@layer base {
  * {
    box-sizing: border-box;
  }
  html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--space-8);
  }
  body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font: var(--weight-regular) var(--text-base) / var(--leading-body) var(--font-sans);
    -webkit-font-smoothing: antialiased;
  }
  h1,
  h2,
  h3,
  p,
  figure {
    margin: 0;
  }
  h1,
  h2,
  h3 {
    font-weight: var(--weight-regular);
    text-wrap: balance;
  }
  h2 {
    font-size: var(--display-lg);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-heading);
  }
  h3 {
    font-size: var(--text-2xl);
    line-height: var(--leading-snug);
    letter-spacing: var(--tracking-title);
  }
  p {
    color: var(--color-text-muted);
  }
  a {
    color: inherit;
    text-decoration: none;
  }
  button,
  input,
  textarea,
  select {
    font: inherit;
  }
  button,
  summary {
    cursor: pointer;
  }
  button {
    color: inherit;
  }
  img,
  svg {
    display: block;
    max-width: 100%;
  }
  img {
    height: auto;
  }
  [hidden] {
    display: none !important;
  }
  :focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 5px;
  }
  /* A view that takes focus as it opens is not a control: no ring around it. */
  [tabindex="-1"]:focus-visible {
    outline: none;
  }
  .skip {
    position: fixed;
    top: -70px;
    inset-inline-start: var(--space-4);
    padding: var(--space-3) var(--space-5);
    background: var(--color-white);
    color: var(--color-dark);
    z-index: var(--z-skip);
  }
  .skip:focus {
    top: 12px;
  }
  [data-theme="dark"] {
    background: var(--color-bg);
    color: var(--color-text);
  }

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