/* ==========================================================================
   AtlasKeys — Typography + Base Layout primitives
   Fonts: Space Grotesk (display) + Inter (body)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image:
    radial-gradient(50% 40% at 80% -5%, rgba(124,58,237,0.10), transparent 60%),
    radial-gradient(45% 35% at 0% 0%, rgba(56,189,248,0.06), transparent 55%);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  color: var(--color-text);
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-base); letter-spacing: 0.02em; text-transform: uppercase; }

p { line-height: var(--lh-base); max-width: 70ch; }

small { font-size: var(--fs-sm); }

a:not([class]) {
  color: var(--color-primary-300);
  text-underline-offset: 3px;
  transition: color var(--t-fast) var(--ease);
}
a:not([class]):hover { color: var(--color-primary-400); text-decoration: underline; }

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

/* ---------- Reusable text helpers ---------- */
.text-gradient {
  background: var(--grad-primary-2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-muted { color: var(--color-text-muted); }
.text-dim   { color: var(--color-text-dim); }
.text-center { text-align: center; }
.text-balance { text-wrap: balance; }
.mono { font-family: var(--font-mono); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary-300);
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}
.container--wide   { max-width: var(--container-wide); }
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(var(--space-16), 8vw, var(--space-32)); }
.section--tight { padding-block: clamp(var(--space-10), 5vw, var(--space-16)); }

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

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
}
.section-head h2 { font-size: var(--fs-3xl); }
.section-head p { color: var(--color-text-muted); }

.section-head--row {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}

/* Main content offset so it clears the fixed navbar */
.page-main { padding-top: var(--nav-h); min-height: 60vh; }

/* Generic surface card */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
