/* ============================================================
   Chloeta — Base element defaults
   Applies the brand type system to raw HTML so any document
   that links styles.css inherits correct fonts, colors, and
   rhythm. Components layer on top of this.
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: var(--weight-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-body);
  background: var(--surface-page);
}

/* Headings — geometric display face, bold */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-heading);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-display);
  color: var(--text-strong);
  margin: 0 0 var(--space-4);
}

h1 { font-size: var(--text-h1); line-height: var(--leading-tight); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-h4); letter-spacing: var(--tracking-normal); }

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

.lead {
  font-size: var(--text-lead);
  line-height: 1.45;
}

/* Uppercase eyebrow / kicker — a recurring brand device */
.eyebrow {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-accent);
  display: inline-block;
}

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

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

hr {
  border: 0;
  border-top: var(--border-hairline) solid var(--border-subtle);
  margin: var(--space-6) 0;
}

::selection {
  background: var(--chloeta-red);
  color: var(--chloeta-white);
}

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

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