:root {
  --ink: #17131d;
  --paper: #f7f2e9;
  --paper-bright: #fffdf7;
  --acid: #b6ff39;
  --mint: #52f7cf;
  --pink: #ff4fc3;
  --orange: #ff7849;
  --violet: #7a4dff;
  --line: rgba(23, 19, 29, .16);
  --shadow: 0 18px 55px rgba(44, 25, 70, .14);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 Arial, Helvetica, sans-serif; }
a { color: inherit; text-underline-offset: .2em; }
img, video { display: block; max-width: 100%; }
button, input { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .7rem 1rem; background: var(--ink); color: #fff; }
.skip-link:focus { top: 1rem; }

.site-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding: .8rem clamp(1rem, 4vw, 4rem); color: #fff; background: rgba(18, 16, 24, .96); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255,255,255,.12); }
.wordmark { color: var(--acid); font-size: 1.22rem; font-weight: 900; letter-spacing: -.025em; text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: clamp(.8rem, 2vw, 1.7rem); }
.site-nav > a { font-size: .78rem; font-weight: 800; letter-spacing: .095em; text-decoration: none; text-transform: uppercase; }
.site-nav > a:hover { color: var(--mint); }
.nav-search input { width: 9.5rem; padding: .48rem .7rem; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; outline: none; }
.nav-search input:focus { width: 13rem; border-color: var(--mint); }
.nav-toggle { display: none; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: .35rem .8rem; }

.hero { position: relative; isolation: isolate; display: grid; align-items: end; min-height: clamp(460px, 66vh, 670px); padding: clamp(2rem, 7vw, 6rem) clamp(1.2rem, 7vw, 6.5rem); overflow: hidden; color: #fff; background: radial-gradient(circle at 12% 15%, #ff4fc3 0 8%, transparent 27%), radial-gradient(circle at 80% 20%, #52f7cf 0 8%, transparent 29%), radial-gradient(circle at 60% 92%, #b6ff39 0 5%, transparent 25%), linear-gradient(135deg, #1b0f2d, #5933ab 48%, #ec4a80); }
.hero.has-banner { min-height: clamp(540px, calc(100svh - 72px), 960px); background: #09090b; }
.hero.has-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12,8,18,.72), rgba(12,8,18,.08) 66%, rgba(12,8,18,.18)); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-radial-gradient(ellipse at 80% 5%, transparent 0 35px, rgba(255,255,255,.05) 37px 40px); mix-blend-mode: overlay; }
.hero-banner { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; }
.hero-noise { position: absolute; inset: 0; z-index: -1; opacity: .09; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E"); }
.hero-copy { width: min(520px, 100%); padding: clamp(1.25rem, 2.5vw, 2rem); background: rgba(29, 14, 43, .9); border: 1px solid rgba(255,255,255,.18); box-shadow: var(--shadow); backdrop-filter: blur(7px); }
.hero h1 { margin: 0; font-size: clamp(2rem, 3vw, 2.25rem); line-height: 1; letter-spacing: -.035em; overflow-wrap: anywhere; }
.hero-copy > p:last-child { max-width: 42rem; margin: .9rem 0 0; font-size: clamp(.98rem, 1.6vw, 1.15rem); }
.eyebrow { margin: 0 0 .55rem; color: #6d426e; font-size: .73rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.hero .eyebrow { color: var(--acid); }

.latest-strip, .feed-shell, .gallery-shell, .group-index, .search-results { width: min(1480px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(3rem, 7vw, 7rem) 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.section-heading h2 { margin: 0; font-size: clamp(1.65rem, 2.5vw, 2.25rem); line-height: 1.08; letter-spacing: -.035em; }
.section-heading > a { font-weight: 800; }
.art-strip { display: grid; grid-auto-columns: minmax(210px, 1fr); grid-auto-flow: column; gap: .8rem; overflow-x: auto; padding: 0 0 1rem; scroll-snap-type: x proximity; }
.art-card { position: relative; display: block; min-width: 0; text-decoration: none; scroll-snap-align: start; }
.art-card-image { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; overflow: hidden; background: #ebe5dc; border: 1px solid var(--line); }
.art-card-image img, .art-card-image video { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease, filter .45s ease; }
.art-card:hover .art-card-image img, .art-card:hover .art-card-image video { transform: scale(1.025); filter: saturate(1.08); }
.art-card-title { display: block; padding: .62rem .1rem; font-size: .88rem; font-weight: 800; }
.art-card.compact { min-width: 210px; }
.art-card.compact .art-card-image { aspect-ratio: 4 / 5; }
.art-placeholder { display: grid; width: 100%; height: 100%; place-items: center; min-height: 180px; color: #8b8091; background: repeating-linear-gradient(135deg, #f3eee6 0 20px, #e8e0d6 20px 40px); font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.feed-shell { width: min(980px, calc(100% - 2rem)); border-top: 1px solid var(--line); }
.feed-shell.narrow-top { border-top: 0; padding-top: 1rem; }
.post-feed { display: grid; gap: clamp(3.5rem, 7vw, 7rem); }
.post-article { padding: clamp(1.2rem, 4vw, 3.7rem); background: var(--paper-bright); border: 1px solid var(--line); box-shadow: 0 16px 45px rgba(32,20,42,.08); }
.post-article > header { margin-bottom: 2.4rem; }
.post-date { margin: 0 0 .4rem; color: #735f70; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.post-article h1, .post-article h3 { margin: 0; font-size: clamp(1.55rem, 2.6vw, 2rem); line-height: 1.12; letter-spacing: -.025em; overflow-wrap: anywhere; }
.post-article h3 a { text-decoration: none; }
.post-article h3 a:hover { color: #8b2bd1; }
.post-body { overflow-wrap: anywhere; }
.post-body > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.post-body > img, .post-body > figure, .post-body > .responsive-video, .post-body > .post-video, .post-body > .embedded-gallery, .post-body > .inline-art { max-width: 1100px; }
.post-body p { margin-top: 0; margin-bottom: 1.5em; }
.post-body h2, .post-body h3 { max-width: 760px; margin-top: 1.5em; letter-spacing: -.035em; }
.post-body img { height: auto; }
.post-body blockquote { padding: .2rem 0 .2rem 1.5rem; border-left: 6px solid var(--pink); color: #544758; font-size: 1.18em; }
.post-body pre { overflow: auto; padding: 1.2rem; color: #fff; background: #1b1720; }
.responsive-video { position: relative; aspect-ratio: 16 / 9; margin-block: 2rem; background: #000; }
.responsive-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.post-video { width: 100%; margin-block: 2rem; background: #000; }
.embedded-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .4rem; margin-block: 2rem; }
.embedded-gallery img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.inline-art { display: block; margin-block: 2rem; text-decoration: none; }
.inline-art img { width: 100%; }
.inline-art span { display: block; padding-top: .5rem; font-weight: 800; }
.permalink, .back-link { display: inline-block; margin-top: 2rem; font-weight: 800; }
.single-post-shell { width: min(1080px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(2rem, 6vw, 6rem) 0; }

.page-intro { display: flex; align-items: end; justify-content: space-between; gap: 2rem; min-height: 210px; padding: clamp(2.75rem, 6vw, 5rem) max(1rem, calc((100% - 1480px) / 2)); color: #fff; background: radial-gradient(circle at 80% 20%, rgba(182,255,57,.35), transparent 18%), radial-gradient(circle at 15% 85%, rgba(255,79,195,.45), transparent 25%), #241634; }
.page-intro h1 { margin: 0; max-width: 100%; font-size: clamp(1.8rem, 3.2vw, 2.5rem); line-height: 1.08; letter-spacing: -.035em; overflow-wrap: anywhere; }
.page-intro > p { max-width: 46rem; }
.page-intro .eyebrow { color: var(--mint); }
.gallery-intro { align-items: center; }
.gallery-search { width: min(420px, 100%); }
.gallery-search label { display: block; margin-bottom: .4rem; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.gallery-search div, .big-search { display: flex; }
.gallery-search input, .big-search input { min-width: 0; flex: 1; padding: .8rem 1rem; border: 0; }
.gallery-search button, .big-search button { padding: .8rem 1.2rem; color: var(--ink); background: var(--acid); border: 0; font-weight: 900; }
.art-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.65rem, 1.5vw, 1.3rem); }
.result-note { margin-top: 0; }
.pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; margin-top: 4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.pagination a:last-child { text-align: right; }
.pagination > span { color: #786d7b; font-size: .8rem; font-weight: 700; }

.artwork-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 420px); min-height: calc(100vh - 72px); background: #101014; color: #fff; }
.artwork-stage { display: grid; align-content: center; gap: 1rem; min-width: 0; padding: clamp(1rem, 4vw, 4rem); background: #09090b; }
.artwork-stage img, .artwork-stage video { width: 100%; max-height: calc(100vh - 110px); object-fit: contain; }
.artwork-notes { align-self: center; padding: clamp(2rem, 5vw, 5rem); }
.artwork-notes .eyebrow { color: var(--mint); }
.artwork-notes h1 { margin: 0; max-width: 100%; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.05; letter-spacing: -.03em; overflow-wrap: anywhere; word-break: normal; }
.dimensions { color: var(--acid); font-weight: 800; }
.notes { margin-top: 2rem; color: #d9d2dd; }
.art-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 2rem; }
.art-tags a { padding: .35rem .65rem; color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; font-size: .76rem; text-decoration: none; }
.artwork-actions { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; }
.artwork-actions button { padding: .62rem .9rem; color: var(--ink); background: var(--mint); border: 0; font-weight: 800; }
.quiet-note { color: #938c98; font-size: .72rem; }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; padding: 2rem; background: rgba(0,0,0,.94); border: 0; }
.lightbox::backdrop { background: rgba(0,0,0,.94); }
.lightbox img { width: 100%; height: 100%; object-fit: contain; }
.lightbox button { position: fixed; top: 1rem; right: 1rem; z-index: 2; width: 3rem; height: 3rem; color: #fff; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.35); border-radius: 50%; font-size: 2rem; }

.group-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.group-card { min-height: 210px; padding: 2rem; color: #fff; background: linear-gradient(145deg, #281a3c, #6d32a8); text-decoration: none; box-shadow: var(--shadow); }
.group-card:nth-child(3n+2) { background: linear-gradient(145deg, #302039, #b22f80); }
.group-card:nth-child(3n+3) { color: var(--ink); background: linear-gradient(145deg, #6cecca, #d1ff62); }
.group-card > span { display: block; font-size: clamp(1.35rem, 2vw, 1.8rem); font-weight: 900; line-height: 1.08; letter-spacing: -.025em; overflow-wrap: anywhere; }
.group-card small { display: block; margin-top: .6rem; font-weight: 800; text-transform: uppercase; }
.group-card p { font-size: .9rem; }
.search-results { display: grid; gap: 5rem; }
.search-results h2 { font-size: 2rem; letter-spacing: -.03em; }
.big-search { width: min(620px, 100%); }
.post-result-list { list-style: none; padding: 0; }
.post-result-list li { border-top: 1px solid var(--line); }
.post-result-list a { display: block; padding: 1rem 0; font-size: 1.3rem; font-weight: 800; }
.empty-state { display: flex; flex-direction: column; justify-content: center; min-height: 180px; padding: 2rem; color: #695d6d; background: rgba(255,255,255,.5); border: 1px dashed #b9aebd; }
.empty-state strong { color: var(--ink); font-size: 1.4rem; }
.not-found { min-height: 70vh; padding: clamp(4rem, 12vw, 10rem); }
.not-found h1 { max-width: 900px; margin: 0; font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1; letter-spacing: -.035em; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 2rem clamp(1rem, 4vw, 4rem); color: #bcb2c1; background: #121018; font-size: .78rem; }
.site-footer p { margin: 0; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; align-items: stretch; flex-direction: column; padding: 1.2rem; background: #121018; border-top: 1px solid rgba(255,255,255,.1); }
  .site-nav.open { display: flex; }
  .nav-search input { width: 100%; }
  .art-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .artwork-detail { grid-template-columns: 1fr; }
  .artwork-stage { min-height: 60vh; }
  .artwork-stage img, .artwork-stage video { max-height: 75vh; }
  .group-index { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .hero { min-height: 58vh; padding: 1.1rem; }
  .hero.has-banner { display: flex; flex-direction: column; min-height: 0; padding: 0; background: #241634; }
  .hero.has-banner::before, .hero.has-banner::after, .hero.has-banner .hero-noise { display: none; }
  .hero-banner { position: relative; inset: auto; z-index: auto; flex: 0 0 auto; width: 100%; height: 60vw; max-height: 60svh; object-fit: contain; background: #09090b; }
  .hero.has-banner .hero-copy { width: 100%; padding: 1.25rem 1rem 1.4rem; background: #241634; border: 0; box-shadow: none; backdrop-filter: none; }
  .hero h1 { font-size: clamp(1.9rem, 9vw, 2.25rem); }
  .hero-copy > p:last-child { margin-top: .65rem; }
  .section-heading, .page-intro { align-items: flex-start; flex-direction: column; }
  .page-intro { justify-content: end; min-height: 170px; padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .page-intro h1 { font-size: clamp(1.7rem, 8vw, 2.1rem); }
  .post-article h1, .post-article h3 { font-size: clamp(1.45rem, 7vw, 1.75rem); }
  .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .group-index { grid-template-columns: 1fr; }
  .post-article { padding: 1.1rem; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
