:root {
  --green: #8ab525;
  --green-dark: #6f9a12;
  --ink: #111111;
  --text: #2b2b2b;
  --muted: #6b6b6b;
  --line: #ececec;
  --footer-bg: #000000;
  --footer-text: #d9d9d9;
  --footer-muted: #9a9a9a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Landing: main section ---------- */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72vh;
  min-height: 72svh;
  padding: 72px 24px;
  text-align: center;
  background: #f6f9ea url("hero-bg.svg") center / cover no-repeat;
  border-top: 4px solid var(--green);
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Static logo: a single fade-in on load, no movement */
.hero__logo {
  display: block;
  width: 260px;
  max-width: 64vw;
  height: auto;
  /* Lets the logo's white backdrop melt into the background image */
  mix-blend-mode: multiply;
  animation: hero-fade 1.4s ease-out both;
}

.hero__rule {
  width: 56px;
  height: 3px;
  margin: 26px auto;
  border-radius: 3px;
  background: var(--green);
  animation: hero-fade 1.4s ease-out 0.5s both;
}

.hero__title {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  /* Balances the trailing letter-space so the text stays optically centred */
  padding-left: 0.16em;
  text-transform: uppercase;
  animation: hero-reveal 2.2s cubic-bezier(0.22, 1, 0.36, 1) 0.9s both;
}

@keyframes hero-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes hero-reveal {
  from { opacity: 0; letter-spacing: 0.24em; filter: blur(6px); }
  to   { opacity: 1; letter-spacing: 0.16em; filter: blur(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__logo,
  .hero__rule,
  .hero__title { animation: none; }
}

/* ---------- Policy pages ---------- */
.site-header {
  border-top: 4px solid var(--green);
  border-bottom: 1px solid var(--line);
  padding: 16px 24px;
  text-align: center;
}

.site-header a { display: inline-block; }

.site-header img {
  display: block;
  width: 130px;
  height: auto;
}

.policy {
  flex: 1;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 24px 72px;
  color: var(--text);
  font-size: 0.975rem;
  overflow-wrap: break-word;
}

.policy h1 {
  text-align: center;
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

.policy h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 22px auto 40px;
  border-radius: 3px;
  background: var(--green);
}

.policy h2 {
  margin: 36px 0 12px;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.policy h3 {
  margin: 24px 0 10px;
  font-size: clamp(1.05rem, 2.6vw, 1.25rem);
  font-weight: 600;
  color: var(--ink);
}

.policy p { margin-bottom: 8px; }

.policy ul {
  margin: 10px 0 14px;
  padding-left: 28px;
}

.policy li { margin-bottom: 4px; }

.policy strong { font-weight: 700; color: var(--ink); }

.policy a {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  font-size: 0.875rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 32px;
  padding: 16px 24px;
}

.footer a {
  color: var(--footer-text);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.footer a:hover,
.footer a:focus-visible,
.footer a[aria-current="page"] {
  color: var(--green);
  border-bottom-color: var(--green);
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .hero { padding: 56px 20px; background-image: url("hero-bg-mobile.svg"); }
  .hero__logo { width: 200px; }
  .site-header img { width: 110px; }
  .policy { padding: 40px 20px 56px; }
  .policy ul { padding-left: 22px; }
  .footer { font-size: 0.72rem; }
  .footer__links { gap: 6px 14px; padding: 14px 10px; }
}
