/*
  colLAB — Alter Ego
  Clean, high-contrast layout: white page, near-black text, poster colours as accents only.
  Text contrast: ink on white ≈ 17:1, plum on white ≈ 11:1, ink on yellow ≈ 17:1.
*/
:root {
  --ink:     #1a1a1a;
  --muted:   #4a4a4a;
  --line:    #e6e1e4;
  --paper:   #fcf3ec;  /* very pale poster peach */
  --card:    #fffaf6;
  --tint:    #f6e9e3;
  --plum:    #5a2449;
  --magenta: #b4488a;
  --peach:   #d9967a;
  --olive:   #c8ba5e;
  --yellow:  #f4f23c;
  --grad:    linear-gradient(90deg, var(--olive), var(--peach), var(--magenta));
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 112.5%; background-color: var(--paper); } /* 18px */

body {
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(115deg, #faf6e6 0%, #fcf1ea 50%, #faebf2 100%) fixed;  /* pale olive → peach → pink */
  background-color: var(--paper);
  line-height: 1.6;
  border-top: 8px solid transparent;
  border-image: var(--grad) 1;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--plum); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--magenta); }
a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  border-radius: 8px;
  z-index: 10;
}
.skip:focus { top: 16px; color: var(--paper); }

.wrap {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 48px);
}

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 20px;
  padding: 20px 0;
  font-size: .9rem;
  font-weight: 700;
}
.topbar nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.topbar nav a { color: var(--ink); text-decoration: none; padding: 2px 6px; border-radius: 4px; }
.topbar nav a:hover { text-decoration: underline; }
.topbar nav a[aria-current="page"] { background: var(--yellow); }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(16px, 4vw, 40px) 0 clamp(40px, 6vw, 72px);
}
.poster {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgb(90 36 73 / .18);
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.02em;
}
.hero .tagline { margin-top: 8px; font-size: 1.15rem; font-weight: 500; color: var(--muted); }

.key {
  margin: 24px 0 28px;
  padding-left: 18px;
  border-left: 6px solid transparent;
  border-image: linear-gradient(var(--olive), var(--peach), var(--magenta)) 1;
  display: grid;
  gap: 2px;
}
.key .date { font-size: 1.4rem; font-weight: 900; }
.key .free { margin-top: 6px; }

.highlight { background: var(--yellow); padding: 0 6px; font-weight: 700; }

.cta {
  display: inline-block;
  padding: 12px 24px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}
.cta:hover { background: var(--ink); color: var(--paper); }

/* ---------- Sections ---------- */
section { padding: clamp(36px, 6vw, 56px) 0; border-top: 1px solid var(--line); }

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 18px;
}
h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 6px;
  margin-top: 10px;
  border-radius: 3px;
  background: var(--grad);
}

.lede { font-size: 1.2rem; font-weight: 500; max-width: 46ch; }
.prose { max-width: 62ch; }
.prose p + p, .lede + .prose, .prose + details { margin-top: 1em; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: clamp(24px, 4vw, 40px);
}
h3 {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--plum);
  margin-bottom: 6px;
}
.grid ul, .plain { list-style: none; display: grid; gap: 4px; }
.grid strong { display: block; font-size: 1.15rem; }

.more { display: inline-block; margin-top: 14px; font-weight: 700; }

/* Collapsible content */
details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 700; color: var(--plum); width: fit-content; padding: 4px 0; }
details > p, details > ol, details > dl { margin-top: .8em; }
details ol { padding-left: 1.2em; display: grid; gap: .4em; }

.faq { max-width: 62ch; }
.faq details { margin: 0; border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  width: auto;
  padding: 14px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 900; color: var(--magenta); }
.faq details[open] summary::after { content: "–"; }
.faq details > p { margin: 0 0 14px; }

/* Curator's text */
.currents { display: grid; gap: 10px; }
.currents div { padding-left: 14px; border-left: 4px solid var(--magenta); }
.currents dt { font-weight: 900; }
.signoff { font-style: italic; color: var(--muted); }

/* Artist names */
.names {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
  gap: 10px 24px;
}
.names li { display: grid; line-height: 1.35; }
.names .name { font-weight: 700; }
.names a { font-size: .9rem; width: fit-content; }
h3.sub { margin: 28px 0 12px; }

/* Instagram previews */
.ig-posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 16px;
  margin: 20px 0;
  align-items: start;
}
.ig-posts[hidden] { display: none; }
.ig-posts .instagram-media,
.ig-posts iframe {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}
.ig-posts blockquote { padding: 16px; background: var(--tint); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  display: grid;
  gap: 6px;
  font-size: .9rem;
  color: var(--muted);
}
footer .ack { max-width: 70ch; color: var(--ink); margin-bottom: 6px; }

/* ---------- 2025 archive ---------- */
.page-head { padding: clamp(16px, 4vw, 40px) 0 clamp(28px, 5vw, 48px); }
.page-head h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.02em;
}
.page-head h1 span { color: var(--magenta); }
.page-head .lede { margin-top: 14px; }

.artists {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 20px;
  align-items: start;
}
.artist {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
}
.artist img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--tint);
}
.artist .body { padding: 18px 20px 20px; display: grid; gap: 2px; }
.artist h3 {
  font-size: 1.25rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  font-weight: 900;
  margin: 0;
}
.artist .meta { font-size: .9rem; color: var(--muted); }
.artist .work { margin-top: 10px; font-weight: 700; color: var(--plum); }
.artist .materials, .artist .credit { font-size: .9rem; color: var(--muted); }
.artist .credit { font-style: italic; }
.work-item + .work-item { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }

.components {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(20px, 4vw, 36px);
  margin-top: 24px;
}
.components h3 { font-size: 1rem; text-transform: none; letter-spacing: 0; }
.components .materials { font-size: .9rem; color: var(--muted); }
.invite {
  margin-top: 28px;
  padding-left: 16px;
  border-left: 4px solid var(--magenta);
  font-weight: 700;
  max-width: 52ch;
}

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .poster { max-width: 420px; margin: 0 auto; }
}

@media (prefers-reduced-motion: no-preference) {
  .cta { transition: background .15s ease, color .15s ease; }
}
h3.sub { text-transform: none; letter-spacing: 0; font-size: 1rem; }

/* ---------- 2025 gallery + minimal artist cards ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}
.gallery figure { margin: 0; }
.gallery .wide { grid-column: 1 / -1; }
.gallery img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
}
.gallery .wide img { aspect-ratio: 16 / 9; }
#ig-links[hidden] { display: none; }

.artist { border: 0; background: transparent; border-radius: 0; overflow: visible; }
.artist img { border-radius: 10px; }
.artist .body { padding: 12px 0 0; }
.artists { gap: 36px 28px; }
@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
.parts { list-style: none; display: grid; gap: 6px; margin-top: 6px; font-size: .9rem; color: var(--muted); }
.parts strong { color: var(--ink); }
.note { margin-top: 10px; font-size: .9rem; color: var(--muted); }
#program li + li { margin-top: 4px; }
