/* 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, 3vw, 2rem);
  --max: 42rem;
  --header-h: 4rem;
}

*,
*::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);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 60% at 10% -10%, rgba(8, 145, 178, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(22, 101, 52, 0.14), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(180, 83, 9, 0.06), transparent 60%),
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 11px,
      rgba(28, 27, 23, 0.015) 11px,
      rgba(28, 27, 23, 0.015) 12px
    );
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

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;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(10px);
  background: rgba(250, 248, 242, 0.82);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  width: min(1100px, 100% - 2 * var(--space));
  margin-inline: auto;
  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-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

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

.brand__mark {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 6px;
  background: var(--primary);
  box-shadow: inset 0 0 0 2px var(--accent);
  flex-shrink: 0;
  position: relative;
}

.brand__mark::after {
  content: "F";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--bg);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

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

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

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3rem, 10vh, 6rem) var(--space);
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--header-h) - 5.5rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  background:
    radial-gradient(circle at 70% 40%, rgba(22, 101, 52, 0.18), transparent 42%),
    radial-gradient(circle at 25% 70%, rgba(8, 145, 178, 0.14), transparent 38%);
  animation: atmosphere 18s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes atmosphere {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-2%, 3%) scale(1.06); }
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(var(--max), 100%);
  text-align: left;
}

.hero__brand {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--primary);
  opacity: 0;
  animation: rise 0.7s ease forwards 0.1s;
}

.hero__brand span {
  display: block;
  color: var(--text);
}

.hero__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  opacity: 0;
  animation: rise 0.7s ease forwards 0.25s;
}

.hero__lede {
  margin: 0 0 1.75rem;
  max-width: 32rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
  opacity: 0;
  animation: rise 0.7s ease forwards 0.4s;
}

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

.notify {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  opacity: 0;
  animation: rise 0.7s ease forwards 0.55s;
}

.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 {
  flex: 1 1 14rem;
  min-width: 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
}

.notify__input::placeholder {
  color: var(--text-muted);
}

.notify__btn {
  flex: 0 0 auto;
  padding: 0.85rem 1.35rem;
  border: none;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

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

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

.notify__note {
  flex-basis: 100%;
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.notify__note[data-visible="true"] {
  color: var(--primary);
}

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

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

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

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

.page p,
.page ul {
  margin: 0 0 1rem;
  color: var(--text-secondary);
}

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

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

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(240, 236, 224, 0.65);
  padding: 1.35rem var(--space);
}

.site-footer__inner {
  width: min(1100px, 100%);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

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

/* Cookie banner */
.cookie-banner {
  position: fixed;
  z-index: 100;
  inset-inline: var(--space);
  bottom: var(--space);
  width: min(28rem, calc(100% - 2 * var(--space)));
  margin-inline: auto;
  left: 0;
  right: 0;
  padding: 1.15rem 1.25rem;
  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 ease, opacity 0.35s ease, visibility 0.35s;
}

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

.cookie-banner__title {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

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

.cookie-banner__text a {
  font-weight: 500;
}

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

.cookie-banner__actions button {
  flex: 1 1 auto;
  min-width: 6.5rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-accept {
  border: none;
  background: var(--primary);
  color: #fff;
}

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

.btn-decline {
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text-secondary);
}

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

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

  .hero__content {
    text-align: left;
  }

  .notify__btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero::before {
    animation: none;
  }
}
