/* Layne Meacham — site styles
   Layout concept: a white gallery wall. Type does the framing, paintings supply all the color,
   and every caption is set like a museum wall label. */
:root {
  --wall: #f6f6f3;        /* page ground, a gallery-white with a hint of plaster */
  --paper: #ffffff;       /* lifted surfaces: lightbox, cards */
  --ink: #171615;         /* text and rules at full strength */
  --graphite: #67645e;    /* secondary text, labels */
  --rule: #dddbd5;        /* hairlines */
  --cobalt: #2a49d0;      /* survey-paint blue from the Street Work series: links, focus */
  --dim: rgba(14, 13, 12, .94); /* lightbox backdrop */

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --text: "Newsreader", Georgia, "Times New Roman", serif;

  --step--1: .8125rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  --step-3: clamp(2.4rem, 1.5rem + 4vw, 4.5rem);
  --step-4: clamp(3.2rem, .375rem + 11.6vw, 12.75rem);

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--step-0);
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--cobalt); }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.label {
  font-family: var(--display);
  font-size: var(--step--1);
  font-weight: 500;
  font-stretch: 100%;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--graphite);
}

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); padding: 8px 12px; z-index: 50; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--wall); border-bottom: 1px solid transparent; transition: border-color .2s; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--wall); }
.site-header.is-stuck { border-bottom-color: var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 18px; }
.wordmark {
  font-family: var(--display); font-weight: 700; font-stretch: 75%;
  font-size: 1.125rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
}
.wordmark:hover { color: var(--ink); }
.nav { display: flex; gap: clamp(16px, 3vw, 36px); }
.nav a {
  font-family: var(--display); font-size: var(--step--1); font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; padding-block: 4px; border-bottom: 1px solid transparent;
}
.nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.nav a:hover { color: var(--cobalt); border-bottom-color: var(--cobalt); }

/* ---------- Home: hero ---------- */
.hero { padding-block: clamp(24px, 5vw, 72px) clamp(48px, 8vw, 120px); }
.hero-name {
  font-family: var(--display); font-weight: 800; font-stretch: 62%;
  font-size: var(--step-4); line-height: .8; letter-spacing: -.01em; text-transform: uppercase;
  margin: 0; text-wrap: balance;
}
.hero-name span { display: block; }
.hero-name span:last-child { padding-left: .55em; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 64px); align-items: end; margin-top: clamp(28px, 4vw, 56px); }
.hero-figure { margin: 0; }
.hero-figure img { width: 100%; }
.hero-figure figcaption { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.hero-intro { display: grid; gap: 22px; max-width: 34ch; }
.hero-intro p { margin: 0; font-size: var(--step-1); line-height: 1.45; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0; padding-top: 18px; border-top: 1px solid var(--rule); font-size: .95rem; }
.facts dt { font-family: var(--display); font-size: var(--step--1); letter-spacing: .08em; text-transform: uppercase; color: var(--graphite); padding-top: 2px; }
.facts dd { margin: 0; }
.button {
  display: inline-flex; align-items: center; gap: 10px; justify-self: start;
  font-family: var(--display); font-size: var(--step--1); font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; padding: 14px 20px; border: 1px solid var(--ink); transition: background .2s, color .2s;
}
.button:hover { background: var(--ink); color: var(--wall); }
.button svg { width: 18px; height: 10px; }

/* ---------- Home: quote ---------- */
.quote { border-block: 1px solid var(--rule); }
.quote .wrap { padding-block: clamp(56px, 9vw, 128px); display: grid; gap: 20px; justify-items: center; text-align: center; }
.quote blockquote { margin: 0; font-style: italic; font-weight: 300; font-size: var(--step-3); line-height: 1.08; letter-spacing: -.01em; max-width: 20ch; text-wrap: balance; }

/* ---------- Home: series index ---------- */
.index { padding-block: clamp(56px, 8vw, 112px); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--ink); }
.section-head h2 { margin: 0; font-family: var(--display); font-weight: 700; font-stretch: 75%; font-size: var(--step-2); text-transform: uppercase; letter-spacing: .02em; }
.series-list { list-style: none; margin: 0; padding: 0; }
.series-row a {
  display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) auto; align-items: center; gap: clamp(12px, 3vw, 40px);
  padding-block: clamp(18px, 2.4vw, 28px); border-bottom: 1px solid var(--rule); text-decoration: none;
}
.series-row .count { font-family: var(--display); font-size: var(--step--1); color: var(--graphite); font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.series-row h3 { margin: 0; font-family: var(--display); font-weight: 700; font-stretch: 62%; text-transform: uppercase; font-size: clamp(1.7rem, 1.05rem + 2.8vw, 3.15rem); line-height: .9; transition: font-stretch .35s ease, color .2s; }
.series-row .strip { display: flex; gap: 8px; }
.series-row .strip img { width: clamp(56px, 7vw, 104px); height: clamp(56px, 7vw, 104px); object-fit: cover; filter: saturate(.9); transition: transform .35s ease, filter .35s; }
.series-row a:hover h3 { font-stretch: 85%; color: var(--ink); }
.series-row a:hover .strip img { filter: none; }
.series-row a:hover .strip img:nth-child(1) { transform: translateY(-6px); }
.series-row a:hover .strip img:nth-child(2) { transform: translateY(4px); }
.series-row a:hover .strip img:nth-child(3) { transform: translateY(-3px); }

/* ---------- Home: collections ---------- */
.collections { padding-block: 0 clamp(64px, 9vw, 128px); }
.collections .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(20px, 4vw, 64px); }
.collections p { margin: 0; font-size: var(--step-2); line-height: 1.25; font-weight: 300; text-wrap: pretty; }
.collections p strong { font-weight: 500; }

