/* ============================================
   GTA 6 Tricks — Base Styles v1.0
   ============================================ */

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

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

body {
  font-family: var(--g6t-font-body);
  font-size: var(--g6t-text-body);
  line-height: 1.65;
  color: var(--g6t-color-neutral-900);
  background: var(--g6t-color-neutral-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--g6t-font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--g6t-color-neutral-900);
}

h1 { font-size: var(--g6t-text-h1); }
h2 { font-size: var(--g6t-text-h2); }
h3 { font-size: var(--g6t-text-h3); }
h4 { font-size: var(--g6t-text-h4); }

a {
  color: var(--g6t-color-pink-500);
  text-decoration: none;
  transition: color var(--g6t-dur-base) var(--g6t-ease-out);
}
a:hover, a:focus-visible {
  color: var(--g6t-color-pink-600);
  text-decoration: underline;
}

p { margin-bottom: 1.25em; }
p:last-child { margin-bottom: 0; }

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

ul, ol { padding-left: 1.5em; margin-bottom: 1.25em; }
li { margin-bottom: 0.25em; }

blockquote {
  border-left: 4px solid var(--g6t-color-pink-500);
  padding: var(--g6t-space-4) var(--g6t-space-6);
  font-style: italic;
  color: var(--g6t-color-neutral-500);
  margin: var(--g6t-space-6) 0;
}

table { width: 100%; border-collapse: collapse; }
th, td { padding: var(--g6t-space-3) var(--g6t-space-4); text-align: left; border-bottom: 1px solid var(--g6t-color-neutral-200); }
th { font-weight: 600; font-size: var(--g6t-text-body-sm); text-transform: uppercase; letter-spacing: 0.05em; color: var(--g6t-color-neutral-500); }

code {
  font-family: var(--g6t-font-mono);
  font-size: 0.875em;
  background: var(--g6t-color-neutral-100);
  padding: 2px 6px;
  border-radius: var(--g6t-radius-sm);
}

/* === CONTAINER === */
.g6t-container {
  max-width: var(--g6t-container-max);
  margin: 0 auto;
  padding: 0 var(--g6t-space-6);
}

.g6t-container--text {
  max-width: var(--g6t-container-text);
}

/* === SR ONLY === */
.g6t-sr-only {
  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 === */
.g6t-skip-link {
  position: absolute; top: -100px; left: var(--g6t-space-4);
  background: var(--g6t-color-pink-500); color: #fff; padding: var(--g6t-space-2) var(--g6t-space-4);
  border-radius: var(--g6t-radius-sm); z-index: 9999; font-weight: 600;
}
.g6t-skip-link:focus { top: var(--g6t-space-4); }

/* === FOCUS VISIBLE === */
:focus-visible { outline: 2px solid var(--g6t-color-pink-500); outline-offset: 2px; }

/* === LAYOUT HELPERS === */
.g6t-grid { display: grid; gap: var(--g6t-space-6); }
.g6t-grid--2 { grid-template-columns: repeat(2, 1fr); }
.g6t-grid--3 { grid-template-columns: repeat(3, 1fr); }
.g6t-grid--4 { grid-template-columns: repeat(4, 1fr); }
.g6t-flex { display: flex; gap: var(--g6t-space-4); }
.g6t-flex--between { justify-content: space-between; }
.g6t-flex--center { align-items: center; }

@media (max-width: 768px) {
  .g6t-grid--3, .g6t-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .g6t-grid--2, .g6t-grid--3, .g6t-grid--4 { grid-template-columns: 1fr; }
}

/* === ARTICLE BODY === */
.g6t-prose {
  max-width: var(--g6t-container-text);
  font-size: var(--g6t-text-body-lg);
  line-height: 1.75;
}

.g6t-prose h2 { margin-top: 2em; margin-bottom: 0.75em; }
.g6t-prose h3 { margin-top: 1.5em; margin-bottom: 0.5em; }
.g6t-prose img { border-radius: var(--g6t-radius-lg); }
.g6t-prose figure { margin: var(--g6t-space-6) 0; }
.g6t-prose figcaption { font-size: var(--g6t-text-caption); color: var(--g6t-color-neutral-500); margin-top: var(--g6t-space-2); text-align: center; }
