
:root {
  --news: #f3ead6;
  --ink: #1a1510;
  --crimson: #b81c29;
  --muted: #5c4e40;
  --cream: #fcf7ec;
  --rule: rgba(26, 21, 16, 0.14);
}
* { box-sizing: border-box; }
html { background: #120f0c; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Liberation Serif", "Georgia", serif;
  min-height: 100vh;
}
body.scene-newsprint {
  background:
    linear-gradient(transparent 53px, rgba(184,28,41,0.06) 54px),
    linear-gradient(90deg, transparent 53px, rgba(26,21,16,0.05) 54px),
    var(--news);
  background-size: 54px 54px, 54px 54px, auto;
}
body.scene-photo {
  color: var(--cream);
  background-color: #120f0c;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
body.scene-photo::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,10,8,0.58) 0%, rgba(12,10,8,0.4) 42%, rgba(12,10,8,0.66) 100%);
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }
a { color: var(--crimson); }
body.scene-photo a { color: #e7d2d4; }
header, main, footer { width: min(1100px, calc(100% - 40px)); margin: 0 auto; }
header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px 12px;
  margin-top: 18px;
  border-bottom: 1px solid var(--rule);
  background: rgba(252, 247, 236, 0.94);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(8,6,4,0.1);
}
header a { color: var(--muted); }
body.scene-photo header a { color: var(--muted); }
body.scene-photo header .wordmark { color: var(--ink); }
body.scene-photo header .follow a { color: var(--ink); }
body.scene-photo header .follow a.on,
body.scene-photo header .follow a.download-shorts { color: var(--cream); }
nav a:hover { color: var(--crimson); }
header nav a[href$="upload.html"] { color: var(--crimson); font-weight: 700; }
.chrome-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: "Liberation Sans", "Helvetica Neue", sans-serif; font-weight: 700; font-size: 1.6rem; letter-spacing: 0.02em; color: var(--ink); text-decoration: none; }
.wordmark .profile { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--news); flex: none; }
.wordmark span { color: var(--crimson); }
.channel-picture { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; background: var(--news); display: block; margin: 12px 0 16px; }
.croc-hello {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: rgba(252, 247, 236, 0.94);
  color: var(--ink);
  padding: 18px 22px 0 12px;
  margin: 22px 0 8px;
  border: 1px solid var(--rule);
}
.croc-hello img {
  width: 168px;
  height: auto;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
  flex: none;
}
.croc-hello h1 { margin: 0 0 8px; font-size: clamp(1.35rem, 2.2vw, 1.85rem); font-weight: 400; }
.croc-hello p { margin: 0; max-width: 38rem; }
.croc-hello h1, .croc-hello p, .croc-hello .kicker { text-shadow: none; }
.croc-hello p { color: var(--muted); }
.croc-hello div { padding-bottom: 18px; }
h2.day-title { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; margin: 28px 0 8px; font-weight: 400; }
section.solved { margin: 12px 0 36px; }
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 14px; margin: 16px 0 18px; }
a.film-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(252, 247, 236, 0.94);
  color: var(--ink);
  text-decoration: none;
  padding: 8px;
  border: 1px solid var(--rule);
}
body.scene-photo a.film-card,
body.scene-photo a.film-card .clue-text,
a.film-card:hover { color: var(--ink); }
a.film-card img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #111; border-radius: 8px; }
a.film-card .clue-text { font-size: 0.92rem; line-height: 1.25; margin: 0; color: var(--ink); }
a.film-card .when,
body.scene-photo a.film-card .when { font-family: "Liberation Sans", sans-serif; font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin: 0; }
@media (max-width: 700px) {
  .croc-hello { flex-direction: column; align-items: flex-start; padding-bottom: 8px; }
  .croc-hello img { width: 132px; }
  .croc-hello div { padding-bottom: 10px; }
}
nav a { margin-left: 18px; font-family: "Liberation Sans", sans-serif; font-size: 0.9rem; text-decoration: none; color: var(--muted); }
.voices, .places, .follow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.voices span, .places span, .follow span { font-family: "Liberation Sans", sans-serif; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.voices button, .places button, .follow button, .follow a {
  font-family: "Liberation Sans", sans-serif;
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink);
  padding: 6px 10px;
  cursor: pointer;
  font-size: 0.85rem;
  text-decoration: none;
}
.voices button.on, .places button.on, .follow button.on, .follow a.on,
.follow a.download-shorts { background: var(--crimson); color: var(--cream); border-color: var(--crimson); font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; margin: 28px 0 8px; }
body.scene-photo h1, body.scene-photo .lede { text-shadow: 0 2px 18px rgba(0,0,0,0.55); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }
body.scene-photo .lede { color: #eadfd0; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 36px 0 64px; }
@media (max-width: 800px) {
  .pair { grid-template-columns: 1fr; }
  body.scene-photo { background-attachment: scroll; }
}
article.clue {
  background: rgba(252, 247, 236, 0.94);
  color: var(--ink);
  border: 1px solid var(--rule);
  padding: 22px 22px 18px;
}
article.clue a { color: var(--crimson); }
.kicker { font-family: "Liberation Sans", sans-serif; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--crimson); margin: 0 0 12px; }
body.scene-photo > main > .kicker { color: #f0d8d6; }
.clue-text { font-size: 1.55rem; line-height: 1.25; margin: 0 0 18px; }
button.reveal {
  font-family: "Liberation Sans", sans-serif;
  background: var(--crimson);
  color: var(--cream);
  border: 0;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 0.95rem;
}
.spoiler { display: none; margin-top: 16px; }
article.clue.is-open .spoiler { display: block; }
article.clue.is-open button.reveal { display: none; }
/* The film is the solve. The written answer stays off the page until it ends. */
.spoiler .answer, .spoiler .parse { display: none; }
article.clue.is-solved .answer, article.clue.is-solved .parse { display: block; }
video { width: 100%; background: #111; }
video.short {
  display: block;
  width: min(100%, 22rem);
  max-height: min(72vh, 38rem);
  height: auto;
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  background: #111;
  border-radius: 12px;
}
audio.parse-voice { width: 100%; margin-top: 8px; }
.answer { font-size: 2rem; color: var(--crimson); margin: 12px 0 6px; }
.parse { color: var(--muted); font-size: 0.98rem; }
.credit { font-family: "Liberation Sans", sans-serif; font-size: 0.85rem; }
.scene-credits { list-style: none; padding: 0; }
.scene-credits li { margin: 0 0 8px; }
footer {
  border-top: 1px solid var(--rule);
  padding: 24px 18px 48px;
  margin-bottom: 24px;
  color: var(--muted);
  font-family: "Liberation Sans", sans-serif;
  font-size: 0.85rem;
  background: rgba(252, 247, 236, 0.92);
}
footer a { color: var(--crimson); }
.scene-credit { margin-top: 10px; }
body.scene-photo h2 { text-shadow: 0 2px 18px rgba(0,0,0,0.55); }
.panel, aside.teaser {
  background: rgba(252, 247, 236, 0.94);
  color: var(--ink);
  border: 1px solid var(--rule);
  padding: 22px 22px 18px;
  margin: 0 0 36px;
  max-width: 40rem;
}
.panel a, aside.teaser a { color: var(--crimson); }
.suggest-forms { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 28px 0 64px; }
@media (max-width: 800px) { .suggest-forms { grid-template-columns: 1fr; } }
.suggest-form { display: flex; flex-direction: column; gap: 12px; }
.suggest-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: "Liberation Sans", sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
}
.suggest-form input, .suggest-form textarea {
  font-family: "Liberation Serif", Georgia, serif;
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--rule);
  padding: 8px 10px;
}
.suggest-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.suggest-form button:disabled { opacity: 0.5; cursor: not-allowed; }
.suggest-status { font-family: "Liberation Sans", sans-serif; font-size: 0.9rem; color: var(--muted); margin: 0; }
a.action {
  display: inline-block;
  font-family: "Liberation Sans", sans-serif;
  background: var(--crimson);
  color: var(--cream) !important;
  border: 0;
  padding: 10px 16px;
  text-decoration: none;
  font-size: 0.95rem;
}
a.action.ghost {
  background: transparent;
  color: var(--crimson) !important;
  border: 1px solid var(--crimson);
}
.youtube-upload {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 14px 0 8px;
}
.youtube-title, .youtube-copy {
  font-family: "Liberation Sans", sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 10px;
}
.youtube-title code, .youtube-copy pre {
  display: block;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--rule);
  padding: 8px 10px;
  margin-top: 4px;
  white-space: pre-wrap;
  word-break: break-word;
}
.youtube-copy summary { cursor: pointer; color: var(--crimson); }
.youtube-help, .youtube-poster, .youtube-persist {
  font-family: "Liberation Sans", sans-serif;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 10px;
}
.youtube-zip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 18px 0 28px;
}
.youtube-confirmations { max-width: 40rem; }
.youtube-confirmations dl {
  display: grid;
  gap: 8px 0;
  margin: 14px 0 10px;
}
.youtube-confirmations dl div {
  display: grid;
  grid-template-columns: minmax(9rem, 15rem) 1fr;
  gap: 8px 16px;
  font-family: "Liberation Sans", sans-serif;
  font-size: 0.92rem;
}
.youtube-confirmations dt { color: var(--muted); margin: 0; }
.youtube-confirmations dd { margin: 0; color: var(--ink); font-weight: 700; }
.youtube-confirmations dd pre {
  margin: 0;
  font: inherit;
  font-weight: 700;
  white-space: pre-wrap;
}
@media (max-width: 640px) {
  .youtube-confirmations dl div { grid-template-columns: 1fr; gap: 2px 0; }
}
a.action.download-short, a.action.download-all {
  font-size: 1.2rem;
  font-weight: 700;
  padding: 16px 22px;
}
.staging-list { margin: 0 0 36px; }
.staging-list > h2 { margin: 28px 0 8px; }
.unsolved-poster {
  display: block;
  width: min(100%, 11rem);
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #111;
  border-radius: 8px;
  margin: 0 0 12px;
}
.mark-uploaded {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 8px;
}
.mark-uploaded label {
  font-family: "Liberation Sans", sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mark-uploaded input {
  font-family: "Liberation Serif", Georgia, serif;
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--rule);
  padding: 8px 10px;
}
button.copy-field {
  font-family: "Liberation Sans", sans-serif;
  background: transparent;
  border: 1px solid var(--crimson);
  color: var(--crimson);
  padding: 6px 12px;
  cursor: pointer;
  font-size: 0.85rem;
  margin-top: 6px;
}
ul.archive { list-style: none; padding: 0; margin: 0 0 16px; }
ul.archive li { margin: 0 0 8px; }
aside.ad {
  background: rgba(252, 247, 236, 0.94);
  color: var(--ink);
  border: 1px dashed var(--rule);
  padding: 14px 16px 16px;
  margin: 0 0 36px;
  min-height: 90px;
}
.ad-label {
  font-family: "Liberation Sans", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.rules { max-width: 40rem; }
.rules li { margin: 0 0 8px; }
