/* ============================================================
   SCC — Base element styles & helpers
   Applies the brand defaults on top of the token layer.
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

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

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

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--text-strong);
  line-height: var(--lh-tight);
  font-weight: var(--fw-extrabold);
  text-wrap: balance;
}
h1 { font-size: var(--text-h1-size); }
h2 { font-size: var(--text-h2-size); }
h3 { font-size: var(--text-h3-size); }
h4 { font-size: var(--text-h4-size); font-weight: var(--fw-bold); }

p { margin: 0; text-wrap: pretty; }

a { color: var(--scc-green); text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
a:hover { color: var(--scc-red); }

img, svg { max-width: 100%; display: block; }

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

::selection { background: var(--scc-red); color: #fff; }

/* ---- Reusable brand helpers ---- */

/* Latin all-caps eyebrow (e.g. "ESTD · 1998", "SAFE · CONTROLLED · CERTIFIED") */
.scc-overline {
  font-family: var(--font-latin);
  font-size: var(--text-overline-size);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--scc-green);
}

/* The signature thin red "smile" underline that sits beneath the SCC wordmark */
.scc-smile {
  display: block;
  height: 2px;
  border: none;
  background: var(--scc-red);
  border-radius: var(--radius-pill);
}

/* Heavy display headline — the brand's loud voice */
.scc-display {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: var(--text-display-size);
  line-height: var(--lh-tight);
  color: var(--text-strong);
}

/* Khmer body copy needs roomier leading */
.scc-khmer-body { line-height: var(--lh-relaxed); }
