/* Silicon Switzerland. System fonts only, one accent (Swiss red), light and dark. */
:root {
  --bg: #f2f2f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --track: #e5e5ea;
  --accent: #d52b1e;
  --accent-soft: rgba(213, 43, 30, 0.1);
  --radius-lg: 22px;
  --radius-sm: 12px;
  --gutter: 20px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --card: #1c1c1e;
    --text: #f5f5f7;
    --muted: #98989d;
    --line: #38383a;
    --track: #2c2c2e;
    --accent: #ff453a;
    --accent-soft: rgba(255, 69, 58, 0.16);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.47 -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
main {
  max-width: 720px;
  margin: 0 auto;
  padding: max(40px, env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right))
           64px max(var(--gutter), env(safe-area-inset-left));
}

.project { margin: 0 0 12px; color: var(--accent); font-weight: 600; font-size: 15px; }
h1 {
  margin: 0;
  font-size: clamp(34px, 7vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.022em;
  font-weight: 700;
  text-wrap: balance;
}
.lede { margin: 20px 0 0; font-size: 19px; line-height: 1.42; color: var(--muted); max-width: 62ch; }
h2 { margin: 56px 0 6px; font-size: 26px; line-height: 1.15; letter-spacing: -0.012em; font-weight: 700; }
.hint { margin: 0 0 18px; color: var(--muted); font-size: 15px; max-width: 62ch; }

/* Status */
.status {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
}
.dot {
  flex: none;
  width: 12px; height: 12px; margin-top: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft);
}
.status-title { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.status-detail { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.status.is-frozen .dot { background: #34c759; box-shadow: 0 0 0 6px rgba(52, 199, 89, 0.16); }

/* Proposals */
.proposals { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.proposal { background: var(--card); border-radius: var(--radius-lg); padding: 22px; }
.proposal h3 { margin: 0; font-size: 20px; line-height: 1.22; letter-spacing: -0.01em; font-weight: 600; }
.proposal .full-title { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.proposal .needs { margin: 10px 0 0; font-size: 15px; }

.scale { margin-top: 22px; }
.track {
  position: relative;
  height: 14px;
  border-radius: 7px;
  background: var(--track);
}
.track::after { /* the 50 percent line a proposal has to cross */
  content: "";
  position: absolute;
  left: 50%; top: -7px; bottom: -7px;
  width: 2px; margin-left: -1px;
  border-radius: 1px;
  background: var(--text);
}
.ticks {
  display: flex; justify-content: space-between;
  margin-top: 10px;
  color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums;
}
.ticks span:nth-child(2) { color: var(--text); font-weight: 600; }
.pending-note { margin: 14px 0 0; color: var(--muted); font-size: 15px; }

/* Legend */
.legend {
  list-style: none; margin: 18px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  color: var(--muted); font-size: 15px;
}
.legend li { display: flex; align-items: center; gap: 8px; }
.mark { width: 12px; height: 12px; flex: none; }
.mark-silicon { border-radius: 50%; background: var(--accent); }
.mark-model { border-radius: 3px; background: var(--text); }
.mark-poll { border-radius: 50%; border: 2px solid var(--muted); }
.mark-result { width: 3px; height: 16px; border-radius: 2px; background: #34c759; margin: 0 4px; }

/* Proof */
.proof { margin: 0; background: var(--card); border-radius: var(--radius-lg); padding: 6px 22px; }
.proof div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; }
.proof div + div { border-top: 1px solid var(--line); }
.proof dt { color: var(--muted); flex: none; }
.proof dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.proof .hash { font-variant-numeric: tabular-nums; }

footer { margin-top: 48px; color: var(--muted); font-size: 13px; max-width: 62ch; }
footer p { margin: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Projector and wide screens */
@media (min-width: 900px) {
  main { padding-top: 88px; }
  .proposal { padding: 28px; }
}
