:root {
  --bg: #f7f7fb;
  --card: #ffffff;
  --text: #1d1d2b;
  --muted: #5d5d73;
  --accent: #5b4bdb;
  --accent-text: #ffffff;
  --border: #dcdce8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14141d;
    --card: #1e1e2b;
    --text: #ececf5;
    --muted: #a3a3b8;
    --accent: #8b7dff;
    --accent-text: #14141d;
    --border: #33334a;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
.site-header, .site-footer, main {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px;
}
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  padding-bottom: 8px;
}
.brand img { vertical-align: middle; border-radius: 6px; margin-right: 4px; }
.brand { font-weight: 700; font-size: 1.15rem; text-decoration: none; color: var(--text); }
.site-header nav a, .site-footer nav a { margin-left: 16px; }
main { padding-top: 12px; padding-bottom: 32px; }
h1 { font-size: 1.9rem; line-height: 1.25; margin: 0.6em 0 0.3em; }
h2 { font-size: 1.35rem; margin: 1.8em 0 0.4em; }
.lead { color: var(--muted); margin-top: 0; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}
button {
  font: inherit;
  cursor: pointer;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  padding: 10px 16px;
}
button.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); font-weight: 700; }
button:disabled { opacity: 0.5; cursor: not-allowed; }
button:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
textarea {
  width: 100%;
  min-height: 180px;
  font: inherit;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  padding: 10px;
  resize: vertical;
}
details { border-bottom: 1px solid var(--border); padding: 10px 0; }
summary { cursor: pointer; font-weight: 600; }
.site-footer { border-top: 1px solid var(--border); padding-top: 16px; padding-bottom: 32px; color: var(--muted); font-size: 0.92rem; }
.site-footer nav a:first-child { margin-left: 0; }
.updated { color: var(--muted); font-size: 0.92rem; }
details.sect { border-bottom: 1px solid var(--border); padding: 4px 0; }
details.sect > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; }
details.sect > summary::-webkit-details-marker { display: none; }
details.sect > summary::after { content: "+"; font-size: 1.4rem; color: var(--muted); }
details.sect[open] > summary::after { content: "\2212"; }
details.sect > summary h2 { margin: 0.5em 0; font-size: 1.15rem; }
.more { margin: 20px 0 8px; color: var(--muted); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
select, input[type="text"], input[type="number"], input[type="datetime-local"] {
  font: inherit; padding: 8px; border-radius: 8px; border: 1px solid var(--border); background: var(--card); color: var(--text);
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
