/**
 * @file theme.css
 * Design tokens for the Art Gallery theme ("wall label" direction).
 *
 * Two layers:
 *
 * 1. The Art Gallery color contract (`--ag-*`). These are the only values a
 *    site owner is expected to change. The theme settings form (Appearance >
 *    Art Gallery > Settings) writes `--ag-bg`, `--ag-fg`, `--ag-primary` and
 *    `--ag-primary-content` as an inline style on <html>, and a Canvas Brand
 *    Kit color with the same CSS variable name can take over later. Inline
 *    values win over the defaults below.
 *
 * 2. Component tokens (semantic names such as `--primary`, used by the
 *    Tailwind theme and by daisyUI, see src/main.css). They are derived from
 *    the contract and normally need no editing.
 *
 * You can customize these values without rebuilding the compiled CSS. Copy
 * this file to your web root, so it sits next to index.php, and clear Drupal's
 * cache. Then, any changes you make in this file should be reflected right away.
 */

:root {
  /* --- 1. Art Gallery contract -------------------------------------------- */
  --ag-bg: #ffffff; /* page ground: white, or a warm off-white such as #faf8f3 */
  --ag-fg: #000000; /* ink: text, rules, buttons */
  --ag-primary: #ff5c1a; /* the one accent, used behind text as a highlight, never as text */
  --ag-primary-content: #000000; /* text on the accent */
  --ag-mat: #efefef; /* gray mat behind artworks */
  --ag-mat-content: #3d3d3d; /* secondary text: labels, captions (10:1 on white) */
  --ag-rule: 3px; /* heavy rule */
  --ag-hairline: 1px; /* light rule */

  /* --- 2. Component tokens ------------------------------------------------- */
  --background: var(--ag-bg);
  --foreground: var(--ag-fg);
  --card: var(--ag-mat);
  --card-foreground: var(--ag-fg);
  --primary: var(--ag-fg);
  --primary-foreground: var(--ag-bg);
  --secondary: var(--ag-mat);
  --secondary-foreground: var(--ag-fg);
  --muted: var(--ag-mat);
  --muted-foreground: var(--ag-mat-content);
  --accent: var(--ag-primary);
  --accent-foreground: var(--ag-primary-content);
  --destructive: #b3261e;
  --destructive-foreground: #ffffff;
  --border: var(--ag-fg);
  --input: var(--ag-fg);
  --font-sans: "Archivo", "Helvetica Neue", Arial, Helvetica, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, Helvetica, sans-serif;
  --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --radius: 0;
  --shadow-x: 0;
  --shadow-y: 0;
  --shadow-blur: 0;
  --shadow-spread: 0;
  --shadow-opacity: 0;
  --shadow-color: transparent;
  --shadow-2xs: none;
  --shadow-xs: none;
  --shadow-sm: none;
  --shadow: none;
  --shadow-md: none;
  --shadow-lg: none;
  --shadow-xl: none;
  --shadow-2xl: none;
  --tracking-normal: 0em;
  --spacing: 0.25rem;

  /* Set navbar height for hero overlay. */
  --navbar-height: calc(var(--spacing) * 15);

  @media (min-width: 768px) {
    --navbar-height: calc(var(--spacing) * 18);
  }
}

/* Dark scheme: the contract inverts, everything else follows. The theme
   settings form does not write --ag-bg / --ag-fg inline in the dark scheme so
   that these values apply. */
.dark {
  --ag-bg: #000000;
  --ag-fg: #ffffff;
  --ag-mat: #1a1a1a;
  --ag-mat-content: #bdbdbd;
  --destructive: #ff6b5e;
  --destructive-foreground: #000000;
}
