:root {
  color-scheme: dark;
  --ink: #101615;
  --deep: #0b2420;
  --deep-soft: #143830;
  --paper: #e8ddc4;
  --paper-muted: #b9ad95;
  --gold: #c7a76d;
  --line: rgba(232, 221, 196, .16);
  --danger: #d88f79;
  font-family: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--ink); }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 82% 0, rgba(36, 89, 76, .34), transparent 30rem), linear-gradient(145deg, #0a1715, var(--ink)); color: var(--paper); }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.shell { width: min(100%, 46rem); min-height: 100vh; margin: auto; padding: max(1.25rem, env(safe-area-inset-top)) 1.1rem max(2rem, env(safe-area-inset-bottom)); }
.eyebrow { margin: 0 0 .65rem; color: var(--gold); font: 700 .67rem/1.2 Arial, sans-serif; letter-spacing: .19em; text-transform: uppercase; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 2.4rem; }
.wordmark { border: 1px solid var(--line); border-radius: 999px; padding: .52rem .8rem; color: var(--paper-muted); font: 700 .64rem/1 Arial, sans-serif; letter-spacing: .11em; text-decoration: none; text-transform: uppercase; }
.seal { width: 2.7rem; height: 2.7rem; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; color: var(--gold); font-size: 1.1rem; }
.hero { padding: 1.4rem; border: 1px solid var(--line); background: linear-gradient(150deg, rgba(26, 63, 54, .92), rgba(12, 22, 21, .94)); box-shadow: 0 1.5rem 4rem rgba(0,0,0,.26); }
.gate-shell { display: flex; flex-direction: column; justify-content: center; }
.gate { max-width: 35rem; margin: auto; padding: 2rem 1.4rem; border: 1px solid var(--line); background: linear-gradient(150deg, rgba(26, 63, 54, .92), rgba(12, 22, 21, .94)); box-shadow: 0 1.5rem 4rem rgba(0,0,0,.26); text-align: center; }
.gate h1 { max-width: none; margin: .65rem auto 1.2rem; font-size: clamp(2.7rem, 11vw, 4.5rem); }
.gate .lede { margin: auto; }
.gate-seal { margin: 0 auto 1.7rem; }
.access-form { margin: 1.8rem 0 0; text-align: left; }
.access-form label { text-align: left; }
.access-form .button { margin-top: .8rem; }
h1, h2, h3 { font-weight: 400; }
h1 { max-width: 10ch; margin: .1rem 0 1.1rem; font-size: clamp(3rem, 13vw, 5.4rem); line-height: .84; letter-spacing: -.06em; }
h2 { margin: 0; font-size: clamp(2rem, 8vw, 3.5rem); line-height: .95; letter-spacing: -.05em; }
h3 { margin: 0 0 .5rem; font-size: 1.15rem; }
.lede { max-width: 34ch; margin: 0; color: var(--paper-muted); font-size: 1.05rem; line-height: 1.55; }
.notice { margin: 1.4rem 0 0; padding: .85rem 0 0; border-top: 1px solid var(--line); color: var(--paper-muted); font: .78rem/1.5 Arial, sans-serif; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; margin-top: 1.5rem; padding: .9rem 1.15rem; border: 1px solid var(--gold); background: var(--gold); color: var(--ink); font: 700 .72rem/1 Arial, sans-serif; letter-spacing: .09em; text-decoration: none; text-transform: uppercase; }
.button.subtle { margin-top: 0; border-color: var(--line); background: transparent; color: var(--paper); }
.progress { margin: 2rem 0 1.25rem; }
.progress-top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; font: .72rem/1 Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.progress-top strong { color: var(--gold); font-size: 1rem; }
.bar { height: 3px; margin-top: .65rem; overflow: hidden; background: var(--line); }
.bar span { display: block; height: 100%; background: var(--gold); transition: width .25s ease; }
.days { display: grid; grid-template-columns: repeat(6, 1fr); gap: .55rem; }
.day { aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--line); background: rgba(255,255,255,.025); color: var(--paper-muted); font: 700 .72rem/1 Arial, sans-serif; text-decoration: none; }
.day.active { border-color: var(--gold); color: var(--gold); }
.day.done::after { content: "•"; position: absolute; transform: translateY(1rem); color: var(--gold); }
.day { position: relative; }
.dossier { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.day-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.number { color: var(--gold); font: 700 .7rem/1 Arial, sans-serif; letter-spacing: .12em; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 1.5rem; border: 1px solid var(--line); }
.tab { border: 0; border-right: 1px solid var(--line); padding: 1rem .55rem; background: transparent; color: var(--paper-muted); font: 700 .69rem/1 Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.tab:last-child { border-right: 0; }
.tab[aria-selected="true"] { background: var(--deep-soft); color: var(--paper); }
.panel { padding: 1.25rem; border: 1px solid var(--line); background: rgba(255,255,255,.025); }
.clue { width: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1rem 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--paper); text-align: left; }
.clue:last-child { border-bottom: 0; }
.clue small { color: var(--gold); font: 700 .63rem/1 Arial, sans-serif; letter-spacing: .09em; text-transform: uppercase; }
.clue p { max-width: 29ch; margin: .55rem 0 0; color: var(--paper-muted); font-size: .94rem; line-height: 1.5; }
.chev { color: var(--gold); font: 1.2rem/1 Arial, sans-serif; }
.prompt { margin: 0 0 1.15rem; color: var(--paper-muted); line-height: 1.55; }
label { display: block; margin-bottom: .5rem; color: var(--gold); font: 700 .64rem/1 Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
input { width: 100%; padding: 1rem; border: 1px solid var(--line); border-radius: 0; outline: none; background: #0b1715; color: var(--paper); }
input:focus { border-color: var(--gold); }
.submit { width: 100%; margin-top: .75rem; }
.feedback { min-height: 1.25rem; margin: .85rem 0 0; font: .8rem/1.45 Arial, sans-serif; }
.feedback.ok { color: #b9d7b0; }
.feedback.no { color: var(--danger); }
.empty { color: var(--paper-muted); line-height: 1.55; }
.nav { display: flex; justify-content: space-between; gap: .75rem; margin-top: 1.35rem; }
.nav a { padding: .8rem 0; color: var(--paper-muted); font: .68rem/1 Arial, sans-serif; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.nav a:last-child { text-align: right; }
.footer { margin-top: 2.5rem; color: #74817b; font: .68rem/1.5 Arial, sans-serif; text-align: center; }

@media (min-width: 44rem) { .shell { padding-left: 2rem; padding-right: 2rem; } .days { grid-template-columns: repeat(8, 1fr); } .hero, .panel { padding: 1.8rem; } }
