:root {
  --bg: #f6f5f1;
  --card: #ffffff;
  --text: #1d1d1b;
  --muted: #5f5e58;
  --line: #dddbd3;
  --accent: #b77a00;
  --accent-strong: #8f5f00;
  --accent-text: #ffffff;
  --error: #b3261e;
  --ok: #2e6b30;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161614;
    --card: #20201d;
    --text: #ecebe6;
    --muted: #a6a59e;
    --line: #3a3934;
    --accent: #e8a317;
    --accent-strong: #f2b940;
    --accent-text: #1d1d1b;
    --error: #f2b8b5;
    --ok: #9fd6a0;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main, header.site, footer.site {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 16px;
}
header.site {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  padding-bottom: 1rem;
}
.brand {
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text);
  text-decoration: none;
}
.bolt { color: var(--accent); }
.tagline { color: var(--muted); font-size: .95rem; }
h1 { font-size: 1.6rem; line-height: 1.25; margin: .5rem 0 .75rem; }
p.lead { color: var(--muted); margin-top: 0; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1rem 0;
}
label { display: block; font-weight: 600; margin: 1rem 0 .3rem; }
label:first-child { margin-top: 0; }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: .88rem; }
input[type=text], input[type=email], select {
  width: 100%;
  font: inherit;
  padding: .6rem .7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
}
input:focus, select:focus, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.row { display: grid; grid-template-columns: 1fr 7rem; gap: .75rem; }
.row label { margin-top: 1rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; margin-top: 1.25rem; }
.check input { margin-top: .3rem; }
button {
  font: inherit;
  font-weight: 600;
  margin-top: 1.25rem;
  padding: .7rem 1.3rem;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-text);
  cursor: pointer;
}
button:hover { background: var(--accent-strong); }
button.secondary { background: transparent; color: var(--text); border: 1px solid var(--line); }
fieldset.card { min-width: 0; }
legend { font-weight: 700; padding: 0 .35rem; margin-left: -.35rem; }
button.link {
  background: none;
  color: var(--accent-strong);
  padding: 0;
  margin-top: 1rem;
  font-weight: 400;
  text-decoration: underline;
}
button.link:hover { background: none; color: var(--text); }
.more { display: flex; gap: .9rem; align-items: center; flex-wrap: wrap; margin: 0 0 1rem; }
.more button { margin-top: 0; flex: none; }
.more .hint { flex: 1 1 16rem; }
ul.addresses { padding-left: 1.2rem; margin: .5rem 0; }
.error { color: var(--error); font-size: .9rem; margin-top: .25rem; }
.alert { border-left: 4px solid var(--error); padding: .5rem .9rem; background: var(--card); }
.ok { color: var(--ok); font-weight: 600; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.address { font-weight: 600; }
footer.site { color: var(--muted); font-size: .85rem; padding-top: 1rem; padding-bottom: 2rem; }
footer.site a, main a { color: var(--accent-strong); }
details { margin-top: 1rem; }
summary { cursor: pointer; font-weight: 600; }
@media (max-width: 30rem) {
  .row { grid-template-columns: 1fr; gap: 0; }
}
