/*
 * Typography
 * Florelie Website - Font imports and text styles
 */

/* ========================================
   FONT IMPORTS - Google Fonts (Fallback)
   TODO: Replace with self-hosted WOFF2 fonts for GDPR compliance
   ======================================== */

/* Montserrat - Headlines */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* Lato - Body Text */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');

/* Lora - Toplines/Sublines */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* ========================================
   BASE TYPOGRAPHY
   ======================================== */

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-body-regular);
  color: var(--color-gray-dark);
  line-height: var(--leading-relaxed);
  letter-spacing: var(--tracking-normal);
}

/* ========================================
   HEADINGS
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  font-weight: var(--weight-headline-semibold);
  color: var(--color-sage-dark);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-md);
  letter-spacing: var(--tracking-tight);
}

h1 {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-lg);
}

h2 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
  font-weight: 300;
}

h3 {
  font-size: var(--text-2xl);
  font-weight: var(--weight-headline-medium);
}

h4 {
  font-size: var(--text-xl);
  font-weight: var(--weight-headline-medium);
}

h5 {
  font-size: var(--text-lg);
  font-weight: var(--weight-headline-medium);
}

h6 {
  font-size: var(--text-base);
  font-weight: var(--weight-headline-semibold);
}

/* ========================================
   PARAGRAPH & TEXT ELEMENTS
   ======================================== */

p {
  margin-bottom: var(--space-md);
}

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

strong, b {
  font-weight: var(--weight-body-bold);
  color: var(--color-gray-dark);
}

em, i {
  font-style: italic;
}

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

/* Links */
a {
  color: var(--color-sage-dark);
  transition: color var(--transition-fast);
  position: relative;
}

a:hover {
  color: var(--color-sage-medium);
}

a:focus-visible {
  outline: 2px solid var(--color-sage-dark);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Topline - Small accent text above headings */
.topline {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: var(--weight-accent-regular);
  color: var(--color-sage-secondary);
  font-size: var(--text-lg);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  display: block;
  margin-bottom: var(--space-sm);
}

/* Subline - Subtitle below headings */
.subline {
  font-family: var(--font-accent);
  font-weight: var(--weight-accent-regular);
  color: var(--color-gray-medium);
  font-size: var(--text-xl);
  line-height: var(--leading-normal);
  display: block;
  margin-top: var(--space-sm);
  margin-bottom: var(--space-lg);
}

/* Pull Quote */
.pull-quote {
  font-family: var(--font-accent);
  font-size: var(--text-3xl);
  font-weight: var(--weight-accent-medium);
  color: var(--color-sage-dark);
  line-height: var(--leading-normal);
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  position: relative;
}

.pull-quote::before {
  content: '"';
  font-size: 4rem;
  color: var(--color-sage-secondary);
  opacity: 0.3;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-family: Georgia, serif;
  line-height: 1;
}

/* Lead text - Larger intro paragraph */
.lead {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-gray-medium);
}

/* Caption */
.caption {
  font-size: var(--text-sm);
  color: var(--color-gray-medium);
  font-style: italic;
}

/* Text alignment utilities */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Font weight utilities */
.font-normal { font-weight: var(--weight-body-regular); }
.font-bold { font-weight: var(--weight-body-bold); }

/* Color utilities */
.text-purple { color: var(--color-sage-dark); }
.text-pink { color: var(--color-sage-secondary); }
.text-gray { color: var(--color-gray-medium); }
.text-dark { color: var(--color-gray-dark); }

/* ========================================
   LISTS
   ======================================== */

.content-list {
  list-style: none;
  margin: var(--space-lg) 0;
}

.content-list li {
  position: relative;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.content-list li::before {
  content: '✿';
  position: absolute;
  left: 0;
  color: var(--color-sage-secondary);
  font-size: var(--text-sm);
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 767px) {
  .pull-quote {
    font-size: var(--text-2xl);
    padding: var(--space-xl) var(--space-md);
  }

  .pull-quote::before {
    font-size: 3rem;
  }
}
