:root {
  color-scheme: light;
  --ink: #20211f;
  --paper: #f1efe8;
  --muted: #77766f;
  --line: #d2cfc4;
  --accent: #e85d3f;
  --card: #e6e2d8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
}

a { color: inherit; }

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .16em;
}

.brand-mark {
  width: 38px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: .82rem;
  letter-spacing: 0;
}

nav { display: flex; gap: 28px; }
nav a { text-decoration: none; font-size: .9rem; }
nav a:hover { color: var(--accent); }

.hero {
  min-height: 570px;
  padding: 95px 0 70px;
  display: grid;
  align-content: center;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 88% 25%, rgba(232, 93, 63, .18), transparent 24%),
    linear-gradient(115deg, transparent 0 66%, rgba(32, 33, 31, .055) 66% 67%, transparent 67%);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .72rem;
  font-weight: 750;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 9vw, 8.8rem);
  font-weight: 400;
  line-height: .86;
  letter-spacing: -.055em;
}

.intro {
  max-width: 590px;
  margin: 34px 0 30px;
  color: #4f504c;
  font-size: 1.08rem;
}

.button {
  width: fit-content;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  text-decoration: none;
  font-size: .9rem;
}

.catalogue { padding: 90px 0 110px; }

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 38px;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 400;
  letter-spacing: -.035em;
}

.search input {
  min-width: 230px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 10px 2px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  outline: none;
}

.film-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.film-card { min-width: 0; }
.film-card[hidden] { display: none; }

.poster {
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  overflow: hidden;
  background: var(--card);
  border-radius: 3px;
}

.poster span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  color: rgba(255, 255, 255, .86);
}

.poster-one { background: linear-gradient(145deg, #193642, #79a39f 55%, #ded6c6); }
.poster-two { background: linear-gradient(25deg, #d99b50, #ece0be 45%, #66808a); }
.poster-three { background: linear-gradient(160deg, #201f2b, #594e68 55%, #d2775f); }

.meta {
  margin: 17px 0 5px;
  color: var(--muted);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.film-card h3 { margin: 0; font-size: 1.25rem; }
.film-card > p:last-child { margin-top: 8px; color: #5c5b56; }
.empty-state { color: var(--muted); }

.journal,
.about {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 45px;
  padding: 85px 0;
  border-top: 1px solid var(--line);
}

.journal blockquote {
  grid-column: 2;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.12;
}

.journal > p:last-child,
.about > p:last-child {
  grid-column: 2;
  max-width: 680px;
  color: #555650;
}

footer {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  .site-header { min-height: 70px; }
  nav { gap: 14px; }
  nav a:nth-child(2) { display: none; }
  .hero { min-height: 500px; padding-top: 65px; }
  .section-heading { align-items: start; flex-direction: column; }
  .search, .search input { width: 100%; }
  .film-grid { grid-template-columns: 1fr; gap: 48px; }
  .journal, .about { grid-template-columns: 1fr; gap: 20px; }
  .journal blockquote,
  .journal > p:last-child,
  .about > p:last-child { grid-column: 1; }
}
