
:root {
  color-scheme: light;
  font: 400 0.875rem/1.5 system-ui, sans-serif;
  background: #f7f7fa;
  color: #282633;
  --muted: #696573;
  --line: #e9e6ef;
  --purple: #7750bb;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.layout { max-inline-size: 44rem; margin-inline: auto; padding: 0 1rem 1.5rem; }
.layout.auth { max-inline-size: 28rem; }
.site-header, .site-footer, .languages { display: flex; align-items: center; flex-wrap: wrap; }
.site-header { min-height: 3.5rem; justify-content: space-between; gap: 0.75rem; margin-bottom: 1rem; }
.wordmark { font-size: 2.381rem; font-weight: 500; letter-spacing: -2px; line-height: 1.15; }
.languages { gap: 0.25rem; }
.languages button {
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  padding: 0 0.75rem;
}
.languages button[aria-pressed="true"] { color: var(--purple); background: #f6f1fd; border-color: var(--line); }
.card { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 1.5rem; overflow-wrap: anywhere; }
h1, h2 { font-weight: 500; }
h1 { font-size: 1.429rem; line-height: 1.3; margin: 0 0 0.75rem; }
h2 { font-size: 1.214rem; line-height: 1.4; margin: 1.5rem 0 0.5rem; }
p, ol { margin: 0 0 0.75rem; }
li + li { margin-top: 0.5rem; }
p:last-child { margin-bottom: 0; }
.site-footer { gap: 0.5rem 1.25rem; padding: 0.5rem 0; }
.site-footer a { display: inline-flex; min-height: 44px; align-items: center; }
a { color: var(--purple); text-underline-offset: 3px; }
button, input { font: inherit; }
button, .button { cursor: pointer; min-height: 44px; font-weight: 500; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 13px;
  padding: 0.55rem 1rem;
  background: var(--purple);
  color: white;
  text-decoration: none;
  transition: background-color 150ms cubic-bezier(.2, 0, 0, 1);
}
.button:hover { background: #6941ab; }
.button:active { background: #5c369c; }
.button:disabled { background: #f0edf5; color: var(--muted); border-color: var(--line); cursor: default; }
:focus-visible { outline: 3px solid #7750bb66; outline-offset: 3px; }
.hint { color: var(--muted); }
form { display: grid; gap: 0.75rem; margin-block: 1rem; }
label { font-size: 0.857rem; font-weight: 500; display: grid; gap: 0.25rem; }
input {
  min-height: 48px;
  width: 100%;
  border: 1px solid #e1dce9;
  border-radius: 11px;
  background: white;
  color: inherit;
  font-size: 1.143rem;
  padding: 0.625rem 0.75rem;
}
.state:not(:empty) { padding: 0.75rem; background: #f6f1fd; border-radius: 11px; }
.state[data-kind="error"]:not(:empty) { color: #282633; background: #fceeee; border: 1px solid #e5b6be; }
@media (max-width: 380px) { .card { padding: 1rem; } }
@media (prefers-reduced-motion: reduce) { .button { transition: none; } }
