/* =========================================================
   COLORES — Base
   HTML element styling + layout primitives.
   ========================================================= */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: var(--fz-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--t-theme), color var(--t-theme);
}

::selection { background: var(--selection-bg); color: var(--selection-fg); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: var(--ls-heading);
  line-height: var(--lh-heading);
  margin: 0;
}
h1 { font-size: var(--fz-h1); font-weight: 300; letter-spacing: var(--ls-display); line-height: var(--lh-display); }
h2 { font-size: var(--fz-h2); }
h3 { font-size: var(--fz-h3); }
h4 { font-size: var(--fz-h4); }
h5 { font-size: var(--fz-h5); }
h6 { font-size: var(--fz-h6); }

p { margin: 0 0 1rem; max-width: 72ch; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--t-base);
}
a:hover { color: var(--accent-hover); }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

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

code, kbd, samp, pre {
  font-family: var(--mono);
  font-size: .9em;
  letter-spacing: .02em;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

input, textarea, select {
  font: inherit;
  color: inherit;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--space-5) 0;
}

/* Layout primitives */
.l-container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.l-section   { padding: var(--space-7) 0; border-bottom: 1px solid var(--line); }
.l-section:last-of-type { border-bottom: 0; }

/* Typography helpers used across components */
.t-eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--fz-mono-xs);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: .7rem;
}
.t-eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
.t-lede {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  line-height: 1.5;
  max-width: 50ch;
}
.t-foil {
  background: var(--gold-grad);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.t-italic { font-style: italic; }
.t-mono   { font-family: var(--mono); }

/* Visually-hidden but available to AT */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
