/* lawrencejustinmills.com
   One typeface. A palette taken from the portrait: the wall behind him and the blue of the suit.
   Nothing is ever printed on top of a photograph. */

@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --wall: #f3efef;          /* the studio backdrop, let down to a tint */
  --wall-line: #ded6d7;
  --stone: #6c5f61;         /* the backdrop in shadow: captions and small print */
  --ink: #17191f;
  --suit: #2158b0;          /* the blue of the suit */
  --suit-deep: #17407f;
  --night: #0f1a30;         /* the suit in shadow: the screening-room band */
  --night-line: rgba(238, 241, 246, 0.16);
  --on-night: #eef1f6;
  --on-night-soft: #aeb8cb;

  --measure: 34rem;
  --wide: 74rem;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --band: clamp(3.5rem, 8vw, 6.5rem);
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.62;
  font-optical-sizing: auto;
  font-kerning: normal;
  font-variant-numeric: oldstyle-nums proportional-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--suit); color: #fff; }

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

a { color: var(--suit); text-decoration-thickness: 0.055em; text-underline-offset: 0.2em; transition: color 0.15s ease; }
a:hover { color: var(--suit-deep); }
a:focus-visible,
iframe:focus-visible { outline: 2px solid var(--suit); outline-offset: 4px; border-radius: 2px; }

p { margin: 0 0 1.05em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; }
h2 { font-size: clamp(1.55rem, 1.3rem + 1.1vw, 2.1rem); }
h3 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem); line-height: 1.15; }

.wrap { max-width: var(--wide); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.measure { max-width: var(--measure); }

.skip { position: absolute; left: -999rem; top: 0; background: var(--paper); color: var(--ink); padding: 0.5rem 0.8rem; }
.skip:focus { left: var(--gutter); top: 0.6rem; z-index: 5; }

/* ───────────────────────── header */
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 0.35rem 2rem; padding-top: 1.6rem; padding-bottom: 1.4rem;
}
.site-name { margin: 0; font-size: 1.2rem; font-weight: 600; line-height: inherit; letter-spacing: -0.005em; }
.site-name a { color: inherit; text-decoration: none; }
.site-name a:hover { color: inherit; text-decoration: underline; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0.2rem clamp(1.2rem, 3vw, 2.2rem); list-style: none; margin: 0; padding: 0; }
.site-nav a { color: inherit; text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 0.08em; }

