/* TREESTR site layout. Brand tokens come from treestr-brand.css (Brand Kit v1). */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { font-size: 1.0625rem; } /* ~17px body, within the brand's 16-18px range */
img { max-width: 100%; height: auto; }
p { margin: 0 0 1rem; }
h1, h2, h3 { color: var(--treestr-forest); margin: 0 0 1rem; }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }

.wrap { width: min(100% - 2.5rem, var(--content-width)); margin-inline: auto; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--treestr-forest); color: var(--treestr-cream); padding: .75rem 1rem; border-radius: var(--radius); font-weight: 700; }
.skip-link:focus { top: 1rem; }

/* Focus: brand uses moss, but moss on forest is only ~2.2:1, so use cream on dark panels */
.section--forest :focus-visible, .site-footer :focus-visible { outline-color: var(--treestr-cream); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--treestr-cream); border-bottom: 1px solid rgba(23,62,44,.15); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: .9rem; flex-wrap: wrap; }
.site-header__logo { display: inline-block; padding: .25rem 0; }
.nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; align-items: center; }
.nav a { display: inline-block; padding: .55rem .1rem; font-weight: 700; text-decoration: none; color: var(--treestr-forest); }
.nav a:hover { text-decoration: underline; }
.nav__cta { background: var(--treestr-forest); color: var(--treestr-cream) !important; padding: .55rem 1rem !important; border-radius: var(--radius); }

/* Hero */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.lead { font-size: 1.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }
.text-link { font-weight: 700; padding: .6rem 0; }
.treestr-button:hover { background: #0f2c1f; }

/* Sections */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--forest { background: var(--treestr-forest); color: var(--treestr-cream); }
.section--forest h2, .section--forest h3 { color: var(--treestr-cream); }
.section--forest a { color: var(--treestr-cream); }
.section--panel { background: var(--treestr-white); }
.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.two-col--contact { grid-template-columns: 1fr 1.1fr; }
.section-symbol { width: 44px; height: auto; display: block; margin-bottom: 1rem; }

.species { list-style: none; padding: 0; margin: 2rem 0 1rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.species__card h3 { margin: .75rem 0 .25rem; }
.species__card p { margin: 0; opacity: .9; }

.update { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: 1.5rem; align-items: start; padding: 1.5rem; background: var(--treestr-white); border-radius: var(--radius); border: 1px solid rgba(23,62,44,.12); margin-bottom: 1.5rem; max-width: 52rem; }

/* Contact */
.contact > div { max-width: 44rem; }
.contact-list { margin: 1.5rem 0 0; }
.contact-list dt { font-weight: 700; color: var(--treestr-forest); margin-top: .75rem; }
.contact-list dd { margin: .15rem 0 0; }

/* Footer */
.site-footer { background: var(--treestr-forest); color: var(--treestr-cream); padding-block: 2.5rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.footer-logo { width: 360px; max-width: 100%; } /* tagline version only at >=360px */
@media (max-width: 599px) { .footer-logo { width: 200px; } } /* header logo, no tagline */
.site-footer__meta p { margin: .25rem 0; }

/* Responsive */
@media (max-width: 900px) {
  .species { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .hero__grid, .two-col { grid-template-columns: 1fr; }
  .update { grid-template-columns: 1fr; }
  .site-header { position: static; }
  .site-header__inner { flex-direction: column; align-items: flex-start; }
  .nav { gap: .25rem 1rem; }
  .lead { font-size: 1.1rem; }
}

/* Real farm photos */
.photo { margin: 0; }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); background: #e4e0d4; }
.photo--hero { aspect-ratio: 4 / 3; }
.photo--hero img { object-position: 50% 70%; }
.photo--update { aspect-ratio: 4 / 3; }
.species__card p { font-size: .98rem; margin-top: .25rem; }

/* Our Story photo */
.photo--portrait { width: 100%; max-width: 360px; justify-self: end; aspect-ratio: 4 / 5; }
@media (max-width: 760px) {
  .photo--portrait { max-width: none; justify-self: stretch; aspect-ratio: 4 / 3; }
  .photo--portrait img { object-position: 50% 35%; }
}

/* Species card images (AI illustrations are temporary; alt text says "Illustration of …") */
.illus { position: relative; margin: 0; aspect-ratio: 4 / 3; }
.illus img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }

/* Updates */
.update__media { display: block; }
.update__links { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 1rem; }
.crumbs { font-size: .9rem; color: #4a5a4e; margin-bottom: 1rem; }
.crumbs a { color: var(--treestr-forest); }
.post-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.5rem; max-width: 52rem; }
.post-card { display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: 1.5rem; align-items: start; padding: 1.25rem;
  background: var(--treestr-white); border: 1px solid rgba(23,62,44,.12); border-radius: var(--radius); }
.post-card__media img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.post-card__date { font-weight: 700; color: var(--treestr-moss); margin: 0 0 .25rem; }
.post-card__title { font-size: 1.4rem; margin: 0 0 .5rem; }
.post-card__title a { color: var(--treestr-forest); }
.post__wrap { max-width: 46rem; }
.post__photo { margin: 1.5rem 0; }
.post__photo img { height: auto; }
.post__photo figcaption { font-size: .9rem; color: #4a5a4e; margin-top: .5rem; }
.post__nav { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 2rem; }
@media (max-width: 760px) { .post-card { grid-template-columns: 1fr; } }
.site-footer a { color: var(--treestr-cream); }
@media (max-width: 760px) { .photo--portrait { aspect-ratio: 4 / 5; } } /* keep Tegan's hat and the seedling both in frame */
