/* StrideQuest — GitHub Pages site */
:root {
  --ink: #1a1f36;
  --cream: #faf8f4;
  --moss: #4a7c59;
  --moss-light: #e8f0ea;
  --gold: #c9a84c;
  --gray: #6b7280;
  --border: #e5e2dc;
  --max-w: 680px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 17px; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Layout */
.container { max-width: var(--max-w); margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.site-header .logo { font-weight: 700; font-size: 1.15rem; color: var(--moss); text-decoration: none; }
.site-header nav { display: flex; gap: 1.25rem; }
.site-header nav a { color: var(--gray); text-decoration: none; font-size: 0.9rem; }
.site-header nav a:hover { color: var(--moss); }

/* Typography */
h1 { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.5rem; }
h2 { font-size: 1.25rem; font-weight: 600; margin-top: 2rem; margin-bottom: 0.5rem; color: var(--moss); }
h3 { font-size: 1.05rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.35rem; }
p, li { margin-bottom: 0.75rem; }
ul, ol { padding-left: 1.25rem; }
a { color: var(--moss); }

/* Hero (index only) */
.hero { text-align: center; padding: 3rem 0 2rem; }
.hero h1 { font-size: 2.25rem; }
.hero .tagline { font-size: 1.15rem; color: var(--gray); margin-bottom: 1.5rem; }
.hero .badge {
  display: inline-block;
  background: var(--moss);
  color: #fff;
  padding: 0.5rem 1.5rem;
  border-radius: 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 0.5rem;
}
.hero .badge:hover { background: #3d6a4b; }

/* Cards */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 520px) { .card-grid { grid-template-columns: 1fr 1fr; } }
.card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  background: #fff;
}
.card h3 { margin-top: 0; color: var(--moss); }

/* FAQ */
details { border: 1px solid var(--border); border-radius: 8px; padding: 0.85rem 1rem; margin-bottom: 0.65rem; background: #fff; }
summary { cursor: pointer; font-weight: 600; font-size: 0.95rem; }
details p { margin-top: 0.5rem; margin-bottom: 0; font-size: 0.95rem; }

/* Legal pages */
.legal h1 { margin-bottom: 0.25rem; }
.effective { color: var(--gray); font-size: 0.9rem; margin-bottom: 1.5rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.85rem;
  color: var(--gray);
}
.site-footer a { color: var(--gray); }
.site-footer a:hover { color: var(--moss); }
.footer-links { display: flex; justify-content: center; gap: 1.25rem; margin-bottom: 0.5rem; }

/* Language switcher */
.lang-switcher {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
  background: var(--moss-light);
  border-bottom: 1px solid var(--border);
}
.lang-switcher a { color: var(--gray); text-decoration: none; }
.lang-switcher a:hover { color: var(--moss); }
.lang-switcher a[aria-current="page"] { color: var(--moss); font-weight: 600; }
