/* Tribal Quiz site: one accent, lots of space, system type. Light and dark follow the OS. */
:root {
  color-scheme: light dark;
  --accent: #6C4BFF;
  --accent-ink: #FFFFFF;
  --bg: #FCFBFF;
  --surface: #FFFFFF;
  --ink: #121216;
  --muted: #5E5D6B;
  --line: #E6E4F0;
  --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root { --accent: #9D86FF; --accent-ink: #15102E; --bg: #0E0D12; --surface: #1A1822; --ink: #F2F1F7; --muted: #A5A3B3; --line: #2A2836; }
}
* { box-sizing: border-box; }
html { font-size: 17px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: -apple-system, system-ui, "Segoe UI", Roboto, Inter, sans-serif;
  line-height: 1.55; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: 44rem; margin: 0 auto; padding: 0 1.25rem; }
header.site { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; }
header.site .brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; text-decoration: none; color: var(--ink); }
header.site .brand svg { width: 32px; height: 32px; }
header.site nav a { margin-left: 1rem; text-decoration: none; color: var(--muted); font-weight: 500; }
header.site nav a:hover { color: var(--accent); }
main { padding: 1rem 0 3rem; }
h1 { font-size: clamp(2rem, 6vw, 3rem); line-height: 1.1; letter-spacing: -0.02em; margin: 1.5rem 0 1rem; }
h2 { font-size: 1.4rem; margin: 2.25rem 0 .75rem; letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
p.lead { font-size: 1.25rem; color: var(--muted); max-width: 36rem; }
.cta { display: inline-flex; align-items: center; gap: .5rem; padding: .9rem 1.4rem; border-radius: 999px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600; }
.cta.secondary { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.stores { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 2.5rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin: 1rem 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.card h3 { margin-top: 0; }
.card p { margin-bottom: 0; color: var(--muted); }
ol.steps { counter-reset: step; list-style: none; padding: 0; margin: 1rem 0; }
ol.steps li { counter-increment: step; display: grid; grid-template-columns: 2.5rem 1fr; gap: .75rem; align-items: start; margin: .9rem 0; }
ol.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.promise { border-left: 4px solid var(--accent); padding: .25rem 1rem; margin: 1.5rem 0; }
.promise strong { display: block; margin-bottom: .25rem; }
table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: .55rem .5rem; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
details { border: 1px solid var(--line); border-radius: 12px; padding: .75rem 1rem; margin: .6rem 0; background: var(--surface); }
summary { cursor: pointer; font-weight: 600; }
.meta { color: var(--muted); font-size: .9rem; }
footer.site { border-top: 1px solid var(--line); padding: 1.5rem 0 2.5rem; color: var(--muted); font-size: .9rem; }
footer.site nav a { margin-right: 1rem; color: var(--muted); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: .05em .35em; }
@media (max-width: 480px) { header.site nav a { margin-left: .7rem; font-size: .95rem; } }
