:root {
  color-scheme: light;
  --ink: #17211b;
  --muted: #5c675f;
  --paper: #f3f0e8;
  --panel: #fffdf8;
  --line: #d7d1c4;
  --accent: #b84b2f;
  --accent-dark: #863420;
  --success: #22613e;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Georgia, serif; }
.shell { min-height: 100vh; display: grid; place-items: center; max-width: 720px; margin: auto; padding: 8vw 1.25rem; }
.story { max-width: 640px; }
.kicker { color: var(--accent-dark); font: 700 .72rem/1.2 Arial, sans-serif; letter-spacing: .12em; }
h1 { font-size: clamp(2.8rem, 6vw, 5.7rem); line-height: .96; letter-spacing: -.055em; margin: 1.2rem 0; max-width: 700px; }
h2 { font-size: 2rem; margin: .7rem 0; }
.lead { color: var(--muted); font-size: 1.25rem; line-height: 1.55; max-width: 560px; }
.clue { margin-top: 3rem; border-top: 2px solid var(--ink); padding-top: 1rem; font-size: 1rem; line-height: 1.5; }
.clue-label { font: 700 .72rem Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.clue strong { overflow-wrap: anywhere; }
.login-panel { background: var(--panel); border: 1px solid var(--line); padding: clamp(1.5rem, 4vw, 3rem); box-shadow: 12px 12px 0 #ded8ca; }
.panel-top { display: flex; align-items: center; gap: .6rem; font: 700 .75rem Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.muted, .fine-print { color: var(--muted); line-height: 1.5; }
form { margin-top: 2rem; }
label { display: block; font: 700 .86rem Arial, sans-serif; margin: 1.2rem 0 .45rem; }
input { width: 100%; min-height: 48px; border: 1px solid #aaa397; background: #fff; padding: .75rem; font: 1rem Georgia, serif; }
button { width: 100%; min-height: 48px; margin-top: 1.5rem; border: 0; background: var(--accent); color: white; cursor: pointer; font: 700 .95rem Arial, sans-serif; }
button:hover { background: var(--accent-dark); }
button:focus-visible, input:focus-visible, .back:focus-visible { outline: 3px solid #e0a11a; outline-offset: 3px; }
.result { margin-top: 1.3rem; padding: .8rem; line-height: 1.4; }
.success { color: var(--success); background: #e5f1e8; }
.error { color: #8b241a; background: #fae7e2; }
.fine-print { font: .75rem Arial, sans-serif; margin-top: 1.5rem; }
.admin-note { max-width: 760px; margin: 12vh auto; padding: 0 7vw; }
.note-copy { font-size: 1.35rem; line-height: 1.6; }
code { display: inline-block; margin: 1rem 0; padding: 1rem; background: var(--ink); color: #f3e9c9; font: 700 1.1rem/1.4 monospace; overflow-wrap: anywhere; }
.back { display: block; color: var(--accent-dark); font: 700 .9rem Arial, sans-serif; margin-top: 2rem; }
@media (max-width: 760px) {
  .shell { padding: 3rem 1.25rem; }
  h1 { font-size: clamp(2.8rem, 15vw, 4.5rem); }
  .login-panel { box-shadow: 7px 7px 0 #ded8ca; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
