:root {
  --ink: #211d15;
  --ink-soft: #45402f;
  --paper: rgba(247, 240, 222, 0.96);
  --paper-solid: #f6efdc;
  --manila: #e9dcb8;
  --stamp: #8c2f1e;
  --stamp-soft: #b4573f;
  --tab: #c9a45c;
  --blue-ink: #2c4a7c;
  --link: #2c4a7c;
  --warn: #7a1f14;
  --ok: #3c6b35;
  --radius: 6px;
  --header-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 20;
  padding: 0.6rem 0.85rem;
  background: var(--paper-solid);
  color: var(--ink);
  min-height: 44px;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

:focus-visible {
  outline: 3px solid var(--tab);
  outline-offset: 2px;
}

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

body {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color: var(--ink);
  background-color: #34312a;
  background-image: url("/dossier-bg.svg");
  background-size: 640px 640px;
  background-repeat: repeat;
  line-height: 1.6;
  font-size: 1.0625rem;
}

.tape-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  z-index: 6;
  background: repeating-linear-gradient(
    -45deg,
    #17140f 0 14px,
    #2a2519 14px 28px
  );
  border-bottom: 2px solid #0e0c08;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 3;
}

.site-header {
  z-index: 7;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 1rem 1.25rem 0.75rem 1.5rem;
  background: linear-gradient(180deg, rgba(23, 20, 15, 0.96), rgba(35, 30, 21, 0.9));
  color: #efe6cb;
  border-bottom: 3px double var(--tab);
}

.mark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
  min-height: 44px;
}

.mark-stamp {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border: 3px solid var(--stamp-soft);
  border-radius: 4px;
  padding: 0.35rem 0.45rem;
  color: #e8b9a8;
  transform: rotate(-4deg);
}

.mark-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.mark-text strong {
  font-weight: 600;
  font-size: 1rem;
}

.mark-text em {
  font-style: normal;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.02em;
  color: #c8bb96;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--tab);
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: #efe6cb;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.6rem;
  color: #efe6cb;
  text-decoration: none;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.74rem;
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(246, 239, 220, 0.14);
}

.site-nav a[aria-current="page"] {
  outline: 1px solid var(--tab);
}

main {
  width: min(100% - 1.5rem, 47rem);
  margin: 1.75rem auto 3rem;
  background: var(--paper);
  border: 1px solid rgba(33, 29, 21, 0.25);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem 2rem;
  box-shadow: 0 18px 50px rgba(10, 9, 6, 0.45);
  background-image: linear-gradient(
    180deg,
    rgba(233, 220, 184, 0.5) 0 6px,
    transparent 6px
  );
}

@media (min-width: 768px) {
  main {
    padding: 2.25rem 2.5rem 2.75rem;
    margin-top: 2.25rem;
  }
}

h1,
h2,
h3 {
  line-height: 1.25;
  font-weight: 600;
  color: var(--ink);
}

h1 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin: 0 0 0.85rem;
}

h2 {
  font-size: 1.28rem;
  margin: 2rem 0 0.6rem;
}

h3 {
  font-size: 1.08rem;
  margin: 1.4rem 0 0.4rem;
}

p,
li {
  color: var(--ink-soft);
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--link);
}

a:hover {
  text-decoration-thickness: 2px;
}

.lede {
  font-size: 1.12rem;
  color: var(--ink);
}

.kicker {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stamp);
  margin: 0 0 0.5rem;
}

.disclaimer,
.callout {
  border-left: 4px solid var(--warn);
  background: #f0ddcd;
  padding: 0.9rem 1rem;
  margin: 1.25rem 0 1.5rem;
}

.callout {
  border-left-color: var(--blue-ink);
  background: #e4e9f0;
}

.meta-row {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.75rem;
  color: #6a614a;
  margin-bottom: 1.25rem;
}

ul,
ol {
  padding-left: 1.2rem;
}

li {
  margin-bottom: 0.45rem;
}

.cards {
  display: grid;
  gap: 0.8rem;
  margin: 1.25rem 0;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--paper-solid);
  border: 1px solid rgba(33, 29, 21, 0.2);
  border-radius: 4px;
  padding: 1rem;
  min-height: 44px;
  box-shadow: 2px 2px 0 rgba(33, 29, 21, 0.08);
}

