@font-face {
  font-family: Poster;
  src: url(assets/barlow-latin-ext.woff2) format("woff2");
  font-weight: 800;
  font-display: swap;
  unicode-range: U+0100-02FF,U+1E00-1EFF;
}
@font-face {
  font-family: Poster;
  src: url(assets/barlow-latin.woff2) format("woff2");
  font-weight: 800;
  font-display: swap;
  unicode-range: U+0000-00FF,U+2000-206F;
}
@font-face {
  font-family: Label;
  src: url(assets/dm-normal-latin-ext.woff2) format("woff2");
  font-display: swap;
  unicode-range: U+0100-02FF,U+1E00-1EFF;
}
@font-face {
  font-family: Label;
  src: url(assets/dm-normal-latin.woff2) format("woff2");
  font-display: swap;
  unicode-range: U+0000-00FF,U+2000-206F;
}

:root {
  --ink: #0b0c10;
  --panel: #14161c;
  --blue: #2042ef;
  --blue-light: #a4b7ff;
  --white: #f6f6f0;
  --muted: #bebfc8;
  --line: #3b3d48;
  --gutter: clamp(1.25rem, 5.4vw, 7rem);
  --gap: clamp(1rem, 2.5vw, 3rem);
  --poster: Poster, Impact, "Arial Narrow", sans-serif;
  --sans: Label, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font: 1rem/1.55 var(--sans);
}
body:has(.viewer[open]) { overflow: hidden; }
h1, h2, p, figure, dl, dd { margin: 0; }
h1, h2 {
  font: 800 clamp(3.4rem, 7.8vw, 8.5rem)/.83 var(--poster);
  letter-spacing: -.025em;
  text-transform: uppercase;
}
a { color: inherit; text-underline-offset: .24em; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
img { display: block; width: 100%; height: auto; }
button { font: inherit; }
::selection { background: var(--blue); color: white; }

.frame { width: min(100% - 2 * var(--gutter), 95rem); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 3;
  top: .75rem;
  left: .75rem;
  translate: 0 -180%;
  padding: .7rem 1rem;
  background: var(--white);
  color: var(--ink);
}
.skip-link:focus { translate: 0 0; }
.site-header {
  position: absolute;
  z-index: 1;
  inset: 0 0 auto;
  background: rgb(11 12 16 / .76);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 5.2rem; }
.brand { display: block; flex: none; width: clamp(8.5rem, 12.5vw, 11rem); }
nav { display: flex; gap: clamp(.75rem, 3.15vw, 3.1rem); font-size: .94rem; }
nav a { text-decoration: none; padding-block: .7rem; white-space: nowrap; }
nav a:hover { text-decoration: underline; }

.hero { position: relative; isolation: isolate; overflow: clip; }
.hero-image {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -2;
  width: 72%;
}
.hero-image img {
  height: 100%;
  object-fit: cover;
  object-position: 50% 49%;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, var(--ink) 22%, rgb(11 12 16 / .95) 32%, rgb(11 12 16 / .55) 57%, transparent 85%);
  pointer-events: none;
}
.hero-content {
  min-height: clamp(40rem, calc(100svh - 7rem), 55rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: 6.8rem;
  padding-bottom: 4.4rem;
}
.artist { color: var(--blue-light); font-size: clamp(1.16rem, 1.7vw, 1.6rem); margin-bottom: 1.05rem; }
h1 { font-size: clamp(6.5rem, 12.2vw, 13rem); line-height: .79; }
h1 span { display: block; }
h1 span + span { margin-top: .055em; }
.hero-medium { margin-block: clamp(1.45rem, 2.8vw, 2.55rem) 1.3rem; font-size: clamp(1rem, 1.32vw, 1.25rem); }
.button {
  display: inline-flex;
  min-height: 3.1rem;
  align-items: center;
  padding: .7rem 1.25rem;
  text-decoration: none;
  font-weight: 700;
  transition: background-color .2s;
}
.button-blue { background: var(--blue); color: white; }
.button-blue:hover { background: #162caa; }

.event-strip { background: var(--blue); color: white; }
.event-grid { display: grid; grid-template-columns: 1fr 1.17fr 1fr; align-items: center; gap: var(--gap); padding-block: 1.25rem 1.38rem; }
.event-grid span { display: block; font-size: .89rem; color: #ecf0ff; margin-bottom: .2rem; }
.event-grid strong { display: block; font: 800 clamp(1.25rem, 2.15vw, 2.25rem)/1.04 var(--poster); text-transform: uppercase; }

.section { scroll-margin-top: 1.5rem; }
.intro {
  padding-block: clamp(4.6rem, 11vw, 11rem);
  background: var(--white);
  color: var(--ink);
}
.intro-grid { display: grid; grid-template-columns: 1fr 1.57fr; gap: var(--gap); }
.intro h2 { color: var(--blue); }
.intro-copy { max-width: 43rem; }
.lead { font-size: clamp(1.65rem, 3.3vw, 3.65rem); line-height: 1.08; letter-spacing: -.047em; margin-bottom: 1.6rem; }
.intro-copy p:last-child { max-width: 52ch; color: #42434a; }

.gallery { padding-block: clamp(4.7rem, 9vw, 9rem); }
.gallery-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: clamp(2rem, 5vw, 4.5rem); }
.gallery-heading p { color: var(--muted); }
.art-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.8rem, 4vw, 4rem) var(--gap); align-items: start; }
.art-grid figure { grid-column: span 3; }
.art-grid figure:nth-child(-n + 2) { grid-column: span 6; }
.gallery img { aspect-ratio: 5 / 4; object-fit: cover; }
.art-grid figure:nth-child(n + 3) img { aspect-ratio: 4 / 5; }
figcaption { font-size: .9rem; color: var(--muted); padding-top: .7rem; }
.art-link { display: block; cursor: zoom-in; overflow: hidden; }
.art-link img { transition: scale .55s cubic-bezier(.2,.65,.25,1); }
@media (hover: hover) { .art-link:hover img { scale: 1.04; } }

.about { background: var(--panel); }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(2rem, 7vw, 8rem); }
.about-art img { aspect-ratio: 1.15; object-fit: cover; }
.about-copy { padding-block: 3rem; }
.about-copy p { margin-top: 1.5rem; max-width: 47ch; color: var(--muted); }
.visit { padding-block: clamp(4.5rem, 10vw, 10rem); }
.visit-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(2.75rem, 7.5vw, 9rem); }
.visit h2 { font-size: clamp(4rem, 9vw, 10rem); }
.visit-info { display: grid; gap: 1.08rem; margin-block: 2rem 1.7rem; }
.visit-info dt { color: var(--blue-light); font-size: .91rem; }
.visit-info dd { margin-top: .13rem; }
.invitation { width: min(100%, 31rem); justify-self: end; }
.site-footer { padding-bottom: 1.7rem; font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-top: 1.35rem; }
.footer-inner a { flex: none; }

