@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/fredoka-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/fredoka-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/nunito-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/nunito-latin-700-normal.woff2") format("woff2");
}

:root {
  --forest: #1d6434;
  --forest-dark: #144a26;
  --leaf: #40b93c;
  --lime: #80cc28;
  --sky: #00adef;
  --sun: #f5c542;
  --earth: #8b5e3c;
  --paper: #f7f3eb;
  --paper-dark: #ebe4d6;
  --ink: #2a2a24;
  --ink-muted: #5c5a52;
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --shadow-soft: 0 8px 24px rgba(29, 100, 52, 0.12);
  --max: 72rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(128, 204, 40, 0.08), transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 173, 239, 0.06), transparent 45%),
    radial-gradient(ellipse at 50% 100%, rgba(245, 197, 66, 0.07), transparent 40%);
  background-attachment: fixed;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--forest-dark);
  margin: 0 0 0.75rem;
}

p { margin: 0 0 1rem; }
a { color: var(--forest); text-underline-offset: 3px; }
a:hover { color: var(--leaf); }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.sr-only:focus {
  position: static; width: auto; height: auto; margin: 0; clip: auto;
  white-space: normal; background: var(--sun); color: var(--ink);
  padding: 0.5rem 1rem; border-radius: 999px; z-index: 100;
}

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 243, 235, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(29, 100, 52, 0.1);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.5rem;
}
.brand {
  display: flex; align-items: center; gap: 0.5rem;
  text-decoration: none; color: var(--forest-dark); flex-shrink: 0;
}
.brand img { height: 2.75rem; width: auto; }
.brand__name {
  display: none; font-family: var(--font-display); font-weight: 600;
  font-size: 0.875rem; line-height: 1.2; white-space: nowrap;
}
@media (min-width: 1280px) { .brand__name { display: block; } }

.nav-desktop {
  display: none; align-items: center; gap: 0.15rem; flex-wrap: wrap;
}
@media (min-width: 1024px) { .nav-desktop { display: flex; } }

.nav-desktop a {
  text-decoration: none; padding: 0.5rem 0.7rem; border-radius: 999px;
  font-size: 0.875rem; font-weight: 600; color: var(--ink);
  min-height: 44px; display: inline-flex; align-items: center;
}
.nav-desktop a:hover { background: rgba(29, 100, 52, 0.08); color: var(--forest); }
.nav-desktop a.is-active { background: var(--forest); color: #fff; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 44px; border: 2px solid rgba(29,100,52,0.2);
  border-radius: 999px; background: transparent; color: var(--forest);
  font-family: var(--font-display); font-weight: 600; cursor: pointer;
}
@media (min-width: 1024px) { .nav-toggle { display: none; } }

.nav-mobile {
  display: none; border-top: 1px solid rgba(29,100,52,0.1);
  padding: 0.75rem 0 1rem;
}
.nav-mobile.is-open { display: block; }
@media (min-width: 1024px) { .nav-mobile { display: none !important; } }
.nav-mobile a {
  display: block; padding: 0.75rem 1rem; text-decoration: none;
  border-radius: 0.75rem; color: var(--ink); font-weight: 600;
}
.nav-mobile a.is-active { background: var(--forest); color: #fff; }

main { flex: 1; }

.section { padding: 3rem 0; }
@media (min-width: 768px) { .section { padding: 4rem 0; } }
.section--muted { background: rgba(235, 228, 214, 0.45); }
.section--forest { background: var(--forest); color: #fff; }
.section--forest h2, .section--forest a { color: #fff; }
.section--forest a:hover { color: var(--lime); }

.grid-2 {
  display: grid; gap: 2.5rem; align-items: center;
}
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.grid-3 {
  display: grid; gap: 1.5rem;
}
@media (min-width: 640px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: 1fr 1fr 1fr; } }

.badge {
  display: inline-block; font-family: var(--font-display); font-size: 0.8rem;
  font-weight: 600; padding: 0.25rem 0.75rem; border-radius: 999px;
  background: rgba(128, 204, 40, 0.25); color: var(--forest-dark);
}
.badge--sky { background: rgba(0, 173, 239, 0.2); color: #0369a1; }
.badge--earth { background: rgba(139, 94, 60, 0.2); color: var(--earth); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0.6rem 1.4rem; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: 0.15s ease;
}
.btn--primary { background: var(--forest); color: #fff; }
.btn--primary:hover { background: var(--forest-dark); color: #fff; }
.btn--lime { background: var(--lime); color: var(--forest-dark); }
.btn--lime:hover { background: var(--leaf); color: #fff; }
.btn--ghost {
  background: transparent; border-color: rgba(29,100,52,0.25); color: var(--forest);
}
.btn--ghost:hover { background: rgba(29,100,52,0.06); color: var(--forest); }

.polaroid {
  background: #fff; padding: 0.75rem 0.75rem 1.5rem;
  box-shadow: var(--shadow-soft); border-radius: 0.25rem;
  transform: rotate(-1.5deg);
}
.polaroid--right { transform: rotate(1.5deg); }
.polaroid img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 0.15rem;
}

.hero {
  position: relative; min-height: min(72vh, 560px);
  display: flex; align-items: flex-end; color: #fff; overflow: hidden;
}
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,74,38,0.85) 0%, rgba(20,74,38,0.25) 45%, transparent 70%);
}
.hero__content {
  position: relative; z-index: 1; width: min(100% - 2rem, var(--max));
  margin: 0 auto; padding: 3rem 0 2.5rem;
}
.hero__content h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.25rem); }
.hero__content p { color: rgba(255,255,255,0.92); max-width: 40rem; font-size: 1.1rem; }

