/* ==========================================================================
   LUKE RICHERT — PORTFOLIO SITE STYLES
   --------------------------------------------------------------------------
   Everything visual lives in this one file. The easiest things to customize
   are the variables right below — change a color or font here and it
   updates across the entire site.
   ========================================================================== */

:root {
  /* Colors */
  --bg: #0b0b0b;            /* page background (near-black) */
  --bg-raised: #141414;     /* placeholder boxes / subtle panels */
  --text: #e8e6e1;          /* main text (warm off-white) */
  --muted: #8f8c86;         /* secondary text: years, captions, meta */
  --line: #2a2a2a;          /* hairline borders */
  --accent: #d6cdbb;        /* hover color (soft parchment) */

  /* Fonts */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif; /* titles */
  --sans: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif; /* body & nav */
}

/* ---------- Base ---------- */

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--text); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent); }

/* Links inside paragraphs get a subtle underline so they're visible */
p a, li a {
  border-bottom: 1px solid var(--muted);
  padding-bottom: 1px;
}
p a:hover, li a:hover { border-color: var(--accent); }

/* ---------- Header & navigation (standard pages) ---------- */

.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem 1.5rem;
  padding: 2rem clamp(1.25rem, 5vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.site-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 1.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.site-nav a { color: var(--muted); }
.site-nav a:hover, .site-nav a.active { color: var(--text); }

/* ---------- Banner hero (index.html) ---------- */

.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* The banner image itself (or its placeholder) fills the hero */
.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Slightly darkened so the overlaid text always reads clearly */
  filter: brightness(0.65);
}

/* Gradient so name + nav are readable over any image */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11,11,11,0.25) 0%, rgba(11,11,11,0.05) 45%, rgba(11,11,11,0.92) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 5.6vw, 3.6rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.1;
}

.hero-nav {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem 2.25rem;
  font-size: 0.82rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

/* ---------- Page content containers ---------- */

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.page-wide {
  max-width: 860px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.page h1, .page-wide h1 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 3.5rem 0 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}

.bio p { margin-bottom: 1.4rem; }

/* ---------- Image placeholders ----------
   These dashed boxes mark every spot where Luke should drop in a real
   image. Each one says exactly which file to add. Once the image exists
   in /images, delete the placeholder <div> and uncomment the <img> tag
   sitting right next to it in the HTML. */

.placeholder {
  background: var(--bg-raised);
  border: 1px dashed #3d3d3d;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  line-height: 1.6;
  padding: 1rem;
}

.placeholder-banner { aspect-ratio: 21 / 9; }
.placeholder-photo  { aspect-ratio: 4 / 5; max-width: 420px; margin: 0 auto; }
.placeholder-thumb  { aspect-ratio: 16 / 9; }

/* ---------- Video embeds ---------- */

.video-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  margin: 2rem 0;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Films index (films.html) ---------- */

.film-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-bottom: 2rem;
}

/* Each project is a row: a half-width image beside its title and year,
   with the image alternating left and right as you scroll down the list. */
.film-card {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}
.film-card:nth-child(even) { flex-direction: row-reverse; }

.film-thumb {
  width: 50%;
  aspect-ratio: 2000 / 1301;   /* same ratio as the AUMH icon; crops the rest to match */
  object-fit: cover;
  transition: opacity 0.25s ease;
}
.film-card:hover .film-thumb { opacity: 0.8; }

/* Title + year sit centered in the open half beside the image. */
.film-info {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
}

.film-info h2 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.film-year {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  white-space: nowrap;
}

/* ---------- Individual film pages ---------- */

.back-link {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.film-meta {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: -1.4rem;
  margin-bottom: 1rem;
}

.film-copy { margin: 1.5rem 0; }

.laurels h2 {
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2.5rem 0 1rem;
}

.laurels ul { list-style: none; }
.laurels li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

/* ---------- Contact page ---------- */

.contact-list { list-style: none; margin-top: 1rem; }
.contact-list li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.contact-list .contact-label {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  align-self: center;
}

.contact-note { color: var(--muted); font-style: italic; margin-top: 2rem; }

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

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 4rem;
  padding: 2.5rem 1.5rem 3rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
}

.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }

/* ---------- v2 polish ---------- */

/* Gentle fade-up as each page loads */
.page, .page-wide, .hero-content { animation: fadeUp 0.7s ease both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* Respect visitors who turn off motion in their system settings */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Film titles warm up on hover in the films list */
.film-card h2 { transition: color 0.2s ease; }
.film-card:hover h2 { color: var(--accent); }

/* Previous / next links at the bottom of each film page.
   When adding a new film, update the pager links on its neighbors
   so the chain stays intact. */
.film-pager {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 3.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

.film-pager a { color: var(--muted); }
.film-pager a:hover { color: var(--text); }
.film-pager .next { margin-left: auto; text-align: right; }

/* ---------- Small screens ---------- */

@media (max-width: 600px) {
  .site-header { flex-direction: column; align-items: flex-start; }

  /* Films list stacks on phones: full-width image with title/year beneath. */
  .film-card,
  .film-card:nth-child(even) { flex-direction: column; }
  .film-thumb, .film-info { width: 100%; }
  .film-info { margin-top: 0.5rem; }
}
