@import url("https://fonts.googleapis.com/css2?family=Special+Elite&family=IBM+Plex+Sans+Condensed:wght@400;500;700&display=swap");

:root {
  --paper: #efe7d1;
  --paper-shadow: #d3c9ad;
  --ink: #23201a;
  --muted-ink: #4a463d;
  --stamp: #7d1d1d;
  --stamp-deep: #551010;
  --edge: #b8ad91;
  --bg: #1b1b1f;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body.dossier-body {
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.08), transparent 40%),
    radial-gradient(circle at 80% 85%, rgba(255, 180, 90, 0.06), transparent 35%),
    var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  padding: clamp(0.8rem, 2vw, 1.4rem);
}

.dossier-page {
  position: relative;
  width: min(64rem, 100%);
  margin: 0 auto;
  background:
    linear-gradient(rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.07)),
    repeating-linear-gradient(
      to bottom,
      rgba(87, 82, 70, 0.07) 0,
      rgba(87, 82, 70, 0.07) 1px,
      transparent 1px,
      transparent 28px
    ),
    var(--paper);
  border: 1px solid var(--edge);
  box-shadow:
    0 0 0 2px rgba(0, 0, 0, 0.2),
    0 20px 45px rgba(0, 0, 0, 0.45);
  padding: clamp(0.9rem, 2.8vw, 1.8rem);
  overflow: hidden;
}

.dossier-page::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(0, 0, 0, 0.12) 0.6px, transparent 0.6px);
  background-size: 3px 3px;
  opacity: 0.2;
}

.dossier-header,
.dossier-content,
.dossier-footer {
  position: relative;
  z-index: 1;
}

.dossier-return {
  display: inline-block;
  text-decoration: none;
  border: 1px solid #605845;
  color: #1f1a11;
  background: rgba(239, 231, 209, 0.78);
  padding: 0.42rem 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.dossier-return:hover,
.dossier-return:focus-visible {
  outline: none;
  background: rgba(222, 211, 181, 0.92);
}

.dossier-classification {
  margin: 0;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-ink);
}

h1,
h2 {
  margin: 0;
  font-family: "Special Elite", "Courier New", monospace;
  text-transform: uppercase;
}

h1 {
  margin-top: 0.4rem;
  font-size: clamp(1.35rem, 4vw, 2.1rem);
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.dossier-meta {
  margin-top: 0.72rem;
  display: grid;
  gap: 0.44rem;
  border: 1px solid rgba(90, 81, 65, 0.5);
  background: rgba(255, 255, 255, 0.28);
  padding: 0.62rem;
}

.dossier-meta p {
  margin: 0;
  display: grid;
  grid-template-columns: 6.6rem 1fr;
  gap: 0.5rem;
  font-size: 0.96rem;
}

.dossier-meta span {
  font-weight: 700;
  text-transform: uppercase;
}

.dossier-warning {
  margin: 0.8rem 0 0;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #423d33;
}

.stamp {
  position: absolute;
  font-family: "Special Elite", "Courier New", monospace;
  border: 2px solid var(--stamp);
  color: var(--stamp-deep);
  padding: 0.26rem 0.55rem;
  font-size: clamp(0.72rem, 2vw, 0.86rem);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  background: rgba(125, 29, 29, 0.06);
}

.stamp-top {
  top: 0.55rem;
  right: 0.5rem;
  transform: rotate(-7deg);
}

.stamp-restricted {
  top: 2.5rem;
  right: 0.1rem;
  transform: rotate(5deg);
}

.dossier-content {
  margin-top: 1rem;
  border-top: 2px solid rgba(88, 80, 65, 0.55);
  padding-top: 0.55rem;
}

.dossier-section {
  padding: 0.8rem 0;
  border-bottom: 1px dashed rgba(86, 79, 66, 0.45);
}

.dossier-section h2 {
  font-size: clamp(1rem, 3.1vw, 1.3rem);
  letter-spacing: 0.04em;
}

.dossier-section p {
  margin: 0.6rem 0 0;
  font-size: 1rem;
  line-height: 1.45;
}

.dossier-section ul {
  margin: 0.58rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
}

.dossier-section li {
  line-height: 1.42;
}

.quote-block {
  border-left: 3px solid rgba(81, 72, 58, 0.66);
  padding-left: 0.7rem;
  font-style: italic;
}

.directive {
  font-family: "Special Elite", "Courier New", monospace;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dossier-footer {
  margin-top: 0.9rem;
  border-top: 1px solid rgba(92, 83, 68, 0.52);
  padding-top: 0.6rem;
}

.dossier-footer p {
  margin: 0.35rem 0;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

@media (max-width: 640px) {
  .stamp {
    position: static;
    display: inline-block;
    margin: 0.5rem 0.4rem 0 0;
    transform: none;
  }

  .dossier-meta p {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}
