/* ================================================================
   TONEKEEP — SITE (page chrome: about / features / join / footer)
   Light pastel ocean theme, reused from the original landing.
   ================================================================ */

:root {
  --bg: #f4f6f3;
  --ink: #10182b;
  --muted: rgba(16, 24, 43, 0.62);
  --quiet: rgba(16, 24, 43, 0.16);
  --accent: #d68b57;
  --teal: #3a8a8f;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ── About section: light ocean behind the story ─────────────── */
#about {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  padding: clamp(64px, 11vw, 140px) clamp(20px, 5vw, 64px) clamp(48px, 8vw, 96px);
}

#about #ocean {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
}

/* paper grain, same trick as the original landing */
#about::after {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none; content: "";
  opacity: 0.16; mix-blend-mode: multiply;
  background-image:
    repeating-radial-gradient(circle at 20% 30%, rgba(16,24,43,0.22) 0 0.85px, transparent 0.95px 5px),
    linear-gradient(rgba(214,139,87,0.08), rgba(255,255,255,0));
}

.about-inner {
  position: relative;
  z-index: 2;
  width: min(100%, 920px);
  margin: 0 auto;
}

.kicker {
  margin: 0 0 14px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}

#about h2 {
  margin: 0 0 0.6em;
  font-size: clamp(1.9rem, 5.2vw, 3.4rem);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.01em;
  max-width: 16ch;
}

#about p {
  margin: 0 0 1.05em;
  font-size: clamp(1.02rem, 1.7vw, 1.22rem);
  line-height: 1.55;
  color: rgba(16,24,43,0.82);
  max-width: 60ch;
}

#about p.lede {
  font-size: clamp(1.12rem, 2vw, 1.42rem);
  font-weight: 600;
  color: var(--ink);
}

#about strong { color: var(--ink); }

.story-photo {
  margin: clamp(28px, 4vw, 44px) 0 clamp(34px, 5vw, 56px);
  overflow: hidden;
  border: 1px solid var(--quiet);
  border-radius: 14px;
  background: rgba(255,255,255,0.42);
  box-shadow: 0 18px 48px rgba(16,24,43,0.13);
}
.story-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ── Features grid ───────────────────────────────────────────── */
.features {
  margin: clamp(34px, 5vw, 56px) 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(14px, 2vw, 22px);
}
.feature {
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--quiet);
  border-radius: 12px;
  padding: 18px 18px 16px;
  backdrop-filter: blur(3px);
}
.feature-tag {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.feature p { margin: 0; font-size: 0.98rem; line-height: 1.45; color: rgba(16,24,43,0.75); }

/* ── Join: download / discord / email ────────────────────────── */
#join { margin-top: clamp(40px, 6vw, 72px); }
.join-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(14px, 2vw, 20px);
}
.join-card {
  background: rgba(16,24,43,0.04);
  border: 1px solid var(--quiet);
  border-radius: 14px;
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
}
.join-card h3 {
  margin: 0 0 4px;
  font-size: 1.18rem;
  font-weight: 850;
  letter-spacing: -0.01em;
}
.join-card > p { margin: 0 0 16px; font-size: 0.95rem; color: var(--muted); line-height: 1.4; }

.join-dl {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}
.join-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 16px;
  border-radius: 9px;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .08s, background .15s, box-shadow .15s, border-color .15s;
}
.join-btn:active { transform: translateY(1px); }

.join-btn.primary {
  flex: 1;
  background: var(--accent);
  color: #1a0f06;
}
.join-btn.primary:hover { background: #e29c69; box-shadow: 0 6px 18px rgba(214,139,87,0.35); }

.join-btn.discord {
  margin-top: auto;
  background: #5865F2;
  color: #fff;
}
.join-btn.discord:hover { background: #4853d8; box-shadow: 0 6px 18px rgba(88,101,242,0.35); }

.join-btn.tally {
  margin-top: auto;
  width: 100%;
  background: var(--ink);
  color: #fff;
}
.join-btn.tally:hover { background: #1d2b4a; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  margin-top: clamp(48px, 7vw, 88px);
  padding-top: 22px;
  border-top: 1px solid var(--quiet);
  text-align: center;
}
#about .site-footer p {
  max-width: none;
  margin: 0 auto 8px;
  font-size: 0.9rem;
  color: var(--muted);
}
.site-footer a { color: var(--teal); font-weight: 700; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
#about .site-footer .fine {
  max-width: 60ch;
  margin: 0 auto;
  font-size: 0.74rem;
  line-height: 1.45;
  color: rgba(16,24,43,0.42);
}

#about .site-footer p:last-child { margin-bottom: 0; }

@media (max-width: 520px) {
  #about {
    padding-top: 180px;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }
  .join-dl {
    flex-direction: column;
  }
  .join-btn.primary {
    width: 100%;
  }
}