/* ---------- Footer / contact ---------- */
.site-footer { background: var(--ink); color: var(--wall); }
.site-footer .wrap { padding-block: clamp(56px, 8vw, 104px) 32px; display: grid; gap: clamp(40px, 6vw, 80px); }
.site-footer a:hover { color: #9fb1ff; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.contact-grid h2 { margin: 0; font-family: var(--display); font-weight: 800; font-stretch: 62%; text-transform: uppercase; font-size: var(--step-3); line-height: .9; }
.contact-lines { display: grid; gap: 14px; font-size: var(--step-1); }
.contact-lines .label { color: #a9a59d; display: block; margin-bottom: 2px; }
.contact-lines a { text-decoration: none; border-bottom: 1px solid #55524c; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-top: 24px; border-top: 1px solid #3a3835; color: #a9a59d; font-family: var(--display); font-size: var(--step--1); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Page heading (gallery, about) ---------- */
.page-head { padding-block: clamp(28px, 5vw, 72px) clamp(28px, 4vw, 48px); }
.page-head h1 { margin: 0; font-family: var(--display); font-weight: 800; font-stretch: 62%; text-transform: uppercase; font-size: var(--step-4); line-height: .8; }
.page-head p { margin: 18px 0 0; max-width: 52ch; font-size: var(--step-1); line-height: 1.45; }

/* ---------- Gallery ---------- */
.series-nav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 61px); z-index: 15; background: var(--wall); border-block: 1px solid var(--rule); }
.series-nav ol { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(18px, 3vw, 36px); overflow-x: auto; scrollbar-width: none; padding-block: 14px; }
.series-nav ol::-webkit-scrollbar { display: none; }
.series-nav a { font-family: var(--display); font-size: var(--step--1); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; white-space: nowrap; color: var(--graphite); padding-bottom: 3px; border-bottom: 1px solid transparent; }
.series-nav a sup { font-size: .7em; margin-left: 3px; font-variant-numeric: tabular-nums; }
.series-nav a.is-active { color: var(--ink); border-bottom-color: var(--ink); }
.series-nav a:hover { color: var(--cobalt); }

.series { padding-block: clamp(48px, 7vw, 96px) 0; scroll-margin-top: 120px; }
.series:last-of-type { padding-bottom: clamp(64px, 9vw, 128px); }
.series-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 16px clamp(24px, 4vw, 64px); align-items: end; padding-bottom: clamp(24px, 3vw, 40px); }
.series-head h2 { margin: 0; font-family: var(--display); font-weight: 800; font-stretch: 62%; text-transform: uppercase; font-size: var(--step-3); line-height: .88; text-wrap: balance; }
.series-head .meta { display: grid; gap: 10px; }
.series-head p { margin: 0; max-width: 54ch; }

.works { columns: 3 300px; column-gap: clamp(20px, 3vw, 44px); }
.work { break-inside: avoid; margin: 0 0 clamp(28px, 3.5vw, 52px); }
.work button { all: unset; display: block; width: 100%; cursor: zoom-in; }
.work button:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 4px; }
.work img { width: 100%; background: var(--rule); box-shadow: 0 1px 2px rgba(23, 22, 21, .08), 0 8px 24px -12px rgba(23, 22, 21, .25); transition: transform .4s ease, box-shadow .4s ease; }
.work button:hover img { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(23, 22, 21, .08), 0 18px 36px -16px rgba(23, 22, 21, .35); }
.work figcaption { margin-top: 12px; display: grid; gap: 1px; line-height: 1.35; }
.work .title { font-style: italic; }
.work .details { font-size: .875rem; color: var(--graphite); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--dim); color: #f1efe9; }
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: lb-in .25s ease; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb-top, .lb-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) max(18px, env(safe-area-inset-right, 0px)) 14px max(18px, env(safe-area-inset-left, 0px)); }
.lb-bottom { padding-top: 14px; padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); align-items: flex-end; }
.lb-count { font-family: var(--display); font-size: var(--step--1); letter-spacing: .08em; text-transform: uppercase; color: #a9a59d; font-variant-numeric: tabular-nums; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding-inline: max(16px, env(safe-area-inset-left, 0px)); }
.lb-stage img { max-width: min(100%, 1600px); max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 30px 80px -30px #000; }
.lb-caption { display: grid; gap: 2px; min-width: 0; }
.lb-caption .title { font-style: italic; font-size: var(--step-1); }
.lb-caption .details { font-size: .9rem; color: #bdb9b1; }
.lb-btn { all: unset; cursor: pointer; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid #4a4743; color: #f1efe9; transition: background .2s, border-color .2s; }
.lb-btn:hover { background: #f1efe9; color: #171615; border-color: #f1efe9; }
.lb-btn:focus-visible { outline: 2px solid #9fb1ff; outline-offset: 2px; }
.lb-btn svg { width: 18px; height: 18px; }
.lb-arrows { display: flex; gap: 8px; flex: none; }

/* ---------- About ---------- */
.about-intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 88px); align-items: start; padding-bottom: clamp(56px, 8vw, 112px); }
.about-intro figure { margin: 0; position: sticky; top: 100px; }
.about-intro figcaption { margin-top: 12px; }
.prose { max-width: 62ch; }
.prose p { margin: 0 0 1.1em; }
.prose .lede { font-size: var(--step-1); line-height: 1.5; }
.statement { margin: 2.2em 0 0; padding: 28px 0 0; border-top: 1px solid var(--ink); }
.statement p { font-style: italic; font-size: var(--step-1); line-height: 1.5; }

.cv { padding-block: clamp(48px, 7vw, 96px) clamp(64px, 9vw, 128px); border-top: 1px solid var(--rule); }
.cv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) clamp(28px, 5vw, 88px); margin-top: clamp(28px, 4vw, 48px); }
.cv-block h3 { margin: 0 0 14px; font-family: var(--display); font-weight: 700; font-stretch: 75%; text-transform: uppercase; letter-spacing: .03em; font-size: var(--step-1); }
.cv-block ol { list-style: none; margin: 0; padding: 0; }
.cv-block li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 16px; padding-block: 10px; border-top: 1px solid var(--rule); line-height: 1.4; font-size: .98rem; }
.cv-block li:last-child { border-bottom: 1px solid var(--rule); }
.cv-block .yr { font-family: var(--display); font-size: .85rem; font-variant-numeric: tabular-nums; color: var(--graphite); padding-top: 2px; }
.cv-block .note { display: block; font-size: .875rem; color: var(--graphite); }
.cv-block.wide { grid-column: 1 / -1; }
.cv-block.wide ol { columns: 2 320px; column-gap: clamp(28px, 5vw, 88px); }
.cv-block.wide li { break-inside: avoid; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .collections .wrap, .contact-grid, .series-head, .about-intro, .cv-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-intro { max-width: none; }
  .about-intro figure { position: static; max-width: 520px; }
  .series-row .strip img:nth-child(n+2) { display: none; }
}
@media (max-width: 560px) {
  .nav { gap: 14px; }
  .wordmark { font-size: 1rem; }
  .series-row a { grid-template-columns: minmax(0, 1fr) auto; }
  .series-row .count { grid-column: 1 / -1; order: -1; margin-bottom: -8px; }
  .works { columns: 2; column-gap: 14px; }
  .work figcaption { margin-top: 8px; }
  .work .details { font-size: .8rem; }
  .series-nav { top: calc(env(safe-area-inset-top, 0px) + 57px); }
  .lb-btn { width: 40px; height: 40px; }
  .cv-block li { grid-template-columns: 4.25rem minmax(0, 1fr); gap: 12px; }
}
.cv-block li.noyr { grid-template-columns: minmax(0, 1fr); }
