:root {
  color-scheme: light;
  --paper: #f4eddf;
  --sheet: #faf4e7;
  --ink: #27231e;
  --muted: #605649;
  --red: #9b3027;
  --line: #b5a58e;
  --folder: #e9d6ad;
  --tab: #e3c99a;
  --serif: Georgia, 'Times New Roman', serif;
  --mono: 'Courier New', Courier, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath d='M0 0h180v180H0z' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; }
button:hover, a:hover { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus { position: absolute; z-index: 2; top: 8px; left: 8px; padding: 10px; background: var(--sheet); }
.shell { width: min(1180px, calc(100% - 100px)); margin: 0 auto; }
.mono {
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.masthead, .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.masthead { min-height: 81px; border-bottom: 1px solid var(--ink); }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 1rem;
  font-weight: bold;
  line-height: .99;
  text-decoration: none;
}
.wordmark svg { width: 38px; height: 38px; }
.masthead-index, .footer a { text-decoration: none; }
.masthead-index span, .footer a span { color: var(--red); margin-left: 3px; }
.masthead-index:hover, .footer a:hover { color: var(--red); }

.hero {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 32%);
  gap: 40px;
  align-items: center;
  padding: 51px 0 49px;
  border-bottom: 3px double var(--ink);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  color: var(--red);
}
.eyebrow > span { width: 7px; height: 7px; background: currentColor; transform: rotate(45deg); }
.hero h1 {
  margin: 0;
  font-size: clamp(4rem, 8.5vw, 7.25rem);
  font-weight: 700;
  letter-spacing: -.077em;
  line-height: .82;
}
.hero h1 span { color: var(--red); }
.hero-deck { max-width: 32rem; margin: 23px 0 0; font-size: clamp(1.13rem, 2vw, 1.34rem); line-height: 1.4; }
.hero-art { display: grid; justify-items: center; padding: 8px 17px 0 0; }
.hero-sheet {
  width: min(100%, 290px);
  position: relative;
  transform: rotate(6deg);
  border: 1px solid var(--line);
  padding: 13px 12px 12px;
  background: var(--sheet);
  box-shadow: 5px 6px 0 #e5d5ba, 6px 7px 0 #b8a990, 9px 12px 17px #35291917;
}
.sheet-meta, .sheet-footer { display: flex; justify-content: space-between; font-size: .61rem; color: var(--muted); }
.sheet-meta { padding-bottom: 7px; border-bottom: 1px solid var(--line); }
.sheet-footer { padding-top: 7px; border-top: 1px solid var(--line); }
.hero-sheet svg { display: block; width: 100%; }
.hero-stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max-content;
  max-width: calc(100% - 16px);
  padding: 6px 9px 5px;
  display: grid;
  gap: 1px;
  justify-items: center;
  transform: translate(-50%, -50%) rotate(-14deg);
  border: 4px double currentColor;
  color: var(--red);
  background: #faf4e7ec;
  font: 700 clamp(.95rem, 2.1vw, 1.72rem)/1 var(--mono);
  letter-spacing: .04em;
}
.hero-stamp small { font-size: .51em; letter-spacing: .12em; }
.art-caption { margin-top: 20px; color: var(--muted); font-size: .63rem; }

