/* ============================================
   Elsbeth's Journals — Static Site Styles
   Aesthetic: Warm, organic, refined wellness
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Karla:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&display=swap');

:root {
  --cream:       #FAF7F2;
  --cream-dark:  #F2EDE5;
  --sage:        #7B8E6B;
  --sage-light:  #A8B89A;
  --sage-pale:   #E8EDE4;
  --gold:        #C4A265;
  --gold-light:  #D4BC8E;
  --gold-pale:   #F5EDDF;
  --text:        #3A3530;
  --text-muted:  #7A736B;
  --text-light:  #9E968D;
  --white:       #FFFFFF;
  --border:      #E5DFD6;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Karla', 'Segoe UI', sans-serif;

  --max-width:   1200px;
  --section-pad: 100px;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--gold); }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.1rem; font-weight: 500; }

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}
.site-nav.scrolled {
  box-shadow: 0 2px 20px rgba(58, 53, 48, 0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.02em;
}
.nav-logo:hover { color: var(--sage); }
.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--sage);
  transition: width 0.3s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--sage);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 80px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(170deg, var(--cream) 0%, var(--sage-pale) 40%, var(--gold-pale) 70%, var(--cream) 100%);
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(123, 142, 107, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(196, 162, 101, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(123, 142, 107, 0.05) 0%, transparent 40%);
  animation: float 20s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(20px, -20px) rotate(1deg); }
  66% { transform: translate(-10px, 15px) rotate(-0.5deg); }
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.2s;
}
.hero h1 {
  font-weight: 300;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.4s;
}
.hero h1 em {
  font-style: italic;
  color: var(--sage);
}
.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 36px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.6s;
}
.hero-cta {
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.8s;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 50px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--sage);
  color: var(--white);
}
.btn-primary:hover {
  background: #6A7D5B;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(123, 142, 107, 0.25);
}
.btn-outline {
  background: transparent;
  color: var(--sage);
  border: 1.5px solid var(--sage);
}
.btn-outline:hover {
  background: var(--sage);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-sm {
  padding: 10px 22px;
  font-size: 0.78rem;
}
.btn-amazon {
  background: var(--text);
  color: var(--white);
}
.btn-amazon:hover {
  background: #1a1815;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(58, 53, 48, 0.2);
}
.btn-amazon-uk {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-amazon-uk:hover {
  background: var(--text);
  color: var(--white);
  transform: translateY(-2px);
}

/* ============================================
   SECTIONS
   ============================================ */
section {
  padding: var(--section-pad) 0;
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header h2 {
  margin-bottom: 16px;
}
.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}
.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 12px;
}
.section-divider {
  width: 48px;
  height: 1.5px;
  background: var(--gold);
  margin: 20px auto 0;
}

/* Alternating background */
.bg-alt { background: var(--cream-dark); }
.bg-sage { background: var(--sage-pale); }

/* ============================================
   JOURNAL GRID (Homepage)
   ============================================ */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 32px;
}
.journal-card {
  display: flex;
  flex-direction: column;
  text-align: center;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}
.journal-card:nth-child(1) { animation-delay: 0.1s; }
.journal-card:nth-child(2) { animation-delay: 0.2s; }
.journal-card:nth-child(3) { animation-delay: 0.3s; }
.journal-card:nth-child(4) { animation-delay: 0.4s; }
.journal-card:nth-child(5) { animation-delay: 0.1s; }
.journal-card:nth-child(6) { animation-delay: 0.2s; }
.journal-card:nth-child(7) { animation-delay: 0.3s; }
.journal-card:nth-child(8) { animation-delay: 0.4s; }
.journal-card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(58, 53, 48, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  aspect-ratio: 3 / 4;
  background: var(--cream-dark);
  padding: 12px;
}
.journal-card:hover .journal-card-image {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(58, 53, 48, 0.15);
}
.journal-card-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}
.journal-card h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  line-height: 1.3;
  min-height: 2.6em;
}
.journal-card .journal-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
  flex: 1;
}
.journal-card .buy-links {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: auto;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
  padding: var(--section-pad) 0;
}
.about-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.about-content p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.about-content p + p {
  margin-top: 1rem;
}

/* ============================================
   JOURNAL DETAILS (Journal Info page)
   ============================================ */
.journal-detail {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}
.journal-detail:last-child {
  border-bottom: none;
}
.journal-detail.reverse {
  grid-template-columns: 1.4fr 1fr;
}
.journal-detail.reverse .journal-detail-image {
  order: 2;
}
.journal-detail-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(58, 53, 48, 0.1);
  max-width: 360px;
  justify-self: center;
}
.journal-detail-image img {
  width: 100%;
  display: block;
}
.journal-detail-text h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--text);
}
.journal-detail-text p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.8;
}
.journal-detail-text .buy-links {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* ============================================
   BLOG
   ============================================ */
.blog-post {
  max-width: 740px;
  margin: 0 auto;
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}
.blog-post:last-child { border-bottom: none; }
.blog-post-date {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 12px;
}
.blog-post h3 {
  font-size: 1.6rem;
  margin-bottom: 20px;
}
.blog-post p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.8;
}
.blog-post ul {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.8;
  margin: 12px 0 12px 24px;
}
.blog-post strong {
  color: var(--text);
}
.blog-post em {
  font-style: italic;
}
.blog-post a {
  color: var(--sage);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================
   PAGE HERO (for inner pages)
   ============================================ */
.page-hero {
  padding: 140px 24px 60px;
  text-align: center;
  background: linear-gradient(170deg, var(--cream) 0%, var(--sage-pale) 60%, var(--cream) 100%);
}
.page-hero h1 {
  font-weight: 300;
  margin-bottom: 16px;
}
.page-hero p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 12px;
}
.site-footer p {
  font-size: 0.85rem;
  color: var(--text-light);
}
.site-footer a {
  color: var(--text-muted);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .journal-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  :root {
    --section-pad: 70px;
  }
  .journal-detail,
  .journal-detail.reverse {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .journal-detail.reverse .journal-detail-image {
    order: 0;
  }
  .journal-detail-image {
    max-width: 280px;
  }
  .journal-detail-text .buy-links {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(250, 247, 242, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(58, 53, 48, 0.06);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  .hero { min-height: 70vh; padding: 120px 24px 60px; }
  .journal-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

@media (max-width: 480px) {
  .journal-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .journal-card .buy-links { flex-direction: column; align-items: center; }
}

/* ============================================
   UTILITY
   ============================================ */
.text-center { text-align: center; }
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 36px; }
.mb-1 { margin-bottom: 12px; }
.mb-2 { margin-bottom: 24px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
