/* orble.ai tokens: the app's look (the owner's picks of 2026-11-20, docs/superpowers/specs/2026-11-20-studio-picks.md
   Parts 3 to 5, and ui/tokens.css). Rim light, dark first: the housing's black at the notch, a night blue close to
   black under it for the page, words only white or grey, and colour only as light, ice the one accent, muted. Words
   sit on calm solid fills; the fused cells are only where cells touch: the keys and their beads, the chips, the
   small lights. A visitor whose Mac is in light mode gets the same page on paper (the block at the end); the
   hardware (the notch, the MacBook, the island, the close, the Pro plan) stays the housing's black and the keys keep
   their dark faces in both. Every colour on the site is named here; site.css uses only these names. */

/* The faces, self-hosted from github.com/google/fonts (commit cc5661d4) under the SIL Open Font License 1.1, each
   licence beside its file in fonts/ (fonts/README.txt says how they were made; they are the app's, byte for byte):
   Fredoka for every word, Shantell Sans only for what the buddy writes himself, fetched only when he does. */
@font-face { font-family: "Orble Fredoka"; src: url("fonts/fredoka.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Orble Shantell"; src: url("fonts/shantell-sans.woff2") format("woff2"); font-weight: 300 800; font-display: block; }

:root {
  color-scheme: dark light;

  /* the shared scale (Hallmark scaffold) */
  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
  --text-xs: 0.8125rem; --text-sm: 0.9375rem; --text-md: 1.125rem; --text-lg: 1.25rem; --text-xl: 1.5625rem; --text-2xl: 1.953rem; --text-3xl: 2.441rem;
  --text-display-s: clamp(2.25rem, 4vw, 3.5rem); --text-display: clamp(2.5rem, 5.2vw, 5rem);
  --text-section: clamp(2.2rem, 4.3vw, 4.1rem); --text-title: 1.25rem; --text-lead: clamp(1.1rem, 1.45vw, 1.3rem);
  --ease-out: cubic-bezier(.16, 1, .3, 1); --ease-in: cubic-bezier(0.7, 0, 0.84, 0); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-grow: cubic-bezier(.22, 1, .36, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms;
  --container: 1440px; --gutter: 64px; --gap-columns: 32px; --section-gap-s: 120px; --section-gap: 144px; --section-gap-l: 176px;
  --z-base: 1; --z-raised: 10; --z-dropdown: 100; --z-sticky: 200; --z-sticky-nav: 300; --z-modal: 400; --z-toast: 500; --z-tooltip: 600;
  --nav-h: 52px;

  /* Rim light: the hardware's and the island's own colours, the same in both themes */
  --ink: #000;                  /* the housing's black: the notch, the island, the close */
  --bg: #000;
  --panel: #0f131c;             /* the island grown, under the black at the join (ui/tokens.css --panel) */
  --white: #fff;
  --text: #eef0f4;              /* words on the black */
  --text-2: #b8bfcc;
  --text-3: #959eb0;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);
  --line-field: rgba(255, 255, 255, .34);   /* a field's edge, 3:1 on the notch's black */
  --line-field-hover: rgba(255, 255, 255, .5);
  --well: #0f131c;              /* a field in the notch: the night panel under the housing */
  --well-focus: #141a26;
  --placeholder: #8a93a6;
  --wash: rgba(255, 255, 255, .05);
  --wash-2: rgba(255, 255, 255, .085);
  --scrollbar: #2f364a;
  --ice: #9cc4f2;               /* listening, the focus, every mark Orble draws: the one accent */
  --ice-ring: rgba(156, 196, 242, .16);
  --ice-glow: rgba(156, 196, 242, .55);   /* the line under a notch at rest (Orble is on), its glow: ice in both themes, 8px at most */
  --on-ice: #0b0d12;
  --lilac: #b9adf3;             /* thinking, and the person's own trail */
  --speak: #dfe9f7;             /* speaking: the ice's light tone (sand is no longer the voice) */
  --sand: #efc690;              /* the Desk day's tone and a pointer arrow's; never words */
  --coral: #f19191;             /* wrong */
  --sage: #9fd0a8;              /* done */

  /* Fused cells (ui/tokens.css, round 4's B "Calm edges" and the keys' B "A round bead"): a key is one row of cells,
     so a pill, a round bead in its first cell holding the glyph, its word on the rest, on a foot, the same pill
     darker and lower, that a press moves the face down onto. The main key's face is lit and its bead ice. */
  --fz-key: #2a3143;
  --fz-key-hover: #333b50;
  --fz-key-lit: #3f4962;
  --fz-key-lit-hover: #48546f;
  --fz-foot: #080a10;
  --fz-bead: #3a4459;
  --fz-bead-lit: var(--ice);
  --fz-glyph: var(--ice);
  --fz-glyph-on-lit: #0b0d12;
  --foot: 4px;

  /* the page, at night: the night panel, its calm panes, and words in white and grey */
  --page: #0f131c;              /* the night panel under the housing */
  --page-ink: #eef0f4;
  --page-ink-2: #bcc3cf;
  --page-ink-3: #959eb0;
  --page-line: rgba(255, 255, 255, .08);
  --page-line-2: rgba(255, 255, 255, .16);
  --page-card: #171c28;         /* a pane on the page: a section, a plan, a picture */
  --page-raised: #1f2533;       /* raised on a pane: a message, a note, a page in a picture */
  --page-shade: rgba(0, 0, 0, .55);
  --page-shade-2: rgba(0, 0, 0, .4);
  --ice-ink: #9cc4f2;           /* ice where it has to be read on the page: links, focus, the reel's line */
  --ice-wash: rgba(156, 196, 242, .22);
  --lilac-ink: #b9adf3;         /* the person's own trail, drawn on the page */
  --sage-ink: #9fd0a8;          /* done, a bead on the page */
  --on-sage: #0b0d12;

  /* the scaffold's names for the same palette */
  --color-paper: var(--page); --color-paper-2: var(--page-card); --color-paper-3: var(--page-raised);
  --color-ink: var(--page-ink); --color-ink-2: var(--page-ink-2); --color-muted: var(--page-ink-3);
  --color-rule: var(--page-line-2);
  --color-accent: var(--ice-ink); --color-accent-ink: var(--on-ice); --color-focus: var(--ice-ink);
  --color-error: var(--coral); --color-success: var(--sage-ink);

  /* Type: Fredoka for every word, at the app's four weights (Fredoka at 700 is a slab of ink); Shantell Sans for
     what the buddy writes. The macOS menu bar and the MacBook's own keys drawn on the page keep the system face,
     and the coursework in the pictures keeps its book face (STIX Two, site.css). */
  --font-cjk: "Hiragino Maru Gothic ProN", "Hiragino Sans", "PingFang SC", "Apple SD Gothic Neo";
  --font-word: "Orble Fredoka", var(--font-cjk), -apple-system, system-ui, sans-serif;
  --font-hand: "Orble Shantell", "Bradley Hand", cursive;
  --w-text: 400; --w-medium: 460; --w-strong: 530; --w-title: 600;
  --f-set: var(--font-word);
  --f-mono: ui-monospace, "SF Mono", Menlo, monospace;
  --f-math: "STIX Two Text", "STIXGeneral", "Times New Roman", serif;
  --f-sys: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --font-display: var(--font-word); --font-body: var(--font-word); --font-outlier: var(--f-mono);
  --display-weight: 600; --tracking-display: -0.012em;

  --radius-card: 28px; --r-slab: 40px; --radius-pill: 999px; --rule-hair: 1px; --shadow-card: none;
  --r-control: 13px; --r-tab: 10px; --r-label: 9px; --r-figure: 26px;

  /* shadows: always black, never a hue, and no glow past 8px */
  --shade-figure: rgba(0, 0, 0, .9);
  --shade-island: rgba(0, 0, 0, .5);
  --shade-label: rgba(0, 0, 0, .6);
  --mark-back: rgba(0, 0, 0, .78);       /* the dark stroke under every mark */
  --mark-back-2: rgba(0, 0, 0, .8);
  --mark-back-3: rgba(0, 0, 0, .72);
  --label-black: #060708;
  --label-edge: rgba(255, 255, 255, .13);
  --label-ink-2: #b4b8c0;
  --figure-edge: rgba(255, 255, 255, .12);

  /* the buddy in the close-ups (buddy.css, the app's, copied from ui/ as it is): the app's own tokens for him,
     ui/tokens.css's values. Flat black in an ice rim, ice eyes; the day never touches him. */
  --buddy-hi: #fff; --buddy-light: #dfe9f7; --buddy: var(--ice); --buddy-deep: #6f86c9; --buddy-ink: #0e1220; --r-panel: 18px;
  --rest-line: var(--ice); --rest-line-glow: var(--ice-glow);   /* the app's rest line (ui/tokens.css): ice, its glow 55% */
  --buddy-body: var(--ink); --buddy-rim: var(--ice); --buddy-eye: var(--ice);
  --buddy-dot: var(--lilac); --buddy-dot-back: rgba(0, 0, 0, .55);
  --buddy-star-1: var(--ice); --buddy-star-2: var(--lilac); --buddy-star-3: var(--sage);
  --buddy-hammock: #8b909a; --buddy-hammock-bed: #232836;
  --buddy-hand: var(--font-hand); --buddy-hand-ink: var(--text); --buddy-hand-back: var(--ink); --buddy-hand-glow: var(--buddy);

  /* depiction: the island, its board and the Mac it is drawn on. These are the app's own sizes and the
     Mac's own greys; they depict the product and are not the page's palette. */
  --d-cam: #10151c; --d-cam-ring: #1c2530;
  --d-heard: #a9adb6;
  --d-math: #eef0f4;
  --d-grid: rgba(255, 255, 255, .075);
  --d-axis: rgba(255, 255, 255, .5);
  --d-proj: rgba(255, 255, 255, .3);
  --d-dot: rgba(255, 255, 255, .18);
  --d-lead: rgba(235, 236, 239, .42);
  --d-bar: #1a1b1d; --d-bar-ink: #ececee;
  --d-world: #1d1d1f;
  --d-reader: #242528;           /* a full-screen reader's canvas round the page */
  --d-paper: #fdfdfc; --d-paper-ink: #17181a; --d-paper-ink-2: #55575d; --d-paper-rule: #b9bbc1;
  --d-paper-shade: rgba(0, 0, 0, .28); --d-paper-shade-2: rgba(0, 0, 0, .14);
  --d-desk: #2a1c10;
  --pencil: rgb(58, 58, 64);
  --veil: rgba(4, 5, 7, .44);
  --key: #1b1d21; --key-hover: #25282e; --key-down: #232a35;
  --key-edge: rgba(255, 255, 255, .13); --key-edge-2: rgba(255, 255, 255, .16); --key-edge-hover: rgba(255, 255, 255, .55);
  --mb-lid: #020203; --mb-edge: #53565c; --mb-edge-2: #17181a;
  --mb-al-1: #8b8e95; --mb-al-2: #62656b; --mb-al-3: #45474c; --mb-al-4: #1b1c1f;
  --mb-shine: rgba(255, 255, 255, .42); --mb-shade: rgba(0, 0, 0, .9);
  --mb-lip-1: #26272a; --mb-lip-2: #55585e;
  /* the corner of its keyboard: space black keys in the chassis */
  --deck-1: #303136; --deck-2: #25262a; --deck-shine: rgba(255, 255, 255, .12);
  --kc-1: #16171a; --kc-2: #0d0e10; --kc-hover-1: #212328; --kc-shine: rgba(255, 255, 255, .09); --kc-wall: #000; --kc-shade: rgba(0, 0, 0, .45); --kc-ink: #e6e7ea;
  --touch-1: rgba(255, 255, 255, .32); --touch-2: rgba(255, 255, 255, .1); --touch-edge: rgba(255, 255, 255, .55);   /* the fingertip on the key */
  /* the pictures in the wall of seven: each a calm pane, the bars of its chart a bead's grey */
  --vig: var(--page-card);
  --v-bar: #3a4459;
  --v-card: var(--page-raised);  /* a message field, a page, a speech bubble, a note */
  --deck-edge: rgba(255, 255, 255, .14);   /* the light caught under the keyboard's edge */
  --notch-rim: rgba(255, 255, 255, .3);    /* the notch's edge where it meets something as dark as it */
  --fig-shade: rgba(0, 0, 0, .85);

  /* the island's own points (ui/), as the app draws it */
  --isl-pad: 18px;               /* its sides */
  --isl-gap: 10px;
  --isl-row-top: 4px; --isl-row-foot: 14px;
  --isl-voice-top: 5px; --isl-voice-foot: 15px;
  --isl-ask-top: 7px; --isl-ask-foot: 15px; --isl-ask-wave: 22px; --isl-ask-wave-gap: 9px;
  --isl-bar: 2.5px; --isl-bar-gap: 2.5px; --isl-bar-voice: 3px;
  --isl-dots: 6px; --isl-dots-foot: 12px;
  --isl-lip-h: 40px;
  --dv-gap: 22px; --dv-foot: 26px; --dv-note: 14px;
  --mk-label-pad: 7px 11px 8px;
  --mk-label-off: 16px;
  --isl-tab-line: rgba(255, 255, 255, .16);
  --wbar-gap: 26px; --wbar-pad: 0 122px 0 128px;   /* a recording's menu bar, in its own 1920-wide pixels */
  --mb-pad-phone: 7px; --dv-note-phone: 6px;
}

/* By day: the same page on paper, for a Mac in light mode. The panes go white on a pale blue-grey, the words to
   ink, the ice to its dark for what has to be read; the hardware keeps the housing's black and the keys their dark faces. */
@media (prefers-color-scheme: light) {
  :root {
    --page: #eef1f6;
    --page-ink: #0b0d12;
    --page-ink-2: #3a404d;
    --page-ink-3: #565e6e;
    --page-line: rgba(11, 13, 18, .11);
    --page-line-2: rgba(11, 13, 18, .22);
    --page-card: #ffffff;
    --page-raised: #ffffff;
    --page-shade: rgba(16, 22, 34, .16);
    --page-shade-2: rgba(16, 22, 34, .08);
    --ice-ink: #2d5f9f;
    --ice-wash: #cfe0f4;
    --lilac-ink: #6a5bc4;
    --sage-ink: #2f7a45;
    --on-sage: #fff;
    --color-accent-ink: #fff;
    --color-error: #b23b3b;
    --vig: #e2e7ef;
    --v-bar: #c5cbd5;
    --deck-edge: #fff;
    --fig-shade: rgba(16, 22, 34, .5);
  }
}
