/* Shared Akkio brand styles */

/* Suisse Int'l — primary brand sans (body + all subtext). The font files live in
   assets/fonts; without these @font-face rules --sans silently fell back to Inter. */
.lp-root {
  /* Akkio brand */
  --akkio-blue: #2A54F6;
  --akkio-blue-deep: #1A3FD1;
  --light-blue: #D9E3FF;
  --mist-blue: #EDF2FF;
  --beige: #F8F4EB;
  --akkio-white: #FFFFFF;
  --akkio-black: #0A0D14;
  --dark-gray: #2E323C;
  --mid-gray: #6B7280;
  --light-gray: #E6E8EC;

  --bg: var(--akkio-white);
  --bg-2: var(--mist-blue);
  --bg-3: var(--beige);
  --paper: #ffffff;
  --ink: var(--akkio-black);
  --ink-2: var(--dark-gray);
  --ink-3: var(--mid-gray);
  --ink-4: #9aa0ab;
  --ink-5: #c5c8cf;
  --line: var(--light-gray);
  --line-2: #d4d7dd;

  --signal: var(--akkio-blue);
  --signal-soft: var(--mist-blue);
  --signal-soft-2: var(--light-blue);
  --signal-ink: var(--akkio-blue-deep);

  --display: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  /* Accent face for italic headline accents inside display headlines. */
  --display-accent: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  /* Inter is the body/subtext face site-wide (supersedes the brandbook's
     Suisse Int'l spec — confirmed by design, Jul 2026). Suisse stays in the
     stack as a fallback; its @font-face rules above are still loaded. */
  --sans: 'Inter', 'Suisse Int\'l', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  /* --mono now points at the sans stack — JetBrains Mono is off-brand.
     Numerical readouts (timestamps, log rows) get tabular-nums via the rule below
     so column alignment survives the switch. */
  --mono: 'Suisse Int\'l', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}
/* Keep numeric alignment for the places that were relying on monospace digits. */
.lp-root {
  font-variant-numeric: tabular-nums;
}

/* ── Site-wide display type system: Instrument Sans headlines with Instrument
   Serif italic accents (promoted from the per-page type trial). ── */
/* Neutralize the negative word-spacing tuned for the old brand serif. */
[style*="var(--display)"], .display-h2, .display-h5 { word-spacing: normal !important; }
/* Instrument Sans needs 500 at headline sizes where the serif sat at 400. */
h1[style*="var(--display)"], h2[style*="var(--display)"],
h3[style*="var(--display)"], h4[style*="var(--display)"],
.display-h2, .display-h5 { font-weight: 500 !important; }
/* Italic accents inside display headlines render in Instrument Serif. */
[style*="var(--display)"] [style*="italic"],
[style*="var(--display)"][style*="italic"],
.display-h2 [style*="italic"], .display-h5 [style*="italic"],
.display-h2 em, h1[style*="var(--display)"] span[style*="italic"] {
  font-family: var(--display-accent) !important;
  font-weight: 400 !important;
}
.lp-root { background: var(--bg); font-family: var(--sans); color: var(--ink); }
* { box-sizing: border-box; }

/* Season Mix has wide natural word-spacing. Apply size-bucketed tightening
   to any element using the display font, scoped via inline-style attribute.
   The bigger the font, the more em-based reduction is needed to keep the
   visible gap consistent across sizes.

   Tag-based defaults — covers most cases automatically:
     h1 → xl (hero headlines)
     h2 → lg (section titles)
     h3 → md (cards, pillars)
     h4 → md (small detail titles)
     other (span, p, div using --display) → mild default

   Explicit classes override tag defaults when needed:
     .display-xl  → 60-100px hero copy
     .display-lg  → 36-56px section titles
     .display-h2  → 36px (2.25rem) section headers
     .display-md  → 22-32px cards
     .display-h5  → 20px (1.25rem) phase / sub-section headers
     .display-sm  → 16-22px small display copy
*/

/* Default (small / body display) */
[style*="var(--display)"]                  { word-spacing: -0.05em; }

/* Tag-based defaults */
h1[style*="var(--display)"]                { word-spacing: -0.42em; }
h2[style*="var(--display)"]                { word-spacing: -0.45em; }
h3[style*="var(--display)"]                { word-spacing: -0.22em; }
h4[style*="var(--display)"]                { word-spacing: -0.18em; }

/* Explicit overrides (always win) */
[style*="var(--display)"].display-xl       { word-spacing: -0.42em; }
[style*="var(--display)"].display-lg       { word-spacing: -0.45em; }
[style*="var(--display)"].display-h2       { word-spacing: -0.42em; }
[style*="var(--display)"].display-md       { word-spacing: -0.22em; }
[style*="var(--display)"].display-h5       { word-spacing: -0.18em; }
[style*="var(--display)"].display-sm       { word-spacing: -0.12em; }

/* Class-based size + leading for .display-h2 — explicit 2.25rem section header */
.display-h2 {
  font-family: var(--display) !important;
  font-size: 2.5rem !important;        /* 40px */
  line-height: 1.12 !important;
  letter-spacing: -0.025em !important;
  font-weight: 400 !important;
  color: var(--ink);
  text-wrap: balance;
  margin: 0;
}

/* Class-based size + leading for .display-h5 — phase / sub-section header */
.display-h5 {
  font-family: var(--display) !important;
  font-size: 1.25rem !important;        /* 20px */
  line-height: 1.2 !important;
  letter-spacing: -0.018em !important;
  font-weight: 400 !important;
  color: var(--ink);
  text-wrap: balance;
  margin: 0;
}
