/* ava-garden.org — global styles */

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

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

:root {
  --bg: #f9f6f0;
  --text: #2c2c2c;
  --accent: #5a7a5a;
  --accent-light: #e8f0e8;
  --border: #ddd8d0;
  --muted: #7a7470;
  --max-width: 720px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Lora', Georgia, serif;
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Layout ── */

.site-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

main {
  flex: 1;
  padding: 3rem 0 4rem;
}

/* ── Header & Nav ── */

.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.site-header .site-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.site-title:hover {
  color: var(--accent);
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ── Footer ── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  text-align: center;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ── Typography ── */

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.3;
  color: var(--text);
}

h1 { font-size: 2rem; margin-bottom: 0.5rem; }
h2 { font-size: 1.4rem; margin-bottom: 0.5rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }

p {
  margin-bottom: 1.4rem;
}

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

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

a:hover {
  text-decoration-color: var(--accent);
}

/* ── Hero ── */

.hero {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.hero-eyebrow {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.hero p {
  font-size: 1.1rem;
  color: #4a4a4a;
  max-width: 600px;
}

/* ── Section labels ── */

.section-label {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* ── Post card ── */

.post-card {
  border-left: 3px solid var(--accent);
  padding: 0 0 0 1.25rem;
  margin-bottom: 2.5rem;
}

.post-card + .post-card {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.post-meta {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.post-card h2 a,
.post-card h3 a {
  color: var(--text);
  font-family: 'Playfair Display', Georgia, serif;
}

.post-card h2 a:hover,
.post-card h3 a:hover {
  color: var(--accent);
}

.post-excerpt {
  color: #4a4a4a;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.read-more {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-light);
  transition: border-color 0.2s ease;
}

.read-more:hover {
  border-bottom-color: var(--accent);
  text-decoration-color: transparent;
}

/* ── Article / Full post ── */

.article-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.article-header h1 {
  margin-bottom: 0.5rem;
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-back {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.85rem;
}

/* ── Poetry ── */

.poem {
  margin: 2rem 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--accent);
}

.poem-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.poem-body {
  font-style: italic;
  line-height: 2;
  white-space: pre-line;
  color: #3a3a3a;
}

.poem-note {
  margin-top: 1rem;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.75rem;
  color: var(--muted);
}

/* ── Now page ── */

.now-section {
  margin-bottom: 2rem;
}

.now-label {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.now-updated {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

/* ── About page ── */

.about-avatar {
  float: right;
  margin: 0 0 1.5rem 2rem;
  width: 160px;
  height: 160px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.about-body p {
  margin-bottom: 1.4rem;
}

/* ── Empty state ── */

.empty-state {
  color: var(--muted);
  font-style: italic;
  font-size: 0.95rem;
  padding: 2rem 0;
}

/* ── Responsive ── */

@media (max-width: 600px) {
  html { font-size: 16px; }

  .site-header .site-wrap {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .site-nav {
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .site-nav a {
    font-size: 0.8rem;
  }

  .site-title {
    font-size: 1rem;
  }

  .hero {
    padding: 1.5rem 0 1.25rem;
    margin-bottom: 1.5rem;
  }

  .hero-eyebrow {
    margin-bottom: 0.4rem;
  }

  .hero p {
    font-size: 1rem;
  }

  main {
    padding: 1.5rem 0 2.5rem;
  }

  h1 { font-size: 1.6rem; }

  .about-avatar {
    float: none;
    display: block;
    margin: 0 auto 1.5rem;
  }

  .section-label {
    margin-bottom: 1rem;
  }
}
