/* Global variables and resets */

:root {
  /* Colors */
  --color-bg-primary: #150925;
  --color-bg-secondary: #231038;
  --color-bg-tertiary: #1d1a3d;
  --color-text-primary: #e8e6f0;
  --color-text-secondary: #c4c0d6;
  --color-text-muted: #a8a4ba;
  --color-accent: #7b5cff;
  --color-accent-hover: #9478ff;
  --color-accent-glow: rgba(123, 92, 255, 0.3);
  --color-highlight: #ff6b4a;
  --color-highlight-hover: #ff8a6e;
  --color-yellow: #ffd700;
  --color-surface: rgba(255, 255, 255, 0.04);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-steam-blue: #1b9fff;

  /* Typography */
  --font-display: 'Jost', 'Trebuchet MS', sans-serif;
  --font-body: 'Source Sans 3', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 18px;
}

html, body {
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 1.1rem;
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
}

/* Utility classes */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.doofus {
  color: #ffd700;
  text-decoration: underline;
  font-style: italic;
}

.stylized-divider {
  width: 70%;
  max-width: 600px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  margin: var(--space-lg) auto;
  border-radius: 2px;
  box-shadow: 0 0 10px var(--color-accent-glow);
}

/* Yellow variant for highlighted block headings */
.stylized-divider--yellow {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0) 0%, var(--color-yellow) 50%, rgba(255, 215, 0, 0) 100%);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.2);
}