/* Gayathri's Plant Corner — design tokens & shared styles */

:root {
  --bg: #fbf7ef;
  --bg-alt: #f3ecda;
  --card: #ffffff;
  --green-900: #1f3626;
  --green-700: #2f5233;
  --green-500: #4c7a52;
  --green-100: #e4ede2;
  --terracotta: #c1694f;
  --terracotta-dark: #a5533c;
  --amber: #d9a441;
  --text: #2b2620;
  --text-muted: #6b6355;
  --border: #e6ddc9;
  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow: 0 12px 32px rgba(31, 54, 38, 0.08);
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--terracotta); }

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

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--green-900);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; color: var(--text); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta-dark);
  font-weight: 600;
  margin-bottom: 0.6em;
}

/* Header */
.site-header {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--green-900);
  font-weight: 600;
}
.brand svg { width: 30px; height: 30px; }
.site-nav a {
  margin-left: 22px;
  color: var(--green-700);
  font-weight: 500;
  font-size: 0.98rem;
}

/* Hero */
.hero {
  padding: 64px 0 40px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-copy p.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 46ch;
}
.hero-art {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--green-100);
}
.hero-art svg { width: 100%; height: auto; display: block; }

/* Section headings */
.section {
  padding: 48px 0;
}
.section-head {
  max-width: 60ch;
  margin-bottom: 32px;
}
.section-head p { color: var(--text-muted); }

/* Article cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: var(--card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(31, 54, 38, 0.14);
}
.card-art {
  aspect-ratio: 4 / 3;
  background: var(--green-100);
}
.card-art svg { width: 100%; height: 100%; }
.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-body .tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-500);
  font-weight: 600;
  margin-bottom: 6px;
}
.card-body h3 { margin-bottom: 8px; }
.card-body p { color: var(--text-muted); font-size: 0.96rem; flex: 1; }
.card-body .read-more {
  font-weight: 600;
  color: var(--terracotta-dark);
  font-size: 0.92rem;
}

/* About strip */
.about-strip {
  background: var(--green-900);
  color: #f4efe1;
  padding: 48px 0;
}
.about-strip h2 { color: #fff; }
.about-strip p { color: #cfe0d1; max-width: 60ch; }

/* Footer */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.92rem;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* Article page */
.article-hero {
  padding: 40px 0 8px;
}
.article-hero .eyebrow { color: var(--terracotta-dark); }
.article-hero .meta {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.5em;
}
.article-cover {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--green-100);
  margin: 20px 0 40px;
}
.article-cover svg { width: 100%; height: auto; display: block; }

.article-body {
  max-width: 72ch;
  margin: 0 auto;
  padding-bottom: 60px;
}
.article-body h2 {
  margin-top: 1.6em;
}
.article-body ul, .article-body ol {
  color: var(--text);
  padding-left: 1.3em;
}
.article-body li { margin-bottom: 0.5em; }
.article-body blockquote {
  border-left: 4px solid var(--terracotta);
  margin: 1.6em 0;
  padding: 0.4em 0 0.4em 1.2em;
  color: var(--green-900);
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-style: italic;
}
.tip-box {
  background: var(--green-100);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 1.8em 0;
}
.tip-box strong { color: var(--green-900); }

.back-link {
  display: inline-block;
  margin: 40px auto 0;
  font-weight: 600;
}
.article-body .back-link { display: block; text-align: center; }

.byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2.4em 0 0;
  padding-top: 1.6em;
  border-top: 1px solid var(--border);
}
.byline .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--terracotta);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 600;
}
.byline .name { font-weight: 600; color: var(--green-900); }
.byline .role { color: var(--text-muted); font-size: 0.9rem; }

/* Responsive */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .card-grid { grid-template-columns: 1fr; }
  .site-nav a { margin-left: 14px; }
}
