:root {
  --paper: #faf8f2;
  --surround: #e8e4d8;
  --ink: #1c1a16;
  --accent: #a1732f;
  --rule: #d9d3c2;
  --muted: #8c8672;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--surround);
  font-family: 'Courier Prime', 'Courier New', monospace;
  color: var(--ink);
  padding: 56px 16px;
}

.page {
  max-width: 680px;
  margin: 0 auto;
  background: var(--paper);
  padding: 72px 60px;
  box-shadow: 0 3px 30px rgba(0, 0, 0, 0.10);
  position: relative;
  line-height: 1.75;
  font-size: 16px;
}

.page-number {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 13px;
  color: var(--muted);
}

.title-block {
  text-align: center;
  margin-bottom: 60px;
}
.title-block h1 {
  font-size: 24px;
  letter-spacing: 3px;
  margin: 0 0 36px;
}
.title-block .by {
  font-size: 15px;
  margin-bottom: 10px;
  font-style: italic;
  color: var(--muted);
}
.title-block .author {
  font-size: 16px;
  letter-spacing: 2px;
}

.transition {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 15px;
  margin: 40px 0 20px;
}
.transition.right { text-align: right; }

.slug {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 15px;
  margin: 36px 0 12px;
}

p { margin: 0 0 16px; }

nav.scenes {
  margin-top: 56px;
  border-top: 1px solid var(--rule);
  padding-top: 36px;
}
nav.scenes .slug a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
nav.scenes .slug a:hover {
  border-bottom-color: var(--accent);
  color: var(--accent);
}
nav.scenes ul {
  list-style: none;
  padding-left: 28px;
  margin: 6px 0 30px;
  font-size: 15px;
}
nav.scenes li { margin-bottom: 8px; }
nav.scenes li a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
nav.scenes li a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.placeholder {
  font-style: italic;
  color: var(--muted);
}

.back-link {
  display: inline-block;
  margin-top: 56px;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  font-size: 14px;
}

.show-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin: 8px 0 40px;
}
.show-card { text-align: center; }
.show-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--rule);
}
.show-card .caption {
  margin-top: 10px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

.film { margin-bottom: 36px; }
.film-title {
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.watch-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  font-size: 15px;
}
.watch-link:hover { opacity: 0.75; }

.poster-link {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
  border: 1px solid var(--rule);
  transition: opacity 0.15s ease;
}
.poster-link:hover { opacity: 0.85; }

.clip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 4px;
}
.clip-grid a { display: block; }
.clip-grid img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--rule);
  transition: opacity 0.15s ease;
}
.clip-grid img:hover { opacity: 0.85; }
.clip-grid .clip-caption {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.static-poster {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
  border: 1px solid var(--rule);
  margin-bottom: 18px;
}

.credits { font-size: 15px; }

@media (max-width: 560px) {
  .clip-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .page { padding: 48px 28px; }
  .show-grid { grid-template-columns: 1fr; }
}
