/* ---------- Colors & fonts (change these to restyle the whole site) ---------- */
:root {
  --bg: #0a0a0a;
  --bg-raised: #141414;
  --text: #ece8e3;
  --muted: #8f8a84;
  --line: #262626;
  --accent: #e5283f;
  --display: "Anton", Impact, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.92;
  margin: 0;
}

h2 { font-size: clamp(40px, 6vw, 72px); }

.eyebrow {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px var(--gutter);
  transition: background 0.3s;
}

.site-header.scrolled {
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(8px);
}

.wordmark {
  font-family: var(--display);
  font-size: 20px;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.04em;
}

nav { display: flex; gap: clamp(16px, 3vw, 32px); align-items: center; }

nav a {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}

nav a:hover { color: var(--text); }

nav .nav-cta {
  color: var(--text);
  border: 1px solid var(--text);
  padding: 6px 14px;
}

nav .nav-cta:hover { background: var(--text); color: var(--bg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  font: 600 14px var(--body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #c81d33; }

.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  min-height: 100svh;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px var(--gutter) 80px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(64px, 10vw, 156px);
  margin-right: -20%; /* lets the name run over the edge of the photo */
}

.hero-line {
  max-width: 400px;
  margin: 28px 0 36px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-photo { position: relative; overflow: hidden; }

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}

/* fades the photo into the black background */
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg) 0%, transparent 30%),
              linear-gradient(to top, var(--bg) 0%, transparent 20%);
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(72px, 10vw, 140px) var(--gutter);
  max-width: 1440px;
  margin: 0 auto;
  scroll-margin-top: 40px; /* keeps headings clear of the fixed header when jumping via the menu */
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.section-note { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- Gallery ---------- */
/* Every tile is a 3:4 portrait; "wide" tiles span two columns for landscape shots */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense;
  gap: 12px;
}

.tile {
  margin: 0;
  position: relative;
  cursor: zoom-in;
  overflow: hidden;
  background: var(--bg-raised);
  aspect-ratio: 3 / 4;
}

.tile.wide { grid-column: span 2; aspect-ratio: auto; }

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.tile:hover img { transform: scale(1.03); }

.tile figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 18px 16px;
  font-size: 13px;
  color: var(--muted);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.tile figcaption strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.tile:hover figcaption { opacity: 1; }

/* Gallery opens with the best 15 shots; the rest appear after "Show more" */
.gallery.collapsed .tile:nth-child(n + 16) { display: none; }

.show-more { display: block; margin: 32px auto 0; }
.show-more[hidden] { display: none; }

/* ---------- Show posters ---------- */
.posters-section { padding-top: 0; }

/* posters have text on them, so show the whole image instead of cropping */
.posters .tile { background: #000; }
.posters .tile img { object-fit: contain; }
.posters .tile:hover img { transform: none; }

.posters .tile figcaption { opacity: 1; }

/* ---------- Bands I've shot ---------- */
.worked-with {
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px var(--gutter);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 36px;
}

.band-list li {
  font-family: var(--display);
  font-size: clamp(24px, 3.4vw, 40px);
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 96px);
}

.about h2 { margin-bottom: 28px; }

.lead { font-size: 22px; line-height: 1.45; margin-top: 0; }

.about-text p:not(.lead) { color: var(--muted); }

.about-details h3 {
  margin: 0 0 20px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.checklist { list-style: none; margin: 0; padding: 0; }

.checklist li {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

.checklist span {
  display: block;
  color: var(--text);
  font-weight: 600;
  font-size: 17px;
}

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 96px);
  border-top: 1px solid var(--line);
}

.contact-intro h2 { margin-bottom: 24px; }
.contact-intro p { color: var(--muted); max-width: 420px; }
.direct a { color: var(--text); }

.contact-form { display: grid; gap: 18px; }

.contact-form label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  color: var(--text);
  font: 16px var(--body);
  border-radius: 0;
  color-scheme: dark;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.contact-form .btn { justify-self: start; }

.hidden-field { display: none; }

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  justify-content: space-between;
  padding: 32px var(--gutter);
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.95);
}

.lightbox[hidden] { display: none; }

.lightbox img { max-width: 90vw; max-height: 90vh; width: auto; }

.lightbox button {
  position: absolute;
  background: none;
  border: none;
  color: var(--text);
  font-size: 48px;
  line-height: 1;
  padding: 16px;
  cursor: pointer;
  opacity: 0.7;
}

.lightbox button:hover { opacity: 1; }
.lb-close { top: 8px; right: 12px; }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }

/* ---------- Phones & small tablets ---------- */
@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-photo {
    grid-row: 1;
    height: 78svh;
  }

  .hero-photo::after {
    background: linear-gradient(to top, var(--bg) 0%, transparent 45%);
  }

  .hero-text {
    margin-top: -38svh;
    padding-top: 0;
    padding-bottom: 56px;
  }

  .hero h1 { margin-right: 0; }

  .hero-line { margin: 20px 0 28px; }

  .about,
  .contact { grid-template-columns: 1fr; }

  .tile figcaption { opacity: 1; }
}

@media (max-width: 820px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  /* the band name is already on each poster, and captions cover too much at this size */
  .posters .tile figcaption { display: none; }
  .band-list { gap: 2px 18px; }
  .band-list li { font-size: 21px; }
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .wordmark { font-size: 17px; }
}
