/* Queen Muhammad Ali LLC — static site styles */
:root {
  --bg: #f9f9f9;
  --ink: #111111;
  --muted: #6b6b6b;
  --line: #e4e4e4;
  --accent: #161616;
  --head: 150px;
  --pad: 30px;
  --font: 'Jost', 'Futura PT', Futura, 'Century Gothic', 'Helvetica Neue', Arial, sans-serif;
  --display: 'Oswald', 'League Gothic', 'Arial Narrow', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.7 var(--font); letter-spacing: .02em;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-header {
  position: relative; z-index: 50; height: var(--head);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--pad); background: var(--bg);
}
.logo {
  display: block; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: clamp(21px, 2.1vw, 31px); white-space: nowrap;
  letter-spacing: .26em; text-transform: uppercase; line-height: 1.1; margin-right: -.26em;
}
.tagline { margin: 4px 0 0; font-size: clamp(10px, .9vw, 13px); white-space: nowrap; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: clamp(10px, 1.5vw, 28px); }
.site-nav > ul { display: flex; gap: clamp(14px, 2.2vw, 36px); list-style: none; margin: 0; padding: 0; }
.site-nav li { position: relative; }
.site-nav .top {
  display: block; padding: 4px 0 2px; text-decoration: none; font-size: clamp(13px, 1.05vw, 15px); font-weight: 500; white-space: nowrap;
  letter-spacing: .1em; border-bottom: 1.5px solid transparent;
}
.site-nav li.active > .top, .site-nav li:hover > .top, .site-nav .top:focus-visible { border-bottom-color: var(--ink); }
.site-nav .sub {
  position: absolute; left: 50%; top: 100%; margin-top: 16px; min-width: 200px; list-style: none;
  padding: 14px 0; background: #111; color: #fff;
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: .18s ease;
}
.site-nav .sub::before { /* little pointer above the box */
  content: ''; position: absolute; left: 50%; top: -8px; margin-left: -9px;
  border: solid transparent; border-width: 0 9px 9px; border-bottom-color: #111;
}
.site-nav .sub::after { /* invisible bridge so the menu stays open while moving the mouse down */
  content: ''; position: absolute; left: 0; right: 0; top: -18px; height: 18px;
}
.site-nav li:hover > .sub, .site-nav li:focus-within > .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.site-nav .sub a {
  display: block; padding: 7px 26px; text-decoration: none; color: #fff;
  font-size: 14px; font-weight: 500; letter-spacing: .1em; white-space: nowrap;
}
.site-nav .sub a:hover { opacity: .65; }
.site-nav .sub a[aria-current] { text-decoration: underline; text-underline-offset: 4px; }
.social { display: flex; gap: 2px; }
.social a { display: block; width: 32px; height: 32px; }
.social svg { width: 100%; height: 100%; fill: var(--ink); }
.social a:hover svg { opacity: .6; }
.menu-toggle { display: none; width: 44px; height: 44px; position: relative; }
.menu-toggle span { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink); transition: .2s; }
.menu-toggle span:nth-child(1) { top: 15px; } .menu-toggle span:nth-child(2) { top: 21px; } .menu-toggle span:nth-child(3) { top: 27px; }
.nav-open .menu-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
.nav-open .menu-toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- index pages: full-screen covers ---------- */
/* the header floats over the photo; its color follows the photo (light photo = black text, dark photo = white text) */
.is-index { --tone-ink: #111; --tone-paper: #fff; }
.is-index.tone-dark { --tone-ink: #fff; --tone-paper: #111; }
.is-index .site-header { position: absolute; top: 0; left: 0; right: 0; background: transparent; }
.is-index .logo, .is-index .tagline, .is-index .site-nav .top { color: var(--tone-ink); transition: color .6s ease; }
.is-index .site-nav li.active > .top, .is-index .site-nav li:hover > .top { border-bottom-color: var(--tone-ink); }
.is-index .social svg { fill: var(--tone-ink); transition: fill .6s ease; }
.is-index .menu-toggle span { background: var(--tone-ink); }
.is-index.nav-open .site-header { background: var(--bg); }
.is-index.nav-open .logo, .is-index.nav-open .tagline { color: var(--ink); }
.is-index.nav-open .menu-toggle span { background: var(--ink); }
.covers { position: relative; height: 100vh; height: 100svh; min-height: 480px; overflow: hidden; background: #222; }
.cover { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; pointer-events: none; }
.cover.is-active { opacity: 1; pointer-events: auto; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-label {
  position: absolute; z-index: 1; left: var(--pad); bottom: 54px; padding: 14px 22px 13px;
  background: var(--tone-ink); color: var(--tone-paper); text-decoration: none;
  font-size: 15px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  transition: background .6s ease, color .6s ease;
}
.cover:hover .cover-label { text-decoration: underline; text-underline-offset: 4px; }
.cover-nav {
  position: absolute; z-index: 2; top: 50%; width: 52px; height: 52px; margin-top: -26px;
  background: var(--tone-ink); color: var(--tone-paper); transition: background .6s ease, color .6s ease;
}
.cover-nav.prev { display: none; }
.cover-nav.next { right: var(--pad); }
.cover-nav::before, .strip-nav button::before, .lightbox button::before {
  content: ''; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px;
  border: solid currentColor; border-width: 0 2px 2px 0;
}
.cover-nav::before { width: 12px; height: 12px; border-width: 0 1.5px 1.5px 0; transform: translateX(-3px) rotate(-45deg) !important; }
.cover-nav.prev::before, .strip-nav .prev::before, .lb-prev::before { transform: rotate(135deg); }
.cover-nav.next::before, .strip-nav .next::before, .lb-next::before { transform: rotate(-45deg); }

/* ---------- gallery pages: horizontal strip ---------- */
.is-gallery { --h: max(320px, min(62vh, calc(100vh - var(--head) - 140px))); }
.is-gallery main { position: relative; }
.page-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.strip {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 0 var(--pad) 40px; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity; scroll-padding-inline: var(--pad); scrollbar-width: thin; scrollbar-color: #bbb transparent;
}
.item { display: flex; flex-direction: column; margin: 0; flex: none; scroll-snap-align: start;
  width: max(280px, calc(var(--h) * var(--r))); max-width: calc(100vw - var(--pad) * 2 - 30px); }
.frame { height: var(--h); width: 100%; flex: none; position: relative; display: block; }
.photo { cursor: zoom-in; }
.photo img { width: 100%; height: 100%; object-fit: contain; object-position: left top; }
.video { aspect-ratio: 16 / 9; background: #000; }
.item .video { height: auto; max-height: var(--h); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }
.video .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.video .play {
  position: absolute; z-index: 1; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px;
  border-radius: 50%; background: rgba(17,17,17,.78); transition: background .2s, transform .2s;
}
.video .play::before {
  content: ''; position: absolute; left: 31px; top: 24px;
  border: solid transparent; border-width: 14px 0 14px 22px; border-left-color: #fff;
}
.video .play:hover { background: #111; transform: scale(1.06); }
.video.is-live .play, .video.is-live .poster { display: none; }
.video .watch {
  position: absolute; z-index: 1; left: 50%; bottom: 18px; transform: translateX(-50%);
  padding: 8px 14px; background: #fff; color: #111; font-size: 13px; letter-spacing: .08em;
  text-transform: uppercase; text-decoration: none; white-space: nowrap;
}
.text { width: 100%; padding: 22px 0 0; font-size: 15.5px; }
.text h2 { margin: 0 0 16px; font-size: 18px; line-height: 1.35; font-weight: 600; letter-spacing: .02em; }
.cap p { margin: 0 0 1em; }
.cap a { text-underline-offset: 3px; }
.text, .prose, .lb-text { overflow-wrap: break-word; }
.strip-nav button {
  position: absolute; z-index: 5; top: calc(var(--h) / 2 - 26px); width: 52px; height: 52px;
  background: #111; color: #fff; transition: opacity .2s, background .2s;
}
.strip-nav .prev { left: calc(var(--pad) + 14px); }
.strip-nav .next { right: 64px; }
.strip-nav button:hover { background: #333; }
.strip-nav button::before { width: 12px; height: 12px; border-width: 0 1.5px 1.5px 0; }
.strip-nav button[hidden] { display: block; opacity: 0; pointer-events: none; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  display: grid; grid-template-columns: 64px 1fr 64px; align-items: center;
}
.lightbox[hidden] { display: none; }
.lb-stage { height: 100vh; height: 100svh; padding: 56px 0 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-width: 0; }
.lb-stage img { max-height: 100%; min-height: 0; flex: 1 1 auto; object-fit: contain; width: 100%; }
.lb-text { max-width: 760px; max-height: 26vh; overflow-y: auto; flex: none; font-size: 14px; text-align: center; }
.lb-text:empty { display: none; }
.lb-text h2 { margin: 0 0 4px; font-size: 16px; }
.lb-text p { margin: 0 0 .6em; }
.lightbox button { position: relative; height: 64px; width: 64px; }
.lb-close { position: absolute !important; top: 8px; right: 8px; }
.lb-close::before { border: 0 !important; width: 22px !important; height: 22px !important;
  background: linear-gradient(45deg, transparent 47%, currentColor 47% 53%, transparent 53%),
              linear-gradient(-45deg, transparent 47%, currentColor 47% 53%, transparent 53%); }

/* ---------- plain pages (About) ---------- */
.prose { max-width: 780px; margin: 0 auto; padding: 10px var(--pad) 90px; }
.prose h1 { margin: 0 0 28px; font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.prose .block { margin: 0 0 32px; }
.prose .block p { margin: 0 0 1em; }
.prose > .block:first-of-type p { font-size: 20px; line-height: 1.55; }
.prose figure img { width: 100%; height: auto; }
.prose figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }
.prose figcaption p { margin: 0; }
.prose a { text-underline-offset: 3px; }

a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- tablet / phone ---------- */
@media (max-width: 1100px) {
  :root { --head: 84px; --pad: 16px; }
  .site-header { position: sticky; top: 0; }
  .menu-toggle { display: block; }
  .site-nav {
    position: fixed; top: var(--head); left: 0; right: 0; bottom: 0; background: var(--bg);
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--pad) 40px; overflow-y: auto;
    visibility: hidden; opacity: 0; transition: .2s;
  }
  .nav-open .site-nav { visibility: visible; opacity: 1; }
  .nav-open { overflow: hidden; }
  .site-nav > ul { flex-direction: column; gap: 0; }
  .site-nav > ul > li { border-bottom: 1px solid var(--line); padding: 6px 0; }
  .site-nav .top { font-size: 14px; border: 0 !important; }
  .site-nav .sub { position: static; opacity: 1; visibility: inherit; transform: none; margin: 0; padding: 0 0 8px; min-width: 0; background: none; color: var(--ink); }
  .site-nav .sub::before, .site-nav .sub::after { display: none; }
  .site-nav li:hover > .sub, .site-nav li:focus-within > .sub { transform: none; }
  .is-index .site-nav .top { color: var(--ink); }
  .is-index .site-nav .social svg { fill: var(--ink); }
  .site-nav .sub a { padding: 6px 0 6px 14px; white-space: normal; color: var(--ink); font-size: 15px; letter-spacing: .06em; }
  .social { margin-top: 18px; }
  .cover-label { bottom: 44px; }
  .cover-nav.next { right: 12px; }
  .cover-label { bottom: 28px; }
  .logo { font-size: 22px; letter-spacing: .14em; }
  .tagline { font-size: 10.5px; }
  .is-gallery { --h: max(300px, min(60vh, calc(100vh - var(--head) - 160px))); }
  .strip { padding-top: 12px; }
  .lightbox { grid-template-columns: 44px 1fr 44px; }
  .lightbox button { width: 44px; }
}
@media (max-width: 760px) {
  .logo { font-size: 18px; letter-spacing: .12em; }
  .tagline { font-size: 9.5px; letter-spacing: .1em; }
  /* galleries stack top to bottom on phones */
  .strip { flex-direction: column; overflow: visible; gap: 44px; padding-top: 12px; padding-bottom: 60px; }
  .item { width: 100%; }
  .frame, .text { height: auto; min-height: 0; width: 100%; }
  .photo, .photo img { aspect-ratio: var(--r); height: auto; }
  .video { height: auto; }
  .text { overflow: visible; padding: 14px 0 0; font-size: 15px; }
  .text h2 { margin-bottom: 10px; }
  .strip-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cover, .site-nav, .site-nav .sub { transition: none; }
}
.strip-nav .prev::before { transform: translateX(3px) rotate(135deg); }
.strip-nav .next::before { transform: translateX(-3px) rotate(-45deg); }
@media (max-width: 400px) {
  .logo { font-size: 16px; letter-spacing: .09em; }
  .tagline { font-size: 8.5px; letter-spacing: .06em; }
  .menu-toggle { margin-right: -8px; }
}
@media (max-width: 340px) {
  .logo { font-size: 14px; letter-spacing: .08em; }
  .tagline { font-size: 7.5px; }
}
