/* =============================================================================
   ToolHub - base.css
   Design tokens + reset + typography.
   Matches Dynamic Tech World brand: dark premium + brand red (#e10202) + gold.
   Reusable as-is for GameHub.
   ============================================================================= */

:root {
  /* Brand palette (extracted from dynamictechworld.com) */
  --dtw-red:        #e10202;
  --dtw-red-hover:  #e7131a;
  --dtw-red-dark:   #a30000;
  --dtw-gold:       #ffb800;
  --dtw-dark:       #070708;
  --dtw-dark-2:     #0c0c0e;
  --dtw-surface:    #111113;
  --dtw-surface-2:  #17171b;
  --dtw-border:     rgba(255, 255, 255, 0.08);
  --dtw-border-soft: rgba(255, 255, 255, 0.05);
  --dtw-text:       #f5f5f7;
  --dtw-text-muted: #b0b0b7;

  /* Typography - system stack (same approach as the main site: zero webfonts) */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;

  /* Layout */
  --container: 1200px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 0 1px rgba(225, 2, 2, 0.35), 0 10px 30px rgba(225, 2, 2, 0.15);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --speed: 0.22s;
}

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

* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--dtw-text);
  background-color: var(--dtw-dark);
  background-image:
    radial-gradient(1100px 520px at 85% -10%, rgba(225, 2, 2, 0.12), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(255, 184, 0, 0.05), transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: inline-block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

ul[class], ol[class] { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.1rem; }

p { text-wrap: pretty; }

::selection { background: var(--dtw-red); color: #fff; }

:focus-visible {
  outline: 2px solid var(--dtw-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Accessible skip link */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--dtw-red);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  transition: top var(--speed) var(--ease);
}
.skip-link:focus { top: 12px; }
