/* ============================================================
   /djschool/ shared stylesheet

   PART 1  SITE SHELL      - the banner / menu / support bar that the
                             server adds to every page in this folder.
                             Reproduces the old frameset layout exactly.
   PART 2  REBUILT PAGES   - modern styling. Applies ONLY to pages whose
                             body tag carries class="rebuilt".
                             Old pages are left untouched by design.
   ============================================================ */

:root {
  --bg:        #000000;
  --ink:       #b8b8b8;
  --ink-bright:#ffffff;
  --gold:      #ffcc66;
  --rule:      #262626;
  --panel:     #0c0c0c;
  --font-body: Arial, Helvetica, "Helvetica Neue", sans-serif;
  --measure:   68ch;
  --gap:       clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============================================================
   REBUILT PAGES ONLY - applies to pages whose body tag
   carries class="rebuilt" (the DJ KC bio and gallery).
   Old frameset pages are deliberately left untouched.
   ============================================================ */

body.rebuilt {
  padding: 0 var(--gap) 4rem;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  line-height: 1.65;
  overflow-wrap: break-word;
}
body.rebuilt html { scroll-behavior: smooth; }

/* ---------- links ---------- */
a         { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(255,204,102,.35); }
a:hover   { color: var(--ink-bright); border-bottom-color: var(--ink-bright); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
a:has(img), a.plain { border-bottom: 0; }

/* ---------- media: never overflow the screen ---------- */
body.rebuilt img, body.rebuilt video, body.rebuilt iframe, body.rebuilt embed, body.rebuilt object {
  max-width: 100%;
  height: auto;
  border: 0;
}
img { display: block; }

/* ---------- page shell ---------- */
body.rebuilt .wrap {
  max-width: 1040px;
  margin: 0 auto;
}
.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1.15em; }

/* ---------- masthead ---------- */
body.rebuilt .masthead {
  text-align: center;
  padding: clamp(2rem, 7vw, 4rem) 0 clamp(1.5rem, 5vw, 2.5rem);
}
body.rebuilt .masthead h1 {
  margin: 0;
  color: var(--ink-bright);
  font-size: clamp(2.25rem, 9vw, 4rem);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.05;
}
body.rebuilt .masthead .kicker {
  display: block;
  margin-top: .75rem;
  color: var(--gold);
  font-size: clamp(.85rem, 3vw, 1.05rem);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
body.rebuilt .hero {
  margin: clamp(1.5rem, 5vw, 2.5rem) auto 0;
  max-width: 420px;
  width: 100%;
}

/* ---------- call-to-action button ---------- */
body.rebuilt .cta {
  display: inline-block;
  margin-top: clamp(1.25rem, 4vw, 2rem);
  padding: .85rem 1.6rem;
  border: 1px solid var(--gold);
  border-radius: 2px;
  background: transparent;
  color: var(--gold);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  min-height: 48px;
  line-height: 1.6;
}
.cta:hover { background: var(--gold); color: #000; border-color: var(--gold); }
.cta:focus-visible { outline: 2px solid var(--ink-bright); outline-offset: 3px; }

/* ---------- section headings ---------- */
body.rebuilt h2 {
  margin: clamp(2.5rem, 7vw, 4rem) 0 1.25rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-bright);
  font-size: clamp(1.25rem, 4.5vw, 1.6rem);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ---------- text + image blocks (replaces old layout tables) ---------- */
body.rebuilt .split {
  display: grid;
  gap: var(--gap);
  align-items: start;
  margin: clamp(2rem, 6vw, 3rem) 0;
}
@media (min-width: 800px) {
  .split            { grid-template-columns: 1.15fr 1fr; }
  .split--flip      { grid-template-columns: 1fr 1.15fr; }
  .split--flip .split__media { order: -1; }
  .split .prose     { max-width: none; }
}
.split__media img { width: 100%; border-radius: 2px; }

/* ---------- lists ---------- */
body.rebuilt .venues {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: .35rem clamp(1rem, 4vw, 2.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .95rem;
  letter-spacing: .02em;
}
.venues li { padding: .15rem 0; border-bottom: 1px solid rgba(255,255,255,.06); }

body.rebuilt .festivals {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: .35rem var(--gap);
}
.festivals li { padding: .15rem 0 .15rem 1.1rem; position: relative; }
.festivals li::before { content: "▸"; position: absolute; left: 0; color: var(--gold); }

/* ---------- social row: tap targets ≥44px ---------- */
body.rebuilt .social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 5vw, 2rem);
  margin: clamp(2.5rem, 8vw, 4rem) 0 2rem;
  padding: 0;
  list-style: none;
}
body.rebuilt .social a, body.rebuilt .social span {
  display: grid;
  place-items: center;
  min-width: 56px;
  min-height: 56px;
  border-bottom: 0;
}
.social img { width: 48px; height: 48px; object-fit: contain; }

/* ---------- footer ---------- */
body.rebuilt .site-foot {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  text-align: center;
  font-size: .85rem;
  color: #777;
}

/* ============================================================
   PHOTO GALLERY (kc.html and any future gallery page)
   ============================================================ */

body.rebuilt .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: .6rem;
  margin: clamp(1.5rem, 5vw, 2.5rem) 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 700px) {
  .gallery { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .85rem; }
}
body.rebuilt .gallery button {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--panel);
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}
.gallery button:hover { border-color: var(--gold); }
.gallery button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

body.rebuilt .lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  place-items: center;
  padding: 1rem;
  background: rgba(0,0,0,.94);
}
.lightbox[open], .lightbox.is-open { display: grid; }
.lightbox img { max-width: 100%; max-height: 82vh; width: auto; margin: 0 auto; }
body.rebuilt .lightbox__bar {
  position: absolute;
  left: 0; right: 0; bottom: max(1rem, env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  gap: 1rem;
}
body.rebuilt .lightbox__bar button, body.rebuilt .lightbox__close {
  min-width: 56px; min-height: 48px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: #111;
  color: var(--ink-bright);
  font: inherit;
  font-size: 1.25rem;
  cursor: pointer;
}
.lightbox__bar button:hover, .lightbox__close:hover { border-color: var(--gold); color: var(--gold); }
.lightbox__close { position: absolute; top: 1rem; right: 1rem; }
.lightbox__count { align-self: center; color: var(--ink); font-size: .9rem; }

.backlink { display: block; text-align: center; margin-top: 2rem; }


