:root {
  --ink: #17221d;
  --muted: #647068;
  --paper: #e8ebe4;
  --panel: #f3f5ef;
  --line: #b8c0b7;
  --green: #213d30;
  --accent: #9e2b25;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(30, 50, 40, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 50, 40, .035) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
  letter-spacing: .03em;
}

a { color: inherit; }

.security-strip {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  color: #d5ddd7;
  background: #17271f;
  font: 600 10px/1 monospace;
  letter-spacing: .16em;
}

.site-header {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  max-width: 1180px;
  margin: auto;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
}

.identity { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.identity-mark {
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid var(--green); border-radius: 50%;
  font-family: Georgia, serif; font-size: 25px;
}
.identity strong { display: block; font-family: serif; font-size: 19px; letter-spacing: .14em; }
.identity small { display: block; margin-top: 4px; color: var(--muted); font: 8px monospace; letter-spacing: .12em; }

nav { display: flex; align-self: stretch; gap: 30px; }
nav a { position: relative; display: grid; place-items: center; color: #4e5a52; font-size: 13px; text-decoration: none; }
nav a::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; background: transparent; }
nav a:hover, nav a.active { color: var(--ink); }
nav a.active::after { background: var(--accent); }

main { max-width: 1180px; margin: auto; padding: 60px 24px 70px; }

.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 36px; margin-bottom: 42px; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font: 700 11px monospace; letter-spacing: .18em; }
h1 { margin: 0; font: 500 clamp(30px, 5vw, 48px)/1.2 serif; letter-spacing: .13em; }
.lead { max-width: 670px; margin: 16px 0 0; color: var(--muted); font-size: 13px; line-height: 1.9; }

.access-card { min-width: 245px; padding: 16px 18px; border-left: 3px solid var(--accent); background: rgba(255,255,255,.45); }
.access-card span, .access-card small { display: block; color: var(--muted); font-size: 9px; }
.access-card strong { display: block; margin: 5px 0; font: 700 19px monospace; letter-spacing: .12em; }

