/* 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: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  --font-body: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  --space: clamp(1rem, 4vw, 2.5rem);
  --max: 42rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 70% at 10% -10%, rgba(22, 101, 52, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 50% at 95% 15%, rgba(8, 145, 178, 0.10), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(180, 83, 9, 0.06), transparent 45%),
    linear-gradient(180deg, var(--bg) 0%, var(--surface-alt) 100%);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

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

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: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: var(--surface);
  text-decoration: none;
}

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

/* Header */
.site-header {
  padding: 1.25rem var(--space);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

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

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  background: linear-gradient(145deg, var(--primary) 0%, #1a7a3e 55%, var(--accent) 140%);
  display: grid;
  place-items: center;
  color: var(--bg);
  font-size: 0.95rem;
  font-weight: 700;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

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

.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
}

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

/* Main / Hero */
.site-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 8vh, 5rem) var(--space) clamp(3rem, 10vh, 6rem);
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 8rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 8% -20% auto 40%;
  height: min(55vw, 28rem);
  background:
    radial-gradient(circle at 30% 40%, rgba(22, 101, 52, 0.18), transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(8, 145, 178, 0.14), transparent 50%);
  filter: blur(2px);
  z-index: -1;
  animation: drift 14s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.25rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--primary);
  margin: 0 0 1.25rem;
  animation: rise 0.9s ease-out both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
  margin: 0 0 0.85rem;
  animation: rise 0.9s ease-out 0.12s both;
}

.hero-copy {
  margin: 0 0 1.75rem;
  max-width: 32rem;
  color: var(--text-secondary);
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  animation: rise 0.9s ease-out 0.22s both;
}

.notify {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  max-width: 26rem;
  animation: rise 0.9s ease-out 0.34s both;
}

.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 var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
}

.notify input[type="email"]::placeholder {
  color: var(--text-muted);
}

.notify button {
  flex: 0 0 auto;
  padding: 0.8rem 1.25rem;
  border: none;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--bg);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.notify button:hover {
  background: var(--primary-hover);
}

.notify button:active {
  transform: translateY(1px);
}

.notify-note {
  flex: 1 1 100%;
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.notify-feedback {
  flex: 1 1 100%;
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: var(--primary);
  min-height: 1.25em;
}

.notify-feedback[hidden] {
  display: none;
}

/* Legal pages */
.page {
  padding: 2rem var(--space) 4rem;
  max-width: 44rem;
  margin: 0 auto;
  width: 100%;
}

.page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: -0.025em;
  margin: 0 0 0.5rem;
  color: var(--text);
}

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

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

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

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

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

/* Footer */
.site-footer {
  padding: 1.5rem var(--space) 2rem;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}

.footer-inner {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-muted);
}

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

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
}

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

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: var(--space);
  right: var(--space);
  bottom: var(--space);
  z-index: 900;
  max-width: 28rem;
  margin: 0 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);
  animation: slide-up 0.45s ease-out both;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  color: var(--text);
}

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

.cookie-banner p a {
  color: var(--primary);
}

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

.cookie-actions button {
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cookie-accept {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
}

.cookie-accept:hover {
  background: var(--primary-hover);
}

.cookie-decline {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}

.cookie-decline:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-3%, 4%) scale(1.04);
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 480px) {
  .site-nav {
    display: none;
  }

  .notify {
    flex-direction: column;
  }

  .notify button {
    width: 100%;
  }

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

  .cookie-actions button {
    flex: 1 1 auto;
  }
}
