/* SETTLED. — forensic editorial. Aged paper, ink, rubber stamps. */

:root {
  --paper: #f5efe3;
  --paper-deep: #ece4d2;
  --ink: #1c1712;
  --ink-soft: #4a4238;
  --muted: #7a6f5f;
  --hair: #d6cab2;
  --hair-dark: #b9ab8e;
  --red: #a83a24;
  --green: #2e6b45;
  --teal: #2a6b6b;
  --amber: #96660f;
  --violet: #5a4a86;
  --gray: #6d6353;
  --serif: "Newsreader", Georgia, serif;
  --display: "Fraunces", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
  min-height: 100vh;
  position: relative;
}

/* paper grain */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.4 0 0 0 0 0.35 0 0 0 0 0.27 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, header, footer { position: relative; z-index: 2; }

a { color: inherit; text-decoration-color: var(--hair-dark); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--red); }

.mono { font-family: var(--mono); }

/* ── masthead ── */
.masthead {
  max-width: 880px; margin: 0 auto; padding: 44px 24px 20px;
  border-bottom: 3px double var(--hair-dark);
  text-align: center;
}
.wordmark {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  letter-spacing: 0.02em;
  text-decoration: none;
  display: inline-block;
  line-height: 1;
}
.wordmark .dot { color: var(--red); }
.tagline {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-top: 10px;
}
.topnav { margin-top: 14px; font-family: var(--mono); font-size: 0.78rem; }
.topnav a { text-decoration: none; padding: 0 10px; }
.topnav a:hover { color: var(--red); }
.topnav span { color: var(--hair-dark); }

/* ── index ── */
.intro { max-width: 880px; margin: 40px auto 8px; padding: 0 24px; }
.intro h1 {
  font-family: var(--display); font-weight: 600; font-size: 1.7rem; margin-bottom: 8px;
}
.intro p { color: var(--ink-soft); max-width: 62ch; }

.ledger { max-width: 880px; margin: 24px auto 64px; padding: 0 24px; }
.row {
  display: grid;
  grid-template-columns: 100px 96px 1fr auto;
  gap: 14px; align-items: baseline;
  padding: 15px 6px;
  border-top: 1px solid var(--hair);
  text-decoration: none;
  transition: background 0.15s ease;
}
.row:last-child { border-bottom: 1px solid var(--hair); }
.row:hover { background: var(--paper-deep); }
.row time { font-size: 0.72rem; color: var(--muted); }
.row-title { font-family: var(--display); font-weight: 600; font-size: 1.05rem; line-height: 1.35; }
.row-verdict {
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 600; white-space: nowrap;
}
.empty { color: var(--muted); padding: 24px 0; }

.typechip {
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-soft);
  border: 1px solid var(--hair-dark); border-radius: 2px;
  padding: 2px 7px; white-space: nowrap; align-self: center;
}
.t-whale { background: var(--paper-deep); }

/* ── post ── */
.post { max-width: 720px; margin: 44px auto 72px; padding: 0 24px; }
.post-meta { display: flex; gap: 14px; align-items: center; font-size: 0.74rem; color: var(--muted); }
.draftchip {
  color: #fff; background: var(--red); padding: 2px 8px; border-radius: 2px;
  font-size: 0.66rem; letter-spacing: 0.1em;
}
.post-title {
  font-family: var(--display); font-weight: 900; font-size: clamp(1.7rem, 4.4vw, 2.5rem);
  line-height: 1.14; margin: 14px 0 10px; letter-spacing: -0.01em;
}
.dek {
  font-size: 1.12rem; font-style: italic; color: var(--ink-soft);
  margin-bottom: 30px; line-height: 1.5;
}

