/*
  PAUSE website: the one place for colours, fonts, sizes, durations and animation.
  Every page uses these. Home (home.css) uses the new tokens; the older pages
  (style.css) still use the four at the bottom until they're redesigned too.
*/

/* Wanted Sans, the apps' font (SIL Open Font License, see /fonts/WantedSans-OFL.txt).
   Cut down to weights 400-700 and two files: the browser only downloads the Korean
   file when a page has Korean on it. */
@font-face {
  font-family: "Wanted Sans";
  src: url("/fonts/wanted-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+2013-2014, U+2018-201F, U+2022, U+2026,
    U+00B7, U+2190-2199, U+20A9, U+2122, U+00D7;
}

@font-face {
  font-family: "Wanted Sans";
  src: url("/fonts/wanted-sans-hangul.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+AC00-D7A3, U+3131-3163;
}

:root {
  /* Colours: paper and ink come from the logo; the editions from the apps. */
  --paper: #f2eee8;
  --paper-deep: #e8e3db;
  --ink: #22201e;
  --ink-soft: rgba(34, 32, 30, 0.64);
  --ink-faint: rgba(34, 32, 30, 0.4);
  --hairline: rgba(34, 32, 30, 0.14);
  --night: #1d1c1b;
  --night-text: #f2eee8;
  --night-soft: rgba(242, 238, 232, 0.62);
  --night-hairline: rgba(242, 238, 232, 0.16);
  --accent: #f26a3d;
  --edition-ivory: #dfd7c6;
  --edition-charcoal: #2c2d30;
  --edition-orange: #ff6139;
  --paper-clear: rgba(242, 238, 232, 0);
  --veil: rgba(242, 238, 232, 0.5);
  --veil-strong: rgba(242, 238, 232, 0.72);
  --veil-faint: rgba(242, 238, 232, 0.18);
  --veil-top: rgba(242, 238, 232, 0.42);
  --nav-glass: rgba(242, 238, 232, 0.86);
  --hover-wash: rgba(255, 255, 255, 0.35);
  --swatch-edge: rgba(34, 32, 30, 0.12);

  /* Type */
  --font: "Wanted Sans", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Noto Sans KR", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
  --text-label: 0.75rem;
  --text-small: 0.875rem;
  --text-body: 1.0625rem;
  --text-lede: clamp(1.125rem, 1.25vw, 1.3125rem);
  --text-statement: clamp(1.875rem, 2.9vw, 3.125rem);
  --text-title: clamp(2.25rem, 3.6vw, 3.875rem);
  --text-display: clamp(2.75rem, 4.6vw, 5rem);
  --text-email: clamp(1.5rem, 2.1vw, 2.125rem);
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-bold: 620;
  --tracking-label: 0.14em;
  --tracking-tight: -0.03em;
  --leading-tight: 1.1;
  --leading-body: 1.7;

  /* Layout */
  --page-max: 90rem;
  --gutter: clamp(1.25rem, 3.2vw, 3.5rem);
  --column-gap: clamp(1rem, 2vw, 2rem);
  --section-space: clamp(6rem, 11vw, 11rem);
  /* above the footer; the Help page uses it above its FAQs too, so both gaps match */
  --footer-space: clamp(5rem, 9vw, 8rem);
  --support-width: 42rem;
  --nav-height: 4.75rem;
  /* Home's hero on phones: the space under the buttons, the gap between the headline
     and the line, and between the line and the buttons */
  --hero-phone-bottom: 1.75rem;
  --hero-phone-lede-gap: 1.25rem;
  --hero-phone-actions-gap: 1.75rem;
  --radius-pill: 999px;
  --radius-image: 2px;
  --button-height: 3.125rem;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 0.84, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --reveal-duration: 1200ms;
  --reveal-distance: 1.5rem;
  --reveal-stagger: 110ms;
  --hero-intro-duration: 1600ms;
  --nav-duration: 450ms;
  --hover-duration: 350ms;
  --image-zoom-duration: 1400ms;
  --image-zoom: 1.035;
  --faq-open-duration: 450ms;
  --hero-delay-title: 200ms;
  --hero-delay-lede: 450ms;
  --hero-delay-actions: 600ms;
  /* while the hero scrolls away (read by home.js): the film moves at this share of
     the scroll, the words rise this many pixels and fade this many times faster */
  --hero-drift: 0.28;
  --hero-lift-max: 60;
  --hero-fade-speed: 2.4;

  /* Older pages (app, tag links, 404) */
  --background: #ffffff;
  --text: #1a1a1a;
  --secondary-text: rgba(26, 26, 26, 0.55);
  --border: rgba(26, 26, 26, 0.15);
  --font-older: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR",
    "Segoe UI", Roboto, sans-serif;
  --page-width: 34rem;
  --gap: 1.5rem;
  --radius: 999px;
}
