/* Safiro and Nudica Mono, Medium weight only: atipo's free download
   (atipofoundry.com). One weight serves every weight; synthesis is off so
   the browser does not fake bold or italic. Internal comps only. The full
   families need a paid licence (DESIGN.md § Typography). */
@font-face { font-family: "Safiro"; src: url("fonts/Safiro-Medium.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Nudica Mono"; src: url("fonts/NudicaMono-Medium.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
html { font-synthesis: none; }

/* Assembled brand tokens. Early primitives, 2026-11-04.
   Authority: DESIGN.md at the repo root. Status of each token is recorded there.

   --teal and --ink come from the delivered logo SVGs (Emily Leaf, 2026-10-30).
   Every other colour is sampled from the gradient JPGs in ./gradients:
   each value averages a band 40% of the image wide, which removes the grain.
   Sampled values are provisional until the designer issues a palette. */

:root {
  /* Logo colours. Decided. */
  --teal: #13BCA4;
  --ink: #202121;
  --white: #FFFFFF;

  /* Supporting colours. Provisional, sampled. */
  --deep-teal: #076B68;   /* teal.jpg 90% — teal for text on light grounds */
  --abyss: #04232D;       /* ember-teal.jpg 90% — darkest teal ground */
  --ember: #E86D30;       /* ember.jpg 80% — the orange */
  --amber: #F8BE7E;       /* ember-teal.jpg 10% — the light orange */
  --silver: #E2E2E2;      /* silver.jpg 50% */
  --mist: #D1CFDA;        /* silver.jpg 80–100% — cool light ground */
  --graphite: #434449;    /* silver.jpg 0% */

  /* Gradients. Stops are 11 samples, top to bottom, 0%–100% in 10% steps.
     Use them vertically (to bottom), as the source images run. */
  --grad-teal: linear-gradient(to bottom,
    #646645 0%, #ECE9E6 10%, #F9FFFF 20%, #E5FAFA 30%, #C6EDEC 40%, #A0DBD8 50%,
    #6CC8C2 60%, #3CB5AE 70%, #19A098 80%, #076B68 90%, #04272F 100%);
  --grad-ember-teal: linear-gradient(to bottom,
    #F1F8F1 0%, #F8BE7E 10%, #D5A545 20%, #8FA671 30%, #36A79B 40%, #119A97 50%,
    #087579 60%, #065159 70%, #053842 80%, #04232D 90%, #04121E 100%);
  --grad-ember: linear-gradient(to bottom,
    #151513 0%, #151513 10%, #222423 20%, #373D3E 30%, #4F5759 40%, #676B6C 50%,
    #8F6764 60%, #BB4E39 70%, #E86D30 80%, #FAB475 90%, #FEF1E8 100%);
  --grad-silver: linear-gradient(to bottom,
    #434449 0%, #5D5E62 10%, #8A8A8D 20%, #B1B1B2 30%, #CECECE 40%, #E2E2E2 50%,
    #E4E4E5 60%, #D9D8DF 70%, #D1CFDA 80%, #D1CFDA 90%, #D1CFDA 100%);
  --grad-ocean-sand: linear-gradient(to bottom,
    #243329 0%, #1E3E3E 10%, #174B57 20%, #115870 30%, #0F6188 40%, #0F64A1 50%,
    #0E67AD 60%, #1F74B5 70%, #5B93B9 80%, #A4B0BA 90%, #D1C6BC 100%);
  --grad-signal-amber: linear-gradient(to bottom,
    #EBEBED 0%, #CDD0D7 10%, #A5AFBB 20%, #70839C 30%, #425673 40%, #2E3C4F 50%,
    #684D23 60%, #D28E09 70%, #E5AE2A 80%, #3185B4 90%, #022241 100%);
  --grad-violet: linear-gradient(to bottom,
    #261247 0%, #39265D 10%, #534077 20%, #6C5892 30%, #8871AA 40%, #AE90C8 50%,
    #C0A0D7 60%, #B999CC 70%, #A484B2 80%, #826B8E 90%, #5E5564 100%);
  --grad-rose-indigo: linear-gradient(to bottom,
    #DE678B 0%, #D36087 10%, #C55783 20%, #B34C7E 30%, #A14178 40%, #853573 50%,
    #652971 60%, #4A2571 70%, #392571 80%, #3A3179 90%, #7176A1 100%);
  --grad-sage-butter: linear-gradient(to bottom,
    #A5B2B8 0%, #798389 10%, #525458 20%, #474746 30%, #6B716A 40%, #A4B1A7 50%,
    #CBDDCB 60%, #E7F7D1 70%, #F6FEC1 80%, #FCF8B4 90%, #CEC18F 100%);

  /* Type. The deck's display candidates (Round 2, pages 4–5). Commercial faces:
     the licensed files go in ./fonts (see DESIGN.md § Typography). Until they
     are present, the fallbacks render. */
  --font-display: "Safiro", ui-sans-serif, system-ui, sans-serif;
  --font-text: "Safiro", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Nudica Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Grain. Monochrome noise laid over every surface. Opacity is a starting
     value matched by eye to the deck, not measured. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.2 -.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-opacity: .35;
}

/* Apply grain to any surface: <section class="grain">. */
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: var(--grain); opacity: var(--grain-opacity); mix-blend-mode: overlay;
}
