/* 3Gingers Consulting, Direction B: Copper & Ink.
   Sharp and editorial. Near-black ink for the menu and bands, bone pages, copper as the one signal color.
   Archivo for headings, labels, and the interface; Newsreader for long reading text.
   Loaded after app.css when PHA_THEME=3gingers. Change values here, not in app.css.

   Palette: Ink #17120F, Copper #E2703A, Bone #EDE6DC, Warm grey #8A7E74, Ash #2A2320.
   Copper is a fill color (5.9:1 against Ink). Copper text on bone uses the darker --gold-ink so it stays readable. */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-latin-opsz-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-latin-opsz-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --bg: #ede6dc;            /* Bone */
  --surface: #f7f3ed;
  --surface-2: #e6ddd0;
  --sunk: #ddd3c5;
  --ink: #17120f;           /* Ink */
  --ink-2: #2a2320;         /* Ash */
  --muted: #6b6058;         /* Warm grey, darkened for text on bone */
  --line: #d9cfc1;
  --line-strong: #c3b6a6;

  /* The "gold" slot is the accent: copper here. */
  --gold: #e2703a;
  --gold-ink: #9c4318;
  --gold-soft: #f6dccb;
  --accent: #17120f;
  --accent-dark: #000000;
  --accent-soft: #e6ddd0;
  --focus: #e2703a;
  --focus-ring: rgba(226, 112, 58, 0.28);
  --on-accent: #17120f;

  --band: #17120f;
  --band-fg: #ede6dc;
  --band-muted: #a89c91;
  --band-line: #2a2320;
  --band-tag-line: #3d342f;
  --field-bg: #fbf8f4;

  --heat-1: #f3e3d6; --heat-2: #edc4a6; --heat-3: #e59a6e;
  --heat-soft-1: #f5ebe1; --heat-soft-2: #f0d5c0; --heat-soft-3: #e9b38f;

  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Archivo", system-ui, sans-serif;   /* headings */
  --reading: "Newsreader", Georgia, "Times New Roman", serif;
  --heading-weight: 700;
  --r-sm: 3px;
  --r: 4px;
  --btn-radius: 2px;
  --control-radius: 3px;
}

/* Headings: heavy and tight, like the deck. */
.theme-3gingers h1 { letter-spacing: -0.025em; }
.theme-3gingers .stat-card strong { letter-spacing: -0.03em; }
.theme-3gingers .login-brand h1, .theme-3gingers .chat-welcome h1 { font-weight: 700; letter-spacing: -0.03em; }
.theme-3gingers .login-brand h1 em { font-family: var(--reading); font-weight: 400; color: var(--gold); }
.theme-3gingers .login-brand p, .theme-3gingers .ko-lede { font-family: var(--reading); font-size: 1.08rem; }
.theme-3gingers .field-hint, .theme-3gingers .ko .hint { font-family: var(--reading); font-size: 0.92rem; }

/* The menu is ink paper with bone type. Redefining the variables inside the rail recolors everything in it. */
.theme-3gingers .rail {
  --ink: #ede6dc;
  --ink-2: #d6ccc0;
  --muted: #a89c91;
  --surface-2: #17120f;
  --sunk: #2a2320;
  --line: #2a2320;
  --gold-ink: #e2703a;
  background: #17120f;
  border-right-color: #2a2320;
  color: #ede6dc;
}
.theme-3gingers .rail .wordmark-name { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; }
.theme-3gingers .rail .wordmark-product { color: var(--band-muted); }
.theme-3gingers .rail .wordmark-product::before { background: var(--gold); }
.theme-3gingers .rail-icon-plus { background: var(--gold); color: #17120f; }
.theme-3gingers .rail-new:hover .rail-icon-plus { background: #ede6dc; }
.theme-3gingers .rail-link.active { box-shadow: inset 2px 0 0 var(--gold); }
.theme-3gingers .rail .avatar { background: var(--gold); color: #17120f; }
.theme-3gingers .rail .link-button { color: var(--band-muted); }

/* Buttons: ink primary with bone type; copper on hover. */
.theme-3gingers .btn-primary { color: #ede6dc; }
.theme-3gingers .btn-primary:hover { background: var(--gold); border-color: var(--gold); color: #17120f; box-shadow: none; }
.theme-3gingers .btn:hover { color: #ede6dc; }

/* Copper fills carry ink type, never white. */
.theme-3gingers .raci-R, .theme-3gingers .raci-select.raci-R,
.theme-3gingers .gantt-today-label { color: #17120f; }
.theme-3gingers .raci-AR, .theme-3gingers .raci-select.raci-AR { color: #ede6dc; text-shadow: 0 0 2px #17120f; }
.theme-3gingers .ko .ko-bar button.primary { color: #17120f; }

.theme-3gingers .login-shell { border-radius: var(--r); overflow: hidden; border-color: #2a2320; }
.theme-3gingers .wordmark-sub { color: var(--band-muted); }
.theme-3gingers .login-brand .wordmark { gap: 6px; }
