/* Linda Nieves-Powell — lindanievespowell.net
   Cinematic direction: dark ground, photographs carry the light. */

:root {
  --bg: #14110f;
  --bg-raised: #1c1815;
  --ink: #f2ede6;
  --ink-soft: #b4a99d;
  --ink-faint: #8a7f74;
  --rule: #332c27;
  --accent: #d8663f;
  --accent-hover: #e8815e;
  --max: 1120px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

::selection { background: var(--accent); color: #14110f; }

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

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 22px 0;
  position: sticky;
  top: 0;
  background: rgba(20, 17, 15, 0.92);
  backdrop-filter: blur(10px);
  z-index: 50;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
.brand:hover { color: var(--accent); }

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

nav a {
  color: var(--ink-faint);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

nav a:hover, nav a[aria-current="page"] { color: var(--ink); }

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: normal;
  line-height: 1.1;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); margin: 0 0 14px; letter-spacing: -0.01em; }
h2 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 28px;
}
h3 { font-size: 1.2rem; margin: 0 0 10px; }

.tagline {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 30px;
}

.lede { font-size: 1.05rem; max-width: 60ch; color: var(--ink-soft); }

section { padding: 76px 0; }
section + section { border-top: 1px solid var(--rule); }

/* ---------- Home hero ---------- */

.hero { display: grid; grid-template-columns: 1.35fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; gap: 36px; } }

.hero img { width: 100%; max-width: 380px; margin: 0 auto; }

/* keep the name on one line in the hero */
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.5rem); }

/* ---------- Projects hub ---------- */

.project-list { display: grid; gap: 40px; }
.project-card {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 32px;
  align-items: center;
  border: 0;
  color: inherit;
}
@media (max-width: 700px) { .project-card { grid-template-columns: 1fr; gap: 20px; } }
.project-thumb img { width: 100%; }
.project-thumb.portrait img { width: auto; max-height: 400px; margin: 0 auto; }
.project-info h2 {
  font-family: Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  margin: 0 0 10px;
}
.project-card:hover .project-info h2 { color: var(--accent); }
.project-meta {
  color: var(--ink-faint);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.project-blurb { color: var(--ink-soft); margin: 0 0 16px; }
.project-more { color: var(--accent); font-size: 0.95rem; }

/* ---------- Film page ---------- */

.film-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 760px) { .film-hero { grid-template-columns: 1fr; gap: 32px; } }
.laurel img { width: 100%; max-width: 340px; margin: 0 auto; }
.poster-portrait img { width: 100%; max-width: 360px; margin: 0 auto; }
.film-credit {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin: -18px 0 0;
}
.playlist-embed {
  border: 0;
  border-radius: 12px;
  display: block;
  margin-top: 20px;
  background: var(--bg-raised);
}

.film-text { max-width: 68ch; }
.film-text p { color: var(--ink-soft); }
.placeholder { color: var(--ink-faint); font-style: italic; }

.cast-list { list-style: none; padding: 0; margin: 0; }
.cast-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.cast-list li:last-child { border-bottom: 0; }
.cast-list .actor { font-family: Georgia, serif; font-size: 1.15rem; color: var(--ink); }
.cast-list .role { color: var(--ink-faint); text-align: right; }

.credits { margin: 0; }
.credit-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.credit-row:last-child { border-bottom: 0; }
.credit-row .role {
  color: var(--ink-faint);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-top: 3px;
}
.credit-row .people { color: var(--ink-soft); }
@media (max-width: 600px) { .credit-row { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Work lists ---------- */

.work-list { list-style: none; padding: 0; margin: 0; }
.work-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  font-family: Georgia, serif;
  font-size: 1.35rem;
  color: var(--ink);
}
.work-list li:last-child { border-bottom: 0; }
.work-list .note {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink-faint);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-left: 8px;
}

.script-detail {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  color: var(--ink-soft);
  max-width: 68ch;
  margin-top: 22px;
}
.script-detail p { margin: 0 0 1.3em; }
.script-detail .logline {
  font-family: Georgia, serif;
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--ink);
}
.script-detail h3 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 28px 0 14px;
}
.script-detail h3:first-child { margin-top: 0; }

.laurel-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
}
.laurel-row img { width: 165px; max-width: 100%; }
@media (max-width: 520px) {
  .laurel-row { gap: 12px; }
  .laurel-row img { width: 128px; }
}

.poster-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px; align-items: center; }
.poster-grid img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.poster-grid img:hover { transform: translateY(-4px); }

.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.link-list li:last-child { border-bottom: 0; }
.link-list a,
.link-list .title { font-family: Georgia, serif; font-size: 1.2rem; }
.link-list .title { color: var(--ink); }
.link-list .kind {
  display: inline-block;
  min-width: 92px;
  color: var(--ink-faint);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.link-list .note {
  color: var(--ink-faint);
  font-size: 0.85rem;
}

/* ---------- Blog ---------- */

.post-card { display: grid; grid-template-columns: 1fr 1.3fr; gap: 36px; align-items: center; }
@media (max-width: 700px) { .post-card { grid-template-columns: 1fr; } }

.post-card h2 {
  font-family: Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  margin: 10px 0 14px;
}
.post-card h2 a { color: var(--ink); }
.post-card h2 a:hover { color: var(--accent); }

.post-meta {
  color: var(--ink-faint);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.post-body { max-width: 66ch; margin: 0 auto; }
.post-body h1 { margin-bottom: 18px; }
.post-body p { margin: 0 0 1.5em; }
.post-body img { margin: 40px 0; }

/* ---------- Gallery ---------- */

.gallery { columns: 3 300px; column-gap: 22px; }
.gallery figure { break-inside: avoid; margin: 0 0 22px; }
.gallery figcaption {
  font-size: 0.82rem;
  color: var(--ink-faint);
  padding-top: 10px;
  line-height: 1.55;
}
.gallery img {
  width: 100%;
  background: var(--bg-raised);
  transition: opacity 0.3s ease;
}
.gallery img:hover { opacity: 0.75; }

/* Lightbox */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 7, 0.97);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 48px;
  z-index: 100;
  cursor: zoom-out;
}
#lightbox.open { display: flex; }
#lightbox img { max-width: 100%; max-height: 86vh; width: auto; }
#lightbox .cap {
  position: absolute;
  bottom: 20px;
  left: 0; right: 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.88rem;
  padding: 0 48px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--bg-raised);
  padding: 56px 0;
}
.site-footer .name {
  font-family: Georgia, serif;
  font-size: 1.5rem;
  color: var(--ink);
  margin: 0 0 14px;
}
.site-footer p { margin: 0 0 10px; color: var(--ink-faint); font-size: 0.95rem; }
