/* Democracy Playbook static site - Light Theme */
:root{
  --bg:#f8fafc;
  --panel:#ffffff;
  --panel2:#f1f5f9;
  --text:#1e293b;
  --muted:#475569;
  --muted2:#64748b;
  --line:#e2e8f0;
  --ok:#059669;
  --ok-bg:#ecfdf5;
  --ok-border:#a7f3d0;
  --warn:#d97706;
  --warn-bg:#fffbeb;
  --warn-border:#fcd34d;
  --danger:#dc2626;
  --danger-bg:#fef2f2;
  --danger-border:#fca5a5;
  --current:#2563eb;
  --current-bg:#eff6ff;
  --current-border:#93c5fd;
  --shadow: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.05);
  --radius:16px;
  --radius2:12px;
  --accent:#4f46e5;
  --accent-light:#eef2ff;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color:var(--text);
  line-height:1.55;
}

.container{
  max-width:1100px;
  margin:0 auto;
  padding:32px 24px;
}

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

.brand{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:24px;
}

.brand-mark{
  width:48px;height:48px;
  display:grid;place-items:center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: #fff;
  font-size:24px;
}

.brand-title{font-weight:700;font-size:20px;color:var(--text)}
.brand-subtitle{color:var(--muted2);font-size:14px;margin-top:2px}

.principles-banner{
  display:flex;
  align-items:flex-start;
  gap:16px;
  padding:20px 24px;
  margin-top:20px;
  margin-bottom:8px;
  border-radius: var(--radius);
  border: 2px solid var(--accent);
  background: linear-gradient(135deg, var(--accent-light), var(--panel));
  box-shadow: var(--shadow);
}
.principles-icon{
  width:40px;height:40px;
  display:grid;place-items:center;
  border-radius:10px;
  background:var(--accent);
  color:#fff;
  flex-shrink:0;
  font-size:22px;
}
.principles-content{
  color:var(--text);
  font-size:15px;
  line-height:1.6;
}
.principles-content strong{
  color:var(--accent);
}

.top-cards{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap:20px;
  margin-bottom:8px;
}

@media (max-width: 860px){
  .top-cards{grid-template-columns:1fr}
}

.section{
  padding:32px 0 12px;
}

.section-head{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin-bottom:8px;
}
.section-head .icon{
  width:32px;height:32px;
  display:grid;place-items:center;
  border-radius:10px;
  background:var(--accent-light);
  color:var(--accent);
  flex-shrink:0;
  margin-top:2px;
  font-size:18px;
}
.section-head .icon.danger{
  background:var(--danger-bg);
  color:var(--danger);
}
.section-head .icon.warn{
  background:var(--warn-bg);
  color:var(--warn);
}
.section-head-content{flex:1}
.section-head h2{
  margin:0 0 4px;
  font-size:22px;
  letter-spacing:-.02em;
  color:var(--text);
}
.section-head h2.danger{
  color:var(--danger);
}
.section-head h2.warn{
  color:var(--warn);
}
.section-head p{
  margin:0 0 16px;
  color:var(--muted);
  max-width: 900px;
  font-size:15px;
}

.card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding:20px;
  box-shadow: var(--shadow);
}

.card.summary.danger{
  border: 2px solid var(--danger);
  background: linear-gradient(135deg, var(--danger-bg), var(--panel));
}
.card.summary.danger .card-eyebrow{
  color: var(--danger);
}

.card-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.card-top h3{
  display:flex;
  align-items:center;
  gap:10px;
}
.card-icon{
  width:28px;height:28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  flex-shrink:0;
  font-size:16px;
}
.card-icon.ok{background:var(--ok-bg);color:var(--ok)}
.card-icon.warn{background:var(--warn-bg);color:var(--warn)}
.card-icon.danger{background:var(--danger-bg);color:var(--danger)}
.card-icon.current{background:var(--current-bg);color:var(--current)}

.card-eyebrow{
  color:var(--muted2);
  font-weight:600;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.06em;
  margin-bottom:10px;
}

.hero{
  background: linear-gradient(135deg, var(--current-bg), #f0fdf4);
  border-color: var(--current-border);
}
.hero-title{
  margin:0;
  font-size:26px;
  letter-spacing:-.03em;
  color:var(--text);
}
.hero-meta{
  margin:8px 0 12px;
  color:var(--muted2);
  font-size:13px;
}
.hero-desc{
  margin:0 0 12px;
  color:var(--muted);
  line-height:1.6;
}
.more-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:var(--accent);
  font-weight:500;
  font-size:14px;
  text-decoration:none;
}
.more-link:hover{text-decoration:underline}

