:root {
  --brown: #6b2b12;
  --green: #3f6b3f;
  --ink: #1f2320;
  --muted: #565f5a;
  --bg-alt: #f3f1ec;
  --border: #e2ded4;
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand img { display: block; }

.site-header nav a {
  margin-left: 24px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-header nav a:hover { color: var(--brown); }

/* Hero */
.hero {
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-overlay {
  background: linear-gradient(180deg, rgba(20,15,10,0.55), rgba(20,15,10,0.7));
  padding: 96px 0;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3rem);
  max-width: 720px;
  margin: 0 0 20px;
}

.hero p {
  color: #f1efe9;
  max-width: 620px;
  font-size: 1.1rem;
  margin: 0 0 28px;
}

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--brown);
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  border: 1px solid var(--brown);
}

.btn:hover { opacity: 0.9; }

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

.btn-outline-dark {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-outline-dark:hover { border-color: var(--brown); color: var(--brown); }

.section {
  padding: 72px 0;
}

.section.alt { background: var(--bg-alt); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 32px 24px;
}

.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

h2 {
  font-size: 1.5rem;
  margin: 0 0 12px;
}

h2.center { text-align: center; margin-bottom: 40px; }

p { color: var(--muted); margin: 0 0 16px; }

.rounded-img {
  border-radius: 12px;
  border: 1px solid var(--border);
}

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

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.card img {
  border-radius: 8px;
  margin-bottom: 16px;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fafaf7;
}

.card h3 { margin: 0 0 8px; font-size: 1.1rem; }

.card p { font-size: 0.95rem; margin: 0; }

.authors {
  font-size: 0.9rem;
  font-style: italic;
}

/* Footer */
.site-footer {
  background: var(--green);
  color: #eef3ee;
  padding: 40px 0;
}

.footer-inner p {
  color: #d8e3d8;
  font-size: 0.85rem;
}

.footer-inner a { color: #fff; }

.footer-inner .brand { margin-bottom: 16px; }
.footer-inner .brand img { filter: brightness(0) invert(1); }

.copyright { margin-top: 8px; }

@media (max-width: 720px) {
  .two-col, .two-col.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .card-grid { grid-template-columns: 1fr; }
  .site-header nav a { margin-left: 14px; font-size: 0.85rem; }
}
