/* Dossiê rico: cortiça, alfinete, fio, recorte de jornal, capa lateral. */
:root {
  --ink: #1a120c;
  --paper: #f3e6c9;
  --paper-2: #f7edd4;
  --aged: #e4d2a8;
  --muted: #6a5644;
  --red: #8d2b2b;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--paper);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  line-height: 1.55;
  background:
    radial-gradient(ellipse at 50% 0%, rgb(90 50 24 / 0.35), transparent 42%),
    #120c09 url("/board/textures/cork.jpg") center / 440px repeat fixed !important;
}
body::before {
  background:
    linear-gradient(180deg, rgb(8 5 3 / 0.55), rgb(8 5 3 / 0.28) 18%, rgb(8 5 3 / 0.45)) !important;
}
a { color: inherit; }
img { max-width: 100%; }

.mast {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 0.55rem 0.75rem 0.7rem;
  background: linear-gradient(180deg, rgb(10 7 5 / 0.96), rgb(10 7 5 / 0.82) 72%, transparent);
}
.tape {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 92rem;
  margin: 0.35rem auto 0;
  padding: 0.5rem 0.9rem 0.55rem;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.35), transparent 28%),
    linear-gradient(180deg, #f7edd4, #e7d3a4);
  box-shadow: 0 14px 28px rgb(0 0 0 / 0.45), inset 0 1px 0 rgb(255 255 255 / 0.7);
  transform: rotate(-0.45deg);
}
.tape-mark { margin: 0; font-family: "Special Elite", monospace; letter-spacing: 0.2em; font-size: 1.35rem; }
.tape-rule { width: 1px; align-self: stretch; background: rgb(26 18 12 / 0.22); }
.tape-copy { min-width: 0; flex: 1; }
.tape-title { margin: 0; font-family: "Special Elite", monospace; font-size: 1.15rem; }
.tape-sub {
  margin: 0.05rem 0 0;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shell-tag { font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

.shell {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 11.5rem minmax(0, 1fr);
  gap: 0.85rem;
  max-width: 96rem;
  margin: 0 auto;
  padding: 0.2rem 0.85rem 4.5rem;
}

.rail {
  position: sticky;
  top: 6.2rem;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  max-height: calc(100vh - 7rem);
  overflow: auto;
  padding: 0.35rem 0.15rem 0.5rem 0;
}
.rail a {
  position: relative;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(180deg, #f7edd4, #e4d2a8);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.42rem 0.45rem 0.42rem 1.15rem;
  border-left: 0;
  box-shadow: 2px 3px 0 rgb(0 0 0 / 0.35);
}
.rail a::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #8d2b2b 46%, #3a0d0d);
  transform: translateY(-50%);
  box-shadow: 0 1px 0 rgb(0 0 0 / 0.35);
}
.rail a.on, .rail a:hover {
  background: var(--red);
  color: var(--paper);
  transform: translateX(3px);
}
.rail a.on::before, .rail a:hover::before {
  background: radial-gradient(circle at 35% 30%, #fff, #f3e6c9 50%, #8d2b2b);
}

main.sheet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  align-items: start;
  min-width: 0;
  padding: 0.85rem;
  background:
    radial-gradient(ellipse at 20% 0%, rgb(255 214 150 / 0.16), transparent 36%),
    url("/board/textures/cork.jpg") center / 360px repeat;
  box-shadow:
    inset 0 0 0 1px rgb(255 220 170 / 0.18),
    inset 0 0 70px rgb(0 0 0 / 0.38),
    0 18px 36px rgb(0 0 0 / 0.4);
  counter-reset: cap;
}
.hero, .clusters, article.span2 { grid-column: 1 / -1; }

.hero, article {
  position: relative;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgb(255 252 245 / 0.45), transparent 2.2rem),
    radial-gradient(ellipse at 50% 0%, #f7edd4 40%, #e7d3a4 100%),
    url("/assets/desk/queimado.jpg") center / cover;
  border: 1px solid rgb(26 18 12 / 0.16);
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.55) inset,
    0 14px 22px rgb(40 18 6 / 0.35);
}
.hero { padding: 1.35rem 1.35rem 1.05rem; }
article {
  margin: 0;
  padding: 1.55rem 1rem 1rem;
  counter-increment: cap;
}
article::after {
  content: counter(cap, decimal-leading-zero);
  position: absolute;
  top: 0.35rem;
  right: 0.55rem;
  font-family: "Special Elite", monospace;
  font-size: 1.35rem;
  line-height: 1;
  color: rgb(26 18 12 / 0.16);
  pointer-events: none;
}
article::before, .hero::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: -9px;
  left: 50%;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #fff 0 2px, #d7d1c4 3px, #8d2b2b 7px, #3d1212 12px);
  box-shadow: 0 3px 4px rgb(0 0 0 / 0.35);
}
.hero::after {
  content: "NÃO É ACUSAÇÃO";
  position: absolute;
  right: 0.85rem;
  bottom: 0.75rem;
  border: 3px double var(--red);
  color: var(--red);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  padding: 0.28rem 0.4rem;
  transform: rotate(-8deg);
  opacity: 0.8;
  pointer-events: none;
}
article .idx {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  font-family: "Special Elite", monospace;
  font-size: 1.35rem;
  color: rgb(26 18 12 / 0.18);
  pointer-events: none;
}
.kicker {
  margin: 0.15rem 0 0.1rem;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
h1 {
  font-family: "Special Elite", monospace;
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 0.9;
  margin: 0;
  max-width: 14ch;
}
.sub { font-family: "Special Elite", monospace; font-size: 1.2rem; margin: 0.35rem 0 0.55rem; }
.lead { font-size: 1rem; max-width: 40rem; margin-bottom: 0.2rem; }

.years {
  position: relative;
  display: flex;
  gap: 0.35rem;
  margin: 1rem 0 0.2rem;
  padding: 1.05rem 0.1rem 0.1rem;
  overflow-x: auto;
}
.years::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  right: 0.3rem;
  top: 0.38rem;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--red) 0 10px, transparent 10px 14px);
}
.years a {
  position: relative;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--ink);
  background: #fffdf8;
  border: 1px solid var(--ink);
  padding: 0.28rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 2px 2px 0 rgb(26 18 12 / 0.15);
}
.years a::before {
  content: "";
  position: absolute;
  top: -0.85rem;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--red) 45%, #3a0d0d);
}

