/* ============================================================
   The Peeled Closet — Base element styling & primitives
   Light reset + brand defaults. Imported last from styles.css.
   ============================================================ */

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

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

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

/* Headlines default to the display serif */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--w-thin);
  color: var(--text-strong);
  letter-spacing: var(--ls-display);
  line-height: var(--lh-snug);
  margin: 0;
}

p { margin: 0; }

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

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

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

::selection { background: var(--olive); color: var(--nude); }

/* ---- Brand wordmark (CSS lockup: THE peeled CLOSET/BRIDE) ---- */
.tpc-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.42em;
  font-family: var(--font-display);
  font-weight: var(--w-thin);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
  white-space: nowrap;
}
.tpc-wordmark .peeled {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-transform: lowercase;
}

/* ---- Mono eyebrow / museum label ---- */
.tpc-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---- Editorial band helpers ---- */
.tpc-band-nude { background: var(--surface-band); }
.tpc-band-ink { background: var(--surface-ink); color: var(--text-on-dark); }
.tpc-band-olive { background: var(--surface-olive); color: var(--text-on-dark); }

/* ---- Hairline divider ---- */
.tpc-rule { border: 0; border-top: var(--bw-hair) solid var(--divider); margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
