/* ============================================================
   ECWE — BASE ELEMENT STYLES & UTILITIES
   Applies the institutional defaults: ivory ground, serif body,
   engraved headings. Kept light so components stay in control.
   ============================================================ */

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

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

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-sans);  /* evolved: modern grotesque body; serif reserved for standfirsts & quotes */
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  font-weight: var(--weight-regular);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--text-strong);
  font-weight: var(--weight-medium);
  line-height: var(--leading-tight);
  margin: 0 0 0.4em;
  letter-spacing: var(--tracking-tight);
}
h1 { font-size: var(--text-4xl); letter-spacing: var(--tracking-tightest); }
h2 { font-size: var(--text-3xl); letter-spacing: var(--tracking-tightest); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

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

a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-hover); }

::selection { background: var(--copper-200); color: var(--ink-900); }

/* -------- Utility: scientific metadata (mono) -------- */
.ecwe-meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 500;
}

/* -------- Utility: eyebrow / kicker (letter-spaced caps) -------- */
.ecwe-eyebrow {
  font-family: var(--font-mono);   /* evolved: natural-case mono credential label */
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

/* -------- Utility: engraved caps (Cinzel) -------- */
.ecwe-engrave {
  font-family: var(--font-engrave);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}

/* -------- Utility: copper foil text -------- */
.ecwe-foil {
  background: var(--gradient-copper);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* -------- Utility: ornamental centered rule with node -------- */
.ecwe-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--copper-400);
}
.ecwe-rule::before,
.ecwe-rule::after {
  content: "";
  height: 1px;
  width: 56px;
  background: linear-gradient(90deg, transparent, var(--copper-400));
}
.ecwe-rule::after { background: linear-gradient(90deg, var(--copper-400), transparent); }
.ecwe-rule__node {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--copper-500);
}

/* -------- Utility: institutional button -------- */
.ecwe-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--font-sans); font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; border-radius: var(--radius-sm); cursor: pointer;
  white-space: nowrap; text-decoration: none; border: 1px solid transparent;
  padding: 17px 38px; font-size: 13px;
  transition: background var(--dur-base) var(--ease-standard),
              color var(--dur-base) var(--ease-standard),
              border-color var(--dur-base) var(--ease-standard);
}
.ecwe-btn--md { padding: 13px 26px; font-size: 12px; }
.ecwe-btn--sm { padding: 8px 16px;  font-size: 11px; }

/* Brass outline that fills with the brass background + white text on hover */
.ecwe-btn--brass-outline {
  background: transparent;
  color: var(--copper-700);
  border-color: var(--copper-500);
}
.ecwe-btn--brass-outline:hover {
  background: var(--copper-500);
  color: #fff;
  border-color: var(--copper-500);
}
