:root {
  --paper: #f5f2ec;
  --wall: #ebe6dd;
  --ink: #1c1a17;
  --muted: #6d675e;
  --rule: #d9d2c6;
  --red: #c42a1d;
  --sans: 'Jost', 'Futura', 'Avenir Next', system-ui, sans-serif;
  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1320px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.6 var(--serif);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
}

.eyebrow,
.site-nav,
.button,
.count,
.series-meta,
.work .meta,
.stage-label .num,
.lb-bar,
label {
  font-family: var(--sans);
  letter-spacing: 0.08em;
}

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
  font-weight: 500;
}

.lede {
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.5;
  max-width: 38em;
  color: #3a362f;
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  margin-right: 6px;
  vertical-align: 1px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: var(--gutter);
  top: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
  z-index: 10;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--gutter);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.site-header.scrolled {
  border-color: var(--rule);
}

.wordmark {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 19px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  margin-right: -0.42em;
}

.wordmark.small {
  font-size: 14px;
  margin: 0 0 12px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  text-transform: uppercase;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current] {
  color: var(--ink);
  border-color: var(--ink);
}

.nav-gap {
  margin-left: 14px;
}

.nav-toggle {
  display: none;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 1080px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter) 24px;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    font-size: 15px;
    gap: 4px;
  }

  .site-nav a {
    display: inline-block;
    padding: 8px 0;
  }

  .nav-gap {
    margin: 12px 0 0;
  }

  .wordmark {
    font-size: 15px;
    letter-spacing: 0.32em;
  }
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Square-cropped works: the Last Song files carry a typed caption below the canvas. */

.crop-square img {
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top;
  width: 100%;
}

/* Home */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding: clamp(24px, 4vw, 56px) 0 clamp(64px, 8vw, 120px);
}

.hero-image img {
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08), 0 18px 40px -18px rgb(0 0 0 / 0.35);
}

.hero h1 {
  font-size: clamp(40px, 5vw, 68px);
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  gap: 28px;
  align-items: center;
  margin: 36px 0 0;
}

.button {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  padding: 14px 26px;
  font-size: 12.5px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
}

.button:hover {
  background: #000;
}

.link {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-caption {
  margin-top: 48px;
  font-size: 15px;
  color: var(--muted);
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

.series-index {
  border-top: 1px solid var(--rule);
  padding: 48px 0 clamp(64px, 8vw, 120px);
}

.series-index ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 56px 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.series-index a {
  display: grid;
  gap: 6px;
  text-decoration: none;
}

.cover {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--wall);
  margin-bottom: 14px;
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.cover.crop-square img {
  aspect-ratio: auto;
  object-position: 50% 30%;
}

.series-index a:hover .cover img {
  transform: scale(1.03);
}

.series-title {
  font-size: 28px;
  line-height: 1.15;
}

.series-meta {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
}

.remembrance {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  border-top: 1px solid var(--rule);
  padding: clamp(56px, 7vw, 100px) 0;
}

.remembrance blockquote {
  margin: 0 0 20px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.25;
  font-style: italic;
}

@media (max-width: 760px) {
  .remembrance {
    grid-template-columns: 1fr;
  }
}

/* Series */

.series-head {
  padding: clamp(32px, 6vw, 88px) 0 clamp(36px, 5vw, 64px);
  max-width: 900px;
}

.series-head h1 {
  font-size: clamp(48px, 7vw, 96px);
  margin-bottom: 24px;
}

.count {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 28px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(40px, 5vw, 72px) clamp(24px, 3vw, 48px);
  padding-bottom: 96px;
}

.gallery.grid-wide {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr));
}

.work {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.work-open {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  aspect-ratio: 1;
  background: var(--wall);
  padding: 10%;
  width: 100%;
  cursor: zoom-in;
}

.grid-wide .work-open {
  aspect-ratio: 16 / 10;
  padding: 7%;
}

.grid-square .work-open {
  padding: 0;
  background: none;
}

.work-open img {
  max-height: 100%;
  width: auto;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.1), 0 10px 24px -14px rgb(0 0 0 / 0.4);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.grid-square .work-open img {
  width: 100%;
}

.work-open:hover img {
  transform: translateY(-3px);
}

.work figcaption {
  padding-top: 14px;
  display: grid;
  gap: 2px;
}

.work .title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
}

