/* ============================================================
   ShinobiKage — base.css
   Reset + design tokens + global element styles
   ============================================================ */

:root {
  /* Brand */
  --brand-orange: #B8973C;
  --brand-orange-light: #D4B96A;
  --brand-orange-dark: #9A7A2E;
  --ember: #A88432;

  /* Backgrounds */
  --bg-base: #0F0F11;
  --bg-surface: #1A1A1D;
  --bg-elevated: #232327;
  --bg-inset: #0B0B0D;

  /* Text */
  --text-base: #F5F0E6;
  --text-strong: #FFFFFF;
  --text-muted: #A8A29E;
  --text-quaternary: #6B6B70;

  /* Status */
  --success: #4ADE80;
  --warning: #FBBF24;
  --error: #EF4444;
  --info: #60A5FA;

  /* Borders */
  --border-subtle: rgba(245, 240, 230, 0.08);
  --border-strong: rgba(245, 240, 230, 0.16);

  /* Shadow */
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-elevated: 0 8px 32px rgba(0, 0, 0, 0.55);
  --shadow-focus: 0 0 0 3px rgba(184, 151, 60, 0.32);
  --glow-brand: 0 0 24px rgba(184, 151, 60, 0.35);

  /* Layout */
  --max-content: 1280px;
  --max-article: 720px;

  /* Type */
  --font-display: 'Bebas Neue', 'Anton', 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', ui-monospace, monospace;
}

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

html {
  font-family: var(--font-body);
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text-base);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Typographic primitives */
h1, h2, h3, h4, h5, h6 {
  font-family: Rock Salt, Caveat Brush, var(--font-display);
  font-weight: 400;
  color: var(--brand-orange);
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: 1.2px;
}
h1 { font-size: clamp(40px, 6vw, 64px); letter-spacing: 1.5px; }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: clamp(24px, 3vw, 28px); }

p { margin: 0 0 1em; }

a {
  color: var(--brand-orange);
  text-decoration: none;
  transition: color 160ms ease, opacity 160ms ease;
}
a:hover { color: var(--brand-orange-light); }

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

ul, ol { margin: 0 0 1em; padding-left: 1.5em; }

blockquote {
  margin: 0 0 1.5em;
  padding: 16px 24px;
  border-left: 3px solid var(--brand-orange);
  background: var(--bg-inset);
  font-style: italic;
  border-radius: 4px;
}

code, pre {
  font-family: var(--font-mono);
  font-size: 15px;
  background: var(--bg-inset);
}
pre {
  padding: 16px;
  border-radius: 6px;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
}

hr {
  border: 0;
  border-top: 1px solid var(--border-subtle);
  margin: 32px 0;
}

/* Accessibility */
.skip-link {
  position: absolute;
  left: -10000px;
  top: auto;
  background: var(--brand-orange);
  color: var(--bg-base);
  padding: 8px 16px;
  z-index: 9999;
}
.skip-link:focus { left: 8px; top: 8px; }

:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: 4px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}