@font-face {
  font-family: "Gallery Sans";
  src: local("Arial");
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --paper: #f2f3f0;
  --surface: #e8eae6;
  --ink: #20231f;
  --muted: #656b63;
  --line: #c9cec7;
  --accent: #d74a2c;
  --accent-ink: #fffaf5;
  --radius: 3px;
  --page-width: 1440px;
  font-family: "Gallery Sans", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #191c19;
    --surface: #242824;
    --ink: #e9ece7;
    --muted: #a4aaa1;
    --line: #414840;
    --accent: #ff7657;
    --accent-ink: #1c1b18;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
a { color: inherit; }
button { color: inherit; font: inherit; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 10; padding: 12px 16px; transform: translateY(-160%); background: var(--ink); color: var(--paper); }
.skip-link:focus { transform: none; }
.site-header { height: 76px; padding: 0 5vw; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.wordmark { width: max-content; font-size: 12px; line-height: .95; font-weight: 900; letter-spacing: -.04em; text-decoration: none; }
.top-nav { display: flex; gap: clamp(22px, 4vw, 58px); font-size: 13px; }
.top-nav a, .site-footer a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.header-count, .kicker, .intro-index, .about-label { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .16em; }
.intro { position: relative; display: grid; grid-template-columns: minmax(300px, .88fr) minmax(400px, 1.12fr); gap: 5vw; align-items: center; max-width: var(--page-width); min-height: 610px; margin: auto; padding: 76px 7vw 88px; }
.intro-copy { max-width: 540px; position: relative; z-index: 1; }
.kicker { margin: 0 0 21px; }
h1, h2, p, figure { margin-top: 0; }
h1 { margin-bottom: 24px; font-size: clamp(52px, 7.4vw, 106px); line-height: .89; letter-spacing: -.075em; font-weight: 750; }
h1 em { color: var(--accent); font-style: normal; }
.intro-text { max-width: 39ch; margin-bottom: 30px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.text-link { display: inline-flex; align-items: center; gap: 18px; font-size: 13px; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.text-link span { color: var(--accent); font-size: 20px; }
.intro-art { margin: 0; justify-self: end; width: min(100%, 590px); }
.intro-art-frame { aspect-ratio: 1.12; background: var(--surface); overflow: hidden; }
.intro-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.intro-art figcaption { padding-top: 10px; color: var(--muted); font-size: 11px; }
.intro-index { position: absolute; bottom: 29px; left: 7vw; right: 7vw; display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 10px; }
.intro-index b { color: var(--ink); font-weight: 500; }
.gallery-section { border-top: 1px solid var(--line); padding: 90px max(5vw, calc((100vw - 1440px) / 2)) 120px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; max-width: var(--page-width); margin: 0 auto 28px; }
.section-heading .kicker { margin-bottom: 12px; }
h2 { margin-bottom: 0; font-size: clamp(36px, 5vw, 62px); line-height: 1; letter-spacing: -.06em; }
.result-count { margin-bottom: 5px; color: var(--muted); font-size: 12px; }
.category-nav { display: flex; gap: 9px; max-width: var(--page-width); margin: 0 auto 45px; padding: 3px 2px 8px; overflow-x: auto; scrollbar-width: thin; }
.category-button { flex: 0 0 auto; min-height: 38px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; font-size: 12px; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.category-button:hover { border-color: var(--ink); }
.category-button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.gallery-state { max-width: var(--page-width); margin: 34px auto; padding: 24px; color: var(--muted); border: 1px dashed var(--line); }
.gallery-state[hidden] { display: none; }
.prompt-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 70px 26px; max-width: var(--page-width); margin: 0 auto; }
.prompt-study { min-width: 0; }
.study-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0 0 15px; }
.study-head h3 { margin: 0; font-size: clamp(19px, 2vw, 26px); letter-spacing: -.04em; }
.study-category { flex: 0 0 auto; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.study-summary { max-width: 65ch; margin: 0 0 19px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.image-triptych { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.image-tile { min-width: 0; margin: 0; }
.image-open { display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; padding: 0; border: 0; background: var(--surface); cursor: zoom-in; }
.image-open img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.image-open:hover img { transform: scale(1.035); }
.image-tile figcaption { padding-top: 9px; }
.variant-name { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 700; }
.variant-note { display: block; color: var(--muted); font-size: 10px; line-height: 1.4; }
.prompt-details { margin-top: 19px; border-top: 1px solid var(--line); }
.prompt-details summary { padding: 13px 0; cursor: pointer; font-size: 12px; font-weight: 700; }
.prompt-details summary::marker { color: var(--accent); }
.details-body { padding: 0 0 10px; }
.details-body p { margin-bottom: 10px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.details-body strong { color: var(--ink); }
.source-link { text-underline-offset: 3px; }
.about-section { display: block; padding: 68px max(7vw, calc((100vw - 1200px) / 2)) 86px; border-top: 1px solid var(--line); background: var(--surface); }
.about-copy { max-width: 720px; margin-left: 20%; }
.about-copy h2 { margin-bottom: 17px; font-size: clamp(31px, 4vw, 47px); }
.about-copy p { max-width: 67ch; color: var(--muted); font-size: 14px; line-height: 1.65; }
.source-line a { text-underline-offset: 3px; }
.site-footer { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 5vw; font-size: 11px; color: var(--muted); }
.site-footer .wordmark { color: var(--ink); }
.lightbox { width: min(100vw, 1120px); max-width: none; height: 100dvh; max-height: none; padding: 22px 28px 18px; border: 0; background: var(--paper); color: var(--ink); }
.lightbox::backdrop { background: rgb(12 15 12 / .88); }
.lightbox-shell { height: 100%; display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; grid-template-rows: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.lightbox-topline { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
.lightbox-topline p { margin: 0; font-size: 12px; color: var(--muted); }
.icon-button, .lightbox-step { border: 1px solid var(--line); background: transparent; cursor: pointer; }
.icon-button { padding: 9px 12px; font-size: 12px; }
.icon-button span { margin-left: 8px; font-size: 17px; vertical-align: -1px; }
.lightbox-step { width: 42px; height: 42px; border-radius: 50%; font-size: 21px; }
.lightbox-figure { min-width: 0; max-height: 100%; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox-figure img { display: block; max-width: 100%; max-height: calc(100dvh - 140px); object-fit: contain; }
.lightbox-figure figcaption { color: var(--muted); font-size: 12px; text-align: center; }
.lightbox-download { grid-column: 1 / -1; justify-self: center; font-size: 12px; }
.lightbox-download a { text-underline-offset: 4px; }

@media (max-width: 760px) {
  .site-header { height: 66px; padding: 0 20px; }
  .top-nav { gap: 16px; font-size: 12px; }
  .header-count { display: none; }
  .intro { display: flex; flex-direction: column; align-items: stretch; gap: 34px; min-height: 0; padding: 70px 22px 90px; }
  .intro-copy { max-width: none; }
  h1 { font-size: clamp(55px, 15vw, 82px); }
  .intro-text { font-size: 15px; }
  .intro-art { justify-self: stretch; width: 100%; }
  .intro-art-frame { aspect-ratio: 1.2; }
  .intro-index { left: 22px; right: 22px; }
  .gallery-section { padding: 65px 20px 84px; }
  .section-heading { align-items: end; }
  .category-nav { margin-bottom: 34px; }
  .prompt-list { grid-template-columns: minmax(0, 1fr); gap: 53px; }
  .about-section { padding: 46px 22px 54px; }
  .about-copy { margin-left: 0; }
  .site-footer { padding: 22px; }
  .site-footer > span { max-width: 120px; line-height: 1.45; }
  .lightbox { padding: 14px; }
  .lightbox-shell { grid-template-columns: 34px minmax(0, 1fr) 34px; gap: 6px; }
  .lightbox-step { width: 32px; height: 32px; font-size: 16px; }
}

@media (max-width: 420px) {
  .top-nav { gap: 12px; font-size: 11px; }
  .wordmark { font-size: 10px; }
  .image-triptych { gap: 5px; }
  .variant-note { font-size: 9px; }
  .study-head { align-items: flex-start; flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
