/* src/css/global.css */
/* Coco Gills Author Website - Global Styles */

/* === GOOGLE FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Dancing+Script:wght@400;500;600&family=Inter:wght@400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&display=swap');

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--warm-brown-text);
  background-color: var(--cream-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: var(--leading-tight);
  color: var(--warm-brown-dark);
}

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

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

a {
  color: var(--teal-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover,
a:focus-visible {
  color: var(--warm-brown);
  text-decoration: underline;
  outline: none;
}

a:focus-visible {
  outline: 2px solid var(--teal-accent);
  outline-offset: 2px;
}

/* === LAYOUT UTILITIES === */
.container {
  max-width: var(--max-width-page);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.content-width {
  max-width: var(--max-width-content);
  margin: 0 auto;
}

.reader-width {
  max-width: var(--max-width-reader);
  margin: 0 auto;
}

/* === DECORATIVE ELEMENTS === */
/* Heart divider - matches mockup styling */
.divider-hearts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
  color: var(--sunset-coral);
  font-size: var(--text-sm);
}

.divider-hearts::before,
.divider-hearts::after {
  content: '';
  height: 1px;
  width: 60px;
  background: linear-gradient(to right, transparent, var(--border-light), transparent);
}

/* Line divider */
.divider-line {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-light), transparent);
  margin: var(--space-xl) 0;
}

/* === SIGNATURE STYLING === */
.signature {
  display: inline-block;
}

.signature img {
  height: 42px;
  max-height: 42px;
  width: auto;
  display: block;
}

.site-footer .signature img {
  height: 36px;
  max-height: 36px;
}

/* === VISUALLY HIDDEN (accessibility) === */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 480px) {
  .container {
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
  }

  h1 {
    font-size: var(--text-4xl);
  }
}