/* ───────────────────────── bands */
.band { padding-top: var(--band); padding-bottom: var(--band); }
.band--wall { background: var(--wall); }
.band--night { background: var(--night); color: var(--on-night); }
.band--night a { color: var(--on-night); }
.band--night a:hover { color: #fff; }
.band--night a:focus-visible { outline-color: var(--on-night); }
.band.first { padding-top: clamp(1.5rem, 5vw, 3.5rem); }   /* the band directly under the header */
.site-header.on-wall { background: var(--wall); }
.site-header.on-paper { background: var(--paper); }
.site-header.on-night { background: var(--night); color: var(--on-night); }

figure { margin: 0; }
figure img { width: 100%; background: var(--wall); }
figcaption { color: var(--stone); font-size: 0.9rem; line-height: 1.45; margin-top: 0.6rem; font-style: italic; }
.band--night figcaption { color: var(--on-night-soft); }
.band--night figure img { background: #18243d; }

/* ───────────────────────── home: opening */
.opening { display: grid; gap: 1.9rem; }
.opening .intro p { max-width: 33rem; }
.opening .intro a[href="/about/"] { white-space: nowrap; }
/* phone: the portrait comes first, then the text */
.opening .portrait { order: -1; max-width: 26rem; }
.opening .portrait img { width: 100%; }   /* the whole photograph at every width, never cropped */
@media (min-width: 42rem) {
  .opening { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); column-gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
  .opening .portrait { order: 0; width: 100%; max-width: 25rem; justify-self: end; }
}
@media (min-width: 52rem) {
  .opening .intro p { font-size: 1.16em; line-height: 1.52; }
}
.portrait img { animation: settle 0.9s ease-out both; }
@keyframes settle { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .portrait img { animation: none; } }

/* ───────────────────────── the film band */
.frame img { background: #18243d; width: 100%; max-height: 80vh; object-fit: cover; }   /* the widescreen still, edge to edge */
.film-band { padding-top: 0; }
.film-band .wrap { padding-top: clamp(2rem, 5vw, 3.5rem); }
.film-title { font-style: italic; font-size: clamp(2rem, 1.5rem + 2.4vw, 3.3rem); letter-spacing: -0.02em; }
.film-alt { font-style: italic; font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); color: var(--on-night-soft); margin: 0.5rem 0 0; }
.film-brief { display: grid; gap: 1.4rem; }
.film-brief p { max-width: var(--measure); }
@media (min-width: 56rem) { .film-brief { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; } .film-brief > div:last-child { padding-top: 0.5rem; } }
.film-grid { display: grid; gap: 2.25rem; margin-top: clamp(1.75rem, 4vw, 2.75rem); }
@media (min-width: 56rem) { .film-grid { grid-template-columns: minmax(0, var(--measure)) minmax(0, 1fr); gap: clamp(3rem, 8vw, 7rem); } }

.credits { margin: 0; display: grid; gap: 1.05rem; align-content: start; }
.credits div { border-top: 1px solid var(--night-line); padding-top: 0.85rem; }
.credits dt { color: var(--on-night-soft); font-size: 0.9rem; font-style: italic; }
.credits dd { margin: 0.1rem 0 0; font-size: 1.1rem; }
.trailer { margin: 0 0 2.4rem; scroll-margin-top: 1.5rem; }
.press-title { font-size: 1.25rem; margin: 2.6rem 0 1rem; }
.press { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.05rem; }
.press li { border-top: 1px solid var(--night-line); padding-top: 0.85rem; }
.press a { display: block; font-size: 1.05rem; line-height: 1.35; text-wrap: balance; }
.press span { display: block; margin-top: 0.3rem; color: var(--on-night-soft); font-size: 0.9rem; font-style: italic; }

.actions { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.9rem; margin: 1.9rem 0 0; padding: 0; }
.actions li:first-child { flex-basis: 100%; }
.button {
  display: inline-block; padding: 0.72em 1.35em 0.78em; border-radius: 999px;
  background: var(--on-night); color: var(--night) !important; text-decoration: none; font-weight: 600;
  transition: background 0.15s ease, transform 0.15s ease;
}
.button:hover { background: #fff; transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .button:hover { transform: none; } }

.player { position: relative; aspect-ratio: 16 / 9; background: #000; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ───────────────────────── off the film set */
.outside { display: grid; gap: 2.25rem; align-items: start; }
.outside h2 { margin-bottom: 1.1rem; }
@media (min-width: 56rem) { .outside { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2.5rem, 6vw, 5rem); } }
.text-link { display: inline-block; margin-top: 1.3rem; }
.more { display: flex; flex-wrap: wrap; gap: 0.5rem 1.8rem; margin: 1.3rem 0 0; }

/* ───────────────────────── films page */
.page-title { font-size: clamp(2.1rem, 1.5rem + 2.8vw, 3.5rem); font-weight: 400; letter-spacing: -0.02em; line-height: 1.04; }
.page-title.is-film { font-style: italic; }
.screen { margin-top: clamp(1.75rem, 4vw, 2.75rem); max-width: 62rem; }
.premiere { margin: 1.9rem 0 2rem; }   /* the photograph from the premiere weekend, between two paragraphs */
.testimony { display: grid; gap: 1.25rem; }
.testimony h2 { margin-bottom: 1rem; scroll-margin-top: 1.5rem; }
.testimony p { max-width: var(--measure); }
@media (min-width: 56rem) { .testimony { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; } .testimony > div:last-child { padding-top: 0.3rem; } }

/* ───────────────────────── about */
.about { display: grid; gap: 2.25rem; align-items: start; }
.about h1 { margin-bottom: clamp(1.4rem, 3vw, 2.2rem); }
.about .side { display: grid; gap: clamp(1.75rem, 4vw, 2.5rem); }
.about .side .text-link { margin-top: -0.9rem; justify-self: start; }
@media (min-width: 56rem) { .about { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(3rem, 7vw, 6rem); } }


/* ───────────────────────── footer */
.site-footer { background: var(--night); color: var(--on-night-soft); font-size: 0.97rem; }
.site-footer a { color: var(--on-night); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .wrap { display: grid; gap: 1.5rem; padding-top: clamp(2.5rem, 6vw, 4rem); padding-bottom: clamp(2rem, 5vw, 3rem); }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 0.3rem 1.8rem; list-style: none; margin: 0; padding: 0; }
.site-footer .fine { border-top: 1px solid var(--night-line); padding-top: 1.1rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.3rem 2rem; }
.site-footer .elsewhere { display: flex; flex-wrap: wrap; gap: 0.3rem 1.6rem; }

/* ───────────────────────── not found */
.lost { min-height: 46vh; display: grid; align-content: center; }

@media print {
  .site-nav, .player, .skip, .actions { display: none; }
  .band--night, .site-footer { background: none; color: #000; }
  body { font-size: 11pt; }
}
