/* Claroview - Base Styles */
/* Reset, design tokens and typography. Every page (including the homepage's home.css)
   reads its colours and fonts from the tokens below, so this is the one place to change them. */

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Palette (navy + yellow, 2026 redesign) */
  --primary-bg: #0c0c30;        /* page background */
  --primary-dark: #070720;      /* alternate / deeper sections */
  --primary-light: #111138;     /* panels and cards */
  --accent-yellow: #feea3a;
  --accent-yellow-hover: #f5df1f;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-muted: rgba(255, 255, 255, 0.62);
  --text-faint: rgba(255, 255, 255, 0.34);
  --border-light: rgba(255, 255, 255, 0.10);
  --section-bg-light: #070720;

  /* Typography */
  --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-headings: 'Source Code Pro', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-mono: 'Source Code Pro', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--primary-bg);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent-yellow);
  color: var(--primary-bg);
}

img {
  max-width: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  margin-bottom: var(--spacing-md);
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
}

h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
}

p {
  margin-bottom: var(--spacing-sm);
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  color: var(--text-secondary);
}

/* Small uppercase mono label above a heading */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-yellow);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--accent-yellow);
}

/* Links in running text that carry no class of their own (buttons and nav set their own colours) */
main a:not([class]) {
  color: var(--accent-yellow);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
