/*
 * TheChess.Art — Design System Tokens
 * Tek kanon: tüm modüller (marketing, analyzer, puzzle, mobile) bu paletle çalışır.
 */

/* A11Y — global focus + skip link baseline */
:focus-visible {
  outline: 2px solid var(--accent, #F24825);
  outline-offset: 2px;
  border-radius: 2px;
}
.skip-link {
  position: absolute; top: -40px; left: 8px;
  background: #F24825; color: #0f0f0f;
  padding: 8px 14px; border-radius: 4px;
  font-weight: 700; text-decoration: none;
  z-index: 10000;
}
.skip-link:focus { top: 8px; }

@font-face {
  font-family: 'Celias';
  src: url('../fonts/Celias.woff2') format('woff2'),
       url('../fonts/Celias.woff') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Celias';
  src: url('../fonts/Celias-Bold.woff2') format('woff2'),
       url('../fonts/Celias-Bold.woff') format('woff');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Celias';
  src: url('../fonts/Celias-Thin.woff2') format('woff2'),
       url('../fonts/Celias-Thin.woff') format('woff');
  font-weight: 100; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Didot';
  src: url('../fonts/Didot.woff2') format('woff2'),
       url('../fonts/Didot.woff') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  /* Yüzey */
  --body: #0f0f0f;
  --panel: #181818;
  --panel-2: #1f1f1f;
  --panel-3: #262626;
  --line: #2a2a2a;
  --line-soft: rgba(255, 255, 255, 0.06);

  /* İçerik */
  --primary: #EDE3CE;
  --primary-dim: rgba(237, 227, 206, 0.7);
  --secondary: #888888;
  --muted: #444444;

  /* Aksan — heatmap bipolarite */
  --accent: #F24825;
  --accent-hot: #FF6A42;
  --accent-soft: rgba(242, 72, 37, 0.15);
  --gold: #d4af37;

  /* Chess board */
  --square-light: #EDE3CE;
  --square-dark: #3a3a3a;
  --square-highlight: rgba(242, 72, 37, 0.35);

  /* Ölçek */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 12px;
  --gap-xs: 6px;
  --gap-sm: 12px;
  --gap-md: 20px;
  --gap-lg: 40px;

  /* Tipografi */
  --font-sans: 'Celias', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Didot', 'Bodoni 72', Georgia, serif;
  --letter-wide: 0.08em;
  --letter-widest: 0.18em;

  /* Animasyon */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 0.15s;
  --t-med: 0.25s;
  --t-slow: 0.5s;
}

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

html, body {
  background: var(--body);
  color: var(--primary);
  font-family: var(--font-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: #000; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
::-webkit-scrollbar-track { background: transparent; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }

/* Utility */
.tca-mono { font-family: 'SF Mono', 'JetBrains Mono', ui-monospace, monospace; }
.tca-serif { font-family: var(--font-serif); }
.tca-thin { font-weight: 100; }
.tca-bold { font-weight: 700; }
.tca-upper { text-transform: uppercase; letter-spacing: var(--letter-wide); }
.tca-widest { letter-spacing: var(--letter-widest); }
.tca-accent { color: var(--accent); }
.tca-secondary { color: var(--secondary); }
