/* Buzz Spector — concept site
   Set like a book: a serif text face, a typewriter face for captions and
   colophon details, and a single bookcloth red rule. */

:root {
  --bg: #ffffff;
  --fg: #141414;
  --muted: #6f6f6f;
  --line: #e4e4e4;
  --soft: #f4f4f2;
  --ui: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --red: #9b2b22;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --gut: max(24px, env(safe-area-inset-left, 0px));
  --gut-r: max(24px, env(safe-area-inset-right, 0px));
  --max: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--ui);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut-r); }

/* ---------- spectrum + header ---------- */
.spectrum { height: 6px; background: var(--red); }
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px 32px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 16px;
}
.site-name { font-family: var(--serif); font-size: 25px; font-weight: 500; letter-spacing: -.005em; line-height: 1; }
.site-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.site-nav a {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  padding-bottom: 3px; border-bottom: 1px solid transparent; transition: color .15s, border-color .15s;
}
.site-nav a:hover { color: var(--fg); }
.site-nav a[aria-current="page"] { color: var(--fg); border-color: var(--fg); }

/* ---------- type ---------- */
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.page-title {
  font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05; letter-spacing: -.01em; margin: 0; text-wrap: balance;
}
.lede {
  font-family: var(--serif); font-size: clamp(20px, 2.1vw, 27px); line-height: 1.4;
  max-width: 34em; margin: 0; text-wrap: pretty;
}
.cap { font-family: var(--mono); font-size: 12px; line-height: 1.55; color: var(--muted); }
.cap em { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--fg); }

/* ---------- home ---------- */
.hero { padding-top: 48px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: end; }
.hero-art img { width: 100%; background: var(--soft); }
.hero-art figcaption { margin-top: 12px; }
.hero-text { display: flex; flex-direction: column; gap: 22px; padding-bottom: 28px; }
.hero-text .more { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid var(--fg); align-self: flex-start; padding-bottom: 3px; }

