/* Burgundy theatre archive trial. Remove this stylesheet link to restore the
   parchment edition. Hero art, game coordinates and interactions are untouched. */
.portfolio-paper {
  --folio-ink: #ecdfca;
  --folio-wine: #e4bf87;
  --folio-muted: #cebba7;
  --folio-rule: #d6b58b40;
  --archive-button-bg: #f1dfbd10;
  --archive-button-hover: #f1dfbd24;
  --archive-selected-bg: #e8cda0;
  --archive-selected-ink: #38201e;
  --archive-focus: #f4d49d;
  color: var(--folio-ink);
  background: #321116;
  color-scheme: dark;
}
/* Source is 724 × 2172. Existing fitPaper uses width × 3, so each leaf
   preserves the image ratio. Alternating vertical mirrors share exact edges. */
.portfolio-paper .paper-leaf {
  background-image: url('aovy-assets/paper/burgundy-velvet.webp');
}
.portfolio-paper:before {
  background: linear-gradient(90deg, #19090d26, #653b390f 22%, #79524a14 50%, #653b390f 78%, #19090d26);
}
.portfolio-paper:after {
  opacity: .055;
  mix-blend-mode: screen;
}
/* A light reading veil preserves the source burgundy and visible weave;
   warm text provides contrast without an opaque central colour field. */
.portfolio-paper .folio-section:not(.final-credits) {
  background: linear-gradient(90deg, #36191e0f, #43242b3d 10%, #43242b3d 90%, #36191e0f);
}
.portfolio-paper .folio-section p,
.portfolio-paper .folio-section dd,
.portfolio-paper .folio-section li { color: var(--folio-ink); }
.portfolio-paper .folio-section .source-note,
.portfolio-paper .folio-section figcaption,
.portfolio-paper .folio-kicker { color: var(--folio-muted); }
.portfolio-paper .folio-lead,
.portfolio-paper .lock-status { color: var(--folio-wine); }
.portfolio-paper .folio-button {
  background: var(--archive-button-bg);
  border-color: var(--folio-wine);
  color: var(--folio-ink);
  text-decoration: none;
}
.portfolio-paper .folio-button:hover { background: var(--archive-button-hover); }
.portfolio-paper .folio-button[aria-pressed=true] {
  background: var(--archive-selected-bg);
  color: var(--archive-selected-ink);
  border-color: var(--archive-selected-bg);
}
.portfolio-paper :is(a, button, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--archive-focus);
  outline-offset: 4px;
}
.portfolio-paper .text-link:hover { text-decoration-thickness: 2px; }
.portfolio-paper .role-note { border-left-color: #bd915b; }
.portfolio-paper .puzzle-panel,
.portfolio-paper .stage-record { border-top-color: #b68c64; }
.portfolio-paper .lock-status,
.portfolio-paper .evidence-note { border-left-color: #b68c64; }
.portfolio-paper .puzzle-panel figure img,
.portfolio-paper .scene-card .scene-art {
  border: 1px solid #c4a77f;
  box-shadow: 0 5px 16px #16070b40;
}
/* A single pale folio for the main playable case; native game art is unfiltered. */
.portfolio-paper :is(.graph-play-layout, .document-spread, .storyboard-spread) {
  --folio-ink: #352820;
  --folio-wine: #783137;
  --folio-muted: #584435;
  --folio-rule: #81573e55;
  --archive-button-bg: #fff4df55;
  --archive-button-hover: #fff4df;
  --archive-selected-bg: #783137;
  --archive-selected-ink: #fff0d6;
  --archive-focus: #783137;
  color: var(--folio-ink);
  color-scheme: light;
  background: #eedcbb url('aovy-assets/paper/warm.svg');
  border: 1px solid #c3a27b;
  box-shadow: 0 7px 22px #18090d30;
  border-radius: 0;
}
.portfolio-paper .graph-play-layout { padding: 24px; gap: 26px; }
.portfolio-paper .graph-turn-panel { border-top-color: #8b5c43; }
.portfolio-paper .graph-scroll { outline-color: #8b5c4366; }
.portfolio-paper .graph-moves button { background: #fff0c8; }
.portfolio-paper .graph-moves button:hover { background: #f3d899; }
.portfolio-paper .topology-mini { background: #ead9b9; border: 1px solid #c6a77e; }
.portfolio-paper .topology-mini .start { fill: #783137; }
.portfolio-paper .topology-heading p { color: var(--folio-muted); }
.portfolio-paper .flow-strip { background: #1c0a102e; }
/* Documents remain light paper, while wide layouts retain their dark surround. */
.portfolio-paper .document-spread { padding: 32px 28px; }
.portfolio-paper .storyboard-spread { padding: 28px; gap: 38px; }
.portfolio-paper .layout-spread img,
.portfolio-paper .supporting-related img {
  background: #f0e3cc;
  border: 1px solid #c3a27b;
  box-shadow: 0 4px 14px #18090d30;
}
.portfolio-paper .archive-viewer-caption { background: #e6d2ad; }
.portfolio-paper .archive-viewer { box-shadow: 3px 4px #78513718; }
.portfolio-paper .personal-environment { background: #d4b7830d; border-color: var(--folio-rule); }
.portfolio-paper .environment-slot { border-color: #bf9c75; }
/* Programme and closing credits use the same fabric; the programme's thin
   antique-gold rule marks the change from stage floor into the archive. */
.archive-program {
  background: linear-gradient(#32131c4d, #32131c4d), url('aovy-assets/paper/burgundy-velvet.webp') center 30% / cover no-repeat;
  border-bottom-color: #a9815b;
}
.portfolio-paper .final-credits {
  background: #240c1480;
  border-top: 1px solid #c09a6d66;
}
.portfolio-paper .final-credits .play-game {
  background: #eedec3;
  color: #39251f;
  border-color: #eedec3;
}
.portfolio-paper .final-credits .play-game:hover { background: #f9ecd3; }
.portfolio-paper .final-credits .source-note { color: #cbb7a2; }
body>footer { background: #240e16; color: #cbb7a2; }
body>footer a { color: #e4bf87; }
@media (max-width:760px) {
  .portfolio-paper .graph-play-layout { padding: 18px; }
  .portfolio-paper .document-spread { padding: 24px; }
  .portfolio-paper .storyboard-spread { grid-template-columns: minmax(220px,280px) minmax(0,1fr); padding: 20px; gap: 24px; }
}
@media (max-width:540px) {
  .portfolio-paper .folio-section:not(.final-credits) {
    background: #43242b42;
  }
  .portfolio-paper .graph-play-layout { padding: 12px; }
  .portfolio-paper .document-spread { padding: 20px 16px; }
  .portfolio-paper .storyboard-spread { grid-template-columns: 1fr; padding: 16px; }
  .portfolio-paper .graph-turn-panel { padding-bottom: 0; }
}
