:root {
  color-scheme: light;
  color: #241b36;
  background: #f7f6fa;
  font: 17px/1.55 system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; }
header, main, footer { max-width: 740px; margin: 0 auto; padding: 1.1rem 1.25rem; }
header { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; border-bottom: 1px solid #ded9e9; }
nav { display: flex; gap: 0.9rem; flex-wrap: wrap; }
a { color: #4b2c85; text-underline-offset: 0.15em; }
.brand { font-size: 1.15rem; font-weight: 750; color: #241b36; text-decoration: none; }
main { padding-top: 2rem; }
h1, h2 { line-height: 1.2; }
h1 { font-size: clamp(2rem, 6vw, 2.8rem); margin: 0 0 0.9rem; letter-spacing: -0.04em; }
h2 { margin-top: 1.8rem; font-size: 1.35rem; }
p, ul { margin: 0.65rem 0; }
footer { color: #534663; border-top: 1px solid #ded9e9; margin-top: 2rem; }
form { margin: 1rem 0; }
fieldset { margin: 0; padding: 1.1rem; border: 1px solid #ded9e9; border-radius: 0.55rem; background: #fff; }
label { display: block; font-weight: 600; margin-bottom: 0.4rem; }
input:not([type=checkbox]), textarea, select { display: block; width: 100%; color: inherit; background: #fff; border: 1px solid #766786; border-radius: 0.3rem; padding: 0.6rem; font: inherit; margin-bottom: 0.95rem; }
.check { display: flex; gap: 0.55rem; align-items: start; margin: 0.7rem 0 1rem; }
.check input { margin-top: 0.38rem; }
button, .button {
  display: inline-block; border: 1px solid transparent; background: #4b2c85; color: #fff; font: inherit;
  font-weight: 650; text-decoration: none; border-radius: 0.38rem; padding: 0.5rem 0.8rem; margin-right: 0.5rem; cursor: pointer;
}
button:disabled { opacity: 0.5; cursor: default; }
button.secondary { background: #fff; color: #4b2c85; border-color: #b6aac7; }
button.danger { background: #951b36; }
:focus-visible { outline: 3px solid #26745f; outline-offset: 0.2rem; }
.micro { color: #534663; font-size: 0.92rem; }
.error { color: #951b36; }
[role=status] { min-height: 1.6em; }