/* verdict card */
.verdict-card {
  display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center;
  border: 1px solid var(--hair-dark);
  background: linear-gradient(180deg, rgba(255,255,255,0.45), rgba(255,255,255,0.1));
  padding: 24px; margin-bottom: 26px;
  box-shadow: 3px 3px 0 var(--hair);
}
.claim { font-size: 1.02rem; line-height: 1.55; font-style: italic; position: relative; }
.claim-label {
  display: block; font-style: normal; font-size: 0.66rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.claim cite { display: block; margin-top: 10px; font-size: 0.85rem; font-style: normal; color: var(--muted); }

.stamp {
  --sc: var(--amber);
  border: 3px solid var(--sc); color: var(--sc);
  border-radius: 6px;
  padding: 12px 18px 10px;
  text-align: center;
  transform: rotate(-4deg);
  max-width: 200px;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='r'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.5' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0.12'/%3E%3CfeComposite operator='in' in2='SourceGraphic'/%3E%3C/filter%3E%3Crect width='160' height='160' fill='%23000' filter='url(%23r)'/%3E%3C/svg%3E");
  mask-size: 160px;
}
.stamp-word {
  display: block;
  font-family: var(--display); font-weight: 900;
  font-size: 1.3rem; letter-spacing: 0.06em; text-transform: uppercase;
  line-height: 1.05;
}
.stamp-sub {
  display: block; font-family: var(--mono); font-size: 0.6rem;
  letter-spacing: 0.04em; margin-top: 6px; line-height: 1.4; color: var(--ink-soft);
}
.v-red { --sc: var(--red); color: var(--red); }
.v-green { --sc: var(--green); color: var(--green); }
.v-teal { --sc: var(--teal); color: var(--teal); }
.v-amber { --sc: var(--amber); color: var(--amber); }
.v-violet { --sc: var(--violet); color: var(--violet); }
.v-gray { --sc: var(--gray); color: var(--gray); }
.v-red-t { color: var(--red); } .v-green-t { color: var(--green); } .v-teal-t { color: var(--teal); }
.v-amber-t { color: var(--amber); } .v-violet-t { color: var(--violet); } .v-gray-t { color: var(--gray); }

/* stat row */
.statrow {
  display: flex; flex-wrap: wrap; gap: 0;
  border-top: 1px solid var(--hair-dark); border-bottom: 1px solid var(--hair-dark);
  margin-bottom: 34px;
}
.stat { flex: 1 1 120px; padding: 14px 10px; text-align: center; border-right: 1px dotted var(--hair-dark); }
.stat:last-child { border-right: none; }
.stat-v { display: block; font-size: 1.15rem; font-weight: 600; }
.stat-l {
  display: block; font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-top: 4px;
}

/* body */
.summary h2, .exhibits h2 {
  font-family: var(--display); font-weight: 600; font-size: 1.3rem; margin: 26px 0 12px;
}
.summary p { margin-bottom: 16px; max-width: 66ch; }
.summary strong { font-weight: 600; }

.ex-head {
  font-family: var(--mono) !important; font-size: 0.72rem !important;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
  border-top: 3px double var(--hair-dark); padding-top: 26px; margin-top: 40px !important;
}
.exhibit { margin: 22px 0; }
.exhibit h3 { font-family: var(--display); font-weight: 600; font-size: 1.05rem; margin-bottom: 10px; }
.ex-no {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--red); margin-right: 6px;
}
.exhibit p { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 10px; max-width: 68ch; }
.exhibit table {
  border-collapse: collapse; font-family: var(--mono); font-size: 0.76rem;
  margin: 12px 0; width: 100%; max-width: 640px;
}
.exhibit th {
  text-align: left; font-weight: 600; font-size: 0.66rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--hair-dark); padding: 6px 12px 6px 0;
}
.exhibit td { border-bottom: 1px dotted var(--hair); padding: 6px 12px 6px 0; }
.exhibit .num { text-align: right; }
.exhibit .pos { color: var(--green); } .exhibit .neg { color: var(--red); }

.srcline { font-size: 0.72rem; color: var(--muted); margin-top: 36px; word-break: break-all; }

/* ── footer ── */
.colophon { max-width: 720px; margin: 0 auto; padding: 12px 24px 56px; text-align: center; }
.rule-dots { color: var(--hair-dark); letter-spacing: 1em; margin-bottom: 18px; }
.colophon p { font-size: 0.85rem; color: var(--ink-soft); max-width: 58ch; margin: 0 auto 10px; }
.colophon .fine { font-size: 0.72rem; color: var(--muted); }

/* ── responsive ── */
@media (max-width: 640px) {
  .row { grid-template-columns: 1fr auto; grid-template-rows: auto auto; }
  .row time { order: 3; } .typechip { order: 4; justify-self: start; }
  .row-title { order: 1; grid-column: 1 / 2; }
  .row-verdict { order: 2; }
  .verdict-card { grid-template-columns: 1fr; }
  .stamp { justify-self: center; transform: rotate(-3deg); }
}