.page-hero {
  padding: 3rem 0 1.5rem;
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
.page-hero p { color: var(--ink-muted); max-width: 40rem; font-size: 1.125rem; }

.card {
  display: block; text-decoration: none; color: inherit;
  background: #fff; border-radius: 1rem; overflow: hidden;
  box-shadow: var(--shadow-soft); transition: transform 0.2s ease;
}
.card:hover { transform: translateY(-4px); color: inherit; }
.card__img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card__body { padding: 1.25rem; }
.card__meta { font-family: var(--font-display); font-size: 0.875rem; color: var(--sky); }

.prose { max-width: 65ch; color: var(--ink-muted); }
.prose > * + * { margin-top: 1rem; }
.prose blockquote {
  border-left: 4px solid var(--lime); padding-left: 1rem; margin: 1.5rem 0;
  font-style: italic; color: var(--ink-muted);
}

.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  text-align: center; padding: 1.25rem; border-radius: 1rem;
  background: rgba(255,255,255,0.55);
}
.stat__num {
  font-family: var(--font-display); font-size: 1.75rem; color: var(--forest);
  font-weight: 600;
}
.stat__label { font-size: 0.875rem; color: var(--ink-muted); }

.site-footer {
  background: var(--forest-dark); color: rgba(255,255,255,0.8);
  margin-top: auto; padding: 3rem 0 1.5rem;
}
.site-footer a { color: rgba(255,255,255,0.8); text-decoration: none; }
.site-footer a:hover { color: var(--lime); }
.site-footer h2 { color: var(--lime); font-size: 1.125rem; }
.footer-grid {
  display: grid; gap: 2.5rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  justify-content: space-between; align-items: flex-end;
  font-size: 0.875rem; color: rgba(255,255,255,0.6);
}
.footer-bottom__links { display: flex; gap: 1rem; align-items: center; }
.hase-trigger {
  opacity: 0.22; border: 0; background: transparent; cursor: pointer;
  padding: 0.25rem; transition: opacity 0.3s;
}
.hase-trigger:hover, .hase-trigger:focus-visible { opacity: 0.7; }
.hase-trigger img { width: 2rem; height: 2rem; object-fit: contain; }

.form label { display: block; font-family: var(--font-display); font-size: 0.9rem; color: var(--forest); margin-bottom: 0.35rem; }
.form input, .form textarea, .form select {
  width: 100%; padding: 0.75rem 1rem; border-radius: 0.75rem;
  border: 2px solid rgba(29,100,52,0.15); background: #fff;
  font: inherit; margin-bottom: 1rem;
}
.form input:focus, .form textarea:focus { border-color: var(--sky); outline: none; }
.alert {
  padding: 1rem 1.25rem; border-radius: 1rem; margin-bottom: 1.5rem;
}
.alert--ok { background: rgba(128,204,40,0.25); border: 1px solid rgba(128,204,40,0.5); color: var(--forest-dark); }
.alert--err { background: rgba(220,80,60,0.12); border: 1px solid rgba(220,80,60,0.35); color: #8b2e1f; }

.dialog {
  border: 0; border-radius: 1rem; padding: 0; max-width: 28rem; width: calc(100% - 2rem);
  box-shadow: var(--shadow-soft);
}
.dialog::backdrop { background: rgba(20, 74, 38, 0.55); }
.dialog[open] { margin: auto; }
.dialog--wide { max-width: 48rem; width: calc(100% - 1rem); }
.dialog__body { background: var(--paper); padding: 1.5rem; }
@media (min-width: 640px) { .dialog__body { padding: 2rem; } }

.muted { color: var(--ink-muted); }
.lime { color: var(--lime); }
.mono { font-family: ui-monospace, monospace; word-break: break-all; }