.hero-actions{display:flex; gap:10px; flex-wrap:wrap}
.btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:10px 16px;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  color: #fff;
  text-decoration:none;
  font-weight:600;
  font-size:14px;
  transition: all .15s ease;
}
.btn svg{width:16px;height:16px}
.btn:hover{background:#4338ca; transform:translateY(-1px); box-shadow: var(--shadow)}
.btn-ghost{
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover{background:var(--panel2); transform:translateY(-1px)}

.summary-list{
  list-style:none;
  padding:0;margin:0 0 14px;
}
.summary-list li{
  display:flex; align-items:center; gap:10px;
  color: var(--muted);
  font-size:14px;
}
.dot{
  width:10px;height:10px;border-radius:999px;
  display:inline-block;
}
.dot-ok{background:var(--ok)}
.dot-warn{background:var(--warn)}
.dot-danger{background:var(--danger)}

.note{
  color:var(--muted2);
  font-size:13px;
  padding:12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel2);
  line-height:1.5;
}

.grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:16px;
}
@media (max-width: 860px){
  .grid{grid-template-columns:1fr}
}
.stack{display:flex; flex-direction:column; gap:16px}

h3{
  margin:0;
  font-size:15px;
  font-weight:600;
  letter-spacing:-.01em;
  color:var(--text);
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:6px 12px;
  border-radius: 999px;
  font-weight:600;
  font-size:12px;
  white-space:nowrap;
}
.badge svg{width:12px;height:12px}

.badge.ok{background: var(--ok-bg); color: var(--ok); border: 1px solid var(--ok-border)}
.badge.warn{background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-border)}
.badge.danger{background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger-border)}
.badge.current{background: var(--current-bg); color: var(--current); border: 1px solid var(--current-border)}
.badge.standby{background: var(--panel2); color: var(--muted2); border: 1px solid var(--line)}

.redline.approaching{
  border: 2px solid var(--warn-border);
  background: linear-gradient(135deg, var(--warn-bg), var(--panel));
}

.block{margin:12px 0}
.block.assessment{
  margin-top:16px;
  padding:12px;
  background:var(--bg);
  border-radius:8px;
  border-left:3px solid var(--muted2);
}
.block.assessment .text{
  font-style:italic;
  line-height:1.6;
}
.label{
  color:var(--muted2);
  font-weight:600;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.05em;
  margin-bottom:6px;
}
.text{color:var(--muted);font-size:14px}
ul{margin:0; padding-left:18px; color:var(--muted);font-size:14px}
li{margin:6px 0}
li a{
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
li a:hover{
  text-decoration: underline;
}

.callout{
  margin-top:12px;
  padding:12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--muted);
  font-size:13px;
  line-height:1.5;
}
.callout.warn{
  border-color: var(--warn-border);
  background: var(--warn-bg);
  color: var(--warn);
}

.two-col{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
}
@media (max-width: 860px){
  .two-col{grid-template-columns:1fr}
}

.level.baseline{
  border: 3px solid var(--ok);
  background: linear-gradient(135deg, var(--ok-bg), var(--panel));
  box-shadow: 0 8px 24px -4px rgba(5, 150, 105, 0.25), 0 4px 12px -2px rgba(5, 150, 105, 0.15);
}

.level.current{
  border: 3px solid var(--current);
  background: linear-gradient(135deg, var(--current-bg), var(--panel));
  box-shadow: 0 8px 24px -4px rgba(37, 99, 235, 0.25), 0 4px 12px -2px rgba(37, 99, 235, 0.15);
  position: relative;
}

.footer{
  margin-top:24px;
  padding:24px 0 48px;
}
.footer-inner{
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--muted2);
  font-size:13px;
}
code{
  padding:2px 6px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--text);
  font-size:12px;
}

.about-section{
  padding: 24px;
  margin-bottom: 8px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.about-section h2{
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 18px;
  color: var(--text);
}
.about-section h2 svg{
  width: 20px;
  height: 20px;
  color: var(--muted2);
}
.about-section p{
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
.about-section p:last-child{
  margin-bottom: 0;
}

.section-divider{
  border: none;
  border-top: 1px solid var(--line);
  margin: 32px 0 8px;
}
