/* RockSolid 247 — design tokens, layout, components.
   Per spec §4 (apps/rs247-worker/docs/superpowers/specs/2026-05-07-rs247-website-rebuild-design.md). */

:root {
  --color-primary:        #2a3340;   /* dark navy — hero band, footer, headings */
  --color-accent:         #f5b223;   /* warm amber — primary buttons, key stats */
  --color-surface:        #fdfbf7;   /* off-white / cream — page background */
  --color-card:           #ffffff;
  --color-text:           #2a2a2a;
  --color-text-on-dark:   #fdfbf7;
  --color-muted:          #5a5a5a;
  --color-border:         #e8e2d6;

  --font-sans:            'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --space-1:              0.5rem;
  --space-2:              1rem;
  --space-3:              1.5rem;
  --space-4:              2rem;
  --space-5:              3rem;
  --space-6:              4rem;
  --max-width:            1200px;
  --radius:               6px;
}

* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-surface);
}

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
  margin-top: 0;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }

a { color: var(--color-primary); text-decoration: underline; }
a:hover { color: var(--color-accent); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

/* Header */
.site-header {
  background: var(--color-card);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-2) 0;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wordmark {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-primary);
  text-decoration: none;
}
.site-nav { display: flex; gap: var(--space-3); }
.site-nav a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--color-accent); }

/* Hero */
.hero {
  background: var(--color-primary);
  color: var(--color-text-on-dark);
  padding: var(--space-6) 0;
}
.hero h1 { color: var(--color-text-on-dark); }

/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--color-accent);
  color: #2a1f10;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn-primary:hover { background: #e0a01f; color: #2a1f10; }

/* Cards & grid */
.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-3);
}

/* Footer */
.site-footer {
  background: var(--color-primary);
  color: var(--color-text-on-dark);
  padding: var(--space-4) 0;
  margin-top: var(--space-6);
  font-size: 0.9rem;
}
.footer-attribution { margin: 0 0 var(--space-2) 0; opacity: 0.85; }
.footer-nav a { color: var(--color-text-on-dark); margin-right: var(--space-2); }

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
  .header-inner { flex-direction: column; gap: var(--space-2); }
  .site-nav { flex-wrap: wrap; justify-content: center; }
}
