/* ==========================================================================
   IGN PLATFORM - BASE STYLES & RESET
   ==========================================================================
   Standard resets, typography defaults, smooth scrolling, and core 
   wrapper container rules.
   ========================================================================== */

/* Import Google Fonts for Serif Headlines and Modern Sans Body */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@600;700;800&display=swap');

/* Box sizing reset for all elements */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text-main);
  background-color: var(--color-bg-page);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Headings typography default: Serif font for editorial high-end feel */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif-headline);
  color: var(--color-primary-slate);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: var(--text-4xl); margin-bottom: var(--space-4); }
h2 { font-size: var(--text-3xl); margin-bottom: var(--space-3); }
h3 { font-size: var(--text-2xl); margin-bottom: var(--space-3); }
h4 { font-size: var(--text-xl); margin-bottom: var(--space-2); }

p {
  margin-bottom: var(--space-4);
  color: var(--color-text-main);
}

a {
  color: var(--color-secondary-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-orange);
}

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Standard Page Layout Wrapper Container */
.container {
  width: 100%;
  max-width: var(--max-width-site);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

/* Text Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--color-text-muted); }
.text-serif { font-family: var(--font-serif-headline); }
.text-orange { color: var(--color-accent-orange); }

/* Spacing Utilities */
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.py-12 { padding-top: var(--space-12); padding-bottom: var(--space-12); }
.py-16 { padding-top: var(--space-16); padding-bottom: var(--space-16); }

/* Hide helper */
.hidden {
  display: none !important;
}
