:root {
  --emerald: #0d2727;
  --emerald-deep: #002928;
  --emerald-glow: #10b981;
  --platinum: #b5b7c1;
  --black: #121212;
  --ink: #202020;
  --white: #ffffff;
  --mist: #e3efeb;

  --font: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "Tobias", "Fraunces", Georgia, "Times New Roman", serif;

  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;
  --space-9: 96px;
  --space-10: 120px;

  --page: 1120px;
  --text-width: 720px;

  --display: clamp(52px, 8vw, 96px);
  --h2: 36px;
  --h3: 24px;
  --h4: 18px;
  --subtitle: 18px;
  --body: 16px;
  --small: 14px;
  --meta: 13px;

  /* ---- Theme: ink (dark, default) ---- */
  --bg: #121212;
  --text: #f5f1ea;
  --muted: #cfc9bd;
  --hairline: rgba(255, 255, 255, 0.12);
  --btn-border: rgba(255, 255, 255, 0.4);
  --btn-text: #ffffff;
  --btn-hover-bg: #ffffff;
  --btn-hover-text: #121212;
  --btn-active-bg: #b5b7c1;
  --btn-active-text: #121212;
  --header-bg-scrolled: rgba(18, 18, 18, 0.55);
  --foot-glow-strong: rgba(16, 185, 129, 0.11);
  --foot-glow-deep: rgba(0, 41, 40, 0.2);
  --accent: #10b981;
  --focus: #10b981;
  --glow-strong: rgba(16, 185, 129, 0.13);
  --glow-deep: rgba(0, 41, 40, 0.22);
  /* Animated metallic ring (hover states): muted grays in dark mode so
     the stroke reads as a sheen, never a full white outline */
  --ring-grad: linear-gradient(
    120deg,
    #2e2e33,
    #6e6e73,
    #48484e,
    #8e8e93,
    #2e2e33
  );
  /* Keyboard focus ring: emerald to turquoise in dark mode, rotating */
  --focus-grad: conic-gradient(
    from var(--focus-angle),
    #10b981,
    #2dd4bf,
    #22d3ee,
    #10b981
  );
  --focus-mid: #2dd4bf;
  --header-bg: rgba(10, 10, 10, 0.72);
  --logo-filter: none;
  --grid-line: rgba(255, 255, 255, 0.055);
  --proj-glow: #10b981;
}

/* ---- Theme: alabaster (light) ---- */
:root[data-theme="alabaster"] {
  --bg: #f5f1ea;
  --text: #121212;
  --muted: #5c5c61;
  --hairline: rgba(18, 18, 18, 0.14);
  --btn-border: rgba(18, 18, 18, 0.4);
  --btn-text: #121212;
  --btn-hover-bg: #121212;
  --btn-hover-text: #ffffff;
  --btn-active-bg: #3d3d3d;
  --btn-active-text: #ffffff;
  --header-bg-scrolled: rgba(245, 241, 234, 0.6);
  --foot-glow-strong: rgba(153, 102, 204, 0.13);
  --foot-glow-deep: rgba(153, 102, 204, 0.04);
  --accent: #0d2727;
  --focus: #0d2727;
  --glow-strong: rgba(153, 102, 204, 0.17);
  --ring-grad: linear-gradient(
    120deg,
    #6e6e73,
    #f5f5f7,
    #aeaeb2,
    #e8e8ed,
    #6e6e73
  );
  /* Keyboard focus ring: amethyst to pink to yellow in light mode */
  --focus-grad: conic-gradient(
    from var(--focus-angle),
    #9966cc,
    #f472b6,
    #facc15,
    #9966cc
  );
  --focus-mid: #e879c9;
  --glow-deep: rgba(153, 102, 204, 0.05);
  --header-bg: rgba(245, 241, 234, 0.82);
  --logo-filter: invert(1);
  --grid-line: rgba(18, 18, 18, 0.05);
}
