/**
 * SMYLE FASHION INSTITUTE - Base Reset & Typography Foundation
 * Phase 1: Playfair Display + Inter Editorial Treatment
 */

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ==================================================
   EDITORIAL TYPOGRAPHY HIERARCHY
   ================================================== */
h1, h2, h3, .font-serif {
  font-family: var(--font-heading);
  color: var(--color-text-primary);
  font-weight: 500;
  letter-spacing: var(--tracking-tight);
}

/* Selective Editorial Italic Accent */
h1 em, h2 em, h3 em, .editorial-italic {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
}

.display-title {
  font-size: var(--text-display);
  line-height: var(--leading-tight);
  font-weight: 500;
}

h1 {
  font-size: var(--text-h1);
  line-height: var(--leading-tight);
}

h2 {
  font-size: var(--text-h2);
  line-height: var(--leading-tight);
  font-weight: 600;
}

h3 {
  font-size: var(--text-h3);
  line-height: var(--leading-snug);
  font-weight: 500;
}

h4 {
  font-family: var(--font-body);
  font-size: var(--text-h4);
  line-height: var(--leading-snug);
  font-weight: 600;
  color: var(--color-text-primary);
  letter-spacing: var(--tracking-wide);
}

p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
}

p:last-child {
  margin-bottom: 0;
}

.lead-text {
  font-family: var(--font-body);
  font-size: var(--text-lead);
  line-height: var(--leading-normal);
  color: var(--color-text-secondary);
  font-weight: 400;
}

.overline {
  font-family: var(--font-body);
  font-size: var(--text-overline);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--color-accent);
  display: inline-block;
  margin-bottom: var(--space-xs);
}

.overline-inverse {
  color: var(--color-champagne);
}

/* ==================================================
   LINKS & INTERACTIVE BASICS
   ================================================== */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: var(--font-body);
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

/* ==================================================
   ACCESSIBILITY & FOCUS
   ================================================== */
:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}