/* ===============================================
   LUSTRE — BASE
   Reset, body, typography defaults, utilities.
   =============================================== */

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

html, body { height: 100%; overflow-x: hidden; }

body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 15px;
  line-height: var(--lh-normal);
  letter-spacing: var(--tracking-tight);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ====== TYPOGRAPHY ====== */
h1, h2, h3, h4, h5, h6, .serif {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: var(--tracking-tighter);
  line-height: var(--lh-tight);
}

h1 { font-size: var(--fs-4xl); font-weight: 400; }
h2 { font-size: var(--fs-3xl); font-weight: 400; }
h3 { font-size: var(--fs-xl); font-weight: 500; }
h4 { font-size: var(--fs-lg); font-weight: 500; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: var(--tracking-loose);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--muted);
}

.mono { font-family: var(--font-mono); letter-spacing: 0.05em; }

/* ====== INTERACTIVE ELEMENTS ====== */
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
button { background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ====== SCROLLBARS — refined ====== */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: var(--radius-pill); border: 2px solid var(--ivory); }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ====== UTILITIES ====== */
.text-mute { color: var(--muted); }
.text-charcoal { color: var(--charcoal); }
.text-gold { color: var(--gold-deep); }
.text-emerald { color: var(--emerald); }
.text-bordeaux { color: var(--bordeaux); }
.text-italic { font-style: italic; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-nowrap { white-space: nowrap; }
.text-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1; min-width: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.justify-center { justify-content: center; }
.gap-1 { gap: var(--sp-1); }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.gap-5 { gap: var(--sp-5); }
.gap-6 { gap: var(--sp-6); }
.gap-8 { gap: var(--sp-8); }

.flex-wrap { flex-wrap: wrap; }

.hidden { display: none !important; }

.desktop-only { display: none; }
.mobile-only { display: initial; }

@media (min-width: 900px) {
  .desktop-only { display: initial; }
  .mobile-only { display: none; }
  .desktop-flex { display: flex; }
}

/* ====== ANIMATIONS ====== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideRight { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: translateX(0); } }