.register { padding: 32px 0 43px; scroll-margin: 16px; }
.register-heading { display: flex; justify-content: space-between; gap: 10px; align-items: end; }
.section-label { margin: 0 0 6px; color: var(--red); }
.register h2 { margin: 0; font-size: clamp(2.3rem, 4.8vw, 3.5rem); line-height: .99; letter-spacing: -.06em; }
.register-count { margin: 0 0 5px; white-space: nowrap; color: var(--muted); }
.filter-row {
  display: flex;
  align-items: center;
  gap: 13px 18px;
  flex-wrap: wrap;
  padding: 13px 0;
  margin: 17px 0 19px;
  border-block: 1px solid var(--line);
}
.filter-label { color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button {
  min-height: 37px;
  padding: 5px 13px;
  border: 1px solid #9f8e74;
  background: transparent;
  font: 700 .75rem/1 var(--mono);
}
.filters button:hover { border-color: var(--red); color: var(--red); }
.filters button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--sheet); }
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 20px; }
.case-card { display: flex; flex-direction: column; min-width: 0; }
.folder-tab {
  z-index: 1;
  align-self: flex-start;
  position: relative;
  margin: 0 0 -1px 0;
  min-width: 114px;
  padding: 8px 15px 7px;
  border: 1px solid #9c825c;
  border-bottom-color: var(--tab);
  border-radius: 6px 13px 0 0;
  background: var(--tab);
}
.folder {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 13px 16px 3px;
  border: 1px solid #9c825c;
  border-radius: 0 5px 4px 4px;
  background:
    repeating-linear-gradient(0deg, #fff2 0, transparent 1px, transparent 4px),
    linear-gradient(137deg, #eddbb5, var(--folder));
  box-shadow: 2px 3px 0 #7b634222, 3px 6px 10px #4c392010;
  transition: box-shadow .2s ease;
}
.case-card:hover .folder, .case-card:focus-within .folder { box-shadow: 2px 4px 0 #7b634230, 4px 8px 17px #4c392026; }
.case-figure, .file-figure {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 89px;
  margin-bottom: 13px;
  border-bottom: 1px solid #a99270;
  background-image: radial-gradient(#8c76564d .65px, transparent .65px);
  background-size: 8px 8px;
}
.case-figure svg { width: min(148px, 58%); height: 89px; margin-left: 1px; }
.case-stamp {
  position: absolute;
  top: 12px;
  right: 2px;
  border: 3px double currentColor;
  padding: 3px 4px 2px;
  transform: rotate(-9deg);
  color: var(--red);
  background: #eddbb5ed;
  font: 700 .67rem/1 var(--mono);
  letter-spacing: .045em;
  text-transform: uppercase;
}
.system { margin: 0 0 7px; color: var(--red); font-size: .68rem; letter-spacing: .055em; }
.case-card h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2.25vw, 1.72rem);
  line-height: 1.04;
  letter-spacing: -.035em;
  text-wrap: pretty;
}
.teaser { flex: 1; margin: 11px 0 13px; color: #4e4333; font-size: .98rem; line-height: 1.4; }
.redaction {
  display: inline-block;
  position: relative;
  width: var(--redaction-width);
  height: .73em;
  border-radius: 1px;
  background: var(--ink);
  transform: rotate(-1.5deg);
}
.case-note { display: none; }
.case-note:target { display: block; line-height: 1.4; }
.card-actions { display: flex; justify-content: space-between; gap: 8px; border-top: 1px dashed #9f855c; }
.open-case, .watch, .file-close {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  text-decoration: none;
  font-size: .7rem;
}
.open-case span, .watch { color: var(--red); }
.open-case:hover, .watch:hover, .file-close:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer { min-height: 70px; padding: 10px 0; border-top: 3px double var(--ink); color: var(--muted); }
.footer-divider { margin: 0 3px; color: var(--red); }

html:has(.file-dialog[open]) { overflow: hidden; }
.file-dialog {
  max-width: min(590px, calc(100% - 34px));
  max-height: calc(100% - 34px);
  width: 100%;
  margin: auto;
  padding: 13px 12px 16px;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: auto;
}
.file-dialog::backdrop { background: #2820169c; }
.open-file {
  position: relative;
  isolation: isolate;
  padding: 11px;
  border: 1px solid #8a7150;
  border-radius: 5px;
  background: var(--tab);
  box-shadow: 4px 7px 0 #35291c45;
  perspective: 1100px;
}
.file-sheet {
  position: relative;
  margin: 0;
  border: 1px solid #bca886;
  padding: clamp(16px, 4vw, 29px);
  background: var(--sheet);
}
.folder-leaf {
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: 4px;
  background: var(--folder);
  border: 1px solid #a28b65;
  pointer-events: none;
  visibility: hidden;
  transform-origin: 0 50%;
}
.file-dialog[open] .folder-leaf { animation: fold-open .45s ease-out both; }
.file-dialog[open] .file-sheet { animation: lift-sheet .38s .06s ease-out both; }
@keyframes fold-open {
  0% { opacity: 1; visibility: visible; transform: rotateY(0); }
  63% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; transform: rotateY(-92deg); }
}
@keyframes lift-sheet {
  from { opacity: 0; transform: translateY(9px) rotate(1deg); }
  to { opacity: 1; transform: none; }
}
.file-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); }
.file-close { font-family: var(--mono); font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.file-close span { color: var(--red); font-size: 1.1rem; }
.file-figure { min-height: 96px; margin-top: 13px; }
.file-figure svg { width: 160px; height: 96px; }
.file-figure .case-stamp { top: 21px; right: 7px; background: var(--sheet); font-size: .77rem; }
.file-sheet h2 { margin: 0 0 16px; font-size: clamp(1.7rem, 5.5vw, 2.7rem); line-height: 1.01; letter-spacing: -.05em; }
.file-notes { padding-left: 12px; border-left: 2px solid var(--red); }
.file-notes p { margin: 0 0 5px; }
.file-notes p + p { line-height: 1.45; }
.file-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; margin-top: 13px; border-top: 1px dashed var(--line); }
.video-status { margin: 0; color: var(--muted); letter-spacing: .025em; }
.video-status:empty { display: none; }

@media (max-width: 1050px) {
  .shell { width: calc(100% - 64px); }
  .case-grid { gap: 19px 14px; }
  .folder { padding-inline: 12px; }
}
@media (max-width: 840px) {
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-card h3 { font-size: clamp(1.35rem, 3.6vw, 1.65rem); }
  .hero { grid-template-columns: 1fr 32%; gap: 24px; }
  .hero h1 { font-size: clamp(3.65rem, 9.35vw, 5.4rem); }
  .hero-art { padding-right: 5px; }
}
@media (max-width: 590px) {
  .shell { width: calc(100% - 34px); }
  .masthead { min-height: 62px; gap: 8px; }
  .wordmark { gap: 7px; font-size: .87rem; }
  .wordmark svg { width: 30px; height: 30px; }
  .masthead-index { font-size: .65rem; letter-spacing: .025em; }
  .hero { display: block; position: relative; padding: 32px 0 22px; }
  .eyebrow { margin-bottom: 17px; font-size: .69rem; }
  .hero h1 { font-size: clamp(3.13rem, 13.3vw, 4.55rem); line-height: .85; }
  .hero-deck { max-width: 32ch; margin-top: 13px; line-height: 1.3; }
  .hero-art { margin: 7px 4px 0 auto; width: max-content; }
  .hero-sheet {
    width: auto;
    border: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }
  .hero-sheet svg, .sheet-meta, .sheet-footer, .art-caption { display: none; }
  .hero-stamp {
    position: static;
    max-width: none;
    transform: rotate(-6deg);
    padding: 4px 6px 3px;
    background: transparent;
    font-size: .88rem;
  }
  .hero-stamp small { font-size: .52rem; }
  .register { padding-top: 23px; padding-bottom: 29px; }
  .register-count { margin-bottom: 2px; font-size: .64rem; letter-spacing: .025em; }
  .filter-row { display: block; margin: 14px 0 16px; padding-block: 9px; }
  .filter-label { display: block; margin-bottom: 5px; font-size: .66rem; }
  .filters { gap: 4px; }
  .filters button { min-height: 41px; padding-inline: 5px; font-size: .72rem; }
  .case-grid { grid-template-columns: 1fr; gap: 17px; }
  .folder { padding-inline: 13px; }
  .case-card h3 { font-size: 1.59rem; }
  .footer { min-height: 58px; font-size: .59rem; letter-spacing: .015em; gap: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.watch[hidden]{display:none !important}
