/* The Normie Party — site styles
 *
 * Mainstream, approachable, readable on a phone. The brand cue is
 * trustworthiness, not novelty: system fonts, generous whitespace,
 * one accent color. Resist the urge to be visually interesting.
 */

:root {
  --bg: #fafaf7;
  --bg-elevated: #ffffff;
  --ink: #1a1a1a;
  --ink-muted: #555555;
  --rule: #e3e1da;
  --accent: #355c7d;        /* muted slate-blue — non-partisan */
  --accent-soft: #d8e2ea;
  --good: #2c7a4b;
  --pending: #c08a00;
  --link: #355c7d;
  --link-hover: #1b3a5a;
  --max-width: 760px;
  --radius: 6px;
}

* { box-sizing: border-box; }

html {
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto,
               "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

/* ---- Top nav ---- */

.top-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--rule);
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.top-nav .brand {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.top-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.top-nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.top-nav a:hover { color: var(--link-hover); }

/* ---- Hero ---- */

.hero {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 2.4rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.hero .thesis {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--accent);
  margin: 0 0 1rem;
}

.hero .lede {
  font-size: 1.05rem;
  color: var(--ink-muted);
  margin: 0;
}

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

section {
  margin-top: 3rem;
}

h2 {
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

h3 {
  font-size: 1.15rem;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

p { margin: 0.75rem 0; }

a { color: var(--link); }
a:hover { color: var(--link-hover); }

/* ---- Principles grid ---- */

.principle-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .principle-grid { grid-template-columns: 1fr 1fr; }
}

.principle {
  background: var(--bg-elevated);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.principle h3 {
  margin-top: 0;
  color: var(--accent);
}

/* ---- Platform ---- */

.focus { padding-left: 1.25rem; }
.focus li { margin-bottom: 0.6rem; }

.outcomes {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.outcomes th,
.outcomes td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}

.outcomes th {
  background: var(--accent-soft);
  font-weight: 600;
}

.outcomes td:first-child {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  color: var(--ink-muted);
  white-space: nowrap;
}

.note {
  font-size: 0.9rem;
  color: var(--ink-muted);
  padding: 0.75rem 1rem;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  margin-top: 1.5rem;
}

/* ---- Progress staircase ---- */

.progress-bar {
  margin: 1rem 0 1.5rem;
}

.progress-label {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 0.4rem;
}

.progress-track {
  display: block;
  height: 12px;
  background: var(--rule);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  display: block;
  height: 100%;
  background: var(--accent);
  transition: width 0.4s ease;
}

.current-stage {
  background: var(--bg-elevated);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--pending);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}

.current-stage h3 {
  margin-top: 0;
  color: var(--pending);
}

.current-stage .goal { color: var(--ink-muted); }
.current-stage .status-label {
  font-size: 0.85rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.checklist {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.checklist li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.75rem;
  line-height: 1.5;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--ink-muted);
  border-radius: 3px;
  background: var(--bg-elevated);
}

.checklist li.done {
  color: var(--ink-muted);
  text-decoration: line-through;
}

.checklist li.done::before {
  background: var(--good);
  border-color: var(--good);
  /* checkmark via box-shadow inset */
  box-shadow: inset 0 0 0 2px var(--bg-elevated), inset 0 0 0 14px var(--good);
}

.staircase {
  list-style: none;
  counter-reset: stair;
  padding-left: 0;
  margin: 1rem 0 0;
}

.staircase .stage {
  display: grid;
  grid-template-columns: 3rem auto;
  gap: 0.4rem 1rem;
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule);
}

.staircase .stage:last-child { border-bottom: none; }

.stage-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  color: var(--ink-muted);
  background: var(--accent-soft);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  text-align: center;
  width: fit-content;
}

.stage-name {
  font-weight: 600;
}

.stage-goal {
  grid-column: 2;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.stage--done .stage-id { background: var(--good); color: white; }
.stage--in_progress .stage-id { background: var(--pending); color: white; }

/* ---- Footer ---- */

footer {
  max-width: var(--max-width);
  margin: 4rem auto 2rem;
  padding: 1.5rem 1.25rem 0;
  border-top: 1px solid var(--rule);
  color: var(--ink-muted);
  font-size: 0.9rem;
}
