/* =========================================================
   BASE.CSS
   Purpose:
   Global foundational styling for all Nexulorum builds.
   Handles:
   - body defaults
   - headings
   - paragraphs
   - links
   - sections
   - containers
   - selection styling
========================================================= */

@font-face {
    font-family: "Glacial Indifference";
    src: url("../assets/fonts/GlacialIndifference-Regular.woff2") format("opentype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Glacial Indifference";
    src: url("../assets/fonts/GlacialIndifference-Bold.woff2") format("opentype");
    font-weight: 700;
    font-style: normal;
}
/* =====================
   HTML / BODY
===================== */

html {
  background: var(--color-bg);
}

body {
  min-height: 100vh;

  background: var(--color-bg);
  color: var(--color-text);

  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--line-normal);

  overflow-x: hidden;
}

body,
button,
input,
textarea,
select,
nav {
  font-family: var(--font-primary);
}

h1,
.hero-001__title,
.hero-002__title,
.home-hero__title,
.about-mission blockquote {
  font-family: var(--font-heading);
  font-weight: 600;
}

h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
}

/* =====================
   TYPOGRAPHY DEFAULTS
===================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  line-height: var(--line-tight);
  letter-spacing: var(--tracking-tight);

  color: var(--color-text);
}

h1 {
  font-size: clamp(2.5rem, 5vw, var(--text-5xl));
}

h2 {
  font-size: clamp(2rem, 4vw, var(--text-4xl));
}

h3 {
  font-size: clamp(1.5rem, 3vw, var(--text-3xl));
}

h4 {
  font-size: var(--text-2xl);
}

h5 {
  font-size: var(--text-xl);
}

h6 {
  font-size: var(--text-lg);
}

p {
  max-width: var(--text-width-md);

  color: var(--color-muted);

  font-size: var(--text-base);
  line-height: var(--line-relaxed);
}


/* =====================
   LINKS
===================== */

a {
  transition:
    color var(--transition-fast),
    opacity var(--transition-fast),
    transform var(--transition-fast);
}

a:hover {
  color: var(--color-secondary);
}

.skip {
  display: none; 
}


/* =====================
   SECTIONS
===================== */

section {
  position: relative;

  padding-block: var(--section-padding-md);
}


/* =====================
   CONTAINER
===================== */

.container {
  width: min(100% - 2rem, var(--container-lg));
  margin-inline: auto;
}


/* =====================
   MEDIA
===================== */

img {
  border-radius: var(--image-radius-md);
}


/* =====================
   BUTTON RESET HELPERS
===================== */

button {
  color: inherit;
}


/* =====================
   TEXT SELECTION
===================== */

::selection {
  background: var(--color-primary);
  color: white;
}


/* =====================
   SCROLLBAR
===================== */

::-webkit-scrollbar {
  width: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 999px;
}


/* =====================
   GLOBAL SPACING HELPERS
===================== */

.flow > * + * {
  margin-top: var(--space-4);
}


/* =====================
   SURFACE HELPERS
===================== */

.surface {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}


/* =====================
   SCREEN READER ONLY
===================== */

.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;
}