:root {
  color-scheme: light;
  font-family: Arial, sans-serif;
  color: #2c2420;
  background: #e9deca;
  --paper: #f8f1e2;
  --ink: #2c2420;
  --muted: #584b41;
  --line: #baaa90;
  --wine: #732d29;
  --serif: "Noto Serif Hebrew", "Times New Roman", "David", serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main { max-width: 64rem; margin: auto; padding: 1rem clamp(1rem, 4vw, 2.5rem) 3rem; }
header { border-block: 4px double var(--ink); padding-block: 1rem; margin-block: 1rem; }
h1, h2, h3 { font-family: var(--serif); margin: 0 0 .55rem; line-height: 1.15; }
h1 { font-size: clamp(3.2rem, 12vw, 6.25rem); letter-spacing: -.055em; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.2rem; }
p { margin: .4rem 0 .8rem; line-height: 1.55; overflow-wrap: anywhere; }
.prose { font-family: var(--serif); font-size: 1.18rem; line-height: 1.65; }
.eyebrow, small, #mode { color: var(--muted); font-size: .9rem; font-weight: bold; }
#status:not(:empty) { padding: .65rem; border-inline-start: 4px solid var(--wine); }
.sheet { background: var(--paper); border: 1px solid var(--line); padding: clamp(.8rem, 3vw, 1.5rem); margin-block: .85rem; }
nav { display: flex; gap: .25rem .85rem; flex-wrap: wrap; margin-block: 1rem; }
a { color: var(--wine); padding-block: .55rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .65rem; }
.card { min-width: 0; border: 1px solid var(--line); padding: .75rem; background: #fff8eb; }
.evidence { border-block-start: 4px solid #987750; }
.suspect { border-block-start: 4px solid var(--wine); }
.suspect button { font-family: var(--serif); font-weight: bold; font-size: 1.3rem; width: 100%; }
.suspect button[aria-pressed=true] { background: var(--ink); color: var(--paper); }
button, input, select, textarea { font: inherit; max-width: 100%; }
button { background: var(--wine); color: #fffaf0; border: 1px solid transparent; cursor: pointer; min-height: 2.75rem; padding: .45rem .8rem; margin: .2rem 0 .2rem .25rem; }
button:disabled { background: #e5d9c3; color: #63564a; cursor: default; }
input:not([type=checkbox]), textarea, select { display: block; width: 100%; background: #fffaf0; color: var(--ink); border: 1px solid var(--line); min-height: 2.75rem; padding: .45rem; margin: .25rem 0 .65rem; }
textarea { min-height: 4rem; resize: vertical; }
:focus-visible { outline: 3px solid #2d635e; outline-offset: 2px; }
form { margin-block: .8rem; }
label { display: block; }
.check { display: flex; align-items: center; gap: .55rem; min-height: 2.75rem; }
fieldset { margin: 0 0 .7rem; min-width: 0; border: 1px solid var(--line); }
ol { padding-inline-start: 1.5rem; overflow-wrap: anywhere; }
li { border-block-end: 1px solid var(--line); padding-block: .6rem; }
.quiet { background: transparent; border: 1px solid var(--line); color: var(--wine); }

.monogram {
  display: inline-grid;
  place-items: center;
  min-width: 2.2rem;
  min-height: 2.2rem;
  margin-inline-end: .45rem;
  border-radius: 50%;
  color: white;
  background: #59364d;
  font: bold .8rem Arial, sans-serif;
}
.monogram.aird { background: #365572; }
.monogram.pia { background: #3a594a; }
.monogram.walter { background: #694a33; }
#entries li { padding-block: 1rem; }
#entries .reply { padding: .6rem .8rem; border-inline-start: 3px solid var(--line); background: #fff8eb; }
#sources { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr)); }
nav a[aria-current] { font-weight: bold; text-decoration-thickness: .15em; }
nav .unread::after { content: " •"; font-weight: bold; }
@media (max-width: 680px) {
  main { padding-bottom: calc(6.5rem + env(safe-area-inset-bottom)); }
  header { padding-block: .45rem; margin-block: .3rem; }
  #game nav {
    position: fixed;
    z-index: 2;
    inset: auto 0 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: .15rem .35rem env(safe-area-inset-bottom);
    background: var(--paper);
    border-block-start: 1px solid var(--line);
  }
  #game nav a { display: grid; place-content: center; grid-auto-flow: column; gap: .2rem; min-height: 2.65rem; text-align: center; }
  #game nav a[aria-current] { background: var(--wine); color: white; }
  #suspects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .suspect button { font-size: 1rem; }
}