.clusters {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0;
}
.cluster {
  grid-column: span 2;
  position: relative;
  padding: 0.85rem 0.65rem 0.7rem;
  color: var(--ink);
  background: linear-gradient(180deg, #fffdf8, #f3e6c9);
  border: 1px solid rgb(26 18 12 / 0.14);
  box-shadow: 0 10px 16px rgb(40 18 6 / 0.28);
  transform: rotate(var(--tilt, -0.5deg));
}
.cluster:nth-child(2) { --tilt: 0.45deg; }
.cluster:nth-child(3) { --tilt: -0.15deg; }
.cluster:nth-child(4) { --tilt: 0.3deg; }
.cluster:nth-child(5) { --tilt: -0.4deg; }
.cluster.wide { grid-column: span 3; }
.cluster::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #c84b4b 40%, #3d1212);
}
.cluster h3 {
  margin: 0.15rem 0 0.45rem;
  font-family: "Special Elite", monospace;
  font-weight: 400;
  font-size: 1.15rem;
}
.cluster h3 a { text-decoration: none; }
.cluster h3 span {
  display: block;
  color: var(--red);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}
.faces { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.faces a {
  width: 4.35rem;
  text-decoration: none;
  text-align: center;
  color: var(--ink);
}
.faces img, .faces .ghost {
  width: 4.35rem;
  height: 4.35rem;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  border: 3px solid #fffdf8;
  box-shadow: 0 5px 8px rgb(0 0 0 / 0.28);
  background: #1c140e;
  display: grid;
  place-items: center;
  color: var(--paper);
  font-family: "Special Elite", monospace;
}
.faces a.mark img {
  border-radius: 8px;
  object-fit: contain;
  background: #fffdf8;
  padding: 0.25rem;
}
  font-style: normal;
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.15;
}

