/* Tock's Chess — site styles. Palette mirrors the app's AppPalette.swift. */
:root {
  --page-bg: #ede8dd;     /* warm cream page background */
  --card-bg: #f7f2e9;     /* cards / surfaces */
  --muted-bg: #e6e1d5;
  --text: #3d3428;        /* primary text */
  --text-muted: #9e8e76;
  --gold: #e8a838;        /* accent CTA */
  --gold-text: #34280f;
  --green: #3c8f4e;       /* Tock's body green */
  --green-dark: #2f7a43;
  --green-soft: #e8efe1;
  --radius: 22px;
  --shadow: 0 18px 40px rgba(61, 52, 40, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--page-bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green-dark); }

.wrap { max-width: 940px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

/* Header / nav */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px; max-width: 940px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand img { width: 44px; height: 44px; }
.brand b { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.nav a { margin-left: 22px; text-decoration: none; color: var(--text-muted); font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--text); }

/* Splash — minimal landing: app icon + coming soon */
.splash {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 6vh 24px 0;
  min-height: calc(100vh - 200px); justify-content: center;
}
.splash .app-icon {
  width: 220px; height: 220px; border-radius: 48px;
  box-shadow: var(--shadow);
  animation: float 5s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.splash h1 { font-size: clamp(34px, 6vw, 52px); line-height: 1.05; margin: 30px 0 6px; letter-spacing: -0.02em; }
.splash .tagline { font-size: clamp(17px, 2.4vw, 21px); color: var(--text-muted); margin: 0 0 24px; }
.coming-soon {
  display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--green-dark); background: var(--green-soft);
  padding: 9px 18px; border-radius: 999px;
}

/* Content pages (privacy / support) */
.doc { padding: 48px 0 72px; }
.doc h1 { font-size: 36px; margin: 0 0 6px; }
.doc .updated { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }
.doc h2 { font-size: 22px; margin: 34px 0 10px; }
.doc p, .doc li { font-size: 17px; color: var(--text); }
.doc ul { padding-left: 22px; }
.doc .lead { font-size: 19px; color: var(--text-muted); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--muted-bg); margin-top: 40px;
  padding: 30px 24px; text-align: center; color: var(--text-muted); font-size: 14px;
}
.site-footer a { color: var(--text-muted); margin: 0 10px; text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer .entity { display: block; margin-top: 8px; }
