/* WINDRABBIT — declassified dossier theme
   Palette: paper #e8dfc8 · ink #1c1a16 · stamp #a4231b · manila #d3bd8a · fade #6b6558 */

@font-face { font-family: "Plex Mono"; font-weight: 400; font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Mono"; font-weight: 400; font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex Mono"; font-weight: 600; font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Mono"; font-weight: 600; font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Share Tech Mono"; font-weight: 400; font-display: swap;
  src: url("fonts/share-tech-mono-latin-400-normal.woff2") format("woff2"); }

:root {
  --paper: #e8dfc8;
  --paper-2: #efe8d5;
  --ink: #1c1a16;
  --fade: #6b6558;
  --stamp: #a4231b;
  --manila: #d3bd8a;
  --manila-dark: #b9a06a;
  --rule: #1c1a16;
  --head: "Share Tech Mono", "Plex Mono", ui-monospace, monospace;
  --body: "Plex Mono", ui-monospace, "Courier New", monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #b8ae96;
  background-image: radial-gradient(ellipse at top, #c6bca4, #a89e86);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.65;
}

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--stamp); }
:focus-visible { outline: 2px solid var(--stamp); outline-offset: 3px; }

/* ---------- classification banner ---------- */
.banner {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--head);
  text-align: center;
  letter-spacing: 0.18em;
  font-size: 13px;
  padding: 6px 12px;
}

