:root {
  --ink: #172821;
  --forest: #183229;
  --forest-soft: #29473c;
  --paper: #f5ecd9;
  --paper-soft: #fbf6eb;
  --terracotta: #9b4939;
  --sage: #6d7b64;
  --gold: #a98546;
  --line: rgba(64, 54, 37, .24);
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper) url("forensic-archive-background.png") center top / cover fixed no-repeat;
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.55;
}
a { color: inherit; }

.site-masthead {
  width: 100%;
  background: var(--forest);
  color: #f8f0df;
  border-bottom: 2px solid var(--gold);
}
.site-masthead__inner {
  width: min(100% - 40px, 1380px);
  min-height: 112px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  font-family: Poppins, sans-serif;
}
.site-masthead__back,
.site-masthead__context {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
}
.site-masthead__back { justify-self: start; }
.site-masthead__context { justify-self: end; text-align: right; color: #dbcba7; }
.site-masthead__brand {
  display: grid;
  justify-items: center;
  gap: 5px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .7rem;
}
.site-masthead__brand img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
}
.site-masthead__motto { color: #c5a968; font-size: .56rem; }

.casefile {
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
  padding: clamp(64px, 8vw, 116px) 0 70px;
}
.hero { text-align: center; max-width: 850px; margin: 0 auto 46px; }
.eyebrow {
  margin: 0 0 18px;
  color: var(--forest-soft);
  font-family: Poppins, sans-serif;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: .98;
}
.hero-rule { width: 74px; border: 0; border-top: 4px solid var(--terracotta); margin: 26px auto; }
.dek { max-width: 700px; margin: 0 auto; font-size: clamp(1.2rem, 2vw, 1.55rem); }

.dossiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.dossier {
  min-height: 270px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  background: rgba(251, 246, 235, .94);
  border: 1px solid var(--line);
  border-left: 8px solid var(--forest-soft);
  box-shadow: 0 12px 26px rgba(43, 34, 22, .12);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.dossier:nth-child(even) { border-left-color: var(--terracotta); }
.dossier:hover,
.dossier:focus-visible {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 18px 36px rgba(43, 34, 22, .18);
  outline: none;
}
.dossier__copy { padding: 30px 10px 26px 30px; display: flex; flex-direction: column; }
.dossier__topline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--forest-soft);
  font-family: Poppins, sans-serif;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.dossier__number {
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--forest-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: .78rem;
}
.dossier h2 { margin: 0 0 12px; font-size: clamp(1.55rem, 2.4vw, 2.1rem); line-height: 1.08; font-weight: 600; }
.dossier p { margin: 0; font-size: 1rem; }
.dossier__action {
  margin-top: auto;
  padding-top: 22px;
  color: var(--terracotta);
  font-family: Poppins, sans-serif;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.dossier__study { width: 100%; height: 100%; object-fit: cover; border-left: 1px solid var(--line); filter: saturate(.72) contrast(.94); }

.closing {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 48px auto 0;
  color: var(--forest-soft);
  font-size: 1.15rem;
  font-style: italic;
  text-align: center;
}
.closing::before,
.closing::after { content: ""; flex: 1; border-top: 1px solid var(--gold); }

.site-footer {
  background: var(--forest);
  color: #d9caa7;
  border-top: 2px solid var(--gold);
  padding: 28px 24px;
  font-family: Poppins, sans-serif;
  font-size: .62rem;
  letter-spacing: .14em;
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 850px) {
  .site-masthead__inner { min-height: 96px; grid-template-columns: 1fr auto; }
  .site-masthead__brand { justify-self: start; grid-template-columns: auto 1fr; text-align: left; }
  .site-masthead__brand img { grid-row: 1 / 3; }
  .site-masthead__back { justify-self: end; }
  .site-masthead__context { display: none; }
  .dossiers { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { background-image: none; }
  .site-masthead__inner { width: min(100% - 28px, 1380px); gap: 16px; }
  .site-masthead__brand span:not(.site-masthead__motto) { font-size: .6rem; letter-spacing: .18em; }
  .site-masthead__motto { display: none; }
  .site-masthead__back { font-size: .58rem; letter-spacing: .14em; text-align: right; }
  .casefile { width: min(100% - 28px, 1180px); padding-top: 52px; }
  h1 { font-size: clamp(2.7rem, 14vw, 4.1rem); }
  .dossier { grid-template-columns: 1fr; }
  .dossier__copy { padding: 25px 24px; }
  .dossier__study { height: 190px; border-left: 0; border-top: 1px solid var(--line); }
  .closing { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

