/**
 * Athabasca Fortress - Base & Global Styles
 */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,600;0,700;0,800;0,900;1,700&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Rajdhani:wght@600;700&family=Roboto:wght@400;500;700&display=swap');

/* Fallback & Custom TF2 Header Font Definition */
@font-face {
  font-family: 'TF2 Build';
  src: local('TF2 Build'), local('Impact'), local('Cabinet Grotesk-Black'), local('Arial Black');
  font-weight: 800 900;
  font-display: swap;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-boreal-black);
  color: var(--color-limestone-200);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(56, 200, 219, 0.08), transparent 70%),
    radial-gradient(circle at 10% 90%, rgba(46, 87, 68, 0.15), transparent 50%),
    linear-gradient(180deg, var(--color-boreal-black) 0%, var(--color-boreal-deep) 100%);
  background-attachment: fixed;
}

/* Subtle Topographic & Grunge Overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 24px 24px;
  z-index: 1;
  opacity: 0.6;
}

/* ==========================================================================
   Typography Rules
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-tf2-header);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-parchment-cream);
  line-height: 1.15;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 900;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}

h4 {
  font-size: 1.25rem;
}

p {
  color: var(--color-limestone-300);
  font-size: 1rem;
}

a {
  color: var(--color-blu-glacial);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-blu-glacial-light);
  text-decoration: underline;
}

code, kbd, pre, samp {
  font-family: var(--font-mono);
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */

.site-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Section Spacing */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-condensed);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-blu-glacial);
  background: rgba(56, 200, 219, 0.1);
  border: 1px solid rgba(56, 200, 219, 0.3);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.15rem;
  max-width: 680px;
  margin: 0 auto;
  color: var(--color-limestone-400);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.hidden {
  display: none !important;
}

.text-glacial { color: var(--color-blu-glacial) !important; }
.text-jasper { color: var(--color-red-jasper) !important; }
.text-pine { color: var(--color-boreal-moss) !important; }
.text-gold { color: var(--color-parchment-gold) !important; }

.bg-boreal { background-color: var(--color-boreal-surface); }
.bg-card { background-color: var(--color-boreal-card); }

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tactical Caution Stripe Bar */
.caution-stripes {
  height: 6px;
  background: repeating-linear-gradient(
    -45deg,
    var(--color-caution-amber),
    var(--color-caution-amber) 12px,
    var(--color-limestone-900) 12px,
    var(--color-limestone-900) 24px
  );
  border-top: 1px solid rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-boreal-black);
}

::-webkit-scrollbar-thumb {
  background: var(--color-boreal-border);
  border-radius: var(--radius-sm);
  border: 2px solid var(--color-boreal-black);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-boreal-pine);
}
