.backstage-page {
  max-width: 1480px;
  padding: 104px var(--margin) 54px;
}

.backstage-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.backstage-crumb svg {
  width: 12px;
  height: 12px;
}

.backstage-crumb a,
.backstage-letter a {
  text-decoration: underline;
  text-underline-offset: .19em;
}

.backstage-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-block: 16px 24px;
}

.backstage-intro h1 {
  margin-block: 4px 8px;
  font-size: clamp(54px, 7.2vw, 100px);
  letter-spacing: -.045em;
}

.backstage-intro h1 + p {
  max-width: 59ch;
  color: var(--muted);
  line-height: 1.55;
}

.backstage-stamp {
  flex-shrink: 0;
  padding: 9px 16px;
  border: 3px double #87483b;
  color: #87483b;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-5deg);
}

.backstage-stamp em {
  display: block;
  font-size: 20px;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
}

.backstage-frame {
  padding: clamp(7px, 1.2vw, 16px);
  border: 1px solid #563b28;
  border-radius: 8px;
  background: repeating-linear-gradient(2deg, transparent 0 3px, #301c161a 4px, transparent 6px 10px),
    linear-gradient(145deg, #a6794b, #61422e 47%, #936342 79%, #4e3527);
  box-shadow: inset 0 1px 2px #fbe1b99c, inset 0 -2px 3px #1e120b9c, 0 15px 32px #3d271b45;
}

.backstage-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(14px, 2vw, 29px);
  margin: 0;
  padding: clamp(15px, 2.7vw, 39px);
  border: 1px solid #5b402e;
  border-radius: 3px;
  background: radial-gradient(ellipse at top left, #f8d9a1, #bf8d61 80%),
    url('/assets/images/papir.webp') 0 0 / 270px;
  background-blend-mode: multiply;
  box-shadow: inset 0 3px 12px #4325188c, inset 0 0 3px #583b29;
  list-style: none;
}

.backstage-post {
  --tilt: -1deg;
  position: relative;
  padding: clamp(8px, 1.05vw, 14px);
  border: 1px solid #99795767;
  border-radius: 2px 1px 4px 2px;
  background: #fbf1db url('/assets/images/papir.webp') 0 0 / 510px;
  background-blend-mode: multiply;
  box-shadow: 1px 7px 10px #482b2459, 0 2px 2px #563a3052, inset 0 1px #fffc;
  color: #29261f;
  transform: rotate(var(--tilt));
}

.backstage-post:nth-child(even) {
  --tilt: .8deg;
}

.backstage-post::before {
  content: '';
  position: absolute;
  z-index: 1;
  top: -5px;
  left: calc(50% - 6px);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 37% 25%, #fff1b9, #b47d3f 60%, #77502c 82%);
  box-shadow: 1px 2px 3px #27140e80;
}

.backstage-post:nth-child(3n)::before {
  background: radial-gradient(circle at 37% 25%, #e08b75, #944c41 60%, #60302a 82%);
}

.backstage-photo {
  align-self: start;
  margin: 0;
  padding: 5px 5px 0;
  border: 1px solid #9b7c5a36;
  background: #fffaf0;
  box-shadow: 1px 3px 4px #513b2b20;
}

.backstage-photo img {
  width: 100%;
  height: auto;
}

.backstage-photo figcaption {
  padding: 5px 3px;
  color: #5f4c3d;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.backstage-letter {
  min-width: 0;
  padding: 11px 3px 1px;
  font-size: 15px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.backstage-letter h2 {
  margin-bottom: 4px;
  font-size: clamp(25px, 2.2vw, 34px);
  line-height: 1.07;
}

.backstage-byline {
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 600;
}

.backstage-letter a {
  color: #673a29;
}

.backstage-letter a:focus-visible {
  outline-color: #673a29;
  outline-offset: 2px;
}

.backstage-replies {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.backstage-replies li {
  padding: 6px 9px;
  border-left: 2px solid #a98454;
  background: #ead8b2 url('/assets/images/papir.webp') 0 0 / 280px;
  background-blend-mode: multiply;
  box-shadow: 0 2px 2px #573e302e;
  font-size: 14px;
}

.backstage-replies a {
  margin-right: .28em;
  font-weight: 600;
}

.backstage-next {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

@media (min-width: 1001px) {
  .backstage-post:first-child,
  .backstage-post:last-child {
    grid-column: span 2;
  }

  .backstage-post:first-child article,
  .backstage-post:last-child article {
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr);
    align-items: start;
    gap: 14px;
  }

  .backstage-post:first-child .backstage-letter,
  .backstage-post:last-child .backstage-letter {
    padding-top: 2px;
  }
}

@media (min-width: 651px) and (max-width: 1000px) {
  .backstage-post:last-child {
    grid-column: span 2;
  }

  .backstage-post:last-child article {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 1000px) {
  .backstage-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .backstage-page {
    padding-top: 89px;
  }

  .backstage-intro {
    display: block;
    padding-block: 10px 18px;
  }

  .backstage-stamp {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin-top: 12px;
    padding: 3px 8px;
    border-width: 1px;
    font-size: 10px;
    transform: rotate(-2deg);
  }

  .backstage-stamp em {
    font-size: 16px;
  }

  .backstage-board {
    grid-template-columns: minmax(0, 1fr);
  }

  .backstage-letter {
    font-size: 16px;
  }
}
.backstage-fold { margin-top: 10px; border-top: 1px dashed #947951; }
.backstage-fold summary { min-height: 44px; padding-block: 12px; cursor: pointer; color: #61472b; font-weight: 600; }
.backstage-fold summary:hover { text-decoration: underline; text-underline-offset: 3px; }
