:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --band-bg: #f0fdfa;
  --card-bg: #ffffff;
  --text: #1e293b;
  --text-muted: #4b5f5c;
  --border: #dceeec;
  --accent: #0d9488;
  --accent-hover: #0f766e;
  --accent-soft: #ccfbf1;
  --error: #dc2626;
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1a18;
    --band-bg: #0f211e;
    --card-bg: #122624;
    --text: #e6f4f2;
    --text-muted: #9fc9c2;
    --border: #1f3d39;
    --accent: #2dd4bf;
    --accent-hover: #5eead4;
    --accent-soft: #164e46;
    --error: #f87171;
  }
}

* { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  margin: 0;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

.narrow { max-width: 34rem; margin: 0 auto; }

/* ---------- Header ---------- */
.header {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-hover);
  margin: 0 0 0.9rem;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}

.lede {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin: 0 0 1rem;
}

/* ---------- Form card ---------- */
.card-wrap { padding: 0 1.5rem; }
.card {
  max-width: 30rem;
  margin: 0 auto 3rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 10px 28px rgba(13, 148, 136, 0.1);
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-top: 1.15rem;
  margin-bottom: 0.35rem;
}

input, textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font: inherit;
  color: var(--text);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

textarea { min-height: 5rem; resize: vertical; }

button {
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.75rem 1.2rem;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
button:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.25);
}
button:disabled { cursor: not-allowed; opacity: 0.6; }

#status {
  margin-top: 1rem;
  font-weight: 600;
  text-align: center;
  font-size: 0.92rem;
}
#status[data-kind="error"] { color: var(--error); }
#status[data-kind="ok"] { color: var(--accent-hover); }

/* ---------- Band sections (gallery + facts) ---------- */
.band {
  background: var(--band-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
}
.band-inner { max-width: 44rem; margin: 0 auto; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}
.gallery .ph {
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 50%;
  filter: saturate(1.08) contrast(1.02);
  transition: transform 0.25s ease;
}
.gallery img.ph-top { object-position: 50% 25%; }
.gallery .ph:hover img { transform: scale(1.08); }

/* ---------- Facts ---------- */
.section-title {
  font-family: var(--font-display);
  text-align: center;
  font-size: 1.3rem;
  margin: 2.5rem 0 0;
}
.facts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.75rem;
}
@media (min-width: 560px) {
  .facts-grid { grid-template-columns: repeat(3, 1fr); }
}
.fact {
  border-top: 2px solid var(--accent);
  padding-top: 0.85rem;
}
.fact .num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-hover);
}
.fact h3 {
  font-size: 1rem;
  margin: 0.35rem 0 0.35rem;
}
.fact p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ---------- Story ---------- */
.story {
  max-width: 34rem;
  margin: 0 auto;
  padding: 2.75rem 1.5rem;
}

footer {
  max-width: 30rem;
  margin: 0 auto 3rem;
  padding: 1.5rem 1.5rem 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: center;
}
footer a { color: var(--accent-hover); }

/* honeypot: kept in normal layout flow (not display:none) but visually and
   functionally hidden from real users, since some bots skip display:none fields */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
