/* waycrest.dev design (sites/waycrest) 2.1.0 "Product pages". Copied into waycrest-web as public/design/site.css. */
/* The home page is one day in a live sky (home.md); the text pages, the product pages (product-pages.md) and the pop-ups
   stay plain white (true black in dark). The apps' own colours appear in their status chips, the Try panel's picks and,
   on an app's own product page, its buttons, links and small labels.
   Every text pair passes 4.5:1; words on the sky sit on a soft scrim.
   Fonts (Google Fonts): Funnel Display 500–700 for the clocks, headings and logo; Funnel Sans 400–700 for text and buttons. */

:root {
  /* page (text pages, pop-ups) */
  --page: #ffffff;          /* pure white, never off-white */
  --ink: #101114;           /* text, primary buttons, outlines */
  --mut: #5b5e66;           /* secondary text */
  --line: #e6e7ea;          /* rules, outlined controls */
  --stage: #f4f5f7;         /* product pages: the quiet ground a picture sits on, and a key cap */
  --frame-body: #17181c;    /* product pages: a phone's body around its screen */
  --frame-edge: rgba(255, 255, 255, .10); /* the light edge on that body */
  --frame-line: rgba(16, 17, 20, .12);    /* the hairline around a Mac window */

  /* the sky page */
  --sky-ink-day: #14151a;   /* words on the sunrise and midday sky */
  --sky-ink-night: #ffffff; /* words on dusk, sunset and night */
  --scrim-day: rgba(255, 255, 255, .34);  /* the soft glow behind words on a day sky */
  --scrim-night: rgba(0, 0, 0, .35);      /* and on a night sky */
  --glass: rgba(255, 255, 255, .74);      /* the floating logo */
  --glass-ink: #101114;
  --glass-night: rgba(255, 255, 255, .08); /* rows on the night sky */
  --night-line: rgba(255, 255, 255, .18);
  --night-mut: rgba(255, 255, 255, .74);
  --night-veil: rgba(2, 3, 10, .55);       /* under the close's words, over the Milky Way */
  /* each moment's still sky, shown until the live sky runs or where it can't */
  --fb-hero: linear-gradient(#1b2552, #6a5a9a 55%, #f4a77a);
  --fb-ai: linear-gradient(#6e9edf, #c4d4ee 55%, #ffb987);
  --fb-mail: linear-gradient(#1c6bd0, #5fa7ef 55%, #cde6fb);
  --fb-pick: linear-gradient(#03050d, #0a1330 55%, #17244c);
  --fb-end: linear-gradient(#000000, #02030a 55%, #070a17);

  /* Tackle AI, from apps/tackle-ai: its pick in the Try panel */
  --ai-ground: #ffffff;
  --ai-ink: #0b0b0c;
  --sun: #ff9f0a;           /* the Try panel's sunrise; also the focus ring */

  /* Tackle Mail today, "Simple" and "Glass": Ember & Sky, from the app (tackle-email mobile/src/tm.ts) */
  --mail-ember: #a8482b;    /* its chip, its pick, and on its product page the buttons, links and labels */
  --mail-on-ember: #ffffff;
  --mail-sky: #4f97cf;      /* small hints only, never words */

  /* Tackle Pick, from apps/tackle-pick */
  --pick-ground: #0b0b0d;
  --pick-glow: #4a0b14;
  --pick: #ff4d5e;          /* the clock */
  --pick-fill: #d7192e;     /* the status chip, and its product page's button */
  --pick-ink: #c8172b;      /* its product page's links and labels on the page colour */

  /* errors in the Try panel */
  --error: #c8172b;

  --font-display: "Funnel Display", system-ui, sans-serif;
  --font-text: "Funnel Sans", system-ui, sans-serif;

  --radius-panel: 28px;
  --radius-pick: 20px;
  --radius-control: 14px;   /* fields, phone choice, header buttons */
  --radius-button: 16px;    /* the panel's buttons */

  /* movement on the product pages (product-pages.md section 9) */
  --move-crisp: .24s;       /* hover, press, a question opening, one page to the next */
  --move-arrive: .56s;      /* a part of a section arriving as it's scrolled to */
  --ease-land: cubic-bezier(.2, .8, .2, 1); /* quick away, soft landing; the home page's screenshots use it too */
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #000000;        /* true black */
    --ink: #f3f3f5;
    --mut: #a2a5ad;
    --line: #24252a;
    --stage: #101114;
    --frame-body: #1d1e23;
    --frame-edge: rgba(255, 255, 255, .14);
    --frame-line: rgba(255, 255, 255, .14);
    --ai-ground: #000000;
    --ai-ink: #f5f5f6;
    --error: #ff6b78;
    --mail-ember: #f0957a;
    --mail-on-ember: #2a0f07;
    --mail-sky: #79b4e3;
    --pick-ink: #ff4d5e;
    /* the sky page is the same in both: it's the sky */
  }
}
