/* Glass — cool, glass.
 * Surfaces are translucent and blurred rather than opaque, so what is behind them tints them. Costs real contrast: every text colour here is one step darker than the same tone in a flat palette, and body text still belongs on an opaque card.
 * Where: Bars, sheets and overlays sitting over media. Never behind a paragraph.
 * GENERATED by _build/build.mjs from _build/palettes.json. Edit the seed, not this. */

:root{
  /* Material 3 roles */
  --primary:oklch(42% 0.125 218);
  --on-primary:oklch(99% 0.0125 218);
  --primary-container:oklch(91% 0.0325 218);
  --on-primary-container:oklch(24% 0.1125 218);
  --secondary:oklch(45% 0.07 252);
  --on-secondary:oklch(99% 0.007 252);
  --secondary-container:oklch(92% 0.0182 252);
  --on-secondary-container:oklch(25% 0.063 252);
  --tertiary:oklch(46% 0.08 188);
  --on-tertiary:oklch(99% 0.008 188);
  --tertiary-container:oklch(92% 0.0208 188);
  --on-tertiary-container:oklch(25% 0.072 188);
  --error:oklch(42% 0.17 25);
  --on-error:oklch(99% 0.017 25);
  --error-container:oklch(91% 0.0442 25);
  --on-error-container:oklch(24% 0.153 25);

  /* status roles, generated from this palette's own seed. Hue anchors near 150,
     85 and 240 so the role is recognisable in all sixteen; chroma and lightness
     come from the palette, so a warm palette's success is a warm green. Every
     --on-X here measured at or above 4.5:1 on its --X, light and dark. */
  --success:oklch(42% 0.0901 163.6);
  --on-success:oklch(99% 0.0139 163.6);
  --success-container:oklch(91% 0.0361 163.6);
  --on-success-container:oklch(24% 0.0518 163.6);
  --caution:oklch(42% 0.0871 98.6);
  --on-caution:oklch(99% 0.0142 98.6);
  --caution-container:oklch(91% 0.0369 98.6);
  --on-caution-container:oklch(24% 0.0502 98.6);
  --info:oklch(42% 0.1322 253.6);
  --on-info:oklch(99% 0.0048 253.6);
  --info-container:oklch(91% 0.0388 253.6);
  --on-info-container:oklch(24% 0.0761 253.6);

  --surface:oklch(98% 0.01 228);
  --surface-dim:oklch(88% 0.014 228);
  --surface-bright:oklch(99.5% 0.006 228);
  --surface-container-lowest:oklch(100% 0 228);
  --surface-container-low:oklch(97% 0.011 228);
  --surface-container:oklch(95.5% 0.013 228);
  --surface-container-high:oklch(93% 0.015 228);
  --surface-container-highest:oklch(90.5% 0.017 228);
  --on-surface:oklch(19% 0.022 228);
  --on-surface-variant:oklch(39% 0.02 228);
  --outline:oklch(56% 0.016 228);
  --outline-variant:oklch(82% 0.014 228);
  --inverse-surface:oklch(24% 0.016 228);
  --inverse-on-surface:oklch(95% 0.008 228);

  /* the eight group hues. One meaning each, never decoration. */
  --h1:oklch(48% 0.098 218);
  --h2:oklch(48% 0.098 252);
  --h3:oklch(48% 0.098 188);
  --h4:oklch(48% 0.098 308);
  --h5:oklch(48% 0.098 42);
  --h6:oklch(48% 0.098 148);
  --h7:oklch(48% 0.098 338);
  --h8:oklch(48% 0.098 96);

  /* MAGNITUDE. The eight hues above are categorical — they say which, never how
     much. These two scales say how much, and the L channel is stepped evenly in
     oklch so the steps are even to an eye instead of even in hex.
     Sequential: step 1 is the low end and sits nearest the page, so the ramp
     runs light to dark in this mode and the other way in dark — a scale whose
     bright end was the zero would read upside down on a dark surface. */
  --seq-1:oklch(94% 0.0372 218);
  --seq-2:oklch(85% 0.0517 218);
  --seq-3:oklch(76% 0.0662 218);
  --seq-4:oklch(67% 0.0807 218);
  --seq-5:oklch(58% 0.0952 218);
  --seq-6:oklch(49% 0.0881 218);
  --seq-7:oklch(40% 0.072 218);

  /* Diverging. --div-mid is the zero point and carries no chroma at all: a middle
     with a hue in it makes every reader read the sign of zero wrongly. The two
     arms are interleaved onto one even lightness ramp rather than mirrored,
     because a mirrored diverging scale cannot survive greyscale — neg-1 and pos-1
     would desaturate to the same grey. Each arm still darkens with magnitude. */
  --div-neg-3:oklch(39% 0.1263 38.6);
  --div-neg-2:oklch(57% 0.1203 38.6);
  --div-neg-1:oklch(75% 0.0933 38.6);
  --div-mid:oklch(93% 0 228);
  --div-pos-1:oklch(84% 0.0866 163.6);
  --div-pos-2:oklch(66% 0.1117 163.6);
  --div-pos-3:oklch(48% 0.103 163.6);

  /* library aliases — every system stylesheet names these, not the roles above,
     so one palette swap moves the whole set. */
  --paper:var(--surface); --card:var(--surface-container-lowest); --sunk:var(--surface-container-high);
  --ink:var(--on-surface); --muted:var(--on-surface-variant); --rule:var(--outline-variant);
  --accent:var(--primary); --accent-soft:var(--primary-container); --on-accent:var(--on-primary);
  --on-accent-soft:var(--on-primary-container);
  --bar:var(--inverse-surface); --on-bar:var(--inverse-on-surface);
  --on-bar-dim:oklch(70% 0.016 228);
  --bar-line:oklch(52% 0.016 228);

  --glass-fill:color-mix(in srgb, var(--surface-container-low) 62%, transparent);
  --glass-blur:22px;
  --surface-style:glass;

  --e1:0 1px 2px rgba(26,26,23,.07), 0 0 6px rgba(26,26,23,.04), 0 2px 6px -1px rgba(26,26,23,.08);
  --e2:0 1px 3px rgba(26,26,23,.07), 0 0 14px rgba(26,26,23,.06), 0 8px 18px -5px rgba(26,26,23,.13);
  --e3:0 2px 5px rgba(26,26,23,.07), 0 0 20px rgba(26,26,23,.07), 0 16px 30px -8px rgba(26,26,23,.18);
  --e4:0 3px 8px rgba(26,26,23,.09), 0 0 30px rgba(26,26,23,.08), 0 26px 50px -12px rgba(26,26,23,.24);
  --e-bar:inset 0 1px 0 rgba(255,255,255,.16), 0 2px 4px rgba(26,26,23,.2), 0 12px 26px -8px rgba(26,26,23,.34);
  --e-in:inset 0 1px 3px rgba(26,26,23,.07);
  color-scheme:light;

  /* THE STATE LAYER. A hover is not a different colour, it is a translucent film
     of the foreground laid over the background — so the token is an opacity, and it
     works on surfaces nobody has designed yet. Identical in all sixteen palettes:
     these are a convention, not a colour choice, which is why they are declared
     once here and have no dark-mode counterpart.
     Use them as   color-mix(in oklch, var(--on-primary)
                     calc(var(--state-hover) * 100%), var(--primary))
     and never as a literal. in oklch, not srgb: the same 8% film has to read the
     same weight over a near-white surface and a near-black one.
     One exception, load-bearing: never leave a film on something carrying body
     text at rest. A translucent layer gets its own compositor layer, Windows drops
     ClearType sub-pixel anti-aliasing on it, and the text goes soft. Put the film
     on an empty sibling behind the text, or apply it only during the interaction. */
  --state-hover: 0.08;
  --state-focus: 0.12;
  --state-press: 0.12;
  --state-drag: 0.16;
  --state-disabled-fg: 0.38;   /* opacity of text on a disabled control */
  --state-disabled-bg: 0.12;   /* opacity of its container */
}

