/* Redesign: the cards hang in a small gallery under warm spotlights; each film gets a dark screening room. */
:root {
  --wall: #f3eee5;          /* warm gallery white */
  --ink: #1f1b16;
  --muted: #6e665b;
  --rule: #d9d0c1;
  --light: rgb(255 246 226 / .95);  /* the pool of light above each card */
  --cranberry: #a11d33;
  --cranberry-dark: #82152a;
  --pine: #1f4a3b;
  --pine-ink: #f4eddd;
  --pine-muted: #b8c8bb;
  --screen: #14110f;
  --screen-ink: #f4ecdd;
  --screen-muted: #a89e8e;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --gutter: max(20px, 4vw);
  --column: 1120px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--wall); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cranberry); outline-offset: 3px; }
.wrap { max-width: calc(var(--column) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.eyebrow { margin: 0; font: 600 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.section-title { margin: 10px 0 0; font: 400 clamp(44px, 6vw, 76px)/1 var(--serif); letter-spacing: -.01em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px; border: 1.5px solid var(--ink); border-radius: 40px; background: none; color: var(--ink); font: 600 15px/1.2 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.btn:hover { background: var(--ink); color: var(--wall); }
.btn svg { width: 11px; height: 11px; fill: currentColor; }
.btn--solid { border-color: var(--cranberry); background: var(--cranberry); color: #fff; }
.btn--solid:hover { border-color: var(--cranberry-dark); background: var(--cranberry-dark); color: #fff; }
.btn--solid:disabled { opacity: .55; cursor: default; }
.btn--white { border-color: #fff; background: #fff; color: var(--cranberry); }
.btn--white:hover { border-color: var(--pine-ink); background: var(--pine-ink); color: var(--cranberry-dark); }
.btn--light { border-color: rgb(244 236 221 / .55); color: var(--screen-ink); }
.btn--light:hover { border-color: var(--screen-ink); background: var(--screen-ink); color: var(--screen); }

/* Top bar */
.bar { position: sticky; top: 0; z-index: 20; background: var(--wall); border-bottom: 1px solid var(--rule); }
.bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; }
.bar__mark { font: italic 400 24px/1 var(--serif); text-decoration: none; }
.bar__links { display: flex; gap: 32px; margin: 0; padding: 0; list-style: none; }
.bar__links a { padding-bottom: 3px; background: linear-gradient(var(--cranberry), var(--cranberry)) 0 100% / 0 2px no-repeat; font: 500 15px var(--sans); text-decoration: none; transition: background-size .25s ease; }
.bar__links a:hover { background-size: 100% 2px; }
.bar__toggle, .bar__scrim { display: none; }

/* Hero */
.hero { padding: 72px 0 112px; }
.hero__title { margin: 18px 0 0; font: 400 clamp(52px, 11vw, 150px)/1.04 var(--serif); letter-spacing: -.025em; }
.hero__title em { color: var(--cranberry); }
.hero__intro { max-width: 36em; margin: 28px 0 0; color: var(--muted); font-size: 19px; }
.years { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.years a { display: block; padding: 6px 14px; border: 1px solid var(--rule); border-radius: 40px; font: 500 14px var(--sans); text-decoration: none; transition: border-color .2s ease; }
.years a:hover { border-color: var(--ink); }

/* A card hung on the wall: every card gets the same height, whatever its shape */
.wall { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; padding: 6% 7%; }
/* The light fades to nothing at its own edges so it reads as a soft pool, not a box */
.wall::before { content: ""; position: absolute; inset: -14% 0 22%; background: radial-gradient(closest-side, var(--light), rgb(255 246 226 / .5) 55%, rgb(255 246 226 / 0)); pointer-events: none; }
.piece { position: relative; z-index: 1; display: inline-flex; height: 100%; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.piece img { width: auto; height: 100%; max-width: none; box-shadow: 0 1px 2px rgb(0 0 0 / .14), 0 22px 44px -14px rgb(45 28 10 / .5); transition: box-shadow .35s ease; }

/* Museum label */
.placard { border-top: 2px solid var(--ink); padding-top: 16px; }
.placard__year { margin: 8px 0 0; font: 400 64px/1 var(--serif); }
.placard__title { margin: 6px 0 0; font: italic 400 28px/1.15 var(--serif); }
.placard__meta { margin: 14px 0 0; color: var(--muted); font-size: 15px; }
.placard__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.placard--small { border-top-width: 1px; padding-top: 14px; }
.placard--small .placard__year { font-size: 40px; }
.placard--small .placard__title { font-size: 22px; }

/* Newest card */
/* The label's top rule lines up with the top of the newest card */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; margin-top: 72px; scroll-margin-top: 96px; }
.feature .wall { padding-top: 0; }
.feature .placard__year { margin-top: 0; }
.player { position: absolute; z-index: 2; left: 0; right: 0; top: 50%; aspect-ratio: 16 / 9; transform: translateY(-50%); background: #000; box-shadow: 0 30px 60px -20px rgb(0 0 0 / .55); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* The collection */
.collection { padding: 96px 0 120px; border-top: 1px solid var(--rule); }
.exhibits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px 56px; margin: 48px 0 0; padding: 0; list-style: none; }
.exhibit { min-width: 0; scroll-margin-top: 96px; }
.exhibit__link { display: block; color: inherit; text-decoration: none; }
.exhibit__link:hover .piece, .exhibit__link:focus-visible .piece { transform: translateY(-6px); }
.exhibit__link:hover .piece img, .exhibit__link:focus-visible .piece img { box-shadow: 0 1px 2px rgb(0 0 0 / .14), 0 34px 56px -16px rgb(45 28 10 / .55); }
.exhibit__link:hover .placard__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.preview { position: absolute; inset: 0; overflow: hidden; background: #000; opacity: 0; transition: opacity .35s ease; }
.preview.is-on { opacity: 1; }
.preview iframe { position: absolute; top: 50%; left: 50%; width: 140%; height: 140%; border: 0; transform: translate(-50%, -50%); pointer-events: none; }

/* Guest book */
.guestbook { padding: 104px 0 96px; background: var(--pine); color: var(--pine-ink); }
.guestbook .eyebrow { color: var(--pine-muted); }
.guestbook :focus-visible { outline-color: var(--pine-ink); }
.guestbook__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
.guestbook__lede { margin: 20px 0 0; color: var(--pine-muted); font-size: 18px; }
.letter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; align-content: start; }
.field { display: grid; gap: 4px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { color: var(--pine-muted); font: 600 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.field input, .field textarea { width: 100%; padding: 6px 0 8px; border: 0; border-bottom: 1.5px solid rgb(244 237 221 / .45); border-radius: 0; background: transparent; color: var(--pine-ink); font: 400 22px/32px var(--serif); }
/* The message box is ruled like a guest book page */
.field textarea { border-bottom: 0; background: repeating-linear-gradient(transparent 0 31px, rgb(244 237 221 / .3) 31px 32px); resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--pine-ink); }
.letter .btn { justify-self: start; }
.letter__status { grid-column: 1 / -1; margin: 0; min-height: 1.6em; font-weight: 500; }
.foot { padding: 0 0 48px; background: var(--pine); color: var(--pine-muted); font-size: 14px; }
.foot__inner { margin: 0; padding-top: 28px; border-top: 1px solid rgb(244 237 221 / .18); }

/* A single year: the film in a dark screening room, then the card on the wall */
.screening { padding: 32px 0 96px; background: var(--screen); color: var(--screen-ink); }
.screening .eyebrow { margin-top: 56px; color: var(--screen-muted); }
.screening__title { margin: 12px 0 40px; font: 400 clamp(48px, 8vw, 112px)/.95 var(--serif); letter-spacing: -.02em; }
.screening__description { margin: -24px 0 40px; color: var(--screen-muted); font-size: 19px; }
.screen { position: relative; aspect-ratio: 16 / 9; background: #000; box-shadow: 0 0 0 1px rgb(255 255 255 / .06), 0 40px 90px -30px rgb(0 0 0 / .9); }
.screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.screen--empty { display: grid; place-items: center; padding: 20px; color: var(--screen-muted); text-align: center; }
.card-wall { padding: 88px 0 104px; }
.sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; margin-top: 24px; }
.sides figure { margin: 0; min-width: 0; }
.sides figcaption { margin-top: 4px; text-align: center; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--rule); }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero { padding: 48px 0 80px; }
  .feature { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 48px; }
  .placard__year { font-size: 52px; }
  .collection { padding: 72px 0 88px; }
  .exhibits, .sides, .letter, .guestbook__inner { grid-template-columns: minmax(0, 1fr); }
  .exhibits { gap: 56px; margin-top: 32px; }
  .guestbook__inner { gap: 36px; }
  .guestbook { padding: 80px 0 72px; }
  .screening .eyebrow { margin-top: 40px; }
  .card-wall { padding: 64px 0 80px; }
  .pager .btn { padding-inline: 16px; font-size: 14px; }

  /* Hamburger menu that slides out from the right */
  .bar__inner { min-height: 56px; }
  .bar__toggle { display: block; position: relative; z-index: 2; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
  .bar__toggle span { position: absolute; left: 11px; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s ease, opacity .2s ease; }
  .bar__toggle span:nth-child(1) { top: 15px; }
  .bar__toggle span:nth-child(2) { top: 21px; }
  .bar__toggle span:nth-child(3) { top: 27px; }
  .bar.is-open .bar__toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .bar.is-open .bar__toggle span:nth-child(2) { opacity: 0; }
  .bar.is-open .bar__toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .bar__links { position: fixed; z-index: 1; top: 0; right: 0; height: 100vh; height: 100dvh; width: min(80vw, 320px); flex-direction: column; gap: 4px; padding: 88px 32px 32px; background: var(--wall); box-shadow: -12px 0 30px rgb(0 0 0 / .18); transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility 0s .3s; }
  .bar.is-open .bar__links { transform: none; visibility: visible; transition: transform .3s ease; }
  .bar__links a { display: block; padding: 6px 0; background: none; font: 400 34px/1.2 var(--serif); }
  .bar__scrim { display: block; position: fixed; inset: 0; background: rgb(20 17 15 / .45); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s .3s; }
  .bar.is-open .bar__scrim { opacity: 1; visibility: visible; transition: opacity .3s ease; }
  body.menu-open { overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .piece, .piece img, .preview, .btn, .bar__links, .bar__scrim, .bar__toggle span { transition: none; }
  .exhibit__link:hover .piece, .exhibit__link:focus-visible .piece { transform: none; }
}

/* A hidden field only bots fill in; Formspree drops those messages */
.letter__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
