/* Theme pack: Classic (light).
   This is the default pack AND the token contract: every custom property app.css reads is
   defined here, and every other pack only overrides the ones it wants to change. Bare :root
   is in the selector so a browser without JavaScript, or a stored key that no longer exists,
   still gets a complete theme. */
:root, :root[data-theme="classic-light"] {
  color-scheme: light;

  /* Color */
  --bg: #f6f5f1;            /* page */
  --bg-image: none;         /* page texture (pure CSS gradients only) */
  --bg-size: auto;
  --surface: #ffffff;       /* cards, tables, menus, buttons */
  --soft: #efece4;          /* tags, messages, quiet fills */
  --ink: #1c1b19;           /* body text */
  --muted: #6a675f;         /* secondary text */
  --line: #dcd8cf;          /* dividers inside panels (decorative) */
  --panel-line: var(--line);   /* border around cards, tiles, tables */
  --control-line: #8a867c;     /* border of buttons and form fields (3:1 on surface) */
  --tag-line: var(--line);
  --field-bg: var(--surface);
  --accent: #b3261e;        /* primary button, pressed pill, count badge */
  --accent-ink: #ffffff;
  --accent-line: var(--accent);
  --link: var(--accent);
  --danger: var(--accent);  /* form errors */
  --focus: var(--accent);   /* focus ring */
  --check: auto;            /* checkbox / radio accent-color */
  --ok: #1f6f43;
  --warn: #8a5a00;

  /* Header */
  --header-bg: var(--surface);
  --header-image: none;
  --header-ink: var(--ink);
  --header-line: var(--line);
  --header-border-w: 1px;
  --header-mark: var(--accent);     /* underline of the current nav item */
  --header-focus: var(--focus);
  --brand-size: 1rem;
  --brand-shadow: none;

  /* Inventory grid */
  --thead-bg: var(--soft);
  --thead-ink: var(--ink);
  --thead-line: var(--line);
  --row-hover: var(--soft);
  --row-selected: var(--soft);
  --seg-on-bg: var(--soft);         /* pressed side of a segmented control */
  --seg-on-ink: var(--ink);

  /* Type */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: var(--font-body);   /* headings, brand, stat numbers, cover placeholders */
  --font-ui: var(--font-body);        /* buttons, nav, field labels, table headers */
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --display-weight: 700;
  --display-case: none;
  --display-tracking: normal;
  --h1-size: 1.5rem;
  --h2-size: 1.1rem;
  --nav-weight: 400;
  --btn-weight: 400;
  --btn-primary-weight: 600;

  /* Shape */
  --radius: 8px;
  --radius-sm: 6px;
  --radius-thumb: 3px;
  --radius-pill: 99px;
  --hairline: 1px;           /* dividers */
  --border-w: 1px;           /* panels */
  --control-border-w: 1px;   /* buttons and fields */
  --bar-w: 4px;              /* message side bar */
  --focus-w: 3px;

  /* Depth */
  --shadow: none;            /* cards, tiles, tables */
  --shadow-control: none;    /* buttons */
  --shadow-pop: 0 8px 24px rgba(0, 0, 0, .18);   /* menus */
  --press: 0px;              /* how far a button moves when pressed */
}
