/* ===========================================================================
   brand.css — A!thera Partners design tokens + base elements
   OpportunitySense AI. Owned by the SCAFFOLD session — shared, read-only.
   Pull values verbatim from the A!thera visual system. Do not approximate.
   =========================================================================== */

:root {
  /* Primary palette */
  --athera-blue: #5FB8D6;
  --athera-blue-light: #A8D9EC;
  --athera-blue-deep: #2A8FB0;
  --athera-charcoal: #374151;
  --athera-charcoal-light: #4B5563;
  --athera-grey: #6B7280;
  --athera-grey-light: #9CA3AF;
  --athera-navy: #0F172A;
  --athera-navy-mid: #1E2B42;

  /* Surfaces */
  --athera-white: #FFFFFF;
  --athera-off-white: #F8F7F4;
  --athera-surface: #F1EEE8;
  --athera-mist: #D4DFE8;

  /* Extended palette — charts and single editorial accents only */
  --athera-amber: #C8955A;
  --athera-amber-light: #E8C49A;
  --athera-steel: #8AA5BE;

  /* Lines / dividers */
  --athera-line: rgba(55, 65, 81, 0.12);
  --athera-line-light: rgba(55, 65, 81, 0.06);
  --athera-line-dark: rgba(255, 255, 255, 0.08);
  --athera-line-dark-light: rgba(255, 255, 255, 0.06);

  /* Typography families */
  --athera-display: 'Cormorant Garamond', Georgia, serif;
  --athera-sans: 'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --athera-mono: 'DM Mono', 'Consolas', 'Monaco', monospace;

  /* Spacing scale */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 80px;
  --space-8: 120px;

  /* Layout */
  --page-max: 1200px;
  --page-pad: 48px;

  /* Radii — restrained */
  --radius-sm: 2px;
  --radius: 4px;

  /* Motion — calm */
  --ease: 0.2s ease;
}

/* --------------------------------------------------------------------------
   Reset / base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--athera-off-white);
  color: var(--athera-charcoal);
  font-family: var(--athera-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* --------------------------------------------------------------------------
   Display / headline elements — Cormorant Garamond Light
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--athera-display);
  color: var(--athera-charcoal);
  font-weight: 300;
  margin: 0 0 var(--space-3);
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.0; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 4vw, 48px); line-height: 1.1; letter-spacing: -0.01em; }
h3 { font-size: clamp(22px, 3vw, 32px); line-height: 1.2; font-weight: 400; }
h4 { font-size: 20px; line-height: 1.3; font-weight: 400; }

p {
  margin: 0 0 var(--space-3);
}

a {
  color: var(--athera-blue-deep);
  text-decoration: none;
  transition: color var(--ease);
}
a:hover { color: var(--athera-charcoal); }

strong { font-weight: 500; }

hr {
  border: none;
  border-top: 1px solid var(--athera-line);
  margin: var(--space-5) 0;
}

::selection {
  background: var(--athera-blue-light);
  color: var(--athera-navy);
}

img { max-width: 100%; display: block; }

/* --------------------------------------------------------------------------
   Type-scale utility classes (mirror the A!thera HTML reference)
   -------------------------------------------------------------------------- */

.athera-display-xl { font-family: var(--athera-display); font-size: clamp(64px, 9vw, 120px); font-weight: 300; line-height: 0.95; letter-spacing: -0.02em; }
.athera-display-lg { font-family: var(--athera-display); font-size: clamp(40px, 6vw, 72px); font-weight: 300; line-height: 1; letter-spacing: -0.015em; }
.athera-display-md { font-family: var(--athera-display); font-size: clamp(28px, 4vw, 48px); font-weight: 400; line-height: 1.1; letter-spacing: -0.01em; }
.athera-display-sm { font-family: var(--athera-display); font-size: clamp(20px, 3vw, 32px); font-weight: 400; line-height: 1.2; }

.athera-body-lg { font-family: var(--athera-sans); font-size: 18px; font-weight: 300; line-height: 1.7; color: var(--athera-charcoal-light); }
.athera-body { font-family: var(--athera-sans); font-size: 15px; font-weight: 400; line-height: 1.65; color: var(--athera-charcoal); }
.athera-body-sm { font-family: var(--athera-sans); font-size: 13px; font-weight: 400; line-height: 1.55; color: var(--athera-grey); }

.athera-label { font-family: var(--athera-sans); font-size: 10px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--athera-grey); }
.athera-label-blue { font-family: var(--athera-sans); font-size: 10px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--athera-blue-deep); }
.athera-mono { font-family: var(--athera-mono); font-size: 11px; font-weight: 400; line-height: 1.6; color: var(--athera-grey-light); }

/* Signature thin blue rule */
.athera-blue-rule { width: 48px; height: 1px; background: var(--athera-blue); border: none; }

/* --------------------------------------------------------------------------
   Inline wordmark (logo built from brand type)
   -------------------------------------------------------------------------- */

.athera-wordmark {
  font-family: var(--athera-display);
  font-size: 28px;
  font-weight: 300;
  color: var(--athera-charcoal);
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}
.athera-wordmark .mark { color: var(--athera-blue); }
.athera-wordmark-partners {
  font-family: var(--athera-sans);
  font-size: 0.46em;
  font-weight: 400;
  color: var(--athera-grey);
  letter-spacing: 0.08em;
  margin-left: 4px;
  vertical-align: super;
}
.athera-wordmark.on-dark { color: #fff; }
.athera-wordmark.on-dark .athera-wordmark-partners { color: rgba(255, 255, 255, 0.6); }

/* --------------------------------------------------------------------------
   Accessibility
   -------------------------------------------------------------------------- */

:focus-visible {
  outline: 2px solid var(--athera-blue-deep);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
