:root {
  --bg: #fbf8f2;
  --text: #1f1c17;
  --muted: #5c564c;
  --line: #e4ddd0;
  --surface: #ffffff;
  --mango: #f2a93b;
  --leaf: #3f7d4e;
  --focus: #1f5fbf;
  --space: 8px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15130f;
    --text: #f3efe7;
    --muted: #b5ad9f;
    --line: #34302a;
    --surface: #1e1b16;
    --focus: #8db4ff;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: calc(var(--space) * 8) 16px;
}

.mark { margin-bottom: calc(var(--space) * 3); }

h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.1;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.lede {
  margin: calc(var(--space) * 2) 0 0;
  font-size: 1.125rem;
  color: var(--text);
  max-width: 34ch;
}

.soon {
  margin: var(--space) 0 0;
  color: var(--muted);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space) calc(var(--space) * 3);
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: calc(var(--space) * 3) 16px calc(var(--space) * 4);
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}

.privacy { flex-basis: 100%; }
.privacy summary { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; }
.privacy p { margin: var(--space) 0 0; max-width: 60ch; }

.link {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 560px;
  margin: 0 auto;
  padding: calc(var(--space) * 2);
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.consent[hidden] { display: none; }

/* Keep the footer and focused items reachable above the banner. */
body:has(.consent:not([hidden])) .foot { padding-bottom: 200px; }
html:has(.consent:not([hidden])) { scroll-padding-bottom: 200px; }
.consent a { color: inherit; text-underline-offset: 3px; }
.consent p { margin: 0 0 calc(var(--space) * 2); }

.consent-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space);
}

.btn {
  font: inherit;
  font-weight: 600;
  min-height: 44px;
  padding: 0 calc(var(--space) * 2);
  border-radius: 8px;
  border: 1px solid var(--text);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.btn:hover { background: var(--bg); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.privacy a { color: inherit; text-underline-offset: 3px; }
