/* Shared critical CSS for all pages */

/* Base styles */
body {
  margin: 0;
  padding: 0;
  font-family: 'EB Garamond', Georgia, serif;
  line-height: 1.5;
  color: var(--ui-color-text);
  background-color: var(--ui-color-bg);
}

/* Loading states */
.fonts-loading body {
  opacity: 0;
}

.fonts-loaded body {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Hero component critical styles */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero figure {
  position: absolute;
  inset: 0;
  margin: 0;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Navigation critical styles */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}

/* Typography base */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
}

p {
  margin-bottom: 1.5rem;
}

/* Layout utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Responsive utilities */
@media (max-width: 768px) {
  .hero {
    height: 70vh;
  }
}
