/* alm-base.css — Almure design system base tokens and resets */

:root {
  /* Brand palette */
  --alm-brand-primary:         #0C1A2E;
  --alm-bg-dark:               #0C1A2E;
  --alm-bg-dark-alt:           #101F38;
  --alm-bg-light:              #F4F6F9;
  --alm-bg-white:              #FFFFFF;
  --alm-bg-surface:            #EEF1F6;
  --alm-accent-decorative:     #2563EB;
  --alm-accent-aa-on-light:    #1A4FBE;
  --alm-accent-aa-on-dark:     #60A5FA;
  --alm-fg-light-primary:      #0C1A2E;
  --alm-fg-light-secondary:    #4B5C75;
  --alm-fg-light-tertiary:     #6B7E96;
  --alm-fg-dark-primary:       #EEF2F8;
  --alm-fg-dark-secondary:     #90A8C3;
  --alm-fg-dark-tertiary:      #5C7A9B;
  --alm-border-light:          #D0D8E4;
  --alm-border-dark:           #1E3050;
  --alm-status-green:          #16A34A;
  --alm-status-green-dark:     #4ADE80;

  /* Spacing */
  --alm-space-1: 8px;
  --alm-space-2: 16px;
  --alm-space-3: 24px;
  --alm-space-4: 32px;
  --alm-space-5: 40px;
  --alm-space-6: 48px;
  --alm-space-8: 64px;
  --alm-space-12: 96px;

  /* Typography */
  --alm-font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --alm-font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', ui-monospace, monospace;
  --alm-text-base: 16px;
  --alm-lh-body: 1.65;
  --alm-lh-heading: 1.2;

  /* Container */
  --alm-container: 1200px;
  --alm-container-narrow: 760px;

  /* Transitions */
  --alm-transition: 200ms ease;

  /* Nav */
  --alm-nav-height: 64px;
}

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

html { font-size: var(--alm-text-base); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--alm-font-sans);
  line-height: var(--alm-lh-body);
  color: var(--alm-fg-light-primary);
  background: var(--alm-bg-white);
  -webkit-font-smoothing: antialiased;
}

body.alm-page--dark-top {
  background: var(--alm-bg-dark);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  line-height: var(--alm-lh-heading);
  font-weight: 600;
}

/* Typography scale */
.alm-h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 600; line-height: 1.15; }
.alm-h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 600; }
.alm-h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); font-weight: 600; }
.alm-h4 { font-size: 1.125rem; font-weight: 600; }
.alm-body-lg { font-size: 1.125rem; line-height: 1.7; }
.alm-body { font-size: 1rem; }
.alm-body-sm { font-size: 0.875rem; }
.alm-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.alm-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Layout containers */
.alm-container {
  max-width: var(--alm-container);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.alm-container--narrow {
  max-width: var(--alm-container-narrow);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Section padding */
.alm-section {
  padding-top: var(--alm-space-12);
  padding-bottom: var(--alm-space-12);
}

.alm-section--sm {
  padding-top: var(--alm-space-8);
  padding-bottom: var(--alm-space-8);
}

/* BG contexts */
.alm-section--dark     { background: var(--alm-bg-dark); }
.alm-section--dark-alt { background: var(--alm-bg-dark-alt); }
.alm-section--light    { background: var(--alm-bg-light); }
.alm-section--white    { background: var(--alm-bg-white); }
.alm-section--surface  { background: var(--alm-bg-surface); }

/* Focus ring */
:focus-visible {
  outline: 2px solid var(--alm-accent-aa-on-light);
  outline-offset: 3px;
}
.alm-page--dark-top :focus-visible,
.alm-section--dark :focus-visible,
.alm-section--dark-alt :focus-visible {
  outline-color: var(--alm-accent-aa-on-dark);
}

/* Fade-in animation with failsafe */
.alm-fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.alm-fade-in.alm-visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 768px) {
  .alm-section {
    padding-top: var(--alm-space-8);
    padding-bottom: var(--alm-space-8);
  }
}
