/* Site CSS Variables - Self-contained, no main app imports */

/* Dark theme - no light mode, no VS Code variables */
:root {
  /* Brand gradient (from logo) */
  --site-gradient-start: #00d4ff; /* Cyan/turquoise */
  --site-gradient-end: #0066ff; /* Blue */

  /* Dark backgrounds */
  --site-bg-primary: #0d1117; /* GitHub dark */
  --site-bg-secondary: #161b22; /* Slightly lighter */
  --site-bg-card: #21262d; /* Card backgrounds */
  --site-bg-code: #1e1e2e; /* Code blocks */

  /* Text */
  --site-text-primary: #e6edf3; /* Main text */
  --site-text-secondary: #8b949e; /* Muted text */

  /* Borders & accents */
  --site-border: #30363d;
  --site-focus: #58a6ff; /* Focus rings */
}

/* Reset and base styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  padding: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
  background-color: var(--site-bg-primary);
  color: var(--site-text-primary);
  line-height: 1.6;
}

/* Visually hidden (for screen readers) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link (visible on focus) */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  padding: 8px 16px;
  background: var(--site-bg-card);
  color: var(--site-text-primary);
  z-index: 100;
  text-decoration: none;
  border-radius: 0 0 4px 0;
}

.skip-link:focus {
  top: 0;
  outline: 2px solid var(--site-focus);
  outline-offset: 2px;
}

/* Focus visible for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--site-focus);
  outline-offset: 2px;
}

/* Links */
a {
  color: var(--site-focus);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Container utility */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Section spacing */
section {
  padding: 2rem 0;
}

/* Feature grid - mobile first */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* Tablet and up */
@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop and up */
@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Feature card */
.feature-card {
  background: var(--site-bg-card);
  border: 1px solid var(--site-border);
  border-radius: 8px;
  padding: 1.5rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-card p {
  margin: 0;
  color: var(--site-text-secondary);
  font-size: 0.95rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  transition:
    background-color 0.2s,
    transform 0.1s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--site-gradient-start), var(--site-gradient-end));
  color: white;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  background: var(--site-bg-card);
  color: var(--site-text-primary);
  border: 1px solid var(--site-border);
}

.btn-secondary:hover {
  background: var(--site-bg-secondary);
}

/* Code blocks */
pre {
  background: var(--site-bg-code);
  border: 1px solid var(--site-border);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  margin: 0;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9rem;
  color: var(--site-text-primary);
}

/* Responsive text sizes */
@media (min-width: 640px) {
  section {
    padding: 2.5rem 0;
  }
}

@media (min-width: 1024px) {
  section {
    padding: 3rem 0;
  }
}
