/* ========================================================================
   Bremo design tokens — 26 November 2026

   Three looks, one kit:
     • Default / [data-theme="painted"] — the painted inner-guide look.
       North star for consumer, money and guide pages.
       Values copied from /assets/bremo-inner-20261104/inner.css.
     • [data-theme="home"] or [data-theme="orb"] or .bremo-theme-home
       — the live homepage orb, used only on "/".
       Values copied from the live homepage CSS.
     • [data-theme="legal"] or .b-legal — premium modern law-firm look.
       For lawyer, legal and business pages. Values kept exactly as
       merged from /workspace/bremo-ds-lawyer-v2-20261126/tokens-legal.css.
       See THEME-LEGAL.md.

   The dark purple /branding/ page is retired. Do not use its purple
   gradient, gold #F0B450, or the line "Money, made friendly."

   Fonts for the Legal theme are served at /assets/ds/fonts/*.woff2
   on bremo.io. This kit also keeps local copies in fonts/ so
   preview.html works off the box. Do not remove the server files.
   ======================================================================== */

/* Legal + editorial serifs. Server path first, local kit path second. */
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/ds/fonts/instrument-serif-regular.woff2") format("woff2"),
       url("fonts/instrument-serif-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/ds/fonts/instrument-serif-italic.woff2") format("woff2"),
       url("fonts/instrument-serif-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/ds/fonts/cormorant-garamond-500.woff2") format("woff2"),
       url("fonts/cormorant-garamond-500.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/ds/fonts/cormorant-garamond-500-italic.woff2") format("woff2"),
       url("fonts/cormorant-garamond-500-italic.woff2") format("woff2");
}

