@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@700;800&display=swap');

:root {
  color-scheme: light;
  --bg: #ECE4D6;
  --ink: #2A2620;
  --ink-muted: #6B6459;

  /* Section fonts — swap any of these to retune a font choice later. */
  --font-writing: "Times New Roman", Times, serif;
  --font-film: "Courier New", Courier, monospace;
  --font-photography: "Baloo 2", sans-serif; /* stand-in for Kodak's wordmark */
  --font-body: system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
}

a {
  color: inherit;
}

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

/* ── Page 1: cover ──────────────────────────────────────────────────────── */
.cover {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.cover-link {
  display: block;
  max-width: min(90vw, 32rem);
}

.cover-link img {
  width: 100%;
  height: auto;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.cover-link:hover img {
  transform: scale(1.01);
}

/* ── Page 2: word menu ──────────────────────────────────────────────────── */
.menu {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 4vw, 2.5rem);
}

.menu a {
  text-decoration: none;
  font-size: clamp(2rem, 6vw, 3.5rem);
  letter-spacing: 0.02em;
}

.menu a:hover {
  opacity: 0.6;
}

.menu .writing    { font-family: var(--font-writing); }
.menu .film       { font-family: var(--font-film); }
.menu .photography { font-family: var(--font-photography); font-weight: 800; }

/* ── Section chrome (shared by photography/film/writing listing pages) ──── */
.section-header {
  max-width: 60rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.section-header .back {
  font-size: 0.9rem;
  color: var(--ink-muted);
  text-decoration: none;
}

.section-header .back:hover {
  color: var(--ink);
}

.section-header h1 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin: 0;
}

.empty-state {
  max-width: 60rem;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  color: var(--ink-muted);
}

/* ── Photography: series grid ──────────────────────────────────────────── */
/* A fixed 3-across table (2 rows for 6 series), not an auto-filling grid —
   this is a deliberate contact-sheet layout, per Parker's spec. */
.series-grid {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.75rem;
}

@media (max-width: 56rem) {
  .series-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 34rem) {
  .series-grid { grid-template-columns: 1fr; }
}

.series-card {
  text-decoration: none;
  display: block;
}

.series-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.series-card .title {
  margin-top: 0.75rem;
  font-family: var(--font-photography);
  font-weight: 700;
  font-size: 1.1rem;
}

/* ── Photography: gallery ──────────────────────────────────────────────── */
.gallery {
  max-width: 70rem;
  margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 2.5rem;
}

.gallery figure {
  margin: 0;
}

.gallery figcaption {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.buy-print {
  font: inherit;
  font-size: 0.85rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--ink-muted);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-muted);
  cursor: not-allowed;
  white-space: nowrap;
}

/* ── Film / writing listings ───────────────────────────────────────────── */
.film-list, .writing-list {
  list-style: none;
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.film-list li, .writing-list li {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.writing-list h3 {
  margin: 0 0 0.25rem;
}

.writing-meta {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.writing-logline {
  margin: 0;
  font-family: var(--font-writing);
  font-style: italic;
}

/* ── Film: listing row (thumbnail + details) ───────────────────────────── */
.film-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  text-decoration: none;
}

.film-thumb {
  flex: 0 0 auto;
  width: 9rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.06);
}

.film-thumb--empty {
  display: block;
}

.film-details h3 {
  margin: 0 0 0.25rem;
}

.film-meta {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* ── Film: collection page (trailer + Q&As side by side) ───────────────── */
.collection-extras {
  max-width: 60rem;
  margin: 2.5rem auto 4rem;
  padding: 0 1.5rem;
}

.collection-extras h2 {
  font-size: 1.1rem;
  margin: 0 0 1rem;
}

.extras-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.extras-row li {
  flex: 0 1 14rem;
}

.extras-row a {
  display: block;
  text-decoration: none;
}

.extras-row img, .extras-row .film-thumb--empty {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.06);
  display: block;
}

.extra-title {
  display: block;
  margin-top: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.extra-runtime {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.film-details p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* ── Film: watch page ───────────────────────────────────────────────────── */
.video-wrap {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  aspect-ratio: 16 / 9;
}

.video-wrap iframe, .video-wrap video {
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.video-description {
  max-width: 60rem;
  margin: 1.5rem auto 4rem;
  padding: 0 1.5rem;
  color: var(--ink-muted);
}

/* ── Writing: reading page ─────────────────────────────────────────────── */
.prose {
  max-width: 38rem;
  margin: 1rem auto 5rem;
  padding: 0 1.5rem;
  font-family: var(--font-writing);
  font-size: 1.15rem;
  line-height: 1.75;
}

.prose p {
  margin: 0 0 1.25em;
}

