:root {
  --ink: #27251f;
  --paper: #f3ead7;
  --paper-light: #fffaf0;
  --green: #23483b;
  --green-dark: #173229;
  --red: #8b352b;
  --gold: #b18a49;
  --rule: #b9a783;
  --shadow: rgba(35, 30, 22, .16);
  --max: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #d9cfba url("../gifs/paperback.jpg") repeat;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.55;
}
a { color: #174f68; text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover, a:focus-visible { color: var(--red); }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
img { max-width: 100%; height: auto; }

.site-header {
  color: #fff8e8;
  background: linear-gradient(180deg, var(--green), var(--green-dark));
  border-bottom: 5px solid var(--gold);
  box-shadow: 0 3px 12px var(--shadow);
}
.masthead {
  max-width: var(--max);
  margin: auto;
  padding: 1.2rem 1rem 1rem;
  text-align: center;
}
.eyebrow {
  margin: 0;
  font: 700 .78rem/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #e5d3a9;
}
h1 {
  margin: .2rem 0 0;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1;
  letter-spacing: .025em;
}
.subtitle { margin: .5rem 0 0; font-style: italic; color: #eadfc8; }

.site-nav { background: rgba(0,0,0,.18); }
.site-nav ul {
  max-width: var(--max);
  margin: auto;
  padding: .25rem 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .15rem .35rem;
  list-style: none;
}
.site-nav a {
  display: block;
  padding: .55rem .7rem;
  color: #fff8e8;
  font: 700 .78rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: 3px;
}
.site-nav a:hover, .site-nav a:focus-visible { background: #fff3d4; color: var(--green-dark); }

main { max-width: var(--max); margin: 1.5rem auto 3rem; padding: 0 1rem; }
.hero, .catalog {
  background: rgba(255,250,240,.94);
  border: 1px solid var(--rule);
  box-shadow: 0 5px 18px var(--shadow);
}
.hero { padding: clamp(1rem, 3vw, 2rem); }
.hero-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.4rem;
}
.hero-images a { display: block; }
.hero-images img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 5px solid #f7f0df;
  outline: 1px solid #8d8068;
  box-shadow: 0 2px 7px var(--shadow);
}
.hero-copy { max-width: 850px; margin: auto; font-size: 1.08rem; }
.hero-copy p:first-child::first-letter {
  float: left; margin: .08em .08em 0 0; color: var(--red);
  font-size: 3.3em; line-height: .78; font-weight: 700;
}
.contact-note {
  margin-top: 1.25rem;
  padding: .8rem 1rem;
  border-left: 4px solid var(--gold);
  background: #f4ead2;
}

.catalog { margin-top: 1.5rem; overflow: hidden; }
.catalog-heading {
  padding: 1.25rem 1.5rem .9rem;
  border-bottom: 3px double var(--rule);
  text-align: center;
}
.catalog-heading h2 { margin: 0; color: var(--green-dark); font-size: clamp(1.5rem, 4vw, 2.2rem); }
.catalog-heading p { margin: .25rem 0 0; color: #665e50; }
.film-table { width: 100%; border-collapse: collapse; }
.film-table th {
  padding: .75rem 1rem;
  background: var(--green);
  color: #fff8e8;
  font: 700 .8rem/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
}
.film-table th:last-child, .film-table td:last-child { text-align: center; width: 6rem; }
.film-table td { padding: .8rem 1rem; border-bottom: 1px solid #d9cdb3; vertical-align: top; }
.film-table tbody tr:nth-child(even) { background: rgba(226,214,188,.28); }
.film-table tbody tr:hover { background: #f3e6c8; }
.film-title { font-weight: 700; }
.watch {
  display: inline-block;
  margin-left: .55rem;
  padding: .12rem .4rem;
  border: 1px solid #a48c62;
  border-radius: 3px;
  background: #f7edda;
  font: 700 .72rem/1.4 Arial, Helvetica, sans-serif;
  text-decoration: none;
  white-space: nowrap;
}
.watch::before { content: "▶ "; font-size: .85em; }

.site-footer {
  padding: 1.5rem 1rem 2rem;
  color: #e9dfc9;
  background: var(--green-dark);
  border-top: 5px solid var(--gold);
  text-align: center;
  font-size: .9rem;
}
.site-footer a { color: #fff4d6; }
.site-footer p { margin: .25rem 0; }

@media (max-width: 700px) {
  .hero-images { grid-template-columns: 1fr; }
  .hero-images a { max-width: 420px; margin: auto; width: 100%; }
  .film-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .film-table, .film-table tbody, .film-table tr, .film-table td { display: block; width: 100%; }
  .film-table tr { padding: .75rem 1rem; border-bottom: 1px solid var(--rule); }
  .film-table td { padding: .12rem 0; border: 0; text-align: left !important; }
  .film-table td:nth-child(2)::before { content: "Production: "; font-weight: 700; }
  .film-table td:nth-child(3)::before { content: "Year: "; font-weight: 700; }
  .film-table td:last-child { width: auto; }
  .film-table tbody tr:nth-child(even) { background: rgba(226,214,188,.28); }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  body { background: #fff; }
  .site-nav { display: none; }
  .hero, .catalog { box-shadow: none; }
}
