/* ==========================================================================
   brand.css — A!thera Partners brand layer
   ProductMatch AI · A Retail AI MVP by A!thera Partners

   This file carries the A!thera design tokens VERBATIM from the brand skill
   (references/formats-html.md and visual-system.md), plus the type-scale
   classes and the shared component styles. Token values are the source of
   truth — do not alter them. App-specific layout lives in app.css and is
   built only from the variables defined here.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens — pasted verbatim from the A!thera brand skill.
   -------------------------------------------------------------------------- */

: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;

  /* Extended palette */
  --athera-amber: #C8955A;
  --athera-amber-light: #E8C49A;
  --athera-steel: #8AA5BE;
  --athera-mist: #D4DFE8;

  /* Lines */
  --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 */
  --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;
}

/* --------------------------------------------------------------------------
   2. Type scale — the brand's editorial type system.
   Headlines are Cormorant Garamond Light. Never bold serif.
   -------------------------------------------------------------------------- */

.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); }

/* --------------------------------------------------------------------------
   3. Signature components.
   -------------------------------------------------------------------------- */

/* Thin blue rule — the brand's signature divider. */
.athera-blue-rule { width: 48px; height: 1px; background: var(--athera-blue); }

/* Buttons ---------------------------------------------------------------- */

.athera-button-primary {
  display: inline-block;
  padding: 12px 24px;
  background: var(--athera-blue);
  color: var(--athera-navy);
  font-family: var(--athera-sans);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  border: none; border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.athera-button-secondary {
  display: inline-block;
  padding: 12px 24px;
  background: transparent;
  color: var(--athera-charcoal);
  border: 1px solid var(--athera-line);
  border-radius: 2px;
  font-family: var(--athera-sans);
  font-size: 12px; font-weight: 400;
  letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}
.athera-button-primary:hover { background: var(--athera-blue-deep); }
.athera-button-secondary:hover { background: var(--athera-off-white); }

/* Cards ------------------------------------------------------------------ */

.athera-card {
  background: var(--athera-white);
  border: 1px solid var(--athera-line);
  border-radius: 4px;
  padding: 32px;
}
.athera-card-dark {
  background: var(--athera-navy);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--athera-line-dark);
  border-radius: 4px;
  padding: 32px;
}

/* Tables ----------------------------------------------------------------- */

.athera-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--athera-sans);
  font-size: 13px;
}
.athera-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--athera-grey-light);
  border-bottom: 1px solid var(--athera-line);
}
.athera-table td {
  padding: 12px 16px;
  color: var(--athera-charcoal);
  border-bottom: 1px solid var(--athera-line-light);
}

/* Hero / cover ----------------------------------------------------------- */

.athera-hero {
  min-height: 100vh;
  background: var(--athera-navy);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 40px 64px;
}
.athera-hero-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--athera-line-dark);
}
.athera-hero-body { padding: 80px 0; display: flex; flex-direction: column; justify-content: center; }
.athera-hero .athera-blue-rule { margin-bottom: 48px; }
.athera-tagline {
  margin-top: 32px;
  font-family: var(--athera-sans); font-size: 13px; font-weight: 300;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

/* Section opener --------------------------------------------------------- */

.athera-section-opener .section-number { display: block; margin-bottom: 12px; }
.athera-section-opener .athera-label { display: block; }

/* Inline wordmark -------------------------------------------------------- */

.athera-wordmark {
  font-family: var(--athera-display);
  font-size: 32px;
  font-weight: 300;
  color: var(--athera-charcoal);
  letter-spacing: -0.01em;
}
.athera-wordmark .athera-a { color: var(--athera-blue); }
.athera-wordmark-partners {
  font-family: var(--athera-sans);
  font-size: 0.5em;
  font-weight: 400;
  color: var(--athera-grey);
  letter-spacing: 0.08em;
  margin-left: 4px;
  vertical-align: super;
}
/* On dark surfaces, "thera" turns white. The A! stays brand blue. */
.athera-wordmark--on-dark { color: #fff; }

/* --------------------------------------------------------------------------
   4. Global focus state — accessible, brand-consistent (Blue Deep, offset).
   -------------------------------------------------------------------------- */

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