.work .meta {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.sold {
  margin-left: 12px;
  color: var(--ink);
}

/* Painting Cancer sequence */

.sequence {
  list-style: none;
  margin: 0;
  padding: 0 0 48px;
  display: grid;
  gap: clamp(56px, 8vw, 112px);
}

.stage .work-open {
  aspect-ratio: auto;
  padding: 0;
  background: none;
}

.stage .work-open img {
  width: 100%;
}

.stage:nth-child(even) {
  padding-left: clamp(0px, 12vw, 180px);
}

.stage:nth-child(odd) {
  padding-right: clamp(0px, 12vw, 180px);
}

.stage-label {
  display: flex;
  gap: 18px;
  align-items: baseline;
  margin: 18px 0 0;
}

.stage-label .num {
  font-size: 13px;
  color: var(--muted);
}

.stage-label .title {
  font-size: clamp(26px, 3vw, 36px);
  font-style: italic;
}

.interview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 48px;
  align-items: center;
  border-top: 1px solid var(--rule);
  padding: 72px 0 96px;
}

.interview h2 {
  font-size: 40px;
  margin-bottom: 12px;
}

.video {
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-poster,
.video iframe {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.play {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  border-radius: 50%;
  background: rgb(245 242 236 / 0.92);
}

.play::after {
  content: '';
  position: absolute;
  left: 31px;
  top: 25px;
  border-left: 20px solid var(--ink);
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
}

@media (max-width: 760px) {
  .interview {
    grid-template-columns: 1fr;
  }

  .stage:nth-child(n) {
    padding: 0;
  }
}

.next-series {
  border-top: 1px solid var(--rule);
  padding: 48px 0 88px;
}

.next-series a {
  display: grid;
  text-decoration: none;
}

.next-title {
  font-size: clamp(32px, 4vw, 52px);
}

.next-series a:hover .next-title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

/* About */

.about-head {
  padding: clamp(32px, 6vw, 88px) 0 40px;
}

.about-head h1 {
  font-size: clamp(48px, 7vw, 96px);
}

.about-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(40px, 7vw, 120px);
  padding-bottom: 112px;
}

.prose {
  max-width: 36em;
  font-size: 20px;
  line-height: 1.7;
}

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

.prose .first::first-letter {
  float: left;
  font-size: 5.2em;
  line-height: 0.85;
  padding: 0.06em 0.08em 0 0;
}

.inline-photo {
  margin: 2.4em 0;
}

figcaption {
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-top: 10px;
}

.memorial {
  border-top: 1px solid var(--rule);
  margin-top: 2.4em;
  padding-top: 1.6em;
  font-style: italic;
}

.about-aside {
  display: grid;
  gap: 40px;
  align-content: start;
}

.about-aside figure {
  margin: 0;
}

.timeline dl {
  margin: 0;
  font-size: 16px;
}

.timeline div {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
}

.timeline dt {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  padding-top: 2px;
}

.timeline dd {
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .about-body {
    grid-template-columns: 1fr;
  }

  .about-aside {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

/* Contact */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 120px);
  padding: clamp(32px, 6vw, 88px) 0 120px;
}

.contact h1 {
  font-size: clamp(48px, 6vw, 80px);
  margin-bottom: 24px;
}

.hint {
  color: var(--muted);
  font-size: 16px;
}

.contact-form {
  display: grid;
  gap: 22px;
  align-content: start;
}

label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
}

.optional {
  text-transform: none;
  letter-spacing: 0;
}

input,
textarea {
  font: 18px/1.4 var(--serif);
  color: var(--ink);
  background: #fbf9f5;
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 12px 14px;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.contact-form .button {
  justify-self: start;
  border: 0;
}

@media (max-width: 760px) {
  .contact {
    grid-template-columns: 1fr;
  }
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 40px var(--gutter) 56px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.site-footer p {
  margin: 4px 0;
}

/* Lightbox */

.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #14130f;
  color: #e9e4da;
  display: none;
  grid-template-rows: 1fr auto;
}

.lightbox[open] {
  display: grid;
}

.lightbox::backdrop {
  background: #14130f;
}

.lb-stage {
  display: grid;
  place-items: center;
  padding: 24px;
  min-height: 0;
  overflow: hidden;
}

.lb-frame {
  overflow: hidden;
}

.lb-frame img {
  width: 100%;
  height: auto;
  max-width: none;
}

.lb-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 24px 22px;
  font-size: 13px;
}

.lb-caption {
  margin: 0;
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0;
}

.lb-caption em {
  font-size: 19px;
}

.lb-caption .meta {
  color: #a39d92;
  margin-left: 12px;
  font-family: var(--sans);
  font-size: 13px;
}

.lb-controls {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lb-controls button,
.lb-ask {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 8px 4px;
  text-decoration: none;
}

.lb-prev,
.lb-next {
  font-size: 20px !important;
}

.lb-ask {
  border-bottom: 1px solid currentColor;
  padding: 2px 0;
}

.lb-count {
  color: #a39d92;
  min-width: 56px;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
