/* Chris Martin — site styles */

:root {
  --ink: #111111;
  --muted: #666666;
  --body: #333333;
  --rule: #E6E4DF;
  --placeholder: #F1F0EC;
  --placeholder-ink: #6B6B6B;
  --bg: #FFFFFF;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: #555555; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

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

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }

/* Header */
.site-header {
  padding-top: 36px;
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px;
}
.site-name { font-size: 20px; font-weight: 700; letter-spacing: 0.06em; }
.site-nav { display: flex; flex-wrap: wrap; gap: 28px; font-size: 14px; letter-spacing: 0.06em; }
.site-nav a { padding: 6px 0; }

/* Shared type */
.label {
  margin: 0;
  font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}
.intro {
  margin: 0; padding: 72px 0 80px;
  font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.4; font-weight: 500;
  max-width: 820px;
}

/* Homepage */
section { scroll-margin-top: 24px; }
.section { padding-top: 96px; display: flex; flex-direction: column; gap: 24px; }
.section:first-of-type { padding-top: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 32px;
}
.tile { display: flex; flex-direction: column; gap: 12px; }
.tile img, .tile .ph { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tile img.top { object-position: center 30%; }
.tile img.left { object-position: left center; background: #000; }
.tile img.keyart { object-position: center 30%; }
.caption { display: flex; flex-direction: column; gap: 2px; }
.caption .title { font-weight: 600; }
.caption .meta { color: var(--muted); }

.about p { margin: 0; font-size: 18px; line-height: 1.7; max-width: 720px; }
.text-link { font-size: 15px; font-weight: 600; text-decoration: underline; padding: 6px 0; align-self: flex-start; }

.contact { padding: 96px 0 64px; }
.email { font-size: clamp(1.05rem, 4.6vw, 2rem); font-weight: 600; align-self: flex-start; padding: 4px 0; overflow-wrap: anywhere; }
.elsewhere { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; letter-spacing: 0.06em; padding-top: 8px; }

/* Placeholders (swap for real images) */
.ph {
  background: var(--placeholder); color: var(--placeholder-ink);
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}

/* Project pages */
.back { display: inline-block; margin-top: 56px; font-size: 14px; color: var(--muted); padding: 6px 0; }
.project-head { padding: 16px 0 40px; display: flex; flex-direction: column; gap: 10px; }
.project-head h1 {
  margin: 0; font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05;
}
.project-head p { margin: 0; color: var(--muted); }

.video { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.poster { position: relative; display: block; }
.poster img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.poster .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%; background: rgba(255, 255, 255, 0.92);
  display: flex; align-items: center; justify-content: center;
}

.details { padding: 64px 0; display: flex; flex-wrap: wrap; gap: 48px 64px; }
.synopsis { flex: 3 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.synopsis .logline { margin: 0; font-size: 22px; line-height: 1.5; font-weight: 500; }
.synopsis p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--body); }
.credits {
  flex: 2 1 280px; min-width: 0; margin: 0;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 24px;
  font-size: 15px; line-height: 1.5; align-content: start;
}
.credits dt { color: var(--muted); }
.credits dd { margin: 0; }

.bts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.bts img, .bts .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.pager {
  margin-top: 96px; padding: 40px 0; border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px;
}
.pager a { display: flex; flex-direction: column; gap: 8px; }
.pager a.next { align-items: flex-end; text-align: right; margin-left: auto; }
.pager .name { font-size: clamp(1.2rem, 2.6vw, 1.8rem); font-weight: 700; }

.site-footer {
  padding: 24px 0 56px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  font-size: 14px; letter-spacing: 0.04em;
}
.site-footer a { font-weight: 600; }
.site-footer span { color: var(--muted); }

/* CV page */
.cv-head {
  padding: 72px 0 56px; border-bottom: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px;
}
.cv-head > div { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.cv-head h1 { margin: 0; font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
.cv-head p { margin: 0; font-size: 18px; line-height: 1.7; }
.button { font-size: 15px; font-weight: 600; border: 1px solid var(--ink); border-radius: 999px; padding: 12px 22px; }

.cv-section { padding: 56px 0; border-bottom: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 24px 48px; }
.cv-section:last-of-type { border-bottom: 0; }
.cv-section > .label { flex: 0 1 200px; }
.cv-body { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 44px; }
.cv-body.tight { gap: 20px; }
.entry { display: flex; flex-direction: column; gap: 8px; }
.entry-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.entry-top .title { font-size: 19px; font-weight: 600; }
.entry-top .when, .entry .meta { font-size: 15px; color: var(--muted); }
.entry .meta { margin: 0; }
.entry ul { margin: 6px 0 0; padding-left: 18px; font-size: 15px; line-height: 1.65; display: flex; flex-direction: column; gap: 4px; }
.row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.row .when { color: var(--muted); }
.cv-body p { margin: 0; line-height: 1.7; }

/* Phones */
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .site-nav { gap: 20px; }
  .intro { padding: 48px 0 56px; }
  .section { padding-top: 72px; }
  .details { padding: 40px 0; }
  .poster .play { width: 64px; height: 64px; }
}

/* Image galleries (stills, behind the scenes) */
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
/* An odd image out at the end of a gallery spans the full width instead of sitting alone */
.gallery img:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Creator statement (between credits and gallery) */
.statement { padding: 0 0 64px; display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.statement p { margin: 0; font-size: 18px; line-height: 1.75; color: var(--body); }
@media (max-width: 600px) { .statement { padding-bottom: 48px; } }

/* Work together (homepage) */
.together .lead { margin: 0; font-size: 18px; line-height: 1.7; max-width: 720px; }
.asks { margin: 0; padding: 0; list-style: none; max-width: 760px; border-top: 1px solid var(--rule); }
.asks li { padding: 18px 0; border-bottom: 1px solid var(--rule); font-size: 17px; line-height: 1.65; color: var(--body); }
.asks strong { color: var(--ink); font-weight: 600; }
.together .nudge { margin: 0; font-size: 17px; }
.together .nudge a { font-weight: 600; text-decoration: underline; }

/* Where to watch (project pages) */
.watch { align-self: flex-start; font-size: 15px; font-weight: 600; border: 1px solid var(--ink); border-radius: 999px; padding: 10px 20px; margin-top: 4px; }
.watch:hover { background: var(--ink); color: var(--bg); }

/* Format tag after a title, e.g. (Feature) */
.caption .fmt { font-weight: 400; color: var(--muted); }

/* Smaller aside inside a section label */
.label .label-sub { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; }
.asks a { text-decoration: underline; text-decoration-color: #B5B3AE; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.asks a:hover { text-decoration-color: currentColor; }

/* Looping process videos in galleries */
.gallery video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: #a1a1a1; }
.gallery video:last-child:nth-child(odd) { grid-column: 1 / -1; }
/* Quiet links inside CV text */
.entry .meta a { text-decoration: underline; text-decoration-color: #B5B3AE; text-underline-offset: 3px; }
.entry .meta a:hover { text-decoration-color: currentColor; }
/* Pages without Previous/Next keep the dividing line above the footer */
.pager-empty { padding: 0 0 16px; }

/* Tone comparison under a logline */
.synopsis .tone { margin: 0; font-size: 16px; color: var(--muted); }

/* ---------- Print / PDF version of the CV ---------- */
.print-only { display: none; }
@media print {
  @page { size: Letter; margin: 0.55in 0.65in; }
  html { scroll-behavior: auto; }
  body { font-size: 10pt; line-height: 1.45; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .wrap { max-width: none; padding: 0; }
  .site-nav, .site-footer, .cv-head .button, .cv-head h1 { display: none !important; }
  .print-only { display: block; }
  .arr { display: none; }
  .site-header { padding-top: 0; }
  .site-name { font-size: 22pt; letter-spacing: 0.04em; }
  a { color: var(--ink); text-decoration: none !important; }
  .cv-head { display: block; padding: 8pt 0 14pt; }
  .cv-head > div { display: block; max-width: none; }
  .cv-head p { font-size: 10pt; line-height: 1.55; margin: 0 0 6pt; }
  .print-contact { font-size: 9pt !important; margin: 0 !important; }
  /* Block layout so long sections can flow across the page break */
  .cv-section { display: block; position: relative; padding: 11pt 0 11pt 104pt; }
  .cv-section > .label { position: absolute; left: 0; top: 13pt; width: 90pt; font-size: 7.5pt; }
  .cv-body, .cv-body.tight { display: block; }
  .cv-body > * + * { margin-top: 10pt; }
  .cv-body.tight > * + * { margin-top: 5pt; }
  .entry { display: block; break-inside: avoid; }
  .entry-top { display: flex; justify-content: space-between; gap: 8pt; }
  .entry-top .title { font-size: 11pt; }
  .entry-top .when, .entry .meta { font-size: 9pt; }
  .entry .meta { margin-top: 2pt; }
  .entry ul { display: block; margin: 4pt 0 0; font-size: 9.5pt; line-height: 1.5; padding-left: 14pt; }
  .entry li + li { margin-top: 2pt; }
  .row { font-size: 9.5pt; break-inside: avoid; }
  .cv-body p { font-size: 9.5pt; line-height: 1.55; }
}


