/* slime.path — shared base for the 20 homepage mockups. Each vNN.html adds its own layout in an inline <style>. */
/* fonts: loaded by each page's <head> (preconnect + link), not @import (SEO audit 04/11) */

/* Palette « Cryo », chosen by Alex on 04/11 among 5 colour art directions (assets/da/*.css, preview with ?da=<key>):
   a cold-room plate, bioluminescent. Deep teal night, aqua plasmodium, ice-white text. The previous palette (black-green
   agar, yellow plasmodium) is kept as a comment at the end of this block. */
:root {
  --agar: #061a22;        /* the agar, teal night */
  --agar-2: #0b2430;
  --agar-3: #123441;
  --blob: #4ff0e0;        /* the plasmodium, aqua */
  --blob-rgb: 79, 240, 224;
  --blob-soft: rgba(var(--blob-rgb), .28);
  --oat: #e6fbff;         /* main text, ice white */
  --oat-rgb: 230, 251, 255;
  --mut: #86a9b3;
  --mut-rgb: 134, 169, 179;
  --line: rgba(var(--oat-rgb), .12);
  /* surfaces */
  --page: #04121a;        /* page background */
  --card: #071a24;        /* card surface */
  --well: #072029;        /* dish field under the agar photo */
  --well-2: #0c2834;      /* inputs, formula boxes, rings */
  --on-blob: #00201c;     /* text on the plasmodium button */
  --tube-wall: #138f86;   /* tube: wall */
  --tube-core: #d7fffa;   /* tube: streaming core */
  --agar-g1: #123441; --agar-g2: #0a2029; --agar-g3: #041016; /* dish gradient (rim dishes) */
  --field-blend: luminosity; /* the agar photo takes the teal of --well */
  /* before 04/11: --agar #0d120c, --blob #f2c230 (242,194,48), --oat #efe6cf (239,230,207), --mut #9aa58f, --page #070a06,
     --card #0c110b, --well #0d120c, --well-2 #111a10, --on-blob #1a1405, tubes #b98112 / #fff1bd, field-blend normal */
  --f-sans: "IBM Plex Sans", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --f-math: "STIX Two Text", "Times New Roman", serif;
  --gut: clamp(16px, 3vw, 44px);
}
* { box-sizing: border-box; }
html { background: var(--agar); }
body { margin: 0; background: var(--agar); color: var(--oat); font: 400 16px/1.55 var(--f-sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
.mono { font-family: var(--f-mono); }
.math { font-family: var(--f-math); font-style: italic; }
.demo-tag { font: 500 .66rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--agar); background: var(--blob); padding: 4px 6px; border-radius: 3px; }

/* the one primary action, on the first screen of every variant */
.btn-launch { display: inline-flex; align-items: center; gap: .6em; padding: 14px 22px; border-radius: 999px; background: var(--blob); color: var(--on-blob);
  font: 600 1rem/1 var(--f-sans); text-decoration: none; letter-spacing: .01em; box-shadow: 0 0 0 6px var(--blob-soft); transition: box-shadow .2s, transform .2s; }
.btn-launch:hover { box-shadow: 0 0 0 10px var(--blob-soft); }
.btn-launch:focus-visible { outline: 2px solid var(--oat); outline-offset: 4px; }
.btn-ghost { display: inline-flex; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--oat); text-decoration: none; font: 500 .95rem/1 var(--f-sans); }
.btn-ghost:hover { border-color: var(--blob); }

/* nav shared by all: wordmark + 5 pages */
.wordmark { font: italic 400 1.5rem/1 var(--f-math); letter-spacing: -.01em; text-decoration: none; color: var(--oat); } /* Cryo: serif italic */
.wordmark b { color: var(--blob); font-weight: 600; }

/* ---- petri dish (petri.js) ---- */
[data-petri] { position: relative; aspect-ratio: 1; width: 100%; }
.petri-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.petri-rim { stroke: rgba(var(--oat-rgb), .22); stroke-width: .8; }
.petri-rim2 { stroke: rgba(var(--oat-rgb), .07); stroke-width: 3; }
.blob-node { fill: var(--blob); opacity: .22; }
.tube-edge { fill: none; stroke: var(--blob); stroke-opacity: .2; stroke-linecap: round; }
.tube { fill: none; stroke: var(--blob); stroke-linecap: round; }
.tube-route { fill: none; stroke: var(--oat); stroke-opacity: .85; stroke-linecap: round; stroke-width: .7px; stroke-dasharray: 1.6 2.6; }
.pod { fill: none; stroke: var(--blob); stroke-width: .45; stroke-opacity: .75; stroke-dasharray: 100; stroke-dashoffset: 100; stroke-linecap: round; }
.flake { cursor: pointer; outline: none; }
.flake-body { fill: var(--oat); stroke: #cbbd98; stroke-width: .4; }
.flake-sheen { fill: #fff8e6; opacity: .55; }
.flake.is-new .flake-body { fill: #f7f0dc; }
.flake.is-end .flake-body, .flake:focus-visible .flake-body { stroke: var(--blob); stroke-width: 1.2; }
.flake-img { filter: drop-shadow(0 .8px 1.2px rgba(0, 0, 0, .75)); }
.flake.is-end .flake-img, .flake:focus-visible .flake-img { filter: drop-shadow(0 0 1.6px rgba(var(--blob-rgb), .95)) drop-shadow(0 .8px 1.2px rgba(0, 0, 0, .75)); }
/* tubes as bodies (site petri.js): translucent ochre wall, yellow plasmodium, pale streaming core, fine capillaries */
.tube-wall { fill: var(--tube-wall); fill-opacity: .5; }
.tube-body { fill: var(--blob); fill-opacity: .93; }
.tube-core { fill: var(--tube-core); fill-opacity: .55; }
.tube-vein { fill: var(--blob); fill-opacity: .48; }
.flake-label { font: 500 4.4px/1 var(--f-mono); fill: var(--oat); text-anchor: middle; paint-order: stroke; stroke: var(--agar); stroke-width: 1.4px; }

/* the only motion: protoplasm pulse (2 s) + pseudopods toward the newest coin */
@media (prefers-reduced-motion: no-preference) {
  .petri-tubes, .petri-halo { animation: proto 2s ease-in-out infinite; transform-origin: center; }
  .pod { animation: reach 6s cubic-bezier(.3, .1, .2, 1) infinite; }
}
@media (prefers-reduced-motion: reduce) { .pod { stroke-dashoffset: 30; } }
@keyframes proto { 0%, 100% { opacity: 1; } 50% { opacity: .78; } }
@keyframes reach { 0% { stroke-dashoffset: 100; opacity: 0; } 15% { opacity: 1; } 70% { stroke-dashoffset: 8; opacity: 1; } 100% { stroke-dashoffset: 8; opacity: 0; } }

/* flow list (data-flow) */
[data-flow] { list-style: none; margin: 0; padding: 0; font: 400 .82rem/1.2 var(--f-mono); }
[data-flow] li { display: grid; grid-template-columns: 7.5em 1fr 4.8em; align-items: center; gap: 10px; padding: 5px 0; }
[data-flow] .bar { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--blob) calc(var(--p) * 100%), var(--agar-3) 0); }
[data-flow] .pct { text-align: right; color: var(--mut); }

select[data-path] { background: var(--agar-2); color: var(--oat); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: 500 .9rem var(--f-mono); }
input[data-hour-range] { accent-color: var(--blob); width: 100%; }

/* the dish field: --well under the agar photo, blended per colour art direction */
.field { background-blend-mode: var(--field-blend); }
