:root { color-scheme: light dark; --accent: #2563eb; }

* { box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  line-height: 1.6;
}

.site-header {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 1rem;
  max-width: 48rem; margin: 0 auto; padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(127,127,127,.25);
}
.brand { font-weight: 700; font-size: 1.15rem; text-decoration: none; color: inherit; }
.site-nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.site-nav a { text-decoration: none; color: var(--accent); }
.site-nav a:hover { text-decoration: underline; }

.site-main { max-width: 48rem; margin: 0 auto; padding: 2rem 1.5rem; }
.site-footer {
  max-width: 48rem; margin: 0 auto; padding: 1.5rem;
  border-top: 1px solid rgba(127,127,127,.25);
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: .5rem; }
.footer-nav a { text-decoration: none; color: var(--accent); font-size: .9rem; }
.footer-nav a:hover { text-decoration: underline; }

.prose h1 { font-size: 2rem; margin-bottom: .5rem; }
.entry-list { list-style: none; padding: 0; }
.entry-list li { padding: .5rem 0; border-bottom: 1px solid rgba(127,127,127,.2); }
.entry-list a { font-weight: 600; text-decoration: none; color: var(--accent); }
.entry-list a:hover { text-decoration: underline; }
.entry-list .muted { display: block; font-size: .85rem; }
.prose { max-width: 42rem; }
.muted { opacity: .65; }
code { background: rgba(127,127,127,.18); padding: .1em .4em; border-radius: .3em; }

.messages { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.msg { padding: .6rem .9rem; border-radius: .4rem; margin-bottom: .5rem; }
.msg.error { background: rgba(220,38,38,.15); }
.msg.success { background: rgba(22,163,74,.15); }

.survey .question {
  border: 1px solid rgba(127,127,127,.3); border-radius: .5rem;
  padding: 1rem 1.25rem; margin: 0 0 1.25rem;
}
.survey legend { font-weight: 600; padding: 0 .4rem; }
.survey .choice { display: block; margin: .35rem 0; cursor: pointer; }
.survey textarea { width: 100%; font: inherit; padding: .5rem; }
.survey .req { color: #dc2626; }

button {
  font: inherit; font-weight: 600; cursor: pointer;
  background: var(--accent); color: #fff; border: none;
  padding: .6rem 1.4rem; border-radius: .4rem;
}
button:hover { opacity: .9; }