/* ---------- the sheet ---------- */
.sheet {
  position: relative;
  max-width: 860px;
  margin: 28px auto 60px;
  padding: 44px 52px 52px;
  background: var(--paper);
  background-image:
    linear-gradient(rgba(255,255,255,.18), rgba(0,0,0,.04)),
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(28,26,22,.035) 27px 28px);
  box-shadow: 0 1px 0 #fff3 inset, 0 2px 0 #0002, 0 14px 30px #0004;
  border-radius: 2px;
}
/* punched holes down the left edge, like a ring-binder page */
.sheet::before {
  content: "";
  position: absolute; left: 14px; top: 60px; bottom: 60px; width: 14px;
  background:
    radial-gradient(circle, #9d927a 0 5px, transparent 5.5px) 0 0 / 14px 180px repeat-y;
  opacity: .7;
}

.letterhead {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px;
  border-bottom: 3px double var(--rule);
  padding-bottom: 14px; margin-bottom: 26px;
}
.letterhead h1 {
  font-family: var(--head); font-weight: 400;
  font-size: clamp(30px, 6vw, 48px); letter-spacing: .12em; line-height: 1; margin: 0;
}
.letterhead .sub { color: var(--fade); font-size: 12px; margin-top: 8px; }
.letterhead nav { font-family: var(--head); font-size: 14px; text-align: right; }
.letterhead nav a { margin-left: 14px; }

/* ---------- stamps ---------- */
.stamp {
  display: inline-block;
  font-family: var(--head);
  color: var(--stamp);
  border: 3px solid var(--stamp);
  padding: 2px 12px;
  letter-spacing: .16em;
  font-size: 20px;
  transform: rotate(-6deg);
  opacity: .88;
  mix-blend-mode: multiply;
  text-transform: uppercase;
  white-space: nowrap;
}
.stamp.small { font-size: 12px; border-width: 2px; padding: 1px 7px; transform: rotate(-3deg); }
.stamp.ink { color: var(--ink); border-color: var(--ink); }

/* the one memorable moment: the stamp lands once on the home page */
.hero-stamp { position: absolute; right: 44px; top: 112px; animation: thud .45s cubic-bezier(.2,.9,.3,1.2) .25s both; }
@keyframes thud { from { transform: rotate(-6deg) scale(2.4); opacity: 0; } to { transform: rotate(-6deg) scale(1); opacity: .88; } }
@media (prefers-reduced-motion: reduce) { .hero-stamp { animation: none; } }

/* ---------- redactions ---------- */
.redact {
  background: var(--ink); color: var(--ink);
  padding: 0 .15em; border-radius: 1px; cursor: help;
  transition: color .15s, background .15s;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.redact:hover, .redact:focus, .redact.open { background: #c9bf9f; color: var(--ink); }
.redact-bar { display: inline-block; background: var(--ink); height: 1em; vertical-align: -0.15em; }

/* ---------- index: case list ---------- */
.intro { max-width: 60ch; margin: 0 0 28px; }
.intro p { margin: 0 0 10px; }

.folder { margin-top: 10px; }
.folder-tab {
  display: inline-block; background: var(--manila); border: 1px solid var(--manila-dark); border-bottom: 0;
  padding: 5px 18px 4px; font-family: var(--head); letter-spacing: .12em; font-size: 14px;
  border-radius: 6px 6px 0 0;
}
.folder-body {
  background: var(--manila); border: 1px solid var(--manila-dark);
  padding: 8px 18px 14px; border-radius: 0 4px 4px 4px;
}

.cases { width: 100%; border-collapse: collapse; }
.cases th {
  font-family: var(--head); font-weight: 400; text-align: left; font-size: 12px; letter-spacing: .1em;
  padding: 8px 8px 6px; border-bottom: 1px solid var(--rule); color: #3d3829;
}
.cases td { padding: 11px 8px; border-bottom: 1px dashed #8b7a4a; vertical-align: top; }
.cases tr:last-child td { border-bottom: 0; }
.cases .no { font-family: var(--head); white-space: nowrap; }
.cases .title a { font-weight: 600; }
.cases .title .sum { display: block; color: #4a4332; font-size: 13px; margin-top: 3px; max-width: 46ch; }
.cases .date { white-space: nowrap; color: #4a4332; }
.cases tbody tr:hover { background: #dcc895; }

.tag { font-family: var(--head); font-size: 12px; letter-spacing: .1em; border: 1px solid currentColor; padding: 0 6px; white-space: nowrap; }
.tag.open { color: #1f5a2a; }
.tag.closed { color: var(--fade); }
.tag.cold { color: #3b4f7a; }
.tag.restricted { color: var(--stamp); }

.empty { padding: 26px 8px; font-family: var(--head); }

/* ---------- report page ---------- */
.report-head { position: relative; margin-bottom: 26px; padding-right: 150px; }
.report-head .case { font-family: var(--head); color: var(--fade); letter-spacing: .12em; font-size: 13px; }
.report-head h2 { font-family: var(--head); font-weight: 400; font-size: clamp(24px, 4.4vw, 34px); line-height: 1.15; margin: 6px 0 14px; letter-spacing: .02em; }
.report-head .stamp { position: absolute; right: 0; top: 0; }

.meta { display: grid; grid-template-columns: max-content 1fr; gap: 3px 18px; font-size: 13px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 10px 0; margin-bottom: 30px; }
.meta dt { color: var(--fade); font-family: var(--head); letter-spacing: .08em; }
.meta dd { margin: 0; }

.doc { max-width: 68ch; }
.doc h1, .doc h2, .doc h3, .doc h4 { font-family: var(--head); font-weight: 400; line-height: 1.25; margin: 1.8em 0 .6em; }
.doc h1 { font-size: 24px; border-bottom: 1px solid var(--rule); padding-bottom: 4px; }
.doc h2 { font-size: 20px; }
.doc h3 { font-size: 17px; letter-spacing: .04em; }
.doc p { margin: 0 0 1em; }
.doc ul, .doc ol { padding-left: 1.4em; margin: 0 0 1em; }
.doc li { margin-bottom: .25em; }
.doc blockquote { margin: 1.2em 0; padding: .2em 0 .2em 16px; border-left: 4px solid var(--stamp); color: #3d3829; }
.doc code { background: #d9cfb3; padding: 1px 5px; font-size: .92em; }
.doc pre { background: #d9cfb3; padding: 12px 14px; overflow-x: auto; font-size: 13px; line-height: 1.5; }
.doc pre code { background: none; padding: 0; }
.doc hr { border: 0; border-top: 1px dashed var(--fade); margin: 2em 0; }
.doc img { max-width: 100%; height: auto; display: block; margin: 1.2em 0 .4em; border: 6px solid #f4efe0; box-shadow: 0 2px 6px #0004; filter: sepia(.25) contrast(1.05); }
.doc img + em { display: block; font-size: 12px; color: var(--fade); margin-bottom: 1.2em; }
.doc table { border-collapse: collapse; width: 100%; font-size: 13px; margin: 0 0 1em; }
.doc th, .doc td { border: 1px solid var(--fade); padding: 5px 8px; text-align: left; }
.doc th { font-family: var(--head); font-weight: 400; background: #d9cfb3; }
pre.plain { white-space: pre-wrap; word-wrap: break-word; font-family: var(--body); font-size: 14px; line-height: 1.6; margin: 0; max-width: 78ch; }

.end { text-align: center; font-family: var(--head); letter-spacing: .3em; margin-top: 44px; color: var(--fade); }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 3px double var(--rule); margin-top: 34px; padding-top: 14px; font-size: 12px; color: var(--fade); }

/* ---------- 404 ---------- */
.denied { text-align: center; padding: 30px 0 10px; }
.denied .stamp { font-size: 34px; margin-bottom: 26px; }
.denied p { max-width: 46ch; margin: 0 auto 12px; }

/* ---------- small screens ---------- */
@media (max-width: 680px) {
  .sheet { margin: 0 0 40px; padding: 28px 18px 36px 34px; border-radius: 0; }
  .sheet::before { left: 8px; }
  .letterhead { flex-direction: column; align-items: flex-start; }
  .letterhead nav a { margin: 0 14px 0 0; }
  .hero-stamp { position: static; display: inline-block; margin: 0 0 18px; }
  .report-head { padding-right: 0; }
  .report-head .stamp { position: static; margin-bottom: 14px; }
  .cases thead { display: none; }
  .cases, .cases tbody, .cases tr, .cases td { display: block; width: 100%; }
  .cases tr { padding: 10px 0; border-bottom: 1px dashed #8b7a4a; }
  .cases td { border: 0; padding: 2px 0; }
  .meta { grid-template-columns: 1fr; }
  .meta dt { margin-top: 6px; }
}
