* { box-sizing: border-box; }
:root {
  --bg1: #8bd0b4;
  --bg2: #cbe5c6;
  --ink: #1b1b1b;
  --paper: #f2f2f2;
  --panel: #e0e0e0;
  --border: #000;
}
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg1), var(--bg2));
  font-family: "Libre Baskerville", Georgia, serif;
}

.page { padding: 18px; display: grid; place-items: start center; }
.sheet {
  width: min(1200px, 96vw);
  background: var(--paper);
  border: 4px solid var(--border);
  box-shadow: 10px 10px 0 rgba(0,0,0,.6);
  padding: 16px;
}

/* ===== Title Section ===== */
.title-wrap { text-align: center; padding: 4px 8px 0; }
.title {
  display: inline-block;
  margin: 6px 0 2px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1;
  border: 4px solid var(--border);
  padding: 8px 18px;
  background: #fff;
}
.nav-buttons { margin-top: 8px; margin-bottom: 4px; text-align: center; }
.home-btn {
  display: inline-block;
  padding: 6px 12px;
  font-size: 15px;
  text-decoration: none;
  color: var(--ink);
  border: 3px solid var(--border);
  background: #fff;
  transition: background .2s ease, transform .1s ease;
}
.home-btn:hover { background: #f0f0f0; transform: translateY(-2px); }
.date { font-size: 12px; font-style: italic; margin: 6px 0 12px; }

/* ===== Section Headings ===== */
.section-head {
  font-family: "Playfair Display", Georgia, serif;
  margin: 6px 0 2px;
  font-size: 22px;
}
.lede { margin: 0 0 10px; }

/* ===== Card & Grid Layout ===== */
.card {
  background: var(--panel);
  border: 4px solid var(--border);
  box-shadow: 8px 8px 0 rgba(0,0,0,.55);
}

.poster-grid {
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
@media (max-width: 1100px) { .poster-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 920px)  { .poster-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 720px)  { .poster-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px)  { .poster-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== Poster Cards ===== */
.poster {
  display: grid;
  grid-template-rows: minmax(0,1fr) auto;
  text-decoration: none;
  color: inherit;
  border: 3px solid var(--border);
  background: #fff;
  transition: transform .12s ease, box-shadow .12s ease;
  overflow: hidden;
  aspect-ratio: 2/3;
}
.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #f5f5f5;
  font-size: 0;
}
.poster-title {
  margin: 0;
  padding: 10px;
  font-size: 14px;
  text-align: center;
  background: #f8f8f8;
  border-top: 3px solid var(--border);
  min-height: 48px; /* prevents text from being crushed */
  display: flex;
  align-items: center;
  justify-content: center;
}
.poster:hover,
.poster:focus-visible {
  transform: translateY(-3px);
  box-shadow: 6px 6px 0 rgba(0,0,0,.6);
}
.poster:hover .poster-title,
.poster:focus-visible .poster-title { text-decoration: underline; }

/* ===== Footer ===== */
.intro { padding: 6px 2px 14px; text-align: center; }
.foot { text-align: center; padding: 14px 0 2px; font-size: 12px; }
