/* ======================================================================
   H4H PAPER — Light theme
   Brand tokens taken verbatim from h4hjo.org (Oxygen variables.css).
   Warm paper ground · arterial red · Bricolage / Instrument Sans / Plex Mono
   ====================================================================== */

@import url('_core.css');

:root {
  /* ─── Brand tokens (verbatim from h4hjo.org) ───────────────────── */
  --h4h-paper:         #fbf2ee;
  --h4h-paper-deep:    #f6e5dd;
  --h4h-grid:          #f0cbbb;
  --h4h-grid-fine:     rgba(240, 203, 187, 0.42);
  --h4h-line:          #e5cec4;
  --h4h-ink:           #16181d;
  --h4h-ink-soft:      #5c6169;
  --h4h-arterial:      #c8321f;
  --h4h-arterial-dark: #a32718;
  --h4h-coral:         #f09077;
  --h4h-deep:          #0f323c;

  --h4h-display: 'Bricolage Grotesque', 'Archivo', system-ui, sans-serif;
  --h4h-body:    'Instrument Sans', system-ui, -apple-system, sans-serif;
  --h4h-mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --h4h-shell:  1240px;
  --h4h-gutter: 32px;

  /* ─── Surface mapping ──────────────────────────────────────────── */
  --color-bg:         var(--h4h-paper);
  --color-surface:    #fffcfa;
  --color-raised:     #ffffff;
  --color-sunken:     var(--h4h-paper-deep);
  --color-text:       var(--h4h-ink);
  --color-muted:      var(--h4h-ink-soft);
  --color-accent:     var(--h4h-arterial);
  --color-accent-2:   var(--h4h-coral);
  --color-divider:    var(--h4h-line);
  --color-onaccent:   #ffffff;
  --color-ondeep:     #ffffff;
  --color-onbad:      #ffffff;
  --color-deep-hover: #16454f;

  --tint-1:   rgba(22, 24, 29, 0.04);
  --tint-2:   rgba(22, 24, 29, 0.05);
  --backdrop: rgba(22, 24, 29, 0.42);

  /* ─── Typography aliases (legacy names used across views) ──────── */
  --font-heading:        var(--h4h-display);
  --font-heading-weight: 600;
  --font-body:           var(--h4h-body);
  --font-mono:           var(--h4h-mono);

  /* ─── Radii — pills for controls, generous rounding on containers ─ */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   18px;
  --radius-xl:   24px;
  --radius-full: 999px;

  /* ─── Elevation — soft and warm, never grey ────────────────────── */
  --shadow-sm: 0 1px 2px rgba(22, 24, 29, 0.05), 0 1px 1px rgba(163, 39, 24, 0.03);
  --shadow-md: 0 4px 16px rgba(22, 24, 29, 0.07), 0 1px 3px rgba(22, 24, 29, 0.04);
  --shadow-lg: 0 18px 48px rgba(22, 24, 29, 0.12), 0 4px 12px rgba(22, 24, 29, 0.06);

  /* ─── Neutral ramp — warmed toward the paper ───────────────────── */
  --neutral-100: #fffcfa;
  --neutral-200: var(--h4h-paper-deep);
  --neutral-300: var(--h4h-line);
  --neutral-400: #d3bdb3;
  --neutral-500: #9c8d87;
  --neutral-600: var(--h4h-ink-soft);
  --neutral-700: #3d4249;
  --neutral-800: #262a31;
  --neutral-900: var(--h4h-ink);

  /* ─── Accent ramp ──────────────────────────────────────────────── */
  --accent-100: #fdeeea;
  --accent-200: #f9d3ca;
  --accent-300: var(--h4h-coral);
  --accent-400: #dd5a41;
  --accent-500: var(--h4h-arterial);
  --accent-600: var(--h4h-arterial-dark);
  --accent-700: #841f13;
  --accent-800: #62170e;
  --accent-900: #3d0e09;

  /* ─── Semantic — desaturated to sit beside the arterial red ────── */
  --ok:      #2f7d55;
  --ok-bg:   #e6f4ec;
  --warn:    #a86a12;
  --warn-bg: #fbf0dd;
  --bad:     var(--h4h-arterial);
  --bad-bg:  #fdeeea;
  --info:    var(--h4h-deep);
  --info-bg: #e4eef0;

  color-scheme: light;
}
