/* independentcinema.com — static rebuild, September 2026
   Faithful to the 2012 design: teal masthead, filmstrip framing, tan text, three-frame rotator. */

:root {
  --teal: #005b66;
  --ink: #050202;
  --grey: #474747;
  --tan: #d6c6b3;
  --paper: #ffffff;
  --measure: 960px;
}

* { box-sizing: border-box; }

html { background: var(--ink); color: var(--tan); }

body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--tan); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--tan); outline-offset: 2px;
}

img, video { max-width: 100%; height: auto; display: block; }

.page { max-width: var(--measure); margin: 0 auto; padding: 0 16px; }

/* Masthead and nav */
.mast { padding: 18px 0 0; }
.mast img { margin: 0 auto; }

.nav {
  display: flex; gap: 2.5em; justify-content: center;
  margin: 14px 0 0; padding: 10px 0;
  border-top: 1px solid var(--grey); border-bottom: 1px solid var(--grey);
  font-size: 1.05rem; letter-spacing: .02em;
}
.nav a { text-decoration: none; padding: 2px 0; }
.nav a[aria-current="page"], .nav a:hover { color: var(--paper); border-bottom: 2px solid var(--teal); }

/* Filmstrip frame around the rotator */
.strip { height: 22px; background: url(assets/filmstrip_top.png) repeat-x center; margin: 22px auto 0; max-width: 747px; }
.strip.bottom { background-image: url(assets/filmstrip_bottom.png); margin-top: 0; }

/* Rotator: three frames, crossfade, slow zoom */
.rotator { position: relative; max-width: 747px; margin: 0 auto; aspect-ratio: 747 / 337; overflow: hidden; background: var(--ink); }
.rotator img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s ease-in-out; transform: scale(1);
}
.rotator img.is-active { opacity: 1; animation: kenburns 4.8s linear forwards; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.2); } }
@media (prefers-reduced-motion: reduce) {
  .rotator img { transition: none; }
  .rotator img.is-active { animation: none; }
}

/* Front page content */
.banner { margin: 26px auto 10px; }

.columns { display: grid; grid-template-columns: 110px 2fr 3fr; gap: 28px; align-items: start; margin: 18px 0 40px; }
.columns img { border-radius: 10px; }
.columns h2 { margin: 0 0 .35em; font-size: 1.55rem; font-weight: 600; color: var(--paper); }
.columns p { margin: 0; color: var(--tan); }
@media (max-width: 720px) { .columns { grid-template-columns: 1fr; } .columns img { width: 110px; } }

/* Trailers */
.trailers { display: grid; gap: 40px; margin: 34px 0 48px; }
.trailer h2 { margin: 0 0 .5em; font-size: 1.4rem; font-weight: 600; color: var(--paper); }
.trailer video { width: 100%; background: #000; }

/* Contact */
.contact { max-width: 560px; margin: 30px auto 48px; }
.contact h1 { font-size: 1.6rem; font-weight: 600; color: var(--paper); margin: 0 0 .3em; }
.contact p.lead { margin: 0 0 1.4em; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .95rem; color: var(--paper); }
.field input, .field textarea {
  font: inherit; padding: 9px 11px; border: 1px solid var(--grey); border-radius: 4px;
  background: var(--paper); color: var(--ink); width: 100%;
}
.field textarea { min-height: 160px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }
button {
  font: inherit; font-weight: 600; padding: 10px 22px; border: 0; border-radius: 4px;
  background: var(--teal); color: var(--paper); cursor: pointer;
}
button:hover { filter: brightness(1.15); }
.note { font-size: .9rem; color: var(--grey); margin-top: 1em; }

/* Footer */
.foot { border-top: 1px solid var(--grey); margin-top: 20px; padding: 18px 0 40px; font-size: .9rem; color: var(--grey); text-align: center; }
.foot a { color: var(--grey); }
