:root {
  --green-dark: #1f3d2b;
  --green: #2a5d3c;
  --green-light: #e8efe6;
  --cream: #faf8f2;
  --text: #22291f;
  --muted: #5a6459;
  --border: #d8ded3;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.55;
}

a {
  color: var(--green);
}

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
header.site-header {
  background: var(--green-dark);
  color: #fff;
  padding: 1rem 0;
}

header.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

header.site-header .brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  text-decoration: none;
}

header.site-header nav a {
  color: #e8efe6;
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.95rem;
}

header.site-header nav a:hover {
  text-decoration: underline;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--green-dark) 0%, var(--green) 100%);
  color: #fff;
  padding: 4rem 0 3rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.4rem;
  margin: 0 0 0.75rem;
}

.hero p.tagline {
  font-size: 1.2rem;
  color: #dfe9dc;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn.primary {
  background: #fff;
  color: var(--green-dark);
}

.btn.secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.btn.primary:hover {
  background: var(--green-light);
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Feature sections */
.feature {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border);
}

.feature .wrap {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.feature.reverse .wrap {
  flex-direction: row-reverse;
}

/* A tall, full-page screenshot next to a short blurb reads better
   top-aligned than vertically centered against its own height. */
.feature.tall .wrap {
  align-items: flex-start;
}

.feature.tall .feature-text {
  position: sticky;
  top: 2rem;
}

.feature-text {
  flex: 0 0 38%;
}

.feature-text h2 {
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
  color: var(--green-dark);
}

.feature-text p {
  color: var(--muted);
  margin: 0;
}

.feature-image {
  flex: 1;
  min-width: 0;
}

.feature-image img {
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 18px rgba(31, 61, 43, 0.12);
}

.feature-image.two-up {
  display: flex;
  gap: 1rem;
}

.feature-image.two-up img {
  flex: 1;
  min-width: 0;
}

/* "Everything else" gallery */
.gallery-section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border);
}

.gallery-section h2 {
  color: var(--green-dark);
  margin: 0 0 0.5rem;
}

.gallery-section > .wrap > p {
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 2rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.gallery-item a {
  display: block;
}

.gallery-item img {
  width: 100%;
  height: 210px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(31, 61, 43, 0.1);
  margin-bottom: 0.6rem;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.gallery-item img:hover {
  opacity: 0.85;
}

.gallery-item .caption {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--green-dark);
}

/* Open source section */
.oss {
  background: var(--green-light);
  padding: 3.5rem 0;
  text-align: center;
}

.oss h2 {
  color: var(--green-dark);
  margin: 0 0 0.75rem;
}

.oss p {
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 1.75rem;
}

.oss .links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.oss .links a {
  color: var(--green-dark);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--green);
  padding-bottom: 2px;
}

/* Footer */
footer.site-footer {
  padding: 2rem 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

footer.site-footer a {
  color: var(--muted);
}

/* Responsive */
@media (max-width: 800px) {
  .feature .wrap,
  .feature.reverse .wrap {
    flex-direction: column;
    gap: 1.5rem;
  }

  .feature-text {
    flex: none;
  }

  .feature.tall .feature-text {
    position: static;
  }

  .feature-image.two-up {
    flex-direction: column;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  header.site-header .wrap {
    justify-content: center;
    text-align: center;
  }

  header.site-header nav {
    margin-top: 0.5rem;
  }

  header.site-header nav a {
    margin: 0 0.6rem;
  }
}
