/* GILTI — Base element defaults + brand utility classes.
   Foundational, low-specificity. Consuming designs inherit these from styles.css. */

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-weight: var(--fw-regular);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-heading);
  color: var(--text);
  margin: 0;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--terracotta-wash); color: var(--ink); }

/* ----- Editorial helpers ----- */

/* Tracked grotesque caps — eyebrows, labels, kickers */
.gilti-eyebrow {
  font-family: var(--font-eyebrow);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--text-subtle);
}

/* High-contrast Didone display */
.gilti-display {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  font-weight: var(--fw-regular);
}
.gilti-italic { font-style: italic; }

/* Foil / chrome text — echoes the logo. Use sparingly on a few glyphs/words. */
.gilti-foil {
  background: var(--foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Warm 35mm grain overlay — drop inside a positioned container */
.gilti-grain::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-size: 180px 180px;
  mix-blend-mode: multiply;
  opacity: 0.10;
  pointer-events: none;
}

/* Hairline foil divider */
.gilti-rule-foil {
  height: 1px;
  border: 0;
  background: var(--foil);
  opacity: 0.7;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
