/* Colors — dark mode defaults, light mode overrides below */
:root {
  --bg: #0b0f19;
  --surface: #171c28;
  --text: #e2e8f0;
  --text-dim: #94a3b8;
  --accent: #38bdf8; /* sky blue — used for dots, labels, underlines */
  --link: #38bdf8;
  --link-hover: #7dd3fc;
  --border: #1e293b;
  --glow: rgba(56, 189, 248, 0.08); /* connect button hover bg */
  --hero-color: #ffffff;
  --selection-bg: rgba(56, 189, 248, 0.3);
  --selection-color: #ffffff;
  --link-underline: rgba(56, 189, 248, 0.2);
  --connect-hover-border: rgba(56, 189, 248, 0.3);
}

/* Light mode — toggled via data-theme="light" on <html> */
[data-theme="light"] {
  --bg: #f0ece2;
  --surface: #f7f4ed;
  --text: #1c1c1c;
  --text-dim: #6b6b6b;
  --accent: #4d8b6f;
  --link: #4d8b6f;
  --link-hover: #3d7259;
  --border: #ddd8ce;
  --glow: rgba(77, 139, 111, 0.05);
  --hero-color: #111;
  --selection-bg: rgba(77, 139, 111, 0.2);
  --selection-color: #111;
  --link-underline: rgba(77, 139, 111, 0.25);
  --connect-hover-border: rgba(77, 139, 111, 0.3);
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

::selection {
  background: var(--selection-bg);
  color: var(--selection-color);
}

html {
  scroll-behavior: smooth;
}

body {
  /* font-family: system-ui, sans-serif; */
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition:
    background 0.4s ease,
    color 0.4s ease;
}

/* Centered content wrapper — change max-width to adjust page width */
.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
}
