/* Reset & Variables */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --sca-ink: #1a1a1a;
  --sca-surface: #ffffff;
  --sca-accent: #ff6b35;
  --sca-secondary: #2c5aa0;
  --sca-neutral: #6b7280;
  --sca-border: #e5e7eb;
  --sca-success: #10b981;
  --sca-warning: #f59e0b;
  --sca-error: #ef4444;

  --sca-font-primary: "Oswald", sans-serif;
  --sca-font-body: system-ui, -apple-system, sans-serif;

  --sca-space-xs: 0.25rem;
  --sca-space-sm: 0.5rem;
  --sca-space-md: 1rem;
  --sca-space-lg: 1.5rem;
  --sca-space-xl: 2rem;
  --sca-space-2xl: 3rem;

  --sca-radius-sm: 0.25rem;
  --sca-radius-md: 0.5rem;
  --sca-radius-lg: 0.75rem;

  --sca-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --sca-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --sca-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

[data-theme="dark"] {
  --sca-ink: #f9fafb;
  --sca-surface: #111827;
  --sca-accent: #ff8c65;
  --sca-secondary: #60a5fa;
  --sca-neutral: #9ca3af;
  --sca-border: #374151;
  --sca-success: #34d399;
  --sca-warning: #fbbf24;
  --sca-error: #f87171;
}

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

body {
  font-family: var(--sca-font-body);
  line-height: 1.6;
  color: var(--sca-ink);
  background-color: var(--sca-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--sca-font-primary);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--sca-space-md);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}
h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}
h3 {
  font-size: clamp(1.25rem, 3vw, 2rem);
}
h4 {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
}
h5 {
  font-size: clamp(1rem, 2vw, 1.25rem);
}
h6 {
  font-size: clamp(0.875rem, 1.5vw, 1.125rem);
}

p {
  margin-bottom: var(--sca-space-md);
  max-width: 65ch;
}

a {
  color: var(--sca-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--sca-secondary);
}

a:focus-visible {
  outline: 2px solid var(--sca-accent);
  outline-offset: 2px;
  border-radius: var(--sca-radius-sm);
}

img,
svg {
  max-width: 100%;
  height: auto;
}

/* Focus styles */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--sca-accent);
  outline-offset: 2px;
}

/* Skip link */
.sca-skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--sca-accent);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: var(--sca-radius-sm);
  z-index: 1000;
}

.sca-skip-link:focus {
  top: 6px;
}
