/*
 * Midway palette
 * light first, carnival and mechanical rides
 *
 * TOKENS ONLY. If you are adding a rule that is not a custom property,
 * it belongs in theme.css, not here. The theme's stylesheets never name a
 * colour, which is what lets dark mode, the brand picker and the season
 * engine all work from one codebase.
 *
 * From handoff/palettes/midway.css (light first, dark in the two blocks
 * below). The tokens after the handoff's own are the theme's additions,
 * named for the design's literals: the dark ink on gold (--sun is the same
 * in both looks, so its ink is too), the gold button's shadow, the hero's
 * red stripes and veil, text on a deep band and on a photo, and the red wash
 * behind the about section's eyebrow and guarantee bubble. The dark blocks
 * also give the handoff's two shadows (--sh-1, --sh-2) dark-look values: its
 * light ones, ink at 8 to 16%, vanish on the dark ground.
 */

:root{
  --ink:#1A1512;
  --blue:#0E7C7B;
  --blue-dk:#0A5C5B;
  --blue-lt:#E2F1F0;
  --orange:#C8102E;
  --orange-dk:#9E0B23;
  --sun:#E8B33C;
  --mist:#FDF8EF;
  --line:#E9DDC7;
  --muted:#6E6256;

  --paper:#fff;
  --header-bg:rgba(253,248,239,.95);
  --deep:#1A1512;
  --on-deep:#FDF8EF;
  --on-primary:#fff;

  /* the theme's additions */
  --on-sun:#1A1512;
  --sun-dk:#B8862A;
  --on-deep-dim:rgba(253,248,239,.78);
  --on-deep-line:rgba(253,248,239,.18);
  --on-photo:#fff;
  --on-photo-dim:rgba(255,255,255,.9);
  --stripe-a:#C8102E;
  --stripe-b:#9E0B23;
  --veil-a:rgba(20,16,14,.74);
  --veil-b:rgba(20,16,14,.86);
  --card-ph-2:rgba(232,179,60,.26);
  --card-ph-3:rgba(200,16,46,.12);
  --wash:#F9E5E0;
  /* Ink for our plugins' white cards (BookFlow's item calendar stays white in both
     looks): the light look's muted and deep red, fixed, so they read on white in dark too. */
  --on-card-muted:#6E6256;
  --on-card-link:#9E0B23;

  --fx:0; --tint:.30;

  --disp:'Bebas Neue',Impact,'Arial Narrow',sans-serif;
  --body:'Inter',ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;

  --wrap:1200px;
  --r-sm:4px; --r-md:8px; --r-lg:14px; --r-pill:999px;
  --sh-1:0 2px 0 rgba(26,21,18,.08), 0 8px 24px rgba(26,21,18,.08);
  --sh-2:0 4px 0 rgba(26,21,18,.12), 0 16px 42px rgba(26,21,18,.16);
  --head-h:76px;
}

@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --ink:#FBF3E6;
    --blue:#4FB3B1;
    --blue-dk:#6FCBC9;
    --blue-lt:#15201F;
    --orange:#E84E68;
    --orange-dk:#F8808F;
    --sun:#E8B33C;
    --mist:#141110;
    --line:#2C2521;
    --muted:#9A8C7C;
    --paper:#1C1816;
    --header-bg:rgba(20,17,16,.95);
    --deep:#0D0B0A;
    --on-deep:#FBF3E6;
    --on-primary:#141110;
    --on-sun:#1A1512;
    --sun-dk:#B8862A;
    --on-deep-dim:rgba(251,243,230,.72);
    --on-deep-line:rgba(251,243,230,.16);
    --on-photo:#fff;
    --on-photo-dim:rgba(255,255,255,.9);
    --stripe-a:#C8102E;
    --stripe-b:#9E0B23;
    --veil-a:rgba(20,16,14,.74);
    --veil-b:rgba(20,16,14,.86);
    --card-ph-2:rgba(232,179,60,.16);
    --card-ph-3:rgba(232,78,104,.14);
  --wash:#2D181B;
    --sh-1:0 2px 0 rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.3);
    --sh-2:0 4px 0 rgba(0,0,0,.35), 0 16px 42px rgba(0,0,0,.45);
  }
}

:root[data-theme="dark"]{
  --ink:#FBF3E6;
  --blue:#4FB3B1;
  --blue-dk:#6FCBC9;
  --blue-lt:#15201F;
  --orange:#E84E68;
  --orange-dk:#F8808F;
  --sun:#E8B33C;
  --mist:#141110;
  --line:#2C2521;
  --muted:#9A8C7C;
  --paper:#1C1816;
  --header-bg:rgba(20,17,16,.95);
  --deep:#0D0B0A;
  --on-deep:#FBF3E6;
  --on-primary:#141110;
  --on-sun:#1A1512;
  --sun-dk:#B8862A;
  --on-deep-dim:rgba(251,243,230,.72);
  --on-deep-line:rgba(251,243,230,.16);
  --on-photo:#fff;
  --on-photo-dim:rgba(255,255,255,.9);
  --stripe-a:#C8102E;
  --stripe-b:#9E0B23;
  --veil-a:rgba(20,16,14,.74);
  --veil-b:rgba(20,16,14,.86);
  --card-ph-2:rgba(232,179,60,.16);
  --card-ph-3:rgba(232,78,104,.14);
  --wash:#2D181B;
  --sh-1:0 2px 0 rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.3);
  --sh-2:0 4px 0 rgba(0,0,0,.35), 0 16px 42px rgba(0,0,0,.45);
}