.viewer { padding: 0; border: 0; background: transparent; color: var(--white); max-width: min(94vw, 70rem); max-height: 94dvh; }
.viewer::backdrop { background: rgb(11 12 16 / .96); }
.viewer-inner { display: grid; justify-items: center; width: min(92vw, 66rem); }
.viewer form { justify-self: end; }
.viewer figure { text-align: center; }
.viewer img { width: auto; max-width: 100%; max-height: min(68dvh, 50rem); object-fit: contain; margin: auto; }
.viewer figcaption { color: var(--white); }
.viewer button { min-height: 44px; min-width: 44px; border: 1px solid var(--muted); color: inherit; background: transparent; cursor: pointer; padding: .35rem .85rem; }
.viewer button:hover { background: var(--blue); }
.viewer .viewer-close { border: 0; font-size: 2.15rem; line-height: 1; margin: 0 4px 4px; }
.viewer-nav { display: flex; gap: .7rem; padding: .8rem .4rem .45rem; }

@media (max-width: 950px) {
  .event-grid { gap: 1rem; }
  .hero-image { width: 85%; }
  .hero::after { background: linear-gradient(90deg, var(--ink) 8%, rgb(11 12 16 / .85) 32%, rgb(11 12 16 / .3) 80%); }
}
@media (max-width: 650px) {
  .header-inner { min-height: 4.65rem; }
  .brand { width: clamp(7.15rem, 31vw, 8.5rem); }
  nav { gap: clamp(.6rem, 3vw, 1.35rem); font-size: .85rem; }
  .hero-content { min-height: 37rem; padding-top: 6.9rem; padding-bottom: 2.5rem; justify-content: flex-end; }
  .hero-image { width: 100%; }
  .hero-image img { object-position: 43% 50%; }
  .hero::after { background: linear-gradient(0deg, var(--ink), rgb(11 12 16 / .64) 62%, rgb(11 12 16 / .28)); }
  h1 { font-size: clamp(3.6rem, 18vw, 7rem); }
  .artist { margin-bottom: .8rem; }
  .hero-medium { margin-block: 1.25rem 1.05rem; }
  .event-grid { grid-template-columns: 1fr; gap: .8rem; padding-block: 1.1rem 1.25rem; }
  .event-grid span { margin-bottom: 0; }
  .event-grid strong { font-size: 1.35rem; }
  .intro-grid, .about-grid, .visit-grid { display: block; }
  .intro-copy { margin-top: 1.5rem; }
  .gallery-heading { display: block; }
  .gallery-heading p { margin-top: .75rem; }
  .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .art-grid figure:nth-child(n) { grid-column: span 1; }
  .art-grid figure:nth-child(n) img { aspect-ratio: 4 / 5; }
  .about-grid { padding-top: 1.25rem; }
  .about-art { width: 84%; }
  .invitation { width: min(87%, 27rem); margin-top: 2.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .art-link:hover img { scale: none; }
}
