/* ============================================================
   GridNorth Studio — Base element defaults
   Sensible, on-brand defaults so any consumer page inherits the
   right canvas, type, and rhythm. Tokens must load before this.
   ============================================================ */

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-strong);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
  margin: 0 0 var(--space-3);
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); letter-spacing: var(--ls-normal); }

p { margin: 0 0 var(--space-4); text-wrap: pretty; }

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-standard);
}
a:hover { color: var(--green-900); text-decoration: underline; text-underline-offset: 2px; }

small { font-size: var(--fs-sm); }

strong, b { font-weight: var(--fw-bold); }

/* Tracked overline / kicker label */
.gn-kicker {
  font-family: var(--font-body);
  font-weight: var(--fw-black);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-kicker);
  text-transform: uppercase;
  color: var(--accent-premium);
}

::selection { background: var(--green); color: var(--ivory-soft); }

:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-xs);
}

/* Form controls live inside a bordered field wrapper that already shows the
   green focus state, so the inner control must NOT draw its own inset ring. */
input:focus,
input:focus-visible,
select:focus,
select:focus-visible,
textarea:focus,
textarea:focus-visible {
  outline: none;
  box-shadow: none;
}