article h2 {
  font-family: "Special Elite", monospace;
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1.12;
  margin: 0 0 0.45rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px dashed rgb(26 18 12 / 0.28);
}
article h2 span {
  display: block;
  color: var(--red);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 700;
  margin-bottom: 0.15rem;
}
p { margin: 0.55rem 0; }
a.ficha {
  color: var(--red);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
a.ficha:hover { background: #f6d3d3; }

.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.35rem;
  align-items: center;
  list-style: none;
  padding: 0.85rem 0 0.2rem;
  margin: 0.55rem 0;
  position: relative;
}
.flow::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  right: 0.4rem;
  top: 0.28rem;
  height: 2px;
  background: var(--red);
}
.flow li {
  position: relative;
  background: #fffdf8;
  border: 1px solid var(--ink);
  padding: 0.28rem 0.48rem;
  font-weight: 700;
  font-size: 0.84rem;
}
.flow li::before {
  content: "";
  position: absolute;
  top: -0.68rem;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--red);
}
.flow li + li::before { content: ""; }

.src {
  margin-top: 0.75rem;
  padding: 0.45rem 0.55rem;
  color: #2c241c;
  font-size: 0.75rem;
  background:
    linear-gradient(rgb(255 252 245 / 0.82), rgb(255 252 245 / 0.82)),
    url("/board/textures/newsprint.jpg") center / 280px repeat;
  box-shadow: 0 4px 0 rgb(26 18 12 / 0.05);
  border-left: 3px solid var(--ink);
}
.src a { color: #2c241c; }

figure {
  margin: 0.55rem 0.35rem 0.15rem 0;
  background: #fffdf8;
  display: inline-block;
  padding: 0.4rem 0.4rem 0.45rem;
  box-shadow: 0 10px 16px rgb(0 0 0 / 0.22);
  transform: rotate(-1.6deg);
  vertical-align: top;
  max-width: 100%;
}
figure:nth-of-type(even) { transform: rotate(1.5deg); }
figure img {
  width: min(100%, 220px);
  height: 150px;
  object-fit: cover;
  object-position: center top;
  display: block;
  background: #1c140e;
}
figcaption { max-width: 220px; color: var(--muted); font-size: 0.72rem; margin-top: 0.3rem; }
.pair {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 1fr 1fr;
}
.pair figure, .pair figcaption { max-width: none; }
.pair figure img { width: 100%; height: 150px; }
blockquote {
  margin: 0.65rem 0 0;
  padding: 0.6rem 0.7rem;
  background: rgb(141 43 43 / 0.08);
  border-left: 4px solid var(--red);
}

.dossier {
  position: sticky;
  top: 6.2rem;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: calc(100vh - 7rem);
  overflow: auto;
  padding-bottom: 0.4rem;
}
.cover, .note, .legend {
  color: var(--ink);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.28), transparent 1.4rem),
    #f3e6c9;
  border: 1px solid rgb(26 18 12 / 0.14);
  box-shadow: 0 12px 20px rgb(0 0 0 / 0.32);
  padding: 0.75rem 0.75rem 0.8rem;
}
.cover { transform: rotate(0.6deg); }
.note { transform: rotate(-0.4deg); background: #fffdf8; }
.legend { transform: rotate(0.25deg); }
.cover p, .note p, .legend p { margin: 0.35rem 0; }
.eyebrow {
  margin: 0;
  color: var(--red);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.cover h2, .note h2, .legend h2 {
  margin: 0.15rem 0 0.35rem;
  font-family: "Special Elite", monospace;
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1;
}
.meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin: 0.45rem 0 0;
  padding: 0;
  list-style: none;
}
.meta li {
  background: rgb(26 18 12 / 0.05);
  padding: 0.35rem 0.4rem;
  font-size: 0.75rem;
}
.meta strong { display: block; font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.stack {
  display: flex;
  margin: 0.55rem 0 0.2rem;
}
.stack a {
  width: 52px;
  height: 64px;
  margin-right: -14px;
  border: 3px solid #fffdf8;
  box-shadow: 0 6px 10px rgb(0 0 0 / 0.25);
  overflow: hidden;
  background: #1c140e;
}
.stack img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.legend ul { margin: 0.3rem 0 0; padding: 0; list-style: none; }
.legend li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem;
  align-items: start;
  font-size: 0.78rem;
  margin: 0.35rem 0;
}
.swatch {
  width: 0.7rem;
  height: 0.7rem;
  margin-top: 0.2rem;
  background: var(--red);
  border-radius: 50%;
}
.swatch.ink { background: var(--ink); border-radius: 0; }
.swatch.dash { background: transparent; border: 2px dashed var(--red); border-radius: 0; }
.note a { color: var(--red); font-weight: 700; }

html[data-shell="desk"] .shell {
  grid-template-columns: 11.5rem minmax(0, 1fr) 17.5rem;
  max-width: 96rem;
  padding-left: 0.9rem;
  padding-right: 0.9rem;
}
html[data-shell="tablet"] .shell {
  grid-template-columns: minmax(0, 1fr) 16rem;
}
html[data-shell="tablet"] .rail {
  position: static;
  grid-column: 1 / -1;
  flex-direction: row;
  max-height: none;
  overflow-x: auto;
}
html[data-shell="tablet"] .rail a { white-space: nowrap; }
html[data-shell="tablet"] main.sheet,
html[data-shell="phone"] main.sheet { grid-template-columns: 1fr; }
html[data-shell="phone"] .shell { grid-template-columns: 1fr; padding: 0.3rem 0.55rem 5rem; }
html[data-shell="phone"] .rail {
  position: static;
  flex-direction: row;
  overflow-x: auto;
  max-height: none;
}
html[data-shell="phone"] .rail a { white-space: nowrap; }
html[data-shell="phone"] .dossier { position: static; max-height: none; order: -1; }
html[data-shell="phone"] .tape,
html[data-shell="phone"] article,
html[data-shell="phone"] .cluster,
html[data-shell="tablet"] article,
html[data-shell="tablet"] .cluster { transform: none; }
html[data-shell="phone"] .pair { grid-template-columns: 1fr; }
html[data-shell="phone"] .clusters,
html[data-shell="tablet"] .clusters { grid-template-columns: 1fr; }
html[data-shell="phone"] .cluster,
html[data-shell="phone"] .cluster.wide,
html[data-shell="tablet"] .cluster,
html[data-shell="tablet"] .cluster.wide { grid-column: auto; }

@media (max-width: 759px) {
  .shell { grid-template-columns: 1fr; }
  main.sheet, .pair, .clusters { grid-template-columns: 1fr; }
  .cluster, .cluster.wide { grid-column: auto; }
  .dossier { position: static; max-height: none; }
  .tape, article, .cluster { transform: none; }
}

.finder {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  max-width: 36rem;
  margin: 0.9rem 0 1.4rem;
}
.finder input {
  flex: 1;
  min-width: 0;
  color: var(--ink);
  background: #fffdf8;
  border: 1px solid var(--ink);
  font: inherit;
  font-size: 0.95rem;
  padding: 0.5rem 0.65rem;
  box-shadow: 2px 2px 0 rgb(26 18 12 / 0.12);
}
.finder input:focus { outline: 2px solid var(--red); outline-offset: 1px; }
.achados {
  flex: none;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.dir {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.card {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  position: relative;
  padding: 0.7rem 0.7rem 0.65rem;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgb(255 252 245 / 0.5), transparent 1.6rem),
    #f7edd4;
  border: 1px solid rgb(26 18 12 / 0.14);
  box-shadow: 0 10px 16px rgb(40 18 6 / 0.28);
}
.card[hidden] { display: none; }
.card .face, .card .ghost {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
  border: 3px solid #fffdf8;
  box-shadow: 0 5px 8px rgb(0 0 0 / 0.28);
  background: #1c140e;
}
.card .face.logo { object-fit: contain; background: #fffdf8; padding: 0.28rem; }
.card .ghost {
  display: grid;
  place-items: center;
  color: var(--paper);
  font-family: "Special Elite", monospace;
  font-size: 1.15rem;
}
.card h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 1.15rem;
  line-height: 1.1;
}
.card .who {
  margin: 0 0 0.15rem;
  color: var(--red);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.card p { margin: 0.28rem 0 0; font-size: 0.8rem; }
.card .tie, .card .src { margin-top: 0.35rem; font-size: 0.72rem; }
.card .src { padding: 0.28rem 0.4rem; }
.anchor { position: relative; top: -5.5rem; }
html[data-shell="phone"] .dir,
html[data-shell="tablet"] .dir { grid-template-columns: 1fr; }
@media (max-width: 759px) {
  .dir { grid-template-columns: 1fr; }
}
