/* Parmil Kantesariya — portfolio root
   Laboratory theme. Dark is the instrument bay at night; light is the
   printed-diagram blue of the DNA reference. */

:root,
[data-theme="dark"] {
  /* Clinical near-black with a cyan cast, like a darkened instrument bay. */
  --bg: #050709;
  --bg-soft: #0a0e13;
  --fg: #dfe9ef;
  --fg-dim: #7f919e;
  --accent: #5ef2d0;
  --accent-warm: #ffb257; /* amber: caution / secondary readouts */
  --accent-hi: #7dffde;
  --accent-soft: rgba(94, 242, 208, 0.05);
  --btn-ink: #04221c;
  --glow: rgba(94, 242, 208, 0.55);
  --line: rgba(94, 242, 208, 0.16);
  --line-soft: rgba(223, 233, 239, 0.08);
  --grid: rgba(94, 242, 208, 0.045);
  --card: rgba(8, 12, 16, 0.78);
  --hud: rgba(5, 8, 11, 0.82);
  --chrome: rgba(5, 7, 9, 0.85);
  --sunken: rgba(5, 7, 9, 0.55);
  --vignette: rgba(5, 7, 9, 0.6);
  --selection-bg: #5ef2d0;
  --selection-fg: #04221c;
}

/* Light: the blue of the printed DNA plate. Blue paper, not white paper —
   every surface is tinted, so nothing reads as plain white. */
[data-theme="light"] {
  --bg: #d3e4f1;
  --bg-soft: #e4eff8;
  --fg: #0b2132;
  --fg-dim: #41617a;
  --accent: #19618f;
  --accent-warm: #a85d16;
  --accent-hi: #124b70;
  --accent-soft: rgba(25, 97, 143, 0.1);
  --btn-ink: #eaf3fa;
  --glow: rgba(25, 97, 143, 0.45);
  --line: rgba(25, 97, 143, 0.3);
  --line-soft: rgba(11, 33, 50, 0.16);
  --grid: rgba(25, 97, 143, 0.09);
  --card: rgba(222, 236, 247, 0.84);
  --hud: rgba(222, 236, 247, 0.9);
  --chrome: rgba(211, 228, 241, 0.88);
  --sunken: rgba(200, 222, 239, 0.66);
  --vignette: rgba(126, 166, 198, 0.5);
  --selection-bg: #19618f;
  --selection-fg: #eaf3fa;
}

:root {
  --max: 1080px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
    monospace;
}

html {
  color-scheme: dark;
}

::selection {
  background: var(--selection-bg);
  color: var(--selection-fg);
  text-shadow: none;
}

[data-theme="light"] {
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Drives the 3D camera: 4 full viewports of scroll. */
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--fg);
  background: var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter,
    Roboto, Helvetica, Arial, sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
