/* sand_forest palette */
:root {
  --bg: #FAF8F2;
  --surface: #FFFFFF;
  --surface-alt: #F0ECE0;
  --primary: #166534;
  --primary-hover: #14532D;
  --secondary: #B45309;
  --accent: #0891B2;
  --text: #1C1B17;
  --text-secondary: #514F45;
  --text-muted: #9C9887;
  --border: rgba(28, 27, 23, 0.10);
  --radius: 10px;
  --font-display: "Trebuchet MS", "Gill Sans", "Lucida Grande", "Segoe UI", sans-serif;
  --font-body: "Lucida Grande", "Segoe UI", "Helvetica Neue", Helvetica, sans-serif;
  --header-h: 4rem;
  --space: clamp(1rem, 3vw, 2rem);
  --max: 68rem;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--primary-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 1000;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem var(--space);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--primary);
}

.brand__mark {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  color: var(--primary);
}

.brand__name {
  font-size: 0.95rem;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
}

.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--primary);
}

/* Hero — full-bleed composition */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}

.hero__visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(
      165deg,
      color-mix(in srgb, var(--primary) 92%, #0a2e18) 0%,
      var(--primary) 42%,
      color-mix(in srgb, var(--primary) 70%, var(--accent)) 100%
    );
}

.hero__visual svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to top,
      rgba(12, 40, 22, 0.88) 0%,
      rgba(12, 40, 22, 0.35) 45%,
      rgba(12, 40, 22, 0.15) 100%
    );
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 10vh, 6rem) var(--space) clamp(2.5rem, 8vh, 4.5rem);
}

.hero__brand {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6.5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: #fff;
  opacity: 0;
  transform: translateY(1.1rem);
  animation: rise-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.hero__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: color-mix(in srgb, #fff 92%, var(--surface-alt));
  opacity: 0;
  transform: translateY(1.1rem);
  animation: rise-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.28s forwards;
}

.hero__lead {
  margin: 0 0 1.75rem;
  max-width: 32rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: color-mix(in srgb, #fff 78%, transparent);
  opacity: 0;
  transform: translateY(1.1rem);
  animation: rise-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.44s forwards;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  max-width: 28rem;
  opacity: 0;
  transform: translateY(1.1rem);
  animation: rise-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.58s forwards;
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes field-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1.02);
  }
  to {
    transform: translate3d(-1.5%, 1%, 0) scale(1.06);
  }
}

.hero__visual svg {
  animation: field-drift 22s ease-in-out infinite alternate;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .hero__brand,
  .hero__title,
  .hero__lead,
  .hero__cta,
  .hero__visual svg {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Notify form */
.notify {
  display: flex;
  flex: 1 1 14rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.notify label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.notify input[type="email"] {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
}

.notify input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.notify input[type="email"]:focus {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.25rem;
  border: none;
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--surface);
  color: var(--primary);
}

.btn--primary:hover {
  background: var(--surface-alt);
  color: var(--primary-hover);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  background: var(--surface-alt);
}

.btn--accent {
  background: var(--accent);
  color: #fff;
}

.btn--accent:hover {
  background: color-mix(in srgb, var(--accent) 85%, #000);
}

.notify__note {
  flex-basis: 100%;
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  min-height: 1.2em;
}

.notify__note[data-state="ok"] {
  color: color-mix(in srgb, #fff 80%, #86efac);
}

.notify__note[data-state="err"] {
  color: #fecaca;
}

/* Legal / content pages */
.page-main {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) var(--space) 4rem;
}

.page-main h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}

.page-main .meta {
  margin: 0 0 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.page-main h2 {
  margin: 2rem 0 0.65rem;
  font-size: 1.2rem;
  letter-spacing: -0.015em;
  color: var(--text);
}

.page-main p,
.page-main li {
  color: var(--text-secondary);
}

.page-main ul {
  padding-left: 1.25rem;
}

.page-main li {
  margin-bottom: 0.4rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-alt);
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.75rem var(--space);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

.footer-nav a:hover {
  color: var(--primary);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: var(--space);
  right: var(--space);
  bottom: var(--space);
  z-index: 200;
  max-width: 28rem;
  margin-inline: auto;
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(28, 27, 23, 0.12);
  transform: translateY(120%);
  opacity: 0;
  visibility: hidden;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease,
    visibility 0.35s;
}

.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.cookie-banner h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
}

.cookie-banner p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-banner .btn {
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
}

.cookie-banner .btn--primary {
  background: var(--primary);
  color: #fff;
}

.cookie-banner .btn--primary:hover {
  background: var(--primary-hover);
  color: #fff;
}

@media (max-width: 520px) {
  .site-header__inner {
    flex-wrap: wrap;
  }

  .brand__name {
    font-size: 0.85rem;
  }

  .hero__cta,
  .notify {
    width: 100%;
  }

  .btn,
  .notify input[type="email"] {
    width: 100%;
  }

  .cookie-banner {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .cookie-banner__actions .btn {
    flex: 1 1 auto;
  }
}
