/* Gnomestead Farms — static styles
   Colors:
     cream     #F5F0E8
     ink       #2C1A0E
     red       #8B1A1A
     sage      #7A8C6F
*/

:root {
  --cream: #F5F0E8;
  --cream-2: #EFE7D8;
  --ink: #2C1A0E;
  --ink-soft: #5a4636;
  --red: #8B1A1A;
  --sage: #7A8C6F;
  --max: 880px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Source Sans 3", system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Lora", Georgia, serif;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h2 {
  font-size: 2rem;
  margin: 0 0 1.25rem;
  text-align: center;
}

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

section { padding: 4.5rem 1.5rem; }

/* ---------- 1. HERO ---------- */
.hero {
  background: linear-gradient(180deg, #EFE3CC 0%, var(--cream) 100%);
  padding: 6rem 1.5rem 5rem;
  text-align: center;
  border-bottom: 1px solid rgba(44, 26, 14, 0.08);
}
.hero-logo {
  max-width: 520px;
  width: 85%;
  height: auto;
  margin: 0 auto 2rem;
  display: block;
}
@media (max-width: 600px) {
  .hero { padding: 4rem 1.25rem 3.5rem; }
  .hero-logo { max-width: 340px; width: 90%; margin-bottom: 1.5rem; }
}
.hero-inner { max-width: 720px; margin: 0 auto; }
.hero-tagline {
  font-family: "Lora", Georgia, serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.75rem;
  line-height: 1.2;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 580px;
  margin: 0 auto 1.75rem;
}
.hero-ctas {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-ctas .btn { min-width: 200px; text-align: center; }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(44, 26, 14, 0.3);
}
.btn-secondary:hover {
  background: rgba(44, 26, 14, 0.06);
  color: var(--ink);
}

/* ---------- WHAT WE'RE BUILDING ---------- */
.building { background: var(--cream); }
.cards {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.card {
  background: var(--cream-2);
  border: 1px solid rgba(44, 26, 14, 0.08);
  border-radius: 14px;
  padding: 1.5rem 1.35rem;
  border-top: 3px solid var(--sage);
}
.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}
.card p {
  margin: 0;
  font-size: 0.97rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  .hero-tagline { font-size: 1.65rem; }
}

/* ---------- 2. STORY ---------- */
.story {
  max-width: var(--max);
  margin: 0 auto;
}
.story { position: relative; }
.story p { margin: 0 0 1.25rem; }
.story-accent {
  display: block;
  width: 120px;
  height: auto;
  margin: 0 auto 1rem;
  opacity: 0.85;
}
@media (max-width: 600px) { .story-accent { width: 90px; } }

/* ---------- RIGHT NOW ---------- */
.rightnow { background: var(--cream-2); border-top: 1px solid rgba(44,26,14,0.06); border-bottom: 1px solid rgba(44,26,14,0.06); }
.section-lead { max-width: 680px; margin: 0 auto 2.5rem; text-align: center; color: var(--ink-soft); font-size: 1.05rem; }
.rn-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.rn-block { background: var(--cream); border-radius: 14px; padding: 1.6rem 1.5rem; border-left: 3px solid var(--red); }
.rn-block h3 { margin: 0 0 0.75rem; font-size: 1.15rem; }
.rn-block ul { margin: 0; padding-left: 1.1rem; color: var(--ink-soft); }
.rn-block li { margin-bottom: 0.4rem; font-size: 0.97rem; }
@media (max-width: 900px) { .rn-grid { grid-template-columns: 1fr; } }

/* ---------- WHAT YOU'LL FIND ---------- */
.findhere { background: var(--cream); }
.find-grid { max-width: 1000px; margin: 0 auto 2rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.find-item { padding: 1.25rem 1.4rem; border-radius: 12px; background: var(--cream-2); }
.find-item h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.find-item p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); line-height: 1.55; }
.transition { max-width: 640px; margin: 0 auto; text-align: center; font-style: italic; color: var(--ink-soft); }
@media (max-width: 600px) { .find-grid { grid-template-columns: 1fr; } }

/* ---------- 3. GALLERY ---------- */
.gallery-section {
  background: var(--cream-2);
  border-top: 1px solid rgba(44, 26, 14, 0.06);
  border-bottom: 1px solid rgba(44, 26, 14, 0.06);
}
.gallery {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.gallery figure {
  margin: 0;
  background: var(--cream);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(44, 26, 14, 0.08);
}
.gallery img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}
.gallery figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  text-align: center;
  font-style: italic;
}

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery img { height: 280px; }
  h2 { font-size: 1.65rem; }
  body { font-size: 17px; }
  section { padding: 3rem 1.25rem; }
}

/* ---------- 4. CONNECT ---------- */
.connect {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}
.connect p { margin: 0 0 1.5rem; color: var(--ink-soft); }

.social-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-block;
  background: var(--red);
  color: var(--cream);
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-family: inherit;
  font-size: 1rem;
  border: 1.5px solid var(--red);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover {
  background: #6f1414;
  text-decoration: none;
  transform: translateY(-1px);
}

.signup {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  max-width: 540px;
  margin: 0 auto;
}
.signup input {
  flex: 1 1 180px;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(44, 26, 14, 0.2);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  color: var(--ink);
}
.signup input:focus {
  outline: 2px solid var(--sage);
  outline-offset: 1px;
}
.signup-note {
  flex-basis: 100%;
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--sage);
}

/* ---------- 5. FOOTER ---------- */
.site-footer {
  background: #ECE3D1;
  color: var(--ink-soft);
  font-size: 0.8rem;
  padding: 1.5rem 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(44, 26, 14, 0.08);
}
.site-footer span { flex: 1 1 0; width: 0; text-align: center; }
.site-footer span:first-child { text-align: left; }
.site-footer span:last-child { text-align: right; }

@media (max-width: 600px) {
  .site-footer span,
  .site-footer span:first-child,
  .site-footer span:last-child { text-align: center; }
}

/* ---------- BOTTOM SITE NOTE ---------- */
.site-note {
  margin: 0;
  padding: 0.9rem 1.5rem 1.25rem;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(44, 26, 14, 0.45);
  background: var(--cream);
}