.card:hover {
  border-color: var(--stamp);
}

.card strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--ink);
}

.card span {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.faq details {
  border-bottom: 1px solid rgba(33, 29, 21, 0.14);
  padding: 0.4rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* --- dossier-specific components --------------------------------------- */

.redacted {
  background: #17140f;
  color: #17140f;
  border-radius: 2px;
  padding: 0 0.35em;
  user-select: none;
}

.verdict {
  display: inline-block;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid currentColor;
  border-radius: 3px;
  padding: 0.15rem 0.5rem;
  transform: rotate(-1.5deg);
}

.verdict.confirmed {
  color: var(--ok);
}

.verdict.disputed {
  color: #8a6d1a;
}

.verdict.unsupported {
  color: var(--stamp);
}

.verdict.fabricated {
  color: #5c1a10;
  background: rgba(92, 26, 16, 0.08);
}

.claim-box {
  border: 1px dashed rgba(140, 47, 30, 0.55);
  background: rgba(246, 239, 220, 0.7);
  padding: 0.9rem 1rem;
  margin: 1.25rem 0;
}

.claim-box .claim-label {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--stamp);
  margin-bottom: 0.35rem;
}

.claim-box blockquote {
  margin: 0;
  font-style: italic;
  color: var(--ink);
}

.claim-box blockquote footer {
  font-style: normal;
  font-size: 0.85rem;
  color: #6a614a;
  margin-top: 0.4rem;
}

.source-list a {
  overflow-wrap: anywhere;
}

.crumbs {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  margin: 0 0 1.15rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(33, 29, 21, 0.16);
}

.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}

.crumbs li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  color: #6a614a;
}

.crumbs li + li::before {
  content: "»";
  color: rgba(33, 29, 21, 0.35);
}

.crumbs a {
  color: var(--link);
  text-decoration: none;
}

.crumbs a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.crumbs [aria-current="page"] {
  color: var(--ink);
}

.table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0 1.6rem;
  border: 1px solid rgba(33, 29, 21, 0.2);
  border-radius: 4px;
  background: var(--paper-solid);
  -webkit-overflow-scrolling: touch;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.table-wrap caption {
  caption-side: top;
  text-align: left;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #6a614a;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid rgba(33, 29, 21, 0.16);
}

.table-wrap thead th {
  background: rgba(44, 74, 124, 0.12);
  color: var(--ink);
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid rgba(33, 29, 21, 0.28);
}

.table-wrap th,
.table-wrap td {
  padding: 0.6rem 0.8rem;
  vertical-align: top;
  border-bottom: 1px solid rgba(33, 29, 21, 0.1);
  color: var(--ink-soft);
  line-height: 1.45;
}

.table-wrap tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--ink);
}

.table-wrap tbody tr:last-child th,
.table-wrap tbody tr:last-child td {
  border-bottom: none;
}

.table-wrap tbody tr:hover {
  background: rgba(247, 240, 222, 0.8);
}

code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: rgba(33, 29, 21, 0.08);
  padding: 0.08em 0.32em;
  border-radius: 3px;
  overflow-wrap: anywhere;
  color: var(--ink);
}

.site-footer {
  background: rgba(16, 14, 10, 0.95);
  color: #e3d5ae;
  padding: 1.75rem 1.25rem 2.5rem;
  border-top: 3px double var(--tab);
}

.site-footer p {
  color: #cfc093;
  max-width: 47rem;
  margin: 0 auto 0.8rem;
}

.site-footer nav {
  max-width: 47rem;
  margin: 1rem auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
}

.site-footer a {
  color: #efe6cb;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.55rem;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.72rem;
}

.fine {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.7rem !important;
  color: #93855f !important;
}

@media (max-width: 1120px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 14px;
    right: 14px;
    z-index: 8;
    background: #1c1811;
    border: 1px solid var(--tab);
    flex-direction: column;
    padding: 0.4rem;
  }

  .site-nav.is-open {
    display: flex;
  }
}

@media (max-width: 430px) {
  body {
    font-size: 1rem;
    background-size: 320px 320px;
  }

  main {
    width: min(100% - 1rem, 47rem);
    padding: 1.15rem 0.95rem 1.6rem;
  }

  .table-wrap th,
  .table-wrap td {
    padding: 0.55rem 0.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
