/* ============================================================================
   Websonance 3.0 brand kit · brand.css  (rev 1, 2026-11-16)
   Tokens that are NOT in ws3.css, the lockup, the light-ground Lens, the glass
   utilities, area tones. Load order:  lens.css  ->  ws3.css  ->  brand.css
   (lens.css = the Lens itself, never edited. ws3.css = tokens + components as in the
   product mockups. This file adds what the brand kit decided on top.)
   Everything here is copy-ready. Nothing here redraws the Lens.
   ========================================================================= */

:root{
  /* ---- cool hold: the public ground. Slate, never harsh black. Violet is the light. */
  --hold-0:#08090E; --hold-1:#0F121B; --hold-2:#141926; --hold-3:#1A2030;
  --hold:linear-gradient(180deg,#0B0D13 0%,#0F121B 45%,#141926 75%,#1A2030 100%);
  --hold-light:radial-gradient(70% 60% at 20% 10%,rgba(165,151,242,.14),transparent 70%);
  --hold-glow-polar:radial-gradient(50% 90% at 85% 0%,rgba(114,198,230,.08),transparent 70%);

  /* ---- light grounds (docs, email, print, the Lens on white) */
  --porcelain:#EDEFF5; --paper:#FFFFFF; --ink:#1D2130; --ink-2:#4A5166; --ink-3:#6A7186; --line-light:#E3E7EE;

  /* ---- violet: the brand. On light surfaces the o and the ring go deeper. */
  --violet:#A597F2; --violet-soft:#C9C0FA; --violet-ink:#6E5FD3;

  /* ---- area tones: the accent of a place. Chrome only, never status. */
  --polar:#72C6E6;    --polar-ink:#006A86;    --polar-glyph-light:#00799A;
  --pine:#80B593;     --pine-ink:#2C6E4B;
  --heather:#CBA4DC;  --heather-ink:#7A4B98;
  --pewter:#AEB8CF;   --pewter-ink:#4A5670;

  /* ---- the edit light: violet to polar. Transpose only. */
  --edit-light:linear-gradient(135deg,#A597F2,#72C6E6);
  --edit-light-wide:linear-gradient(120deg,#A597F2 0%,#8FB3EE 48%,#72C6E6 100%);
  --edit-light-ink:linear-gradient(120deg,#6E5FD3 0%,#4C8FC0 50%,#00799A 100%);

  /* ---- glass material (see section 06). Tint = the tone; alpha numbers are the spec. */
  --glass-fill-a:.24; --glass-fill-b:.04;
  --glass-edge:inset 0 1px 0 rgba(255,255,255,.5),inset 0 0 0 1px rgba(255,255,255,.16);
  --glass-blur:blur(14px) saturate(160%);
  --glass-panel:rgba(20,24,35,.82);
}

/* ---- an area sets --tone / --tone-ink / --tone-glow for everything inside it.
        <section data-area="transpose">. Default area = violet (public, Frames, Home). */
[data-area],:root{--tone:var(--violet);--tone-ink:var(--violet-ink);--tone-soft:var(--violet-soft);--tone-a14:rgba(165,151,242,.14);--tone-a28:rgba(165,151,242,.28);--tone-glow:rgba(165,151,242,.4)}
[data-area=transpose]{--tone:var(--polar);--tone-ink:var(--polar-ink);--tone-soft:#AADBF0;--tone-a14:rgba(114,198,230,.14);--tone-a28:rgba(114,198,230,.30);--tone-glow:rgba(114,198,230,.4)}
[data-area=pages]{--tone:var(--pine);--tone-ink:var(--pine-ink);--tone-soft:#A9D2B8;--tone-a14:rgba(128,181,147,.14);--tone-a28:rgba(128,181,147,.28);--tone-glow:rgba(128,181,147,.4)}
[data-area=forms]{--tone:var(--heather);--tone-ink:var(--heather-ink);--tone-soft:#E0C6EC;--tone-a14:rgba(203,164,220,.14);--tone-a28:rgba(203,164,220,.28);--tone-glow:rgba(203,164,220,.4)}
[data-area=templates]{--tone:var(--pewter);--tone-ink:var(--pewter-ink);--tone-soft:#D0D7E6;--tone-a14:rgba(174,184,207,.14);--tone-a28:rgba(174,184,207,.28);--tone-glow:rgba(174,184,207,.35)}

/* ============================================================================
   THE LOCKUP: Lens + wordmark whose o is a PLAIN Figtree o.
   The wordmark is text: webs<o>nance, Figtree 620, letter-spacing -.03em (all in .ws-word).
   The o is a plain glyph coloured by the area. NO pane on the o (that was the old
   wordmark, retired). The Lens beside it is ALWAYS violet.
     <span class="ws-lockup" style="--f:24px" role="img" aria-label="Websonance">
       <span class="ws-lens" aria-hidden="true"><span class="ws-lens-o"></span><span class="ws-lens-ring"></span><span class="ws-lens-pane ws-glass"></span></span>
       <span class="ws-word" aria-hidden="true">webs<span class="ws-word-glyph">o</span>nance</span>
     </span>
   --f = the wordmark's font-size. The Lens is 1.41 x f and the gap is .53 x f (the rail's measured ratio).
   ========================================================================= */
.ws-lockup{--f:24px;text-transform:none;display:inline-flex;align-items:center;gap:calc(var(--f)*.53);line-height:1;vertical-align:middle}
.ws-lockup .ws-lens{font-size:calc(var(--f)*1.41)}
.ws-lockup .ws-word{font-size:var(--f)}
.ws-lockup .ws-word-glyph{color:var(--tone);text-shadow:0 0 .1em var(--tone-glow);transition:color .28s,text-shadow .28s}
/* below 28px of wordmark nothing changes: the o stays a plain letter. (There is no pane to lose.) */

/* ---- light ground: tinted-glass Lens (Zach 11-15, approved round 7) + ink wordmark.
        Put .on-light on the surface (or on the lockup itself). */
.on-light{color:var(--ink)}
.on-light .ws-lens-o{border-color:#6E5FD3;box-shadow:0 0 .08em rgba(110,95,211,.22)}
.on-light .ws-lens-pane{
  background:linear-gradient(150deg,rgba(110,95,211,.30),rgba(110,95,211,.15));
  -webkit-backdrop-filter:blur(.05em) saturate(150%);backdrop-filter:blur(.05em) saturate(150%);
  box-shadow:inset 0 0 0 max(1px,.014em) rgba(110,95,211,.55),inset 0 max(1px,.008em) 0 rgba(255,255,255,.9),0 .03em .1em rgba(60,50,140,.16)}
.on-light .ws-glass::before{background:linear-gradient(150deg,rgba(255,255,255,.6) 0%,rgba(255,255,255,.1) 50%,rgba(255,255,255,.28) 100%)}
.on-light .ws-word{color:var(--ink)}
.on-light .ws-lockup .ws-word-glyph{color:var(--tone-ink);text-shadow:none}

/* ---- glass utilities for UI (not the Lens). One recipe, three uses. */
.glass{position:relative;background:linear-gradient(150deg,rgba(255,255,255,var(--glass-fill-a)),rgba(255,255,255,var(--glass-fill-b)));-webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);box-shadow:var(--glass-edge)}
.glass.tint{background:linear-gradient(150deg,color-mix(in srgb,var(--tone) 30%,transparent),color-mix(in srgb,var(--tone) 8%,transparent))}
.on-light .glass{background:linear-gradient(150deg,color-mix(in srgb,var(--tone-ink) 26%,transparent),color-mix(in srgb,var(--tone-ink) 10%,transparent));box-shadow:inset 0 1px 0 rgba(255,255,255,.95),inset 0 0 0 1px color-mix(in srgb,var(--tone-ink) 50%,transparent),0 1px 4px rgba(40,40,90,.16)}

/* ---- the edit light as a border: gradient ring around any surface (Transpose only) */
.edit-rim{border:1.5px solid transparent;background:linear-gradient(150deg,#161B29,#11141D) padding-box,var(--edit-light) border-box}
.edit-text{background:linear-gradient(92deg,#AADBF0 10%,var(--violet-soft));-webkit-background-clip:text;background-clip:text;color:transparent}

/* ---- status: a dot and a word. Never a tone. (live / changed / issue are in ws3.css .st) */
