/* Allstars Studio - allstarsstudio.com.au
   Hand-built static site. Palette and type follow the original Wix design:
   near-black ground, magenta accent, Oswald display + Questrial body. */

@font-face {
  font-family: 'Oswald';
  src: url('/assets/fonts/oswald-latin.woff2') format('woff2-variations');
  font-weight: 200 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Questrial';
  src: url('/assets/fonts/questrial-latin.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --ink:        #0a0a0a;
  --ink-2:      #141414;
  --ink-3:      #1e1e1e;
  --line:       #2e2e2e;
  --paper:      #ffffff;
  --paper-dim:  #c9c9c9;
  --paper-mute: #8f8f8f;
  --accent:     #e61caf;
  --accent-lo:  #b3168a;

  --display: 'Oswald', 'Helvetica Neue', Arial, sans-serif;
  --body:    'Questrial', 'Helvetica Neue', Arial, sans-serif;

  --gap:  clamp(1rem, 3vw, 2rem);
  --pad:  clamp(1.25rem, 5vw, 5rem);
  --max:  1180px;
  --head: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper-dim);
  font-family: var(--body);
  font-size: clamp(.95rem, .35vw + .88rem, 1.05rem);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
/* <picture> is inline by default, which stops the <img> inheriting the parent's box.
   display:contents makes the img lay out as a direct child of whatever wraps the picture. */
picture { display: contents; }
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { color: var(--paper); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: .7rem 1.1rem; font-family: var(--display);
}
.skip:focus { left: 0; }

h1, h2, h3, h4, h5 {
  font-family: var(--display); font-weight: 300; color: var(--paper);
  line-height: 1.15; margin: 0 0 .6em; letter-spacing: .04em;
}
h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); font-weight: 200; text-transform: uppercase; color: var(--accent); letter-spacing: .06em; }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); text-transform: uppercase; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
h4 { font-size: 1.25rem; text-transform: uppercase; letter-spacing: .08em; }
p  { margin: 0 0 1.1em; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(2.5rem, 7vw, 5rem); }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,10,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-head__inner {
  max-width: var(--max); margin-inline: auto; padding-inline: var(--pad);
  min-height: var(--head); display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--display);
  text-transform: uppercase; letter-spacing: .18em; font-size: .82rem; color: var(--paper); }
.brand:hover { color: var(--accent); }
.brand img { height: 30px; width: auto; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); color: var(--paper);
  font-family: var(--display); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  padding: .5rem .8rem; cursor: pointer; border-radius: 2px;
}
.nav-toggle:hover { border-color: var(--accent); color: var(--accent); }

.nav ul { list-style: none; display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.9rem); margin: 0; padding: 0; }
.nav a {
  font-family: var(--display); font-weight: 300; text-transform: uppercase;
  font-size: .78rem; letter-spacing: .13em; color: var(--paper-dim); padding: .5rem 0; display: inline-block;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }

.has-sub { position: relative; }
.has-sub > .sub {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: var(--ink-2); border: 1px solid var(--line); min-width: 230px;
  flex-direction: column; align-items: stretch; gap: 0; padding: .4rem 0;
  display: none;
}
.has-sub:hover > .sub, .has-sub:focus-within > .sub { display: flex; }
.sub a { padding: .5rem 1.1rem; letter-spacing: .1em; white-space: nowrap; }
.sub a:hover { background: var(--ink-3); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; inset: var(--head) 0 auto 0; background: var(--ink-2);
    border-bottom: 1px solid var(--line); display: none; max-height: calc(100vh - var(--head)); overflow-y: auto;
  }
  .nav[data-open="true"] { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 0; }
  .nav > ul > li > a { padding: .85rem var(--pad); border-bottom: 1px solid var(--line); }
  .has-sub > .sub { position: static; transform: none; display: flex; border: 0; background: var(--ink-3); min-width: 0; }
  .sub a { padding-left: calc(var(--pad) + 1rem); font-size: .74rem; }
}

/* ---------- home ---------- */
.hero-home {
  min-height: calc(100svh - var(--head)); display: grid; place-items: center;
  text-align: center; position: relative; isolation: isolate; padding: 3rem var(--pad);
}
.hero-home__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-home__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.hero-home::after { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(0,0,0,.62); }
.hero-home__logo { width: min(280px, 62vw); margin: 0 auto 1.5rem; }
.hero-home p { max-width: 34rem; margin-inline: auto; color: var(--paper); }

.btn {
  display: inline-block; background: var(--accent); color: #fff;
  font-family: var(--display); text-transform: uppercase; letter-spacing: .16em; font-size: .8rem;
  padding: .85rem 2.1rem; border: 0; border-radius: 2px; cursor: pointer; transition: background .15s ease;
}
.btn:hover, .btn:focus-visible { background: var(--accent-lo); color: #fff; }

.socials { display: flex; gap: 1rem; justify-content: center; margin-top: 1.8rem; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; color: var(--paper); }
.socials a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.socials svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- page head / genre split ---------- */
.split { display: grid; gap: var(--gap); grid-template-columns: 1.05fr .95fr; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split__media { position: sticky; top: calc(var(--head) + 1.5rem); }
.split__media img { width: 100%; height: auto; max-height: 78vh; object-fit: cover; border-radius: 2px; }
@media (max-width: 900px) { .split__media { position: static; } }
.prose { max-width: 60ch; }
.prose .subhead { font-family: var(--display); text-transform: uppercase; letter-spacing: .1em;
  color: var(--accent); font-size: 1.05rem; margin: 2rem 0 .6em; }
.prose .subhead:first-child { margin-top: 0; }

/* ---------- galleries ---------- */
.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.tile { position: relative; margin: 0; overflow: hidden; background: var(--ink-3); border-radius: 2px; }
.tile img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .4s ease, opacity .2s ease; }
.tile:hover img, .tile:focus-within img { transform: scale(1.04); }
button.tile { padding: 0; border: 0; cursor: zoom-in; display: block; width: 100%; font: inherit; }

.cat { display: block; position: relative; }
.cat img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .4s ease; }
.cat:hover img { transform: scale(1.04); }
.cat figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.4rem 1rem .9rem;
  background: linear-gradient(transparent, rgba(0,0,0,.86));
  font-family: var(--display); text-transform: uppercase; letter-spacing: .12em;
  color: #fff; font-size: .92rem; text-align: center;
}
.cat:hover figcaption { color: var(--accent); }