@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  /* Material 3 roles */
  --primary:oklch(80% 0.115 218);
  --on-primary:oklch(20% 0.1375 218);
  --primary-container:oklch(36% 0.1187 218);
  --on-primary-container:oklch(90% 0.0525 218);
  --secondary:oklch(80% 0.0644 252);
  --on-secondary:oklch(21% 0.077 252);
  --secondary-container:oklch(34% 0.0665 252);
  --on-secondary-container:oklch(90% 0.0294 252);
  --tertiary:oklch(80% 0.0736 188);
  --on-tertiary:oklch(21% 0.088 188);
  --tertiary-container:oklch(34% 0.076 188);
  --on-tertiary-container:oklch(90% 0.0336 188);
  --error:oklch(80% 0.1564 25);
  --on-error:oklch(20% 0.187 25);
  --error-container:oklch(36% 0.1615 25);
  --on-error-container:oklch(90% 0.0714 25);

  /* status roles, generated from this palette's own seed. Hue anchors near 150,
     85 and 240 so the role is recognisable in all sixteen; chroma and lightness
     come from the palette, so a warm palette's success is a warm green. Every
     --on-X here measured at or above 4.5:1 on its --X, light and dark. */
  --success:oklch(80% 0.1277 163.6);
  --on-success:oklch(20% 0.0434 163.6);
  --success-container:oklch(36% 0.0773 163.6);
  --on-success-container:oklch(90% 0.0583 163.6);
  --caution:oklch(80% 0.1306 98.6);
  --on-caution:oklch(20% 0.0421 98.6);
  --caution-container:oklch(36% 0.0747 98.6);
  --on-caution-container:oklch(90% 0.0596 98.6);
  --info:oklch(80% 0.1031 253.6);
  --on-info:oklch(20% 0.0639 253.6);
  --info-container:oklch(36% 0.1134 253.6);
  --on-info-container:oklch(90% 0.0496 253.6);

  --surface:oklch(14% 0.016 228);
  --surface-dim:oklch(11% 0.016 228);
  --surface-bright:oklch(29% 0.018 228);
  --surface-container-lowest:oklch(9% 0.014 228);
  --surface-container-low:oklch(17% 0.017 228);
  --surface-container:oklch(19.5% 0.018 228);
  --surface-container-high:oklch(23% 0.02 228);
  --surface-container-highest:oklch(27% 0.022 228);
  --on-surface:oklch(93% 0.012 228);
  --on-surface-variant:oklch(77% 0.018 228);
  --outline:oklch(58% 0.018 228);
  --outline-variant:oklch(34% 0.018 228);
  --inverse-surface:oklch(90% 0.01 228);
  --inverse-on-surface:oklch(22% 0.014 228);

  /* the eight group hues. One meaning each, never decoration. */
  --h1:oklch(79% 0.112 218);
  --h2:oklch(79% 0.112 252);
  --h3:oklch(79% 0.112 188);
  --h4:oklch(79% 0.112 308);
  --h5:oklch(79% 0.112 42);
  --h6:oklch(79% 0.112 148);
  --h7:oklch(79% 0.112 338);
  --h8:oklch(79% 0.112 96);

  /* MAGNITUDE. The eight hues above are categorical — they say which, never how
     much. These two scales say how much, and the L channel is stepped evenly in
     oklch so the steps are even to an eye instead of even in hex.
     Sequential: step 1 is the low end and sits nearest the page, so the ramp
     runs dark to light in this mode and the other way in light — a scale whose
     bright end was the zero would read upside down on a dark surface. */
  --seq-1:oklch(20% 0.0364 218);
  --seq-2:oklch(29% 0.0523 218);
  --seq-3:oklch(38% 0.066 218);
  --seq-4:oklch(47% 0.0789 218);
  --seq-5:oklch(56% 0.0919 218);
  --seq-6:oklch(65% 0.1048 218);
  --seq-7:oklch(74% 0.1178 218);

  /* Diverging. --div-mid is the zero point and carries no chroma at all: a middle
     with a hue in it makes every reader read the sign of zero wrongly. The two
     arms are interleaved onto one even lightness ramp rather than mirrored,
     because a mirrored diverging scale cannot survive greyscale — neg-1 and pos-1
     would desaturate to the same grey. Each arm still darkens with magnitude. */
  --div-neg-3:oklch(74% 0.1315 38.6);
  --div-neg-2:oklch(56% 0.1074 38.6);
  --div-neg-1:oklch(38% 0.0833 38.6);
  --div-mid:oklch(20% 0 228);
  --div-pos-1:oklch(29% 0.0624 163.6);
  --div-pos-2:oklch(47% 0.0988 163.6);
  --div-pos-3:oklch(65% 0.121 163.6);

  /* library aliases — every system stylesheet names these, not the roles above,
     so one palette swap moves the whole set. */
  --paper:var(--surface); --card:var(--surface-container-lowest); --sunk:var(--surface-container-high);
  --ink:var(--on-surface); --muted:var(--on-surface-variant); --rule:var(--outline-variant);
  --accent:var(--primary); --accent-soft:var(--primary-container); --on-accent:var(--on-primary);
  --on-accent-soft:var(--on-primary-container);
  --bar:var(--inverse-surface); --on-bar:var(--inverse-on-surface);
  --on-bar-dim:oklch(40% 0.016 228);
  --bar-line:oklch(50% 0.016 228);

  --glass-fill:color-mix(in srgb, var(--surface-container-low) 62%, transparent);
  --glass-blur:22px;
  --surface-style:glass;

  --e1:0 1px 2px rgba(0,0,0,.5), 0 0 6px rgba(0,0,0,.3);
  --e2:0 2px 4px rgba(0,0,0,.5), 0 10px 22px -6px rgba(0,0,0,.6);
  --e3:0 2px 6px rgba(0,0,0,.5), 0 18px 34px -10px rgba(0,0,0,.7);
  --e4:0 4px 10px rgba(0,0,0,.55), 0 28px 54px -14px rgba(0,0,0,.8);
  --e-bar:inset 0 1px 0 rgba(255,255,255,.1), 0 2px 4px rgba(0,0,0,.6), 0 12px 26px -8px rgba(0,0,0,.7);
  --e-in:inset 0 1px 3px rgba(0,0,0,.45);
  color-scheme:dark;
}}