.toolbar {
  display: grid; grid-template-columns: minmax(240px, 1fr) auto auto; align-items: center; gap: 28px;
  margin-bottom: 22px; padding: 13px 16px; border: 1px solid var(--line); background: rgba(243,245,239,.78);
  font: 10px monospace;
}
.search-box { display: flex; align-items: center; gap: 10px; }
.search-box span { font-size: 20px; }
.search-box input { width: 100%; padding: 7px 2px; border: 0; border-bottom: 1px solid var(--line); outline: none; background: transparent; color: var(--ink); }
.database-status { color: #365b43; font-weight: 700; letter-spacing: .08em; }
.status-light { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #4c805b; box-shadow: 0 0 0 3px rgba(76,128,91,.12); }
.toolbar p { margin: 0; color: var(--muted); }

.archive { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.specimen-card { position: relative; overflow: hidden; border: 1px solid #aeb7ae; background: rgba(246,247,242,.88); box-shadow: 0 8px 24px rgba(33,45,38,.06); transition: transform .25s, box-shadow .25s; }
.specimen-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(33,45,38,.12); }

.specimen-image { position: relative; height: 210px; overflow: hidden; border-bottom: 1px solid #adb5ad; background-color: #27312c; }
.image-a { background: radial-gradient(circle at 48% 60%, #75857b 0 5%, transparent 28%), linear-gradient(155deg, #66746c, #151c18); }
.image-b { background: radial-gradient(circle at 63% 40%, rgba(178,190,179,.25), transparent 7%), linear-gradient(35deg, #101613, #505c54); }
.specimen-image::before { content: ""; position: absolute; inset: 0; opacity: .25; background: repeating-linear-gradient(0deg, transparent 0 3px, #c7d0c8 4px); }
.scan-line { position: absolute; z-index: 2; top: 25%; right: 0; left: 0; height: 1px; background: rgba(195,223,203,.7); box-shadow: 0 0 8px #b4d3bd; }
.image-label { position: absolute; z-index: 3; right: 10px; bottom: 9px; color: #c5cec7; font: 8px monospace; letter-spacing: .12em; }
.silhouette { position: absolute; z-index: 1; left: 50%; top: 52%; background: #101511; filter: blur(1px); transform: translate(-50%,-50%); }
.silhouette-a { width: 82px; height: 60px; border-radius: 50% 42% 55% 45%; box-shadow: -35px 31px 0 -25px #101511, 31px 31px 0 -25px #101511; }
.silhouette-a::after { content: ""; position: absolute; top: 18px; right: 14px; width: 5px; height: 5px; border-radius: 50%; background: #cbd8cb; box-shadow: 0 0 8px #e6f3e4; }
.silhouette-b { width: 35px; height: 110px; border-radius: 45% 45% 30% 30%; transform: translate(-50%,-50%) rotate(-7deg); box-shadow: -18px 80px 0 -13px #101511, 24px 79px 0 -13px #101511; }
.image-c { display: grid; place-items: center; background: #161916; }
.noise { z-index: 2; color: #777f78; font: 10px monospace; letter-spacing: .2em; }

.specimen-body { padding: 22px; }
.record-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.record-number { font: 700 11px monospace; letter-spacing: .13em; }
.badge { padding: 5px 7px 4px; border: 1px solid; font: 700 8px monospace; letter-spacing: .1em; }
.badge-warning { color: #765914; background: #eee5c9; }
.badge-danger { color: #8a2721; background: #f0d9d6; }
.badge-black { color: #e7e7e0; background: #212421; border-color: #212421; }
h2 { margin: 17px 0 5px; font: 500 23px serif; letter-spacing: .09em; }
.latin { margin: 0 0 20px; color: var(--muted); font: italic 9px Georgia, serif; letter-spacing: .08em; }
dl { margin: 0; border-top: 1px solid #ccd1ca; }
dl div { display: grid; grid-template-columns: 78px 1fr; padding: 8px 0; border-bottom: 1px solid #d8dcd5; font-size: 10px; }
dt { color: var(--muted); }
dd { margin: 0; }
.dot { display: inline-block; width: 6px; height: 6px; margin: 0 7px 1px 0; border-radius: 50%; }
.green { background: #3d7751; } .red { background: #9e2b25; } .gray { background: #737973; }
.summary { min-height: 74px; margin: 18px 0; color: #4d5750; font-size: 11px; line-height: 1.85; }
.record-link { display: flex; justify-content: space-between; padding-top: 13px; border-top: 1px solid var(--ink); font: 700 10px monospace; text-decoration: none; }
.record-link:not(.disabled):hover { color: var(--accent); }
.disabled { color: #8d938e; border-color: #b8bdb8; cursor: not-allowed; }
.redacted { padding: 0 3px; color: #101210; background: #101210; font-family: monospace; user-select: none; }
.classified-stamp { position: absolute; z-index: 6; top: 25px; right: -35px; width: 160px; padding: 5px; color: rgba(150,32,28,.76); border: 2px solid rgba(150,32,28,.65); transform: rotate(35deg); text-align: center; font: 700 11px monospace; letter-spacing: .15em; }

.notice { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; margin-top: 30px; padding: 17px 20px; border: 1px solid #9d2925; color: #63201d; background: rgba(242,222,218,.5); }
.notice strong { font: 700 11px monospace; letter-spacing: .14em; }
.notice p { margin: 0; font-size: 10px; line-height: 1.7; }
.notice span { font: 9px monospace; }

footer { display: flex; justify-content: space-between; gap: 20px; max-width: 1180px; margin: auto; padding: 25px 24px 40px; border-top: 1px solid var(--line); color: var(--muted); font: 8px monospace; letter-spacing: .1em; }

@media (max-width: 900px) {
  .archive { grid-template-columns: repeat(2, 1fr); }
  .toolbar { grid-template-columns: 1fr auto; }
  .toolbar p { display: none; }
}

@media (max-width: 680px) {
  .security-strip span:nth-child(2), .security-strip span:nth-child(3) { display: none; }
  .site-header { align-items: flex-start; flex-direction: column; gap: 18px; padding-top: 23px; }
  nav { width: 100%; min-height: 48px; justify-content: space-between; gap: 12px; }
  nav a { font-size: 11px; }
  .page-heading { align-items: stretch; flex-direction: column; }
  .access-card { min-width: 0; }
  .toolbar { grid-template-columns: 1fr; }
  .database-status { display: none; }
  .archive { grid-template-columns: 1fr; }
  .specimen-image { height: 230px; }
  .summary { min-height: 0; }
  .notice { grid-template-columns: 1fr; gap: 7px; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .specimen-card { transition: none; }
}