/* VENDORED COPY — do not edit here.
   Source of truth: NextEliteOS/30-IDENTITY/nextelite-base.css
   (iCloud: /Users/neminesteffensen/Library/Mobile Documents/com~apple~CloudDocs/NextEliteOS/30-IDENTITY/nextelite-base.css)
   Copied 2026-09-02 by l1ft0ff (Mission Gemini). GitHub Pages cannot reach iCloud,
   so re-copy after every canonical change. Load order: design-tokens -> nextelite-base -> blog.css */
/*
 * nextelite-base.css — shared baseline for ALL NextElite sites
 * l1ft0ff — Mission Mercury | "every pixel is load-bearing"
 */
@layer reset, tokens, base, components, utilities;
@view-transition { navigation: auto; }

/* === RESET === */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; tab-size: 4; }
  body { line-height: 1.5; -webkit-font-smoothing: antialiased; }
  img, picture, video, canvas, svg { display: block; max-width: 100%; }
  input, button, textarea, select { font: inherit; }
  p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
  a { color: inherit; text-decoration: none; }
  ul, ol { list-style: none; }
  button { cursor: pointer; background: none; border: none; }
}

/* === TOKENS === */
@layer tokens {
  :root {
    --brand-gold: #F5C400; --brand-cyan: #00BADF;
    --brand-cobalt: #3B6EF5; --brand-magenta: #E8197A;
    /* Tints via oklch color-mix */
    --brand-gold-soft: color-mix(in oklch, var(--brand-gold) 30%, white);
    --brand-cyan-soft: color-mix(in oklch, var(--brand-cyan) 30%, white);
    --brand-cobalt-soft: color-mix(in oklch, var(--brand-cobalt) 30%, white);
    --brand-magenta-soft: color-mix(in oklch, var(--brand-magenta) 30%, white);
    --brand-gold-deep: color-mix(in oklch, var(--brand-gold) 70%, black);
    --brand-cyan-deep: color-mix(in oklch, var(--brand-cyan) 70%, black);
    --brand-cobalt-deep: color-mix(in oklch, var(--brand-cobalt) 70%, black);
    --brand-magenta-deep: color-mix(in oklch, var(--brand-magenta) 70%, black);
    /* Neutrals */
    --color-black: #0A0A0A; --color-near-black: #1A1A1A;
    --color-charcoal: #2A2A2A; --color-gray-dark: #4A4A4A;
    --color-gray: #6A6A6A; --color-gray-light: #9A9A9A;
    --color-gray-lighter: #D4D4D4; --color-off-white: #FAFAFA; --color-white: #FFF;
    /* Warm */
    --color-cream: #FAF7F5; --color-blush: #F5E6E0;
    --color-coral: #E8A090; --color-skin: #D4A592; --color-warm-gray: #C5B8B0;
    /* Text hierarchy (opacity, not different grays) */
    --text-primary: var(--color-near-black);
    --text-secondary: rgba(26, 26, 26, 0.65);
    --text-tertiary: rgba(26, 26, 26, 0.45);
    --text-on-dark: var(--color-off-white);
    --text-on-dark-secondary: rgba(250, 250, 250, 0.65);
    --text-on-dark-tertiary: rgba(250, 250, 250, 0.45);
    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'NN Rektorat', -apple-system, BlinkMacSystemFont, sans-serif;
    /* Spacing (8px grid) */
    --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
    --space-5: 1.5rem; --space-6: 2rem; --space-8: 3rem; --space-10: 4rem;
    --space-12: 6rem; --space-16: 8rem; --space-20: 10rem;
    /* Borders */
    --radius-sm: 4px; --radius-md: 8px; --radius-lg: 12px;
    --radius-xl: 16px; --radius-full: 9999px;
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,.05); --shadow-md: 0 2px 8px rgba(0,0,0,.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,.12); --shadow-xl: 0 16px 48px rgba(0,0,0,.16);
    /* Motion */
    --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 150ms; --duration-normal: 300ms;
    --duration-slow: 500ms; --duration-slower: 800ms;
    /* Layout */
    --max-width: 1200px; --max-width-narrow: 720px; --max-width-wide: 1440px;
    --golden-major: 61.8%; --golden-minor: 38.2%;
    /* Glassmorphism */
    --glass-bg: rgba(255,255,255,0.7); --glass-bg-dark: rgba(10,10,10,0.7);
    --glass-blur: blur(10px) saturate(180%);
    --glass-border: 1px solid rgba(255,255,255,0.2);
    /* Constraints */
    --touch-min: 44px; --font-min: 12px;
  }
}

