/* Dark preview theme for stevemartino.com. Does not change copy. */
:root {
  color-scheme: dark;
  --background: #0b1220;
  --foreground: #f4f1ea;
  --card: #121a28;
  --card-foreground: #f4f1ea;
  --popover: #121a28;
  --popover-foreground: #f4f1ea;
  --primary: #e4f222;
  --primary-foreground: #0c0a08;
  --secondary: #1a2333;
  --secondary-foreground: #f4f1ea;
  --muted: #1a2333;
  --muted-foreground: #c4c0b8;
  --accent: #1a2333;
  --accent-foreground: #f4f1ea;
  --destructive: #e07070;
  --border: #2c3648;
  --input: #2c3648;
  --ring: #e4f222;
  --bone: #1a2333;
  --ash: #c4c0b8;
  --highlighter: #e4f222;
  --abyss: #070b12;
  --obsidian: #10161f;
  --moss-soft: #1a2333;
  --chart-1: #e4f222;
  --chart-2: #f4f1ea;
  --chart-3: #c4c0b8;
  --chart-4: #2c3648;
  --chart-5: #070b12;
  --sidebar: #121a28;
  --sidebar-foreground: #f4f1ea;
  --sidebar-primary: #e4f222;
  --sidebar-primary-foreground: #0c0a08;
  --sidebar-accent: #1a2333;
  --sidebar-accent-foreground: #f4f1ea;
  --sidebar-border: #2c3648;
  --sidebar-ring: #e4f222;
}

html,
body {
  background-color: var(--background);
  color: var(--foreground);
}

/* Hardcoded light surfaces (inputs, cards, Industries menu) should follow the dark card. */
.bg-white {
  background-color: var(--card);
}

/* Keep lime/highlighter buttons readable; brand accent is unchanged. */
.bg-highlighter,
.bg-primary,
[data-variant="default"] {
  color: var(--primary-foreground);
}

/* Forms */
[data-slot="input"],
[data-slot="textarea"],
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="range"]),
textarea,
select {
  background-color: var(--card);
  color: var(--foreground);
  border-color: var(--input);
  color-scheme: dark;
}

::placeholder,
.placeholder\:text-muted-foreground::placeholder {
  color: var(--muted-foreground);
  opacity: 1;
}

/* Headshot: a light edge so the photo sits cleanly on navy. */
img[src*="headshot"],
img[alt*="Steve Martino" i] {
  box-shadow: 0 0 0 1px var(--border), 0 18px 40px rgba(0, 0, 0, 0.45);
}

/* Testimonial / card surfaces already use bone/card tokens; add a subtle edge. */
.bg-bone,
.bg-card {
  box-shadow: inset 0 0 0 1px rgba(244, 241, 234, 0.04);
}

/* Selection and focus */
::selection {
  background: color-mix(in srgb, var(--highlighter) 40%, transparent);
  color: var(--foreground);
}

/* Autofill should not flash white */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: var(--foreground);
  caret-color: var(--foreground);
  box-shadow: 0 0 0 1000px var(--card) inset;
  transition: background-color 99999s ease-out;
}


/* Clients logo grids (homepage strip + every category on /clients/):
   white tiles with light gray borders so dark wordmarks stay readable.
   Logos keep their original colors. The rest of the site stays dark. */
ul.grid:has(> li .client-logo) {
  gap: 8px;
  margin-top: 0.75rem;
}
ul.grid:has(> li .client-logo) > li {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  box-shadow: none;
}
ul.grid:has(> li .client-logo) > li .client-logo {
  /* do not invert or recolor marks designed for a light ground */
  filter: none;
}
