/* Terra Cotta & Trellises - shared stylesheet */

:root {
  --leaf-dark: #2f4a34;
  --leaf-mid: #587a5f;
  --terracotta: #c1683f;
  --terracotta-dark: #9a4f2c;
  --cream: #f7f3ea;
  --text: #26301f;
  --max-width: 960px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Trebuchet MS', Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
}

.placeholder-img {
  width: 100%;
  border-radius: 10px;
  background: linear-gradient(135deg, #8fae7c 0%, var(--leaf-mid) 55%, var(--leaf-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

header.site-header {
  background: var(--leaf-dark);
  color: var(--cream);
  padding: 1.25rem 1rem;
}

header.site-header .header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-title { font-size: 1.5rem; margin: 0; }
.site-title a { color: var(--cream); text-decoration: none; }
.site-tagline { font-size: 0.8rem; color: #b9c9ae; margin-top: 0.15rem; }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
}

nav.main-nav a {
  color: var(--cream);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}

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

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1rem 4rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

.hero h1 { font-size: 2.1rem; margin-top: 0; color: var(--leaf-dark); }
.hero .placeholder-img { height: 240px; }

.btn {
  display: inline-block;
  background: var(--terracotta);
  color: #fff;
  text-decoration: none;
  padding: 0.65rem 1.4rem;
  border-radius: 20px;
  font-size: 0.9rem;
}
.btn:hover { background: var(--terracotta-dark); }

section { margin-bottom: 3rem; }
section h2 {
  color: var(--leaf-dark);
  border-bottom: 2px solid #c9d6bd;
  padding-bottom: 0.5rem;
  font-size: 1.4rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.4rem;
  margin-top: 1.4rem;
}

.card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(47,74,52,0.12);
}
.card .placeholder-img { height: 140px; border-radius: 0; }
.card-body { padding: 1rem; }
.card-body h3 { margin: 0 0 0.4rem; font-size: 1rem; color: var(--leaf-dark); }
.card-body p { font-size: 0.88rem; margin: 0; color: #4b5643; }
.card-meta {
  font-size: 0.72rem;
  color: var(--terracotta-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
}

.post-list article {
  padding: 1.2rem 0;
  border-bottom: 1px solid #dde5d3;
}
.post-list article:last-child { border-bottom: none; }
.post-list h3 { margin: 0 0 0.3rem; color: var(--leaf-dark); }

form.contact-form {
  display: grid;
  gap: 1rem;
  max-width: 460px;
}
form.contact-form label {
  font-size: 0.85rem;
  font-weight: bold;
  display: block;
  margin-bottom: 0.3rem;
}
form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid var(--leaf-mid);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
}
form.contact-form textarea { min-height: 130px; resize: vertical; }

footer.site-footer {
  background: var(--leaf-dark);
  color: #b9c9ae;
  font-size: 0.78rem;
  text-align: center;
  padding: 1.5rem 1rem;
}
footer.site-footer a { color: var(--cream); }

@media (max-width: 700px) {
  .hero { grid-template-columns: 1fr; }
}
