/* Direction: CI Bridge — graphite night console, CodeIgniter ember, grotesk display + mono code */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  color-scheme: dark;
  --canvas: #0b0f14;
  --surface: #23272c;
  --surface-2: #171b20;
  --border: #2d3135;
  --border-strong: #54575b;
  --ink: #e9eff6;
  --muted: #90959c;
  --accent: #ee4323;
  --accent-hover: #f15f44;
  --accent-ink: #0b0f14;
  --accent-text: #ff8f6b;
  --accent-strong: #f06045;
  --accent-soft: #3d1a17;
  --accent-border: #71261b;
  --success: #3ddc97;
  --success-ink: #ffffff;
  --success-soft: #163c31;
  --success-strong: #3ddc97;
  --warning: #f3c14b;
  --warning-ink: #ffffff;
  --warning-soft: #3e3620;
  --warning-strong: #f3c14b;
  --danger: #f0605d;
  --danger-ink: #ffffff;
  --danger-soft: #3d2124;
  --danger-strong: #f0605d;
  --chart-1: #ee4323;
  --chart-2: #c4a11f;
  --chart-3: #0f9951;
  --chart-4: #1ab1ca;
  --chart-5: #5a6dfc;
  --chart-6: #eb65da;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --display-weight: 700;
  --display-tracking: -0.03em;
  --radius-card: 16px;
  --radius-btn: 10px;
  --radius-input: 10px;
  --card-pad: 1.5rem;
  --x-code: #06090d;
  --x-on-photo: #ffffff;
  --gradient-ember: linear-gradient(135deg, #ee4323 0%, #f0a21c 100%);
  --font-sans: "Inter", system-ui, sans-serif;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="light"] {
  color-scheme: light;
  --canvas: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f3f3;
  --border: #ddddde;
  --border-strong: #b6b7b9;
  --ink: #0b0f14;
  --muted: #6d6f72;
  --accent: #ee4323;
  --accent-hover: #ca391e;
  --accent-ink: #0b0f14;
  --accent-text: #c9391d;
  --accent-strong: #b9341b;
  --accent-soft: #fde5e0;
  --accent-border: #f7aa9c;
  --success: #3ddc97;
  --success-ink: #0b0f14;
  --success-soft: #e8fbf3;
  --success-strong: #227955;
  --warning: #f3c14b;
  --warning-ink: #0b0f14;
  --warning-soft: #fef8e9;
  --warning-strong: #886d29;
  --danger: #f0605d;
  --danger-ink: #0b0f14;
  --danger-soft: #fdecec;
  --danger-strong: #ac4543;
  --chart-1: #ee4323;
  --chart-2: #ae8f1a;
  --chart-3: #0b8847;
  --chart-4: #129db3;
  --chart-5: #4b59e7;
  --chart-6: #e05bd0;
}

.code-block {
  background: var(--x-code);
  color: var(--x-on-photo);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.75;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 1rem 1.1rem;
  tab-size: 4;
  white-space: pre;
}

.grid-skin {
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  opacity: 1;
}

.ember-rule {
  height: 3px;
  background: var(--gradient-ember);
}

.dot-live {
  animation: dot-live 1.6s ease-in-out infinite;
}

@keyframes dot-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

html.reduced-motion .dot-live { animation: none; }
