:root {
  color-scheme: dark;
  font: 16px/1.55 system-ui, sans-serif;
  color: #faf8ff;
  background: #10101a;
  --accent: #c5b8ff;
  --muted: #ccc8dc;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100svh;
  background: radial-gradient(ellipse at 75% 0, #302554 0, transparent 55%), #10101a;
}
header, main, footer { width: min(70rem, calc(100% - 3rem)); margin-inline: auto; }
header { display: flex; align-items: center; justify-content: space-between; padding-block: 1.35rem; border-bottom: 1px solid #ffffff30; }
a { color: inherit; text-underline-offset: .2em; }
.brand { font-size: 1.65rem; font-weight: 850; letter-spacing: -.06em; text-decoration: none; }
.brand span { color: var(--accent); }
main { padding-block: clamp(2.5rem, 7vw, 6rem) 2rem; animation: enter .5s ease-out; }
h1 { font-size: clamp(2.4rem, 8vw, 5.1rem); letter-spacing: -.073em; line-height: .98; margin: 0; }
#intro { color: var(--muted); font-size: clamp(1rem, 2vw, 1.25rem); }
form { display: grid; gap: .85rem; max-width: 26rem; margin-block: 1.8rem; }
label { display: grid; gap: .28rem; font-weight: 650; }
input, button { font: inherit; min-height: 3rem; border-radius: .45rem; }
input { width: 100%; border: 1px solid #827b9e; color: inherit; background: #161420; padding: .6rem .75rem; }
button { background: #c5b8ff; color: #171126; border: 0; font-weight: 800; cursor: pointer; padding: .7rem 1rem; }
button:disabled { cursor: wait; opacity: .75; }
:focus-visible { outline: 3px solid #e5d7ff; outline-offset: 4px; }
small, footer { color: var(--muted); }
#error { color: #ffc3cc; }
#status:empty, #error:empty { display: none; }
#closed { color: var(--muted); max-width: 34rem; }
#intro { max-width: 42rem; }
#actions { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: 1.5rem; }
#actions [aria-current="page"] { color: var(--accent); font-weight: 700; }
footer { display: flex; flex-wrap: wrap; gap: 1rem; padding-bottom: 2rem; font-size: .9rem; }
@keyframes enter { from { opacity: 0; transform: translateY(9px); } }
@media (prefers-reduced-motion: reduce) { main { animation: none; } }
