/* 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;
  --shadow: 0 4px 24px rgba(28, 27, 23, 0.08);
  --max-width: 720px;
  --header-height: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
}

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

.site-logo__mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

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

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

/* Main */
.site-main {
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

/* Hero / Coming soon */
.hero {
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.hero__badge {
  display: inline-block;
  padding: 0.35rem 0.875rem;
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--surface-alt);
  border-radius: 999px;
}

.hero__title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero__text {
  margin: 0 auto 2rem;
  max-width: 32rem;
  font-size: 1.0625rem;
  color: var(--text-secondary);
}

.notify-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  justify-content: center;
  max-width: 28rem;
  margin: 0 auto;
}

.notify-form__input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.notify-form__input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.15);
}

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

.notify-form__btn {
  flex: 0 0 auto;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

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

.notify-form__note {
  width: 100%;
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.hero__accent {
  width: 48px;
  height: 4px;
  margin: 2.5rem auto 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

/* Legal pages */
.legal-page {
  max-width: var(--max-width);
  margin: 0 auto;
}

.legal-page h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.25;
}

.legal-page__updated {
  margin: 0 0 2rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.legal-page h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.125rem;
  color: var(--text);
}

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

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

.legal-page li {
  margin-bottom: 0.5rem;
}

.legal-page table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 1rem 0;
}

.legal-page th,
.legal-page td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.legal-page th:first-child,
.legal-page td:first-child {
  padding-left: 0;
}

.legal-page code {
  font-size: 0.8125rem;
  color: var(--text);
}

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

.site-footer__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

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

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

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem;
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

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

.cookie-banner__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cookie-banner__text {
  flex: 1 1 240px;
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.cookie-banner__text a {
  color: var(--primary);
  white-space: nowrap;
}

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

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

.cookie-banner__btn--accept {
  color: #fff;
  background: var(--primary);
}

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

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

.cookie-banner__btn--decline:hover {
  background: var(--bg);
  color: var(--text);
}

/* Utility */
.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;
}

@media (max-width: 480px) {
  .site-footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .site-footer__links {
    justify-content: center;
  }

  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__actions {
    flex-direction: column;
  }

  .cookie-banner__btn {
    width: 100%;
    text-align: center;
  }
}
