/*
 * Show Goods shared design tokens, version 1.
 * Served at https://showgoodsco.com/design/v1/tokens.css and read live by every Show Goods site and app
 * (CoDirector, Proscenio, and later showgoodsco.com itself). Change a value here, merge, and each of them
 * shows it on its next page load. Approved by Quentin, Nov 19, 2026 (CoDirector docs/design/show-goods-family-2026-11-19/).
 *
 * Rules for editing:
 * - Only values change in v1 (a colour, a corner, a font), and new tokens may be added. Renaming or removing a token
 *   would break the sites that read it: that goes into a new /design/v2/ file, and each site moves when it's ready.
 * - Every text colour must keep WCAG 2.2 AA contrast on ivory and white (4.5:1 text, 3:1 borders and focus).
 * - Products keep their own layout, components and extras (CoDirector's show colours, Proscenio's dark mode); only the
 *   values below are shared. Signed-in app pages also share their type steps, control heights and page colours
 *   (the "Signed-in app pages" block at the end, Dec 4, 2026).
 * - Each site keeps a copy of this file as a fallback and a daily check that the copy is current.
 */
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-latin-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand colours (brand spec). Coral to aqua is the gradient; never behind or inside small text. */
  --showgoods-ink: #171925;
  --showgoods-coral: #ff684c;
  --showgoods-pink: #f346a5;
  --showgoods-violet: #7849ef;
  --showgoods-blue: #2166f5;
  --showgoods-aqua: #20c9c8;
  --showgoods-gradient: linear-gradient(100deg, #ff684c 0%, #f346a5 28%, #7849ef 55%, #2166f5 80%, #20c9c8 100%);

  /* Surfaces and lines */
  --showgoods-ivory: #faf8f3; /* page */
  --showgoods-ivory-2: #f3f0e8; /* grouping, quiet panels */
  --showgoods-white: #ffffff; /* cards, dialogs, fields */
  --showgoods-rule: #e3ded3; /* card borders, dividers */
  --showgoods-border-control: #8e8c85; /* form fields: 3.37:1 */

  /* Text */
  --showgoods-text: #171925;
  --showgoods-muted: #5c5d67; /* 6.4:1 on ivory */

  /* Action: one blue for buttons and links (Proscenio and the Show Goods account) */
  --showgoods-action: #1a55d6; /* white on it 6.3:1 */
  --showgoods-action-hover: #1442ab;
  --showgoods-action-wash: #eaf0fb; /* selected items, current page */
  --showgoods-on-action: #ffffff;
  --showgoods-link: #1a55d6;
  --showgoods-focus: #174ea6; /* focus ring, 3px */

  /* Text-safe product accents and tints */
  --showgoods-blue-ink: #1a55d6;
  --showgoods-violet-ink: #5f33d6;
  --showgoods-coral-ink: #b83a1f;
  --showgoods-aqua-ink: #0b7a79;
  --showgoods-pink-ink: #b11d72;
  --showgoods-tint-blue: #eaf0fb;
  --showgoods-tint-violet: #efebf8;
  --showgoods-tint-coral: #f9ece5;
  --showgoods-tint-aqua: #e3f5f4;
  --showgoods-tint-pink: #fbeaf3;

  /* Status: always with a word or icon, never colour alone */
  --showgoods-success: #1e7a46;
  --showgoods-success-tint: #e3f1e8;
  --showgoods-warning: #8a5a00;
  --showgoods-warning-tint: #fbf0d9;
  --showgoods-error: #c02b2b;
  --showgoods-error-tint: #fbe9e9;

  /* Type: Manrope for headings and big numbers, Inter for everything else */
  --showgoods-display: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --showgoods-text-font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --showgoods-heading-weight: 800;
  --showgoods-heading-tracking: -0.03em;

  /* Space (4, 8, 12, 16, 24, 32, 48, 64) */
  --showgoods-s1: 0.25rem;
  --showgoods-s2: 0.5rem;
  --showgoods-s3: 0.75rem;
  --showgoods-s4: 1rem;
  --showgoods-s5: 1.5rem;
  --showgoods-s6: 2rem;
  --showgoods-s7: 3rem;
  --showgoods-s8: 4rem;

  /* Shape. Buttons: blue pills for every Show Goods site (Quentin, Nov 19, 2026). */
  --showgoods-r-button: 999px;
  --showgoods-r-control: 10px;
  --showgoods-r-card: 16px;
  --showgoods-r-panel: 24px;
  /* Identity tags: what a thing is (a show's edition, a version, a plan), never something to press. Square and outlined
     so they can't be mistaken for pill buttons or tinted theme tags (Quentin, Nov 30, 2026). Text in --showgoods-text,
     border in --showgoods-border-control (3.37:1), fill --showgoods-white. Pattern: README, "Identity tags". */
  --showgoods-r-tag: 0px;
  --showgoods-tag-border: 1.5px;
  --showgoods-shadow: 0 1px 2px rgb(23 25 37 / 0.06), 0 8px 24px -12px rgb(23 25 37 / 0.18); /* floating layers only */

  /* Motion */
  --showgoods-t-ui: 160ms;
  --showgoods-ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* ---- Signed-in app pages (added Dec 4, 2026, from CoDirector's approved app look; Quentin's design match). ----
     The values CoDirector's Show Planner, Marketplace and Box Office use inside the page, beside the frame, so every
     Show Goods app page looks the same. CoDirector's exact values. Pattern: README, "App page". */

  /* Page: ivory, with a white header band ruled off beneath it. Text on both: --showgoods-text 16.46:1 on ivory and
     17.47:1 on white; --showgoods-muted 6.15:1 on ivory, 6.53:1 on white and 5.73:1 on ivory-2. */
  --showgoods-page: var(--showgoods-ivory, #faf8f3); /* the ivory, by name, so the two can't drift */
  --showgoods-page-header: #ffffff; /* the band holding the page title and its facts */

  /* Type steps. Body is step 0 (17px on phones to 19px wide) at 1.55; long reading is 17px at 1.65. */
  --showgoods-step--1: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --showgoods-step-0: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --showgoods-step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --showgoods-step-2: clamp(1.6rem, 1.35rem + 1.2vw, 2.25rem);
  --showgoods-step-3: clamp(2.2rem, 1.6rem + 3vw, 4rem);
  --showgoods-leading: 1.55;
  --showgoods-reading-size: 1.0625rem;
  --showgoods-reading-leading: 1.65;
  /* Fixed UI sizes: tools and menu items 15px; meta lines, tabs, chips and small buttons 14px; notes under items 13px;
     counts and labels 12px. */
  --showgoods-text-ui: 15px;
  --showgoods-text-sm: 14px;
  --showgoods-text-xs: 13px;
  --showgoods-text-2xs: 12px;
  /* Page title: 24px, 30px from 900px wide; heading weight and tracking as above. */
  --showgoods-page-title: 1.5rem;
  --showgoods-page-title-wide: 1.875rem;
  /* Section titles inside a page: h2 22px in the heading weight; h3 17px, 700, a little tighter. */
  --showgoods-h2: 1.375rem;
  --showgoods-h3: 1.0625rem;
  --showgoods-h3-weight: 700;
  --showgoods-h3-tracking: -0.015em;

  /* Controls. Buttons: 48px pills, 24px sides, bold body-size text; small 40px, 16px sides, 14px. Fields 44px with 8px
     12px padding and body-size text (17 to 19px). Tabs (a segmented toggle on ivory-2): 40px, 14px bold; filter chips:
     40px, 14px semibold (600). */
  --showgoods-button-h: 3rem;
  --showgoods-button-pad-x: 1.5rem;
  --showgoods-button-weight: 700;
  --showgoods-button-sm-h: 40px;
  --showgoods-button-sm-pad-x: 16px;
  --showgoods-control-h: 44px;
  --showgoods-field-text: var(--showgoods-step-0, clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem)); /* the body step */
  --showgoods-chip-h: 40px;
  /* Focus on fields: the focus-blue border plus a 3px halo (the 3px ring stays on links and buttons). */
  --showgoods-focus-halo: color-mix(in srgb, var(--showgoods-focus) 28%, transparent);

  /* Lines: 1px rules and card borders; 2px for a secondary button's border and tick boxes; 1.5px for the open-in-place
     decision cards. */
  --showgoods-line: 1px;
  --showgoods-line-strong: 2px;
  --showgoods-line-card: 1.5px;

  /* Layout: 16px page gutter on phones, 28px from 900px (24px above the content); content up to 1120px (920px for
     narrow pages such as forms); 20px inside a card. */
  --showgoods-gutter: 16px;
  --showgoods-gutter-wide: 28px;
  --showgoods-content-max: 1120px;
  --showgoods-content-narrow: 920px;
  --showgoods-card-pad: 20px;

  /* Tables (CoDirector's money.css .mt-table): 15px text; headers 13px, 700, --showgoods-muted; cells padded 10px 12px;
     numbers and dates on one line. */
  --showgoods-table-text: 15px;
  --showgoods-table-head: 13px;
  --showgoods-table-pad-y: 10px;
  --showgoods-table-pad-x: 12px;
}
