/* Saphirion base styles — thin layer on top of tokens.css */
@import url("./tokens.css?v=1779279148987");

/* Cascade layers — see README.md §2.2.
   Order, low → high priority: base · components · motifs · utilities.
   A rule in a later layer beats an earlier layer regardless of selector
   specificity. tokens.css / fonts.css stay unlayered (globals); deck-level
   CSS (deck.css, preview <style> blocks) stays unlayered so it always
   overrides the DS regardless of specificity. `utilities` is reserved
   (currently empty) for future single-purpose helpers that must win over
   components. This statement, declared in the first-loaded DS file, fixes
   the layer order for every sheet that follows. */
@layer base, components, motifs, utilities;

@layer base {

*,*::before,*::after { box-sizing: border-box; }
html, body { margin:0; padding:0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sph-font-body);
  font-size: var(--sph-fs-base);
  line-height: var(--sph-lh-normal);
  color: var(--sph-text);
  background: var(--sph-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Type primitives --------------------------------------------------------- */
/* Pull-quotes use .sph-quote — Work Sans ExtraBold at display size.
   No italic, no secondary face. The legacy brand guide called for Lobster
   here; we don't do that anymore — weight and size carry the emphasis.    */

.sph-eyebrow {
  font-family: var(--sph-font-display);
  font-weight: var(--sph-weight-extrabold);
  font-size: var(--sph-fs-xs);
  letter-spacing: var(--sph-tracking-wider);
  text-transform: uppercase;
  color: var(--sph-text-accent, var(--sph-primary));
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.sph-eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  display: inline-block;
}

.sph-display {
  font-family: var(--sph-font-display);
  font-weight: var(--sph-weight-extrabold);
  font-size: clamp(40px, 6vw, var(--sph-fs-4xl));
  line-height: var(--sph-lh-tight);
  letter-spacing: var(--sph-tracking-tight);
  color: var(--sph-text);
  margin: 0;
}

.sph-h1 { font: var(--sph-weight-extrabold) var(--sph-fs-3xl)/var(--sph-lh-tight) var(--sph-font-display); margin:0; letter-spacing:var(--sph-tracking-tight); }
.sph-h2 { font: var(--sph-weight-extrabold) var(--sph-fs-2xl)/var(--sph-lh-snug)  var(--sph-font-display); margin:0; letter-spacing:var(--sph-tracking-tight); }
.sph-h3 { font: var(--sph-weight-bold) var(--sph-fs-xl)/var(--sph-lh-snug)   var(--sph-font-display); margin:0; }
.sph-h4 { font: var(--sph-weight-bold) var(--sph-fs-lg)/var(--sph-lh-snug)   var(--sph-font-display); margin:0; }
.sph-body   { font: var(--sph-weight-medium) var(--sph-fs-base)/var(--sph-lh-normal) var(--sph-font-body); }
.sph-lead   { font: var(--sph-weight-medium) var(--sph-slide-body-size)/var(--sph-lh-normal)   var(--sph-font-body); color: var(--sph-text-soft); }
.sph-caption{ font: var(--sph-weight-medium) var(--sph-slide-caption-size)/var(--sph-lh-normal)   var(--sph-font-body); color: var(--sph-text-soft); }

.sph-quote {
  font-family: var(--sph-font-display);
  font-weight: var(--sph-weight-extrabold);
  font-size: clamp(28px, 3.8vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--sph-text);
}
.sph-slogan {
  font-family: var(--sph-font-display);
  font-weight: var(--sph-weight-regular);
  letter-spacing: var(--sph-tracking-wider);
  color: var(--sph-text-muted);
}
.sph-slogan b, .sph-slogan strong { font-weight: var(--sph-weight-bold); color: var(--sph-text); }

/* Layout grid utilities --------------------------------------------------- */
/* Use these for simple equal-column row grids — the bread and butter of deck
   content slides. They default to 24px gap; override with inline style or a
   wrapping container if you need tighter / looser.                          */
.sph-grid-1,
.sph-grid-2,
.sph-grid-3,
.sph-grid-4,
.sph-grid-5 {
  display: grid;
  gap: 24px;
  align-items: stretch;
}
.sph-grid-1 { grid-template-columns: 1fr; }
.sph-grid-2 { grid-template-columns: repeat(2, 1fr); }
.sph-grid-3 { grid-template-columns: repeat(3, 1fr); }
.sph-grid-4 { grid-template-columns: repeat(4, 1fr); }
.sph-grid-5 { grid-template-columns: repeat(5, 1fr); }
/* Asymmetric chart + commentary grid — the canonical two-column pattern.    */
.sph-grid-chart   { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: stretch; }
.sph-grid-chart--tight { grid-template-columns: 1.2fr 1fr; }

/* Lists -------------------------------------------------------------------- */
/* Square bullets in Saphirion primary — the geometric square reads as
   Swiss-precise and pairs with the grotesque type. Applies to every <ul>
   that doesn't carry a `list-reset` class. Nested levels use the same mark
   one shade softer. Override with `.list-reset` (no marker) when a list is
   used purely for layout (nav, button rows, tag clouds).                    */
ul { padding-left: 1.4em; }
ul li { list-style-type: square; padding-left: 4px; }
ul li::marker { color: var(--sph-primary); font-size: 0.9em; }
ul ul li::marker { color: var(--sph-text-soft); }
ul.list-reset,
ul.list-reset ul { list-style: none; padding-left: 0; }
ul.list-reset > li { padding-left: 0; }
ul.list-reset > li::marker { content: ""; }

/* Links */
a { color: var(--sph-info); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--sph-primary-deep); }
.sph-on-dark a { color: var(--sph-accent-sky); }

} /* end @layer */
