:root {
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    "Apple Color Emoji",
    "Segoe UI Emoji";
  color: #111;
  background: #fff;
  color-scheme: light dark;

  /* protomaps WHITE flavor */
  --pm-bg: #ffffff;
  --pm-text: #5c5c5c;
  --pm-muted: #8f8f8f;
  --pm-card: #f5f5f5;
  --pm-border: #ebebeb;
}

@media (prefers-color-scheme: dark) {
  :root {
    color: #eee;
    background: #2b2b2b; /* matches BLACK_THEME.background */

    /* protomaps BLACK flavor */
    --pm-bg: #2b2b2b;
    --pm-text: #999999;
    --pm-muted: #5c5c5c;
    --pm-card: #1f1f1f;
    --pm-border: #292929;
  }
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
}
a {
  color: inherit;
}

/* Prevent iOS from zooming on input focus */
textarea,
input,
select {
  font-size: 16px;
}

.container {
  position: absolute;
  max-width: 920px;
  margin: 0 auto;
  padding: 24px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.muted {
  color: #6b7280;
}

.card {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

input,
button {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 10px 12px;
  font-size: 14px;
  background: #fff;
}

button {
  cursor: pointer;
}
button:hover {
  background: #f9fafb;
}

code {
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 8px;
}

hr {
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 18px 0;
}

/* ── Landing overlay ──────────────────────────────────────────────────────── */

.landing-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 16px 0;
}

.landing-header {
  text-align: center;
  padding: 20px 0;
}

.landing-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.landing-tagline {
  margin-top: 8px;
  font-size: 16px;
}

.landing-section {
  margin-top: 40px;
}

.landing-section h2 {
  font-size: 18px;
  margin-bottom: 12px;
}

.landing-grid {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  grid-template-columns: 1fr;
}

.landing-card {
  border-radius: 14px;
  padding: 18px;
}

.landing-fade,
.landing-spacer {
  height: 60vh;
}

@media (min-width: 600px) {
  .landing-inner {
    padding: 64px 24px 0;
  }

  .landing-header {
    padding: 40px 0;
  }

  .landing-title {
    font-size: 42px;
  }

  .landing-tagline {
    margin-top: 12px;
    font-size: 20px;
  }

  .landing-section {
    margin-top: 72px;
  }

  .landing-section h2 {
    font-size: 22px;
    margin-bottom: 16px;
  }

  .landing-grid {
    gap: 16px;
    margin-top: 24px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .landing-fade,
  .landing-spacer {
    height: 100vh;
  }
}

/* ── SkyForm ──────────────────────────────────────────────────────────────── */

/* ── Prose pages (About, Privacy, etc.) ───────────────────────────────────── */

.prose-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 20px 64px;
  line-height: 1.7;
  color: var(--pm-text);
  background: var(--pm-bg);
}

.prose-page h1 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 24px;
}

.prose-page h2 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
}

.prose-page p,
.prose-page li {
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--pm-muted);
}

.prose-page ul,
.prose-page ol {
  padding-left: 24px;
}
.prose-page a {
  color: var(--pm-text);
}

/* ── Site footer ──────────────────────────────────────────────────────────── */

.site-footer {
  text-align: center;
  padding: 32px 20px 40px;
  font-size: 12px;
  color: var(--pm-muted);
}

.site-footer p {
  margin: 4px 0;
}

.site-footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 14px;
}

.site-footer-links a {
  color: inherit;
  text-decoration: none;
}

.site-footer-links a:hover {
  text-decoration: underline;
}

.site-footer-tagline {
  font-size: 14px;
}

/* ── SkyForm (continued) ─────────────────────────────────────────────────── */

.skyform {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
  border-radius: 12px;
  min-width: 220px;
  width: 90vw;
  max-width: 90vw;
  box-sizing: border-box;
  touch-action: pan-x pan-y;
}

.skyform-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  font-family: Inter, system-ui, sans-serif;
}

.skyform-textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-family: Inter, system-ui, sans-serif;
  outline: none;
  box-sizing: border-box;
  resize: none;
}

.skyform-hint-row {
  position: relative;
  align-self: stretch;
  height: 12px;
  margin-top: -4px;
}

.skyform-hint-inner {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-family: Inter, system-ui, sans-serif;
  line-height: 1;
  overflow: hidden;
}

.skyform-btn {
  padding: 8px 18px;
  border-radius: 8px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  font-family: Inter, system-ui, sans-serif;
  letter-spacing: 0.03em;
  transition: background 0.2s, color 0.2s;
  min-height: 44px;
}

.skyform-subtext {
  font-size: 11px;
  letter-spacing: 0.02em;
  font-family: Inter, system-ui, sans-serif;
}

@media (min-width: 600px) {
  .skyform {
    gap: 12px;
    padding: 28px 36px;
    border-radius: 16px;
    min-width: 280px;
    width: auto;
    max-width: none;
  }

  .skyform-title {
    font-size: 18px;
  }

  .skyform-textarea {
    padding: 10px 14px;
    font-size: 15px;
  }

  .skyform-hint-row {
    height: 14px;
  }

  .skyform-hint-inner {
    font-size: 11px;
  }

  .skyform-btn {
    padding: 10px 24px;
    font-size: 14px;
  }
}
