/* Metamorphosis Art Projects - static site */
@font-face { font-family: "Inter"; font-weight: 300; font-display: swap; src: url("/assets/fonts/inter-300.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/assets/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("/assets/fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/assets/fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Tinos"; font-weight: 700; font-display: swap; src: url("/assets/fonts/tinos-700.woff2") format("woff2"); }
@font-face { font-family: "Tinos"; font-weight: 400; font-style: italic; font-display: swap; src: url("/assets/fonts/tinos-400-italic.woff2") format("woff2"); }

:root {
  --bg: #0a0a0a;
  --card: #141414;
  --line: #2a2a2a;
  --text: #ececec;
  --muted: #9a9a9a;
  --gold: #f0dc9b;       /* headings */
  --gold-deep: #d4a73f;  /* dates */
  --cream: #f2eadc;
  --ink: #1c1c1c;
  --sans: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Tinos", "Times New Roman", Georgia, serif;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 1rem; line-height: 1.7; }
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--gold); text-underline-offset: .2em; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; color: var(--gold); line-height: 1.2; margin: 0 0 .6em; text-align: center; }
h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 1.25em; }
h3 { font-size: 1.15rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: #000; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: 46rem; margin-left: auto; margin-right: auto; }

/* ---------- Header: centred logo, menu underneath ---------- */
.site-header { border-bottom: 1px solid var(--line); text-align: center; }
.logo { display: inline-block; padding: 1.4rem 0 .4rem; }
.logo img { width: 15.5rem; height: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 2.25rem; padding: .3rem var(--gutter) 1.1rem; }
.nav > ul > li { position: relative; }
.nav a, .nav summary { color: #fff; text-decoration: none; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; display: inline-block; padding: .35rem 0; }
.nav a:hover, .nav summary:hover, .nav details[open] > summary, .nav [aria-current="page"] { color: var(--gold); }
.nav summary { list-style: none; }
.nav summary::-webkit-details-marker { display: none; }
.dropdown { position: absolute; left: -1rem; top: calc(100% + .5rem); z-index: 60; min-width: 15rem; text-align: left; background: #161616; border: 1px solid var(--line); padding: .6rem 0; box-shadow: 0 16px 40px rgba(0,0,0,.6); }
.dropdown a { display: block; padding: .65rem 1.25rem; text-transform: none; letter-spacing: 0; font-size: 1rem; }
.dropdown a:hover { background: #1f1f1f; }
@media (max-width: 40rem) {
  .logo img { width: 13rem; }
  .nav > ul { gap: .1rem 1.75rem; }
  .dropdown { left: 50%; transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
main { display: block; }
.band { padding: clamp(3rem, 7vw, 5rem) 0; }
.band.cream { background: var(--cream); color: var(--ink); }
.band.cream h2, .band.cream h3 { color: var(--ink); }
.band.cream a { color: var(--ink); }
.band.tight-top { padding-top: 0; }

/* Page header */
.hero { text-align: center; padding: clamp(3.5rem, 9vw, 6rem) 0 clamp(2.5rem, 5vw, 3.5rem); }
.hero h1 { margin-bottom: .55em; }
.hero .date { color: var(--gold-deep); font-weight: 600; letter-spacing: .06em; font-size: 1.05rem; margin: 0 0 .9rem; }
.hero .title { color: #fff; font-weight: 300; font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.35; margin: 0 0 1rem; }
.hero .venue { color: var(--muted); margin: 0; }
.hero .tagline { color: #fff; font-weight: 300; font-size: clamp(1.3rem, 2.8vw, 1.9rem); line-height: 1.4; margin: 0; }
.hero-image { margin: clamp(2rem, 4vw, 2.75rem) auto 0; max-width: 38rem; }
.hero-image.wide { max-width: 50rem; }
.hero-image img { width: 100%; border: 1px solid #333; }

/* Text blocks */
.prose { max-width: 46rem; margin: 0 auto; font-size: 1.02rem; }
.prose.lead { font-size: clamp(1.05rem, 1.8vw, 1.15rem); }
.list { list-style: none; margin: 0 auto; padding: 0; max-width: 46rem; }
.list li { padding: .45rem 0; }
.quote { max-width: 44rem; margin: 0 auto 2.5rem; text-align: center; font-family: var(--serif); font-style: italic; font-size: 1.2rem; line-height: 1.55; color: #fff; }
.quote cite { font-style: normal; color: var(--gold); }
.credits { text-align: center; color: var(--muted); font-size: .95rem; max-width: 46rem; margin: 2.5rem auto 0; }
.sub { text-align: center; color: var(--gold); font-family: var(--serif); font-weight: 700; font-size: 1.15rem; margin: 0 0 1rem; }
.center-meta { text-align: center; margin: -.5rem 0 1.75rem; }
.center-meta p { margin: 0 0 .35rem; }

/* Galleries */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.gallery a { display: block; overflow: hidden; background: #111; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .35s ease, opacity .2s; }
.gallery.landscape img { aspect-ratio: 3 / 2; }
.gallery a:hover img { transform: scale(1.03); }
@media (max-width: 56rem) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; } }

.pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 1.25rem; }
.pairs figure { margin: 0; }
.pairs a { display: block; }
.pairs img { width: 100%; }
.pairs figcaption { text-align: center; color: var(--muted); font-size: .85rem; margin-top: .5rem; }
@media (max-width: 36rem) { .pairs { gap: 1rem .6rem; } }

.stack { display: grid; gap: 2.5rem; max-width: 40rem; margin: 0 auto; }
.stack img { width: 100%; margin-bottom: 1rem; }
.single { max-width: 32rem; margin: 0 auto; }
.single img { width: 100%; }

/* Videos */
.videos { display: grid; gap: 2.75rem; }
.video-block .sub { margin-bottom: .9rem; }
.frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #0d0d0d; border: 1px solid var(--line); }
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
video.player { width: 100%; max-height: 80vh; background: #0d0d0d; border: 1px solid var(--line); }
.text-link { text-align: center; }
.text-link a { text-decoration: none; }
.text-link a:hover { text-decoration: underline; }

/* Press buttons */
.buttons { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: 1rem; }
.buttons a { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 4.5rem; padding: 1rem 1.25rem; background: #151515; color: var(--gold) !important; text-decoration: none; font-size: .92rem; line-height: 1.45; border: 1px solid #151515; transition: background .2s, border-color .2s; }
.buttons a:hover { background: #000; border-color: var(--gold); }
.buttons.left { max-width: none; }

/* Sponsors */
.sponsors { text-align: center; padding: 2.5rem 0 3.5rem; }
.sponsors .label { color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; }
.sponsors .logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.5rem 2.5rem; }
.sponsors img { max-height: 3.75rem; width: auto; }
.sponsors .logos.light img { background: #fff; padding: .35rem .6rem; }

/* Artist cards (home) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); gap: 1.5rem; }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--gold); color: var(--text); transform: translateY(-2px); }
.card .pic { aspect-ratio: 4 / 3; overflow: hidden; background: #111; }
.card .pic img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.card .body { padding: 1.25rem 1.4rem 1.6rem; }
.card h3 { text-align: left; font-size: 1.4rem; margin: 0 0 .5rem; }
.card p { margin: 0 0 .6rem; color: var(--muted); line-height: 1.55; }

/* Catalogues */
.catalogues { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: 1.5rem; }
.catalogues a { display: block; background: var(--card); border: 1px solid var(--line); padding: 1.1rem 1.1rem 1.4rem; text-decoration: none; color: var(--gold); text-align: center; transition: border-color .2s; }
.catalogues a:hover { border-color: var(--gold); color: var(--gold); }
.catalogues img { width: 100%; margin-bottom: 1rem; }
.catalogues span { display: block; font-size: 1.02rem; line-height: 1.45; }

/* About */
.bios { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 3rem; }
.bios h3 { text-align: left; font-size: 1.45rem; margin-bottom: .7rem; }
.team-photo { max-width: 26rem; margin: 0 auto 3rem; }
@media (max-width: 44rem) { .bios { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 0; padding: 2.5rem 0 2.75rem; color: var(--muted); font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 3rem; }
.site-footer p { margin: 0 0 .35rem; }
.site-footer strong { color: #c9c9c9; font-weight: 600; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }

/* Lightbox */
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
dialog.lightbox::backdrop { background: rgba(0,0,0,.94); }
dialog.lightbox .stage { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3.5rem 4.5rem 2rem; }
dialog.lightbox img { max-width: 100%; max-height: calc(100vh - 7rem); width: auto; height: auto; object-fit: contain; }
dialog.lightbox .count { color: var(--muted); font-size: .85rem; margin: 1rem 0 0; }
dialog.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font: 500 .85rem var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 1rem; }
dialog.lightbox button:hover { color: var(--gold); }
dialog.lightbox .close { top: .5rem; right: .75rem; }
dialog.lightbox .prev, dialog.lightbox .next { top: 50%; transform: translateY(-50%); font-size: 2.25rem; line-height: 1; }
dialog.lightbox .prev { left: .5rem; }
dialog.lightbox .next { right: .5rem; }
@media (max-width: 40rem) { dialog.lightbox .stage { padding: 3.5rem .75rem 2rem; } dialog.lightbox .prev, dialog.lightbox .next { top: auto; bottom: .5rem; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