/* === BASE === */
@layer base {
  * { transition-timing-function: var(--ease-premium); }
  html { scroll-behavior: smooth; font-size: 100%; hanging-punctuation: first last; }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
      animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }

  body {
    font-family: var(--font-body);
    font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    line-height: 1.5; color: var(--text-primary);
    background-color: var(--color-off-white);
  }

  /* Fluid typography */
  h1 { font-size: clamp(2rem, 1.4rem + 3vw, 5.653rem); line-height: 1.1; }
  h2 { font-size: clamp(1.5rem, 1.1rem + 2vw, 2.827rem); line-height: 1.15; }
  h3 { font-size: clamp(1.25rem, 1rem + 1.25vw, 2rem); line-height: 1.2; }
  h4 { font-size: clamp(1.125rem, 1rem + 0.6vw, 1.414rem); line-height: 1.3; }
  h1, h2, h3, h4 {
    font-family: var(--font-display); font-weight: 700;
    text-wrap: balance; color: var(--text-primary);
  }
  p { text-wrap: pretty; max-width: 65ch; }
  a { color: var(--brand-cobalt); transition: opacity var(--duration-fast); &:hover { opacity: 0.75; } }
  img { height: auto; font-style: italic; }

  :focus-visible { outline: 2px solid var(--brand-cobalt); outline-offset: 3px; border-radius: var(--radius-sm); }
  ::selection { background: color-mix(in oklch, var(--brand-gold) 40%, transparent); color: var(--color-near-black); }
  section, .section { content-visibility: auto; contain-intrinsic-size: auto 500px; }

  /* Dark mode */
  @media (prefers-color-scheme: dark) {
    body { color: var(--text-on-dark); background-color: var(--color-black); }
    h1, h2, h3, h4 { color: var(--text-on-dark); }
    a { color: var(--brand-cyan); }
    ::selection { background: color-mix(in oklch, var(--brand-gold) 40%, transparent); color: var(--color-off-white); }
    :focus-visible { outline-color: var(--brand-cyan); }
  }
}

/* === COMPONENTS === */
@layer components {
  .container { width: 100%; max-width: var(--max-width); margin-inline: auto; padding-inline: var(--space-5); }
  .container--narrow { max-width: var(--max-width-narrow); }
  .container--wide { max-width: var(--max-width-wide); }
  .full-bleed { width: 100vw; margin-inline: calc(50% - 50vw); }

  /* Buttons */
  .btn-ghost, .btn-pill {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: var(--touch-min); min-width: var(--touch-min);
    padding: var(--space-3) var(--space-6); font-family: var(--font-body);
    font-size: 1rem; font-weight: 500; line-height: 1;
    transition: all var(--duration-normal); cursor: pointer;
  }
  .btn-ghost {
    background: transparent; border: 1.5px solid currentColor;
    border-radius: var(--radius-lg); color: var(--text-primary);
    &:hover { background: rgba(26,26,26,0.05); transform: scale(1.02); }
  }
  .btn-pill {
    background: var(--brand-gold); border: none;
    border-radius: var(--radius-full); color: var(--color-near-black);
    &:hover { filter: brightness(1.08); transform: scale(1.02); }
  }
  @media (prefers-color-scheme: dark) {
    .btn-ghost { color: var(--text-on-dark); &:hover { background: rgba(250,250,250,0.08); } }
  }

  /* Glassmorphism */
  .glass {
    background: var(--glass-bg); backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur); border: var(--glass-border);
    border-radius: var(--radius-xl); padding: var(--space-6); box-shadow: var(--shadow-md);
  }
  @media (prefers-color-scheme: dark) {
    .glass { background: var(--glass-bg-dark); border: 1px solid rgba(255,255,255,0.1); }
  }

  /* Scroll-driven reveal */
  .reveal {
    opacity: 0; transform: translateY(20px);
    animation: reveal-in linear both; animation-timeline: view(); animation-range: entry 0% entry 30%;
  }
  @keyframes reveal-in { to { opacity: 1; transform: translateY(0); } }
  @supports not (animation-timeline: view()) { .reveal { opacity: 1; transform: none; } }

  /* Golden ratio grid */
  .grid-golden { display: grid; grid-template-columns: var(--golden-major) var(--golden-minor); gap: var(--space-6); }
  @media (max-width: 768px) { .grid-golden { grid-template-columns: 1fr; } }

  /* 60-30-10 surfaces */
  .surface-dominant { background-color: var(--color-cream); }
  .surface-secondary { background-color: var(--color-blush); }
  .surface-accent { background-color: var(--brand-gold); }
  .surface-dark { background-color: var(--color-black); color: var(--text-on-dark); }
}

/* === UTILITIES === */
@layer utilities {
  .mt-1 { margin-top: var(--space-1); } .mt-2 { margin-top: var(--space-2); }
  .mt-3 { margin-top: var(--space-3); } .mt-4 { margin-top: var(--space-4); }
  .mt-5 { margin-top: var(--space-5); } .mt-6 { margin-top: var(--space-6); }
  .mt-8 { margin-top: var(--space-8); } .mt-10 { margin-top: var(--space-10); }
  .mt-12 { margin-top: var(--space-12); } .mt-16 { margin-top: var(--space-16); }
  .mt-20 { margin-top: var(--space-20); }
  .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); }
  .p-4 { padding: var(--space-4); } .p-5 { padding: var(--space-5); }
  .p-6 { padding: var(--space-6); } .p-8 { padding: var(--space-8); }
  .text-primary { color: var(--text-primary); }
  .text-secondary { color: var(--text-secondary); }
  .text-tertiary { color: var(--text-tertiary); }
  .text-balance { text-wrap: balance; } .text-pretty { text-wrap: pretty; }
  .text-center { text-align: center; }
  .flex { display: flex; } .flex-col { flex-direction: column; }
  .items-center { align-items: center; } .justify-between { justify-content: space-between; }
  .gap-4 { gap: var(--space-4); } .gap-6 { gap: var(--space-6); } .gap-8 { gap: var(--space-8); }
  .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;
  }
}
/* built with intent. — l1ft0ff */
