/* ============================================================
   Uncharted Strategy — global base & brand utilities
   (Imported by styles.css. Tokens must load before this.)
   ============================================================ */

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

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

a { color: var(--text-link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* ---- Eyebrow / overline (UNCHARTED STRATEGY) ---- */
.uc-eyebrow {
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--uc-topo-teal);
}
.uc-eyebrow--teal { color: var(--uc-deep-teal); }
.uc-eyebrow--orange { color: var(--uc-orange); }

/* ---- Orange accent rule (under headlines) ---- */
.uc-rule {
  width: 56px;
  height: 3px;
  background: var(--uc-orange);
  border: 0;
  margin: var(--space-4) 0;
}
.uc-rule--center { margin-inline: auto; }

/* ---- Signature framed card: teal frame + ONE orange corner accent ----
   A single accent (top-right) reads as a clear, forward direction.
   Two opposing accents would signal conflicting directions — off-brand. */
.uc-frame {
  position: relative;
  border: var(--border-frame-w) solid var(--border-frame);
  background: var(--surface-card);
}
.uc-frame::after {
  content: "";
  position: absolute;
  top: -3px; right: -3px;
  width: var(--corner-accent);
  height: var(--corner-accent);
  border-top: var(--border-frame-w) solid var(--uc-orange);
  border-right: var(--border-frame-w) solid var(--uc-orange);
  pointer-events: none;
}

/* ---- Dark immersive surface ---- */
.uc-dark {
  background-color: var(--surface-dark);
  color: var(--text-on-dark);
}
.uc-dark h1, .uc-dark h2, .uc-dark h3, .uc-dark h4 { color: var(--text-on-dark); }

/* ---- Topographic texture as a CSS background image ---- */
.uc-topo-dark {
  background-color: var(--surface-dark);
  background-image: var(--uc-topo-dark-url, none);
  background-size: cover;
  background-position: center;
}

::selection { background: var(--uc-topo-teal); color: var(--uc-teal-950); }
