/* Tsipi Reibenbach Films — shared styles */

:root {
  --bg: #17171b;
  --bg-alt: #212126;
  --text: #ece8e1;
  --muted: #a9a49b;
  --accent: #d2b483;
  --rule: #34343b;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 1120px;
  --text-wrap: 720px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.7;
}

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

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--text); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1.1em; }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--bg); padding: 8px 12px;
}
.skip:focus { left: 8px; top: 8px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 24px; padding-top: 18px; padding-bottom: 18px;
}
.brand {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 600;
  color: var(--text); text-decoration: none; letter-spacing: 0.02em;
}
.brand:hover { color: var(--accent); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 1.05rem; }
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"] { border-bottom: 2px solid var(--accent); }

/* Sections */
main { display: block; }
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { text-align: center; margin-bottom: 40px; }
.page-head { padding: 56px 0 8px; }
.page-head .eyebrow { margin-bottom: 0.4em; }
.eyebrow { color: var(--accent); font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; }
.lede { font-family: var(--serif); font-size: 1.3rem; font-style: italic; color: var(--text); }
.muted { color: var(--muted); }

.button {
  display: inline-block; padding: 10px 22px; border: 1px solid var(--accent);
  color: var(--accent); text-decoration: none; font-size: 1rem;
}
.button:hover { background: var(--accent); color: var(--bg); }

/* Home hero */
.hero { padding: 72px 0 64px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); margin-bottom: 0.3em; }
.hero p { color: var(--muted); max-width: 34em; }
.hero img { width: 100%; border: 1px solid var(--rule); }
@media (min-width: 800px) {
  .hero .wrap { grid-template-columns: 1.1fr 1fr; }
}

/* Film cards */
.films { display: grid; gap: 32px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.film-card { text-decoration: none; color: var(--text); display: block; }
.film-card img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; filter: grayscale(15%); transition: filter .2s; }
.film-card:hover img { filter: none; }
.film-card h3 { margin: 14px 0 2px; }
.film-card:hover h3 { color: var(--accent); }
.film-card .muted { font-size: 1rem; margin: 0; }

/* Awards */
.honors { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); text-align: center; }
.honors .year { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 1.2rem; margin-bottom: 0.4em; }

.award-list { list-style: none; padding: 0; margin: 0 0 1.5em; }
.award-list li { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.award-list li:last-child { border-bottom: 0; }
.award-list .year { color: var(--accent); font-weight: 600; margin-right: 0.5em; }

/* Gallery */
.gallery { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gallery a { display: block; overflow: hidden; background: var(--bg-alt); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.03); }

/* Lightbox */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh;
}
.lightbox::backdrop { background: rgba(0, 0, 0, .9); }
.lightbox img { max-width: 94vw; max-height: 88vh; width: auto; margin: 0 auto; }
.lightbox-close {
  position: fixed; top: 12px; right: 16px; background: none; border: 0;
  color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer;
}

/* Productions list */
.production { display: grid; gap: 28px; padding: 48px 0; border-bottom: 1px solid var(--rule); }
.production:last-child { border-bottom: 0; }
.production img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.production .specs { color: var(--accent); font-size: 1rem; }
@media (min-width: 760px) {
  .production { grid-template-columns: 320px 1fr; gap: 48px; align-items: start; }
}

/* Biography */
.bio { display: grid; gap: 32px; }
.bio img { width: 196px; border-radius: 50%; aspect-ratio: 1; object-fit: cover; object-position: top; }
@media (min-width: 700px) {
  .bio { grid-template-columns: 196px 1fr; gap: 48px; }
}

/* Quotes / press */
blockquote { margin: 0 0 1.5em; padding: 0 0 0 22px; border-left: 3px solid var(--accent); }
blockquote p { font-family: var(--serif); font-style: italic; font-size: 1.15rem; }
.cite { color: var(--muted); font-size: 1rem; }
.article { padding: 40px 0; border-bottom: 1px solid var(--rule); }
.article:last-child { border-bottom: 0; }

/* Film page */
.film-nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 32px 0 0; border-top: 1px solid var(--rule); margin-top: 48px; }

/* Contact */
.contact { display: grid; gap: 32px; align-items: center; }
.contact img { width: 100%; }
@media (min-width: 800px) { .contact { grid-template-columns: 1fr 1fr; } }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 36px 0; text-align: center; color: var(--muted); font-size: 1rem; }
.site-footer p { margin: 0.3em 0; }
.site-footer a { color: var(--text); }