:root,
[data-theme="painted"] {
  color-scheme: light;

  --font-cormorant: "Cormorant Garamond", "Instrument Serif", "Iowan Old Style", Garamond, Georgia, serif;
  --font-instrument: "Instrument Serif", "Iowan Old Style", "New York", ui-serif, Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Painted / inner-guide type — exact stacks from inner.css.
     Official wordmark (decided 26 November 2026): Montserrat 800,
     tracking -2px at 34px (-2/34 em), then Avenir Next, then Helvetica Neue.
     UI is Avenir Next, then Helvetica Neue, then Arial. The live template
     does not ship those files; official logo PNGs/SVGs in logos/ are outlined. */
  --font-ui: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
  --font-wordmark-stack: "Montserrat", "Avenir Next", "Helvetica Neue", sans-serif;

  --color-page: #ece8f4;
  --color-scene: #eee8f4;
  --color-theme: #ece8f4;
  --color-ink: #383746;
  --color-muted: #625d70;
  --bg-ink: #383746;
  --bg-muted: #625d70;

  --color-wash: linear-gradient(90deg, #fbf7f065, #f8f2f426 58%, transparent);
  --color-wash-mobile: linear-gradient(90deg, #fbf7f09c, #f4eef564);

  --color-focus: #8874a5;
  --focus-ring: 3px solid #8874a5;
  --focus-offset: 5px;

  --color-link: #645184;
  --color-hairline: #80738d25;
  --color-input-border: #bbb1ca;

  --color-ink-soft: #383746;
  --color-ink-deep: #383746;
  --color-ink-body: #383746;
  --color-ink-strong: #383746;
  --color-ink-card: #383746;
  --color-placeholder: #625d70;
  --color-muted-2: #625d70;
  --color-quiet: #625d70;
  --color-icon: #383746;

  --font-wordmark-size: 34px;
  --font-wordmark-size-mobile: 29px;
  --font-wordmark-weight: 800;
  --font-wordmark-tracking: -2px;

  --font-title-size: clamp(48px, 5.6vw, 94px);
  --font-title-size-long: clamp(42px, 4.7vw, 76px);
  --font-title-size-mobile: clamp(37px, 10.7vw, 64px);
  --font-title-weight: 400;
  --font-title-tracking: -0.055em;
  --font-title-line: 1.04;

  --font-kicker-size: 10px;
  --font-kicker-weight: 500;
  --font-kicker-tracking: 0.19em;
  --font-category-size: 11px;
  --font-category-tracking: 0.08em;
  --font-summary-size: 16px;
  --font-summary-line: 1.7;
  --font-summary-max: 510px;

  --font-pill-size: 14px;
  --font-pill-size-small: 12px;
  --font-pill-weight: 500;
  --font-text-link-size: 12px;
  --font-foot-size: 11px;
  --font-size-body: 16px;
  --font-size-body-mobile: 14px;
  --font-size-small: 14px;
  --font-size-caption: 12px;
  --font-size-micro: 11px;
  --line-body: 1.65;
  --line-ui: 1.3;

  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-black: 800;

  --pill-bg: linear-gradient(120deg, #ffffff55, #ece5f53b 50%, #eaf0fc52);
  --pill-border: 1px solid #ffffffc9;
  --pill-shadow: inset 0 2px 1px #ffffffbd, inset 0 -2px 3px #b0a9c32b, 0 9px 24px #71618d12;
  --pill-filter: blur(4px) saturate(115%);
  --pill-pad: 15px 25px;
  --pill-pad-small: 11px 19px;
  --pill-min-height: 50px;
  --pill-min-height-small: 44px;
  --pill-radius: 999px;
  --pill-primary-min: 240px;
  --pill-gap: 20px;

  --glass-bg: var(--pill-bg);
  --glass-border: var(--pill-border);
  --glass-blur: var(--pill-filter);
  --glass-shadow: var(--pill-shadow);
  --radius-pill: 999px;
  --radius-card: 18px;
  --radius-panel: 32px;
  --radius-search: 999px;
  --radius-dialog: 32px;
  --radius-circle: 50%;

  --reader-bg: linear-gradient(125deg, #fbf8ffd9, #ebf3f4db);
  --reader-filter: blur(20px) saturate(115%);
  --reader-shadow: inset 0 2px 1px #fff, 0 30px 100px #47385630;
  --reader-backdrop: #40374835;
  --reader-radius: 32px;
  --reader-width: min(1240px, 94vw);
  --reader-height: 92svh;

  --space-2: 2px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-14: 14px;
  --space-16: 16px;
  --space-18: 18px;
  --space-20: 20px;
  --space-22: 22px;
  --space-24: 24px;
  --space-25: 25px;
  --space-26: 26px;
  --space-28: 28px;
  --space-30: 30px;
  --space-32: 32px;
  --space-36: 36px;
  --space-40: 40px;
  --space-48: 48px;
  --space-50: 50px;
  --space-56: 56px;
  --space-64: 64px;

  --scene-pad: 30px 5vw 26px;
  --scene-pad-mobile: 22px 7vw 18px;
  --story-width: min(870px, 68vw);
  --story-pad: 26px 0;
  --top-min-height: 48px;
  --top-gap: 26px;
  --actions-gap: 25px;
  --kicker-margin: 0 0 22px;
  --summary-margin: 24px 0 28px;

  --art-live-base: /assets/bremo-inner-20261104/;
  --art-local-base: reference/inner-guide/;

  --duration-fast: 0s;
  --duration-ui: 0s;
  --ease-standard: ease;

  --shared-mint: #9fe2c4;
  --shared-sky: #a8ccf2;
  --shared-lilac: #cbb8ea;
  --shared-blush: #f7c9d5;
  --shared-butter: #f8e9a6;
  --shared-peach: #f8d0b8;
  --shared-ink: #23252b;
  --board-violet: #a786d4;
  --board-mint: #98e0ad;
  --board-pink: #f4c2c2;
  --board-blue: #a0c4ff;
  --board-peach: #ffc8a9;
}

/* ------------------------------------------------------------------ */
/* Homepage orb — only for "/". Exact values from the live homepage.  */
/* ------------------------------------------------------------------ */
[data-theme="home"],
[data-theme="orb"],
.bremo-theme-home {
  --color-page: #f3edf5;
  --color-theme: #bba3cc;
  --color-ink: #292930;
  --color-ink-soft: #30273b;
  --color-ink-deep: #3b3542;
  --color-ink-body: #49434e;
  --color-ink-strong: #3f3548;
  --color-ink-card: #33263f;
  --color-placeholder: #574b65;
  --color-muted: #62566d;
  --color-muted-2: #665b70;
  --color-quiet: #787080;
  --color-icon: #51405f;
  --color-wordmark: rgba(255, 255, 255, 0.96);
  --opacity-wordmark: 0.9;

  --color-wash-blue: #5369c9;
  --color-wash-coral: #f28a7d;
  --color-wash-pink: #d19bcc;
  --color-wash-sky: #85b2d6;
  --color-wash-blush: #e6aad1;
  --color-wash-lilac: #b6a3cd;
  --color-wash-rose: #d2a9c0;
  --color-wash-peri: #9a98c9;
  --opacity-atmosphere: 0.46;
  --blur-atmosphere: 28px;
  --gradient-atmosphere:
    radial-gradient(ellipse at 14% 90%, rgba(83, 105, 201, 0.72), transparent 52%),
    radial-gradient(ellipse at 89% 86%, rgba(242, 138, 125, 0.74), transparent 49%),
    radial-gradient(ellipse at 78% 13%, rgba(209, 155, 204, 0.64), transparent 53%),
    radial-gradient(ellipse at 17% 14%, rgba(133, 178, 214, 0.77), transparent 46%),
    radial-gradient(ellipse at 51% 53%, rgba(230, 170, 209, 0.64), transparent 41%),
    linear-gradient(135deg, #b6a3cd, #d2a9c0 58%, #9a98c9);
  --opacity-grain: 0.2;
  --grain:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.83' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23808080' filter='url(%23grain)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
  --color-solid-glass: #eee7f3;

  --color-focus: #8d7bb9;
  --focus-ring: 2px solid #8d7bb9;
  --focus-offset: 4px;

  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-wordmark-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-wordmark-size: 74px;
  --font-wordmark-size-mobile: 68px;
  --font-wordmark-weight: 750;
  --font-wordmark-tracking: -3px;

  --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.05) 35%, rgba(255, 255, 255, 0.10) 75%, rgba(255, 255, 255, 0.24));
  --glass-border: 1px solid rgba(255, 255, 255, 0.68);
  --glass-blur: blur(6px) saturate(1.45);
  --glass-shadow:
    inset 0 1.5px 1px #ffffffed,
    inset 1.5px 0 1px #ffffff80,
    inset -1px -1.5px 1px #ffffffa6,
    inset 0 -4px 8px #9e80bf12,
    0 14px 38px #4d36651c,
    0 2px 5px #fff3;
  --radius-search: 28px;
  --radius-panel: 30px;

  --orb-fallback-bg:
    radial-gradient(ellipse at 50% 100%, #f5a184, transparent 55%),
    linear-gradient(180deg, #84c9dc 2%, #9a81ed 35%, #c975d7 65%, #e88ca8);
  --orb-fallback-shadow: inset 0 0 17px #84d8e8, 0 0 25px #a7dae655;
  --orb-drop-shadow: drop-shadow(5px 13px 13px rgba(71, 47, 106, 0.17));
  --orb-peach: #f5a184;
  --orb-cyan: #84c9dc;
  --orb-violet: #9a81ed;
  --orb-magenta: #c975d7;
  --orb-rose: #e88ca8;
  --orb-shader-cyan: #6edceb;
  --orb-shader-violet: #9b67f0;
  --orb-shader-pink: #f578bb;
  --orb-shader-peach: #fa9f73;
  --width-search: 480px;
  --orb-size: min(480px, 52vh, 86vw);
  --wordmark-top: clamp(64px, 11vh, 112px);
  --duration-orb-breathe: 3s;
  --duration-colour-flow: 18s;
  --duration-atmosphere: 10s;
}

@media (prefers-reduced-motion: reduce) {
  [data-theme="home"],
  [data-theme="orb"],
  .bremo-theme-home {
    --duration-orb-breathe: 0.01ms;
    --duration-colour-flow: 0.01ms;
    --duration-atmosphere: 0.01ms;
  }
}


/* ------------------------------------------------------------------ */
/* Legal theme — lawyer, legal and business pages                     */
/* Source: bremo-ds-lawyer-v2-20261126/tokens-legal.css               */
/* Apply with data-theme="legal" on <html> or <body>, or class        */
/* "b-legal" on <body> (the selector the lawyer rebuild already uses).*/
/* ------------------------------------------------------------------ */
[data-theme="legal"],
.b-legal {
  /* Ink: deep navy */
  --b-ink: #0f1b2d;
  --b-ink-2: #1d2c45;
  --b-ink-3: #3f4859;
  --b-ink-4: #6b6f78;
  --b-plum: #0f1b2d;
  --b-aubergine: #0f1b2d;
  --b-aubergine-2: #1d2c45;

  /* Paper */
  --b-base: #f6f1e7;
  --b-paper: #fffdf8;
  --b-vellum: #efe7d8;
  --b-line: #ddd2bf;
  --b-line-2: #c9bba2;

  /* Brass accent (sparingly: rules, numerals, seal, eyebrow) */
  --b-brass: #9c7a46;
  --b-brass-deep: #7d5f33;
  --b-brass-light: #c8ad7f;
  --b-navy-band: #0f1b2d;
  --b-cream-on-navy: #efe7d8;
  --b-focus: #9c7a46;
  --b-success: #2f6b4f;
  --b-error: #9b3b3b;

  /* Type */
  --b-font-display: "Cormorant Garamond", "Instrument Serif", "Iowan Old Style", Garamond, Georgia, serif;
  --b-fs-hero: clamp(2.75rem, 6vw, 4.6rem);
  --b-fs-h2: clamp(2rem, 3.4vw, 2.8rem);

  /* Shape: crisper than Pastel */
  --b-r-xs: 3px;
  --b-r-sm: 4px;
  --b-r-md: 6px;
  --b-r-lg: 8px;
  --b-r-xl: 10px;
  --b-shadow-soft: 0 1px 2px rgba(15, 27, 45, 0.05);
  --b-shadow-card: 0 1px 0 #fff inset, 0 18px 40px -24px rgba(15, 27, 45, 0.28), 0 2px 6px rgba(15, 27, 45, 0.04);
  --b-ring: 0 0 0 3px rgba(156, 122, 70, 0.22);

  /* Textures */
  --b-paper-tex:
    repeating-linear-gradient(0deg, rgba(15, 27, 45, 0.018) 0 1px, transparent 1px 4px),
    radial-gradient(ellipse at 50% -10%, rgba(255, 255, 255, 0.75), transparent 60%),
    radial-gradient(ellipse at 100% 100%, rgba(196, 170, 120, 0.14), transparent 55%);
  --b-grain-warm: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .36 0 0 0 0 .22 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E");

  /* Aliases onto the shared --color-* / --font-* names used by this kit */
  --color-page: #f6f1e7;
  --color-theme: #0f1b2d;
  --color-ink: #0f1b2d;
  --color-ink-soft: #1d2c45;
  --color-ink-deep: #0f1b2d;
  --color-ink-body: #3f4859;
  --color-ink-strong: #0f1b2d;
  --color-placeholder: #6b6f78;
  --color-muted: #6b6f78;
  --color-muted-2: #6b6f78;
  --color-icon: #0f1b2d;
  --color-focus: #9c7a46;
  --focus-ring: 2px solid #9c7a46;
  --font-display: var(--b-font-display);
  --radius-card: 10px;
  --radius-search: 6px;
  --radius-panel: 10px;
  --radius-pill: 4px;
}