.section { padding-top: 96px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 1px solid var(--fg); padding-top: 14px; margin-bottom: 28px; }
.section-head h2 { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.section-head a { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.section-head a:hover { color: var(--fg); }

.row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.tile { display: flex; flex-direction: column; gap: 12px; }
.tile .frame { background: var(--soft); aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; }
.tile .frame img { max-height: 100%; width: auto; object-fit: contain; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.tile:hover .frame img { transform: scale(1.03); }

.groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.group { display: flex; flex-direction: column; gap: 10px; }
.group .frame { aspect-ratio: 4 / 5; overflow: hidden; background: var(--soft); }
.group .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.group:hover .frame img { transform: scale(1.04); }
.group strong { font-weight: 500; }

/* ---------- works ---------- */
.page-head { padding-top: 56px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 18px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px 22px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.filters button {
  all: unset; cursor: pointer; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  padding-bottom: 3px; border-bottom: 1px solid transparent;
}
.filters button[aria-pressed="true"] { color: var(--fg); border-color: var(--fg); }
.filters button:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.filters .count { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.works-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 40px; padding-top: 40px; }
.work { all: unset; cursor: zoom-in; display: flex; flex-direction: column; gap: 14px; }
.work .frame { background: var(--soft); aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 8%; }
.work .frame img { max-height: 100%; width: auto; object-fit: contain; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 6px 18px rgba(0,0,0,.06); }
.work:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(255,255,255,.98); display: grid; grid-template-columns: 1fr 300px; gap: 32px; padding: 32px var(--gut-r) 32px var(--gut); }
.lb[hidden] { display: none; }
.lb figure { margin: 0; display: grid; place-items: center; min-width: 0; min-height: 0; }
.lb figure img { max-height: calc(100vh - 64px); width: auto; object-fit: contain; }
.lb aside { align-self: end; display: flex; flex-direction: column; gap: 10px; }
.lb aside h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.15; margin: 0; }
.lb .ctrl { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.lb .ctrl button, .btn {
  font: inherit; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; background: none; color: var(--fg);
  border: 1px solid var(--fg); padding: 9px 14px; cursor: pointer;
}
.btn.solid { background: var(--fg); color: var(--bg); }

/* ---------- exhibitions / publications ---------- */
.list { border-top: 1px solid var(--fg); }
.list-item { display: grid; grid-template-columns: 120px minmax(0, 1.4fr) minmax(0, 1fr) 120px; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.list-item .yr { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }
.list-item h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.2; }
.list-item p { margin: 6px 0 0; color: var(--muted); font-size: 14px; max-width: 46em; }
.list-item .kind { justify-self: end; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.list-item a.title:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.year-group { padding-top: 40px; }
.year-group:first-child { padding-top: 0; }
.year-group > h2 { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 12px; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 72px; align-items: start; padding-top: 56px; }
.about-grid img { width: 100%; }
.about-text { display: flex; flex-direction: column; gap: 18px; max-width: 38em; }
.about-text p { margin: 0; }
.about-text blockquote { margin: 0; font-family: var(--serif); font-size: 24px; line-height: 1.4; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; padding-top: 18px; border-top: 1px solid var(--line); margin-top: 10px; }
.facts div { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.facts a { border-bottom: 1px solid var(--line); align-self: flex-start; }
.facts a:hover { border-color: var(--fg); }

/* ---------- footer ---------- */
.site-footer { margin-top: 120px; border-top: 1px solid var(--line); }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; padding-top: 28px; padding-bottom: 40px; font-size: 13px; color: var(--muted); }
.site-footer strong { color: var(--fg); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; }
.site-footer .col { display: flex; flex-direction: column; gap: 6px; }
.site-footer a:hover { color: var(--fg); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
  .list-item { grid-template-columns: 90px minmax(0, 1fr) 100px; }
  .list-item .venue { grid-column: 2 / 3; }
  .about-grid { gap: 40px; }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .site-nav { gap: 18px; width: 100%; }
  .hero { padding-top: 24px; }
  .hero-grid, .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .row-3 { grid-template-columns: 1fr; }
  .groups { gap: 14px; }
  .works-grid { grid-template-columns: 1fr 1fr; gap: 28px 14px; }
  .work .frame { padding: 6%; }
  .list-item { grid-template-columns: 1fr; gap: 4px; }
  .list-item .kind { justify-self: start; }
  .facts { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .lb { grid-template-columns: 1fr; grid-template-rows: 1fr auto; overflow: auto; }
  .lb figure img { max-height: 62vh; }
  .section { padding-top: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .tile .frame img, .group .frame img { transition: none; }
}

[hidden] { display: none !important; }
@media (max-width: 760px) {
  .list-item .venue { grid-column: auto; }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 11px; }
}

/* ---------- books ---------- */
.books { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 36px 24px; }
.book { display: flex; flex-direction: column; gap: 10px; }
.book .cover { aspect-ratio: 2 / 3; background: var(--soft); display: grid; place-items: end center; overflow: hidden; }
.book .cover img { max-height: 100%; width: auto; box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 8px 20px rgba(0,0,0,.10); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.book:hover .cover img { transform: translateY(-4px); }
.btitle { font-family: var(--serif); font-size: 15px; line-height: 1.3; }
@media (max-width: 1000px) { .books { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) { .books { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; } }
.book .buy { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.book:hover .buy { color: var(--fg); }

/* ---------- Buzz additions ---------- */
.works-grid { align-items: start; }
.work .frame, .tile .frame { background: none; border: 0; padding: 0; aspect-ratio: auto; display: block; }
.work .frame img, .tile .frame img { width: 100%; max-height: none; box-shadow: none; }
.row-3 { align-items: end; }
.lb .note { font-family: var(--serif); font-style: italic; font-size: 15px; line-height: 1.45; color: var(--muted); max-width: 30em; }
.section-head { border-top-color: var(--red); }
.list { border-top-color: var(--red); }
.page-title em { font-style: italic; }
.shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.spine { border-top: 6px solid var(--red); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.spine h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.1; }
.spine p { margin: 0; font-size: 14px; color: var(--muted); }
.spine .yr { font-family: var(--mono); font-size: 12px; color: var(--red); }
.cols { columns: 3; column-gap: 40px; }
.cols p { margin: 0 0 12px; break-inside: avoid; font-family: var(--serif); font-size: 19px; line-height: 1.25; }
.cols p span { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); }
@media (max-width: 1000px) { .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cols { columns: 2; } }
@media (max-width: 760px) { .shelf { grid-template-columns: 1fr; gap: 28px; } .cols { columns: 1; } }
