/**
 * ALI YILDIZ — HAIR & BEAUTY CARE
 * Base & Foundation Styles
 */

/* ==========================================================================
   CSS Reset & Box Model
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-weight-regular);
  line-height: 1.68;
  letter-spacing: var(--tracking-normal);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: clip;
  position: relative;
  min-height: 100vh;
}

/* ==========================================================================
   Selection & Scrollbar
   ========================================================================== */
::selection {
  background-color: var(--color-orange);
  color: var(--color-cream);
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--color-terracotta);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-orange);
}

/* ==========================================================================
   Typography Foundations
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--font-weight-regular);
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: var(--tracking-tight);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  font-weight: var(--font-weight-light);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-soft), opacity var(--duration-fast) var(--ease-soft);
}

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* ==========================================================================
   Editorial Utility Classes
   ========================================================================== */
.display-hero {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  line-height: 1.0;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-primary);
}

.display-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  line-height: 1.08;
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
}

.editorial-sub {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--tracking-editorial);
  text-transform: uppercase;
  color: var(--color-orange);
}

.editorial-cream-tag {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-cream-70);
}

.body-lead {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-light);
  line-height: 1.7;
  color: var(--color-cream-90);
}

.text-editorial-muted {
  color: var(--text-muted);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
}

.line-divider {
  width: 100%;
  height: 1px;
  background: var(--border-subtle);
  margin: var(--space-2xl) 0;
}

.line-divider-terracotta {
  width: 100%;
  height: 1px;
  background: var(--border-terracotta);
  margin: var(--space-xl) 0;
}

/* Contrast Surface Wrappers */
.section-cream {
  background-color: var(--color-cream);
  color: var(--color-brown);
}

.section-cream h1,
.section-cream h2,
.section-cream h3,
.section-cream h4,
.section-cream h5,
.section-cream h6 {
  color: var(--color-brown);
}

.section-cream p {
  color: var(--text-dark-muted);
}

.section-cream .editorial-sub {
  color: var(--color-terracotta);
}

.section-cream .line-divider {
  background: var(--border-dark);
}

.section-orange {
  background-color: var(--color-orange);
  color: var(--color-cream);
}

.section-orange h1,
.section-orange h2,
.section-orange h3 {
  color: var(--color-cream);
}

.section-orange p {
  color: var(--color-cream-90);
}

/* Accessibility Skip Link */
.skip-to-content {
  position: absolute;
  top: -9999px;
  left: var(--space-md);
  background: var(--color-orange);
  color: var(--color-cream);
  padding: var(--space-sm) var(--space-md);
  z-index: 10000;
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  font-size: var(--text-xs);
  transition: top 0.2s ease;
}

.skip-to-content:focus {
  top: var(--space-md);
}
