:root { --bg: #f7f5f0; --paper: #fffdf8; --ink: #23201c; --muted: #6b655c; --line: #ddd6c8; --accent: #8a3b12; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #161514; --paper: #1e1c1a; --ink: #e9e4da; --muted: #a39b8e; --line: #3a3632; --accent: #e39a6b; }
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 1rem;
  background: var(--bg); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.kortti {
  width: 100%; max-width: 22rem; padding: 2rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
}
h1 { margin: 0 0 .25rem; letter-spacing: .15em; text-transform: uppercase; }
p { color: var(--muted); margin: 0 0 1.2rem; }
label { display: block; font-weight: 600; margin-bottom: .3rem; }
input {
  width: 100%; padding: .6rem .7rem; font: inherit;
  border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink);
}
button {
  width: 100%; margin-top: 1rem; padding: .65rem; font: inherit; font-weight: 600;
  background: var(--accent); color: #fff; border: 0; border-radius: 6px; cursor: pointer;
}
#virhe { color: #c0392b; margin: 1rem 0 0; }
