/* =============================================
   GARDENING ON THE SIDE — Shared Stylesheet
   ============================================= */

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

:root {
  --terracotta: #C5622A;
  --terracotta-light: #E07A46;
  --terracotta-dark: #9E4D20;
  --sage: #6B8F6E;
  --sage-light: #8FB292;
  --sage-dark: #4A6B4D;
  --cream: #FAF7F2;
  --warm-white: #FFFDF9;
  --gold: #C8973A;
  --gold-light: #F0C96A;
  --brown-dark: #3D2B1F;
  --brown-mid: #6B4C38;
  --brown-light: #A07850;
  --text-primary: #2C1F14;
  --text-secondary: #6B5344;
  --text-muted: #A08070;
  --border: #E8DDD4;
  --shadow: rgba(61, 43, 31, 0.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--cream);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
  color: var(--brown-dark);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { color: var(--text-secondary); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--terracotta); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--terracotta-dark); }

strong { color: var(--brown-dark); font-weight: 600; }

/* ---- LAYOUT ---- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  margin-bottom: 16px;
}

.section-intro {
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 48px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--terracotta);
  color: #fff;
}
.btn-primary:hover {
  background: var(--terracotta-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(197, 98, 42, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--terracotta);
  border-color: var(--terracotta);
}
.btn-secondary:hover {
  background: var(--terracotta);
  color: #fff;
  transform: translateY(-1px);
}

.btn-light {
  background: var(--warm-white);
  color: var(--brown-dark);
}
.btn-light:hover {
  background: var(--cream);
  color: var(--brown-dark);
  transform: translateY(-1px);
}

/* ---- NAVIGATION ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brown-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--sage);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--terracotta);
}

.nav-cta {
  background: var(--terracotta);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--terracotta-dark);
  color: #fff !important;
}

/* ---- PHOTO PLACEHOLDERS ---- */
.photo-placeholder {
  background: linear-gradient(135deg, var(--sage-light) 0%, var(--sage) 50%, var(--sage-dark) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.05em;
}

.photo-placeholder .ph-icon { font-size: 2rem; opacity: 0.6; }

/* ---- CARDS ---- */
.card {
  background: var(--warm-white);
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--shadow);
}

.card-img {
  width: 100%;
  height: 220px;
}

.card-body {
  padding: 24px;
}

.card-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 8px;
  display: block;
}

.card-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.card-excerpt {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.card-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--terracotta);
}

/* ---- GRID ---- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

/* ---- TAGS / BADGES ---- */
.tag {
  display: inline-block;
  background: var(--sage-light);
  color: var(--sage-dark);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
}

.tag-terra {
  background: rgba(197, 98, 42, 0.12);
  color: var(--terracotta-dark);
}

/* ---- NEWSLETTER BAND ---- */
.newsletter-band {
  background: var(--brown-dark);
  padding: 72px 24px;
  text-align: center;
}

.newsletter-band h2 { color: var(--gold-light); margin-bottom: 12px; }
.newsletter-band p { color: rgba(255,255,255,0.7); max-width: 520px; margin: 0 auto 32px; }

.newsletter-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 14px 18px;
  border-radius: 4px;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  background: rgba(255,255,255,0.95);
  color: var(--text-primary);
  outline: none;
}

.newsletter-form input[type="email"]::placeholder { color: var(--text-muted); }

/* ---- FOOTER ---- */
.footer {
  background: var(--brown-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 48px 24px 28px;
  color: rgba(255,255,255,0.55);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
}

.footer-brand .nav-logo { color: var(--cream); margin-bottom: 10px; }
.footer-brand p { font-size: 0.88rem; max-width: 260px; }

.footer-links h4 {
  color: var(--cream);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.55); font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold-light); }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: var(--gold-light); }

/* ---- PAGE HERO ---- */
.page-hero {
  background: linear-gradient(135deg, var(--brown-dark) 0%, var(--brown-mid) 100%);
  padding: 72px 24px;
  text-align: center;
}

.page-hero h1 { color: var(--cream); margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,0.7); max-width: 560px; margin: 0 auto; font-size: 1.1rem; }

/* ---- DIVIDER ---- */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ---- REAL PHOTO IMAGES ---- */
/* When a .photo-placeholder contains a real <img>, remove gradient styles */
.photo-placeholder:has(img) {
  background: none !important;
  padding: 0;
  overflow: hidden;
  display: block;
}
.photo-placeholder img,
.season-photo img,
.card-img img,
.journal-entry-photo img,
.about-photo-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}
.about-photo-stack img {
  position: absolute;
  inset: 0;
  border-radius: 12px;
}

/* ---- AFFILIATE DISCLOSURE ---- */
.disclosure {
  background: rgba(197, 98, 42, 0.07);
  border-left: 3px solid var(--terracotta);
  padding: 12px 18px;
  border-radius: 0 6px 6px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* =============================================
   DY BRAND RIBBON — top-of-page brand connector
   ============================================= */
.dy-brand-ribbon {
  background: #AA000E;
  color: #FFF;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  text-align: center;
  line-height: 1.4;
}
.dy-brand-ribbon a {
  color: #FFF;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}
.dy-brand-ribbon a:hover {
  color: #FFE5E7;
}
.dy-brand-ribbon .dy-mark {
  display: inline-block;
  font-weight: 800;
  background: #FFF;
  color: #AA000E;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  margin-right: 6px;
  vertical-align: 1px;
}
@media (max-width: 540px) {
  .dy-brand-ribbon { font-size: 0.72rem; padding: 7px 12px; }
  .dy-brand-ribbon .dy-mark { font-size: 0.66rem; }
}
