/* Axiome Intelligence — design tokens
   Derived from brand-identity.md, color-system.md, typography.md, spacing-layout.md */

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

:root {
  /* Slate — the ground */
  --color-slate-paper: #F7F4EE;
  --color-slate-white: #FFFFFF;
  --color-slate-50:    #F1ECE2;
  --color-slate-100:   #E9E3D6;
  --color-slate-200:   #DDD6C6;
  --color-slate-300:   #C2BAA8;
  --color-slate-400:   #8E8775;
  --color-slate-500:   #5F5A4E;
  --color-slate-700:   #2A2A2A;
  --color-slate-900:   #131313;

  /* Aurum Gold */
  --color-gold-50:     #F4ECD3;
  --color-gold-200:    #E3CE8E;
  --color-gold-400:    #C9A658;
  --color-gold-500:    #A6822B;
  --color-gold-600:    #856621;

  /* Lumen Mint — one moment per view */
  --color-mint-400:    #6EC9A5;
  --color-mint-500:    #3DA180;

  /* Semantic */
  --color-body:       #1F1F1F;
  --color-muted:      #5F6471;
  --color-off-white:  #EFEBE2;
  --color-soft-mute:  #B7B1A1;

  /* Type */
  --font-display: "Playfair Display", Georgia, serif;
  --font-body:    "Inter", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  --text-xs:   0.75rem;
  --text-sm:   0.8125rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.375rem;
  --text-2xl:  1.75rem;
  --text-3xl:  2.25rem;
  --text-4xl:  3rem;
  --text-5xl:  4rem;
  --text-6xl:  5.5rem;

  --leading-tight:  1.05;
  --leading-snug:   1.2;
  --leading-normal: 1.55;

  --tracking-tight:   -0.01em;
  --tracking-normal:  0;
  --tracking-wide:    0.06em;
  --tracking-wider:   0.14em;
  --tracking-widest:  0.22em;

  /* Spacing — 4px base */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --max-w: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);

  /* Density — default */
  --space-block: clamp(4.5rem, 10vw, 8rem);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-body);
  background: var(--color-slate-paper);
  font-feature-settings: "ss01", "cv01", "cv11";
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--color-gold-200); color: var(--color-slate-900); }

/* Utilities */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-gold-500);
}

.mono  { font-family: var(--font-mono); }
.serif { font-family: var(--font-display); }

/* Split-color editorial title */
.title-split {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-slate-900);
  margin: 0;
  text-wrap: balance;
}
.title-split .accent {
  font-style: italic;
  color: var(--color-gold-500);
  font-weight: 700;
}

section.block { padding-block: var(--space-block); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.95rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 0;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--color-slate-900);
  color: var(--color-slate-paper);
}
.btn--primary:hover {
  background: var(--color-gold-500);
  color: var(--color-slate-900);
}
.btn--ghost {
  background: transparent;
  color: var(--color-slate-900);
  border-color: var(--color-slate-300);
}
.btn--ghost:hover {
  border-color: var(--color-slate-900);
  background: var(--color-slate-50);
}
.btn--link {
  padding: 0 0 2px;
  background: transparent;
  color: var(--color-slate-900);
  border-bottom: 1px solid var(--color-gold-500);
  border-radius: 0;
  font-weight: 500;
}
.btn--link:hover { color: var(--color-gold-500); }
.btn .arrow { display: inline-block; transition: transform 200ms ease; }
.btn:hover .arrow { transform: translateX(3px); }
