/* =========================================================
   Democracy Renewal Group — Base Styles
   Purpose: calm, professional, neutral foundation
   This file should remain conservative and stable.
   ========================================================= */

/* ---------- CSS Reset / Base ---------- */

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
}

body {
  background: #ffffff;
  color: #1a1a1a;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

/* ---------- Variables (lightly opinionated) ---------- */

:root {
  --text: #1a1a1a;
  --muted: #5f6b66;
  --border: #e2e6e4;
  --bg-soft: #f7f8f7;

  --max-width: 72rem;
  --content-width: 60ch;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
}

/* ---------- Typography ---------- */

h1,
h2,
h3 {
  line-height: 1.25;
  font-weight: 600;
  margin: 0 0 var(--space-2);
}

h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

h2 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 var(--space-2);
  max-width: var(--content-width);
}

p:last-child {
  margin-bottom: 0;
}

.lede {
  font-size: 1.125rem;
  color: var(--muted);
}

/* ---------- Links ---------- */

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration-thickness: 2px;
}

/* ---------- Layout ---------- */

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

.site-header {
  border-bottom: 1px solid var(--border);
  background: #ffffff;
}

.site-header .wrap {
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}

/* ---------- Site Branding ---------- */

.brand {
  display: flex;
  align-items: center;
}

.brand a {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand a:hover {
  text-decoration: underline;
}

.site-main .wrap {
  max-width: var(--max-width);
}

.site-footer {
  margin-top: var(--space-5);
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

.site-footer p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Preview Navigation ---------- */

.preview-nav {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: var(--space-3);
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-soft);
  font-size: 0.9rem;
}

.preview-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
}

.preview-nav a:hover {
  text-decoration: underline;
  color: var(--text);
}

/* Current preview */
.preview-nav a.is-active,
.preview-nav a[aria-current="true"] {
  color: var(--text);
  font-weight: 600;
  background: #ffffff;
  border: 1px solid var(--border);
  text-decoration: none;
}

/* ---------- Sections ---------- */

.hero {
  padding: var(--space-4) 0 var(--space-3);
}

.block {
  padding: var(--space-4) 0;
  border-top: 1px solid var(--border);
}

/* ---------- Lists ---------- */

ul {
  margin: var(--space-2) 0 0;
  padding-left: 1.25rem;
  max-width: var(--content-width);
}

li {
  margin-bottom: var(--space-2);
}

/* ---------- Utility ---------- */

.muted {
  color: var(--muted);
}

/* ---------- Accessibility ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}

.skip-link:focus {
  left: var(--space-3);
  top: var(--space-3);
  background: #ffffff;
  border: 1px solid var(--border);
  padding: var(--space-1) var(--space-2);
  z-index: 1000;
}