:root[data-theme="dark"]{
  /* Material 3 roles */
  --primary:oklch(80% 0.115 218);
  --on-primary:oklch(20% 0.1375 218);
  --primary-container:oklch(36% 0.1187 218);
  --on-primary-container:oklch(90% 0.0525 218);
  --secondary:oklch(80% 0.0644 252);
  --on-secondary:oklch(21% 0.077 252);
  --secondary-container:oklch(34% 0.0665 252);
  --on-secondary-container:oklch(90% 0.0294 252);
  --tertiary:oklch(80% 0.0736 188);
  --on-tertiary:oklch(21% 0.088 188);
  --tertiary-container:oklch(34% 0.076 188);
  --on-tertiary-container:oklch(90% 0.0336 188);
  --error:oklch(80% 0.1564 25);
  --on-error:oklch(20% 0.187 25);
  --error-container:oklch(36% 0.1615 25);
  --on-error-container:oklch(90% 0.0714 25);

  /* status roles, generated from this palette's own seed. Hue anchors near 150,
     85 and 240 so the role is recognisable in all sixteen; chroma and lightness
     come from the palette, so a warm palette's success is a warm green. Every
     --on-X here measured at or above 4.5:1 on its --X, light and dark. */
  --success:oklch(80% 0.1277 163.6);
  --on-success:oklch(20% 0.0434 163.6);
  --success-container:oklch(36% 0.0773 163.6);
  --on-success-container:oklch(90% 0.0583 163.6);
  --caution:oklch(80% 0.1306 98.6);
  --on-caution:oklch(20% 0.0421 98.6);
  --caution-container:oklch(36% 0.0747 98.6);
  --on-caution-container:oklch(90% 0.0596 98.6);
  --info:oklch(80% 0.1031 253.6);
  --on-info:oklch(20% 0.0639 253.6);
  --info-container:oklch(36% 0.1134 253.6);
  --on-info-container:oklch(90% 0.0496 253.6);

  --surface:oklch(14% 0.016 228);
  --surface-dim:oklch(11% 0.016 228);
  --surface-bright:oklch(29% 0.018 228);
  --surface-container-lowest:oklch(9% 0.014 228);
  --surface-container-low:oklch(17% 0.017 228);
  --surface-container:oklch(19.5% 0.018 228);
  --surface-container-high:oklch(23% 0.02 228);
  --surface-container-highest:oklch(27% 0.022 228);
  --on-surface:oklch(93% 0.012 228);
  --on-surface-variant:oklch(77% 0.018 228);
  --outline:oklch(58% 0.018 228);
  --outline-variant:oklch(34% 0.018 228);
  --inverse-surface:oklch(90% 0.01 228);
  --inverse-on-surface:oklch(22% 0.014 228);

  /* the eight group hues. One meaning each, never decoration. */
  --h1:oklch(79% 0.112 218);
  --h2:oklch(79% 0.112 252);
  --h3:oklch(79% 0.112 188);
  --h4:oklch(79% 0.112 308);
  --h5:oklch(79% 0.112 42);
  --h6:oklch(79% 0.112 148);
  --h7:oklch(79% 0.112 338);
  --h8:oklch(79% 0.112 96);

  /* MAGNITUDE. The eight hues above are categorical — they say which, never how
     much. These two scales say how much, and the L channel is stepped evenly in
     oklch so the steps are even to an eye instead of even in hex.
     Sequential: step 1 is the low end and sits nearest the page, so the ramp
     runs dark to light in this mode and the other way in light — a scale whose
     bright end was the zero would read upside down on a dark surface. */
  --seq-1:oklch(20% 0.0364 218);
  --seq-2:oklch(29% 0.0523 218);
  --seq-3:oklch(38% 0.066 218);
  --seq-4:oklch(47% 0.0789 218);
  --seq-5:oklch(56% 0.0919 218);
  --seq-6:oklch(65% 0.1048 218);
  --seq-7:oklch(74% 0.1178 218);

  /* Diverging. --div-mid is the zero point and carries no chroma at all: a middle
     with a hue in it makes every reader read the sign of zero wrongly. The two
     arms are interleaved onto one even lightness ramp rather than mirrored,
     because a mirrored diverging scale cannot survive greyscale — neg-1 and pos-1
     would desaturate to the same grey. Each arm still darkens with magnitude. */
  --div-neg-3:oklch(74% 0.1315 38.6);
  --div-neg-2:oklch(56% 0.1074 38.6);
  --div-neg-1:oklch(38% 0.0833 38.6);
  --div-mid:oklch(20% 0 228);
  --div-pos-1:oklch(29% 0.0624 163.6);
  --div-pos-2:oklch(47% 0.0988 163.6);
  --div-pos-3:oklch(65% 0.121 163.6);

  /* library aliases — every system stylesheet names these, not the roles above,
     so one palette swap moves the whole set. */
  --paper:var(--surface); --card:var(--surface-container-lowest); --sunk:var(--surface-container-high);
  --ink:var(--on-surface); --muted:var(--on-surface-variant); --rule:var(--outline-variant);
  --accent:var(--primary); --accent-soft:var(--primary-container); --on-accent:var(--on-primary);
  --on-accent-soft:var(--on-primary-container);
  --bar:var(--inverse-surface); --on-bar:var(--inverse-on-surface);
  --on-bar-dim:oklch(40% 0.016 228);
  --bar-line:oklch(50% 0.016 228);

  --glass-fill:color-mix(in srgb, var(--surface-container-low) 62%, transparent);
  --glass-blur:22px;
  --surface-style:glass;

  --e1:0 1px 2px rgba(0,0,0,.5), 0 0 6px rgba(0,0,0,.3);
  --e2:0 2px 4px rgba(0,0,0,.5), 0 10px 22px -6px rgba(0,0,0,.6);
  --e3:0 2px 6px rgba(0,0,0,.5), 0 18px 34px -10px rgba(0,0,0,.7);
  --e4:0 4px 10px rgba(0,0,0,.55), 0 28px 54px -14px rgba(0,0,0,.8);
  --e-bar:inset 0 1px 0 rgba(255,255,255,.1), 0 2px 4px rgba(0,0,0,.6), 0 12px 26px -8px rgba(0,0,0,.7);
  --e-in:inset 0 1px 3px rgba(0,0,0,.45);
  color-scheme:dark;
}
