:root {
  color-scheme: dark;
  --night: #10141d;
  --panel: #191f2a;
  --line: #424a5a;
  --text: #f5efeb;
  --mute: #c2c5ce;
  --accent: #e6a8b6;
  --serif: Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--text); background: var(--night); font: 1rem/1.6 system-ui,sans-serif; }
main { flex: 1; }
a { color: var(--accent); text-underline-offset: .22em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }
.bar { border-bottom: 1px solid var(--line); }
.bar .wrap,.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-block: 1rem; }
.brand { color: var(--text); font: italic 1.65rem var(--serif); text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: 1.1rem; }
nav a { color: var(--mute); }
.hero { display: grid; grid-template-columns: 1fr minmax(0, .85fr); gap: clamp(2rem, 7vw, 6rem); align-items: center; padding-block: clamp(2.4rem, 8vw, 6rem); }
h1,h2,h3 { margin: 0; font-family: var(--serif); line-height: 1.1; }
h1 { font-weight: 400; font-size: clamp(3rem, 9vw, 7rem); letter-spacing: -.065em; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.22rem; }
.intro > p:not(.location) { max-width: 40ch; }
.location,.meta { color: var(--mute); }
.location { margin: 0 0 .85rem; color: var(--accent); }
.meta,.footer { font-size: .88rem; }
figure { margin: 0; border: 1px solid #626572; padding: .5rem; background: var(--panel); max-width: 28rem; }
figure img { display: block; width: 100%; height: auto; }
button,.button { display: inline-block; padding: .65rem .95rem; background: #79384a; border: 1px solid #b96c80; border-radius: .26rem; color: #fff8f9; text-decoration: none; font: inherit; font-weight: 650; cursor: pointer; }
button:hover,.button:hover { background: #91465b; }
.button span { margin-inline-start: .45rem; }
.footer { border-top: 1px solid var(--line); color: var(--mute); }
.dossier { max-width: 56rem; padding-block: 3rem; }
.case-intro { margin-bottom: 2rem; max-width: 65ch; }
.case-intro h1 { font-size: clamp(3rem, 8vw, 5.6rem); }
.envelope,.panel { margin: 0 0 1rem; border: 1px solid var(--line); border-radius: .36rem; background: var(--panel); }
.envelope > summary { padding: 1rem; cursor: pointer; font: 1.35rem var(--serif); }
.envelope > summary span { color: var(--accent); margin-inline-end: .5rem; }
.inside,.panel { padding: 1rem; }
.inside { border-top: 1px solid var(--line); }
.evidence { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .85rem; }
.evidence article { border: 1px solid var(--line); border-radius: .3rem; padding: .9rem; background: var(--night); }
.evidence p:last-child { margin-bottom: 0; }
form { margin: 1rem 0; }
label { display: block; margin-bottom: .4rem; font-weight: 600; }
.form-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
input, select { max-width: 100%; background: var(--night); border: 1px solid #798295; border-radius: .25rem; color: var(--text); font: inherit; padding: .6rem; }
input { width: 7rem; }
#report-form select { display: block; margin-bottom: 1rem; }
.inside > h2 { margin-top: 1.5rem; }
[role="status"] { color: var(--accent); margin: .45rem 0; }
[role="status"]:empty { display: none; }
.hint summary { color: var(--accent); cursor: pointer; }
.locked { padding: .85rem 1rem; border: 1px dashed var(--line); color: var(--mute); }
.solution { border-color: #b96c80; }
.secondary { background: transparent; }
@media(max-width: 42rem) {
  .wrap { width: calc(100% - 1.6rem); }
  .hero,.evidence { grid-template-columns: 1fr; }
  .hero { gap: 1.5rem; }
  figure { width: min(100%,23rem); }
}