/* ---------- team ---------- */
.teacher { display: grid; grid-template-columns: 280px 1fr; gap: var(--gap);
  align-items: start; padding-block: clamp(1.8rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.teacher:first-of-type { border-top: 0; }
@media (max-width: 760px) { .teacher { grid-template-columns: 1fr; } .teacher__photo { max-width: 280px; } }
.teacher__photo img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: top center; border-radius: 2px; }
.teacher__role { font-family: var(--display); text-transform: uppercase; letter-spacing: .18em;
  font-size: .72rem; color: var(--accent); margin: 0 0 .3rem; }
.teacher h3 { color: var(--paper); margin-bottom: .8rem; }
.quals { list-style: none; margin: 0 0 1.2rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.quals li { font-size: .74rem; font-family: var(--display); letter-spacing: .06em;
  border: 1px solid var(--line); color: var(--paper-mute); padding: .25rem .6rem; border-radius: 2px; }
.band { font-family: var(--display); text-transform: uppercase; letter-spacing: .2em; color: var(--paper-mute);
  font-size: .8rem; border-top: 1px solid var(--line); padding-top: 2.5rem; margin-top: 1rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 1rem; }
.field label { display: block; font-family: var(--display); text-transform: uppercase;
  letter-spacing: .12em; font-size: .72rem; color: var(--paper-mute); margin-bottom: .35rem; }
.field input, .field textarea {
  width: 100%; background: var(--ink-2); border: 1px solid var(--line); color: var(--paper);
  font: inherit; padding: .7rem .8rem; border-radius: 2px;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field textarea { min-height: 150px; resize: vertical; }
.form-note { background: var(--ink-2); border-left: 3px solid var(--accent); padding: .9rem 1.1rem;
  font-size: .88rem; color: var(--paper-mute); margin-bottom: 1.2rem; }
.form-status { margin-top: 1rem; font-size: .9rem; min-height: 1.4em; }
.form-status[data-state="ok"]  { color: #4ade80; }
.form-status[data-state="err"] { color: #f87171; }

.locations { list-style: none; margin: 0; padding: 0; }
.locations li { border-top: 1px solid var(--line); padding: 1rem 0; }
.locations strong { display: block; font-family: var(--display); text-transform: uppercase;
  letter-spacing: .1em; color: var(--paper); font-weight: 400; font-size: .95rem; }
.call { font-family: var(--display); font-size: clamp(1.2rem, 3vw, 1.7rem); letter-spacing: .06em; color: var(--accent); }

/* ---------- stories ---------- */
.story { display: grid; grid-template-columns: 340px 1fr; gap: var(--gap); align-items: center;
  padding-block: clamp(1.5rem, 4vw, 2.5rem); border-top: 1px solid var(--line); }
@media (max-width: 760px) { .story { grid-template-columns: 1fr; } }
.story img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.todo { border: 1px dashed var(--line); color: var(--paper-mute); padding: .8rem 1rem;
  font-size: .85rem; border-radius: 2px; }
.todo::before { content: 'To be written'; display: block; font-family: var(--display);
  text-transform: uppercase; letter-spacing: .14em; font-size: .66rem; color: var(--accent); margin-bottom: .3rem; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); background: var(--ink-2); margin-top: 3rem;
  padding-block: clamp(2rem, 5vw, 3rem); font-size: .85rem; color: var(--paper-mute); }
.site-foot__grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-foot h4 { font-size: .78rem; letter-spacing: .16em; color: var(--paper); margin-bottom: .8rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: .4rem; }
.site-foot a { color: var(--paper-mute); }
.site-foot a:hover { color: var(--accent); }
.colophon { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.2rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; font-size: .78rem; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.97);
  display: grid; place-items: center; padding: clamp(1rem, 4vw, 3rem); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 88svh; width: auto; object-fit: contain; }
.lightbox__btn { position: absolute; background: none; border: 1px solid var(--line); color: #fff;
  width: 46px; height: 46px; font-size: 1.4rem; cursor: pointer; border-radius: 50%; line-height: 1; }
.lightbox__btn:hover { background: var(--accent); border-color: var(--accent); }
.lightbox__close { top: clamp(.8rem, 3vw, 1.6rem); right: clamp(.8rem, 3vw, 1.6rem); }
.lightbox__prev { left: clamp(.5rem, 2vw, 1.4rem); top: 50%; transform: translateY(-50%); }
.lightbox__next { right: clamp(.5rem, 2vw, 1.4rem); top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: clamp(.8rem, 3vw, 1.4rem); left: 0; right: 0; text-align: center;
  font-family: var(--display); letter-spacing: .16em; font-size: .78rem; color: var(--paper-mute); }

/* wide banner image under a page heading */
.band-img { margin: 0 0 clamp(1.5rem, 4vw, 2.5rem); }
.band-img img { width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 2px; }
