/* variables.css – theme tokens for Office Hours.
   Locked scheme: one blue accent family shared by both themes.
   Light = warm "paper", dark = charcoal. */

:root {
  /* semantic colours — danger only (remove/stop/error), never decoration */
  --oh-red: #dc2626;
  --oh-success: #15803d;

  /* accent family — the brand/link blue the icons use */
  --oh-accent: #2563eb;
  --oh-accent-hover: #1d4ed8;
  --oh-accent-soft: #e0eaff; /* selection tints, info chips */
  --oh-icon: #2563eb;
  --oh-elevated: #ffffff; /* hover surfaces in light ≈ paper white */
  --page-padding: 0.5rem;

  /* type — mono is the brand voice: logo, hero, section labels, chips.
     Everything else is the sans. Inter + JetBrains Mono are loaded from
     Google Fonts in page_shell's head links. */
  --oh-font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --oh-font-mono: "JetBrains Mono", "Lucida Console", "Courier New", ui-monospace, monospace;
  --oh-font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  /* shape + motion — one radius scale, one easing, one speed */
  --oh-radius-sm: 6px;
  --oh-radius: 8px;
  --oh-radius-lg: 12px;
  --oh-ease: cubic-bezier(0.33, 1, 0.68, 1); /* easeOutCubic */
  --oh-speed: 140ms;

  /* light theme colours — warm paper, blue accent */
  --bg: #f7f4ec;
  --fg: #26221a;
  --container-bg: #fffdf7;
  --bg-card: #fffdf7;
  --container-border: #d9d3c5;
  --container-shadow: rgba(38, 34, 26, 0.1);
  --fg-muted: #6e675a;
  --accent: var(--oh-accent);
  /* main paper border (pinned) */
  --main-paper-border: var(--oh-accent);

  /* dark theme overrides — charcoal, neutral grays, blue accent pops */
  --bg-dark: #161618;
  --fg-dark: #e5e5e1;
  --container-bg-dark: #1f1f23;
  --container-border-dark: #39393f;
  --container-shadow-dark: rgba(0, 0, 0, 0.55);
}

/* Apply dark tokens when .oh-dark is on <html> — and under the standalone
   blog page's [data-theme="dark"] mechanism, so shared components (modals,
   form controls) resolve the same dark palette in both contexts. */
html.oh-dark,
html[data-theme="dark"] {
  --bg: var(--bg-dark);
  --fg: var(--fg-dark);
  --container-bg: var(--container-bg-dark);
  --bg-card: var(--container-bg-dark);
  --container-border: var(--container-border-dark);
  --container-shadow: var(--container-shadow-dark);
  --fg-muted: #9e9ea4;
  --oh-red: #f87171;
  --oh-success: #4ade80;
  --oh-accent: #60a5fa;
  --oh-accent-hover: #93c5fd;
  --oh-accent-soft: #28303c; /* desaturated steel — tints, chips */
  --oh-icon: #60a5fa;
  --oh-elevated: #2b2b31; /* buttons/chips one step above the surface */
  --oh-elevated-hover: #37373e;
  --oh-border-strong: #46464e; /* control outlines on dark surfaces */
  --oh-input-bg: #242429;
  --accent: var(--oh-accent);
  /* override pinned border */
  --main-paper-border: #60a5fa;
}
