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

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  background: var(--onl-navy);
  color: #fff;
}

/* Typography scale */
.text-display {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.text-h1 {
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.text-h2 {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.text-h3 {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.text-h4 {
  font-size: 1rem;
  font-weight: 500;
}
.text-body {
  font-size: 0.875rem;
  line-height: 1.65;
}
.text-sm {
  font-size: 0.8125rem;
  line-height: 1.5;
}
.text-xs {
  font-size: 0.75rem;
}
.text-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.text-mono {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

/* Colour utilities */
.text-gold {
  color: var(--onl-gold);
}
.text-slate,
.text-muted {
  color: var(--onl-slate);
}
.text-safe {
  color: var(--safe);
}
.text-danger {
  color: var(--danger);
}
.text-cream {
  color: var(--onl-cream);
}

/* Layout helpers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.stack > * + * {
  margin-top: var(--space-4);
}

/* Focus ring */
:focus-visible {
  outline: 2px solid var(--onl-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
}
