/* Steve Melone — static rebuild of the Squarespace site */
:root {
  --ink: #000;
  --bg: #fff;
  --gap: 11px;
  --pad: 3vw;
  --maxw: 2000px;
  --header-h: 96px;
  --body: "Nunito Sans", "Proxima Nova", "Helvetica Neue", Arial, sans-serif;
  --fs: clamp(15px, 0.6vw + 7px, 18.4px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  font-size: var(--fs);
  line-height: 1.8;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: underline; text-underline-offset: 0.15em; text-decoration-thickness: 1px; }
a:hover { opacity: 0.7; }
strong, b { font-weight: 700; }
p { margin: 0 0 1em; }
h3, h4 { margin: 0 0 0.6em; line-height: 1.25; }
ul { margin: 0 0 1em; padding-left: 40px; }
li p { margin: 0 0 0.35em; }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 20;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 var(--pad);
}
.logo { display: block; flex: none; }
.logo img { height: 58px; width: auto; }
.logo:hover { opacity: 1; }
.nav { display: flex; align-items: center; gap: 1.6em; margin-left: 79px; font-size: var(--fs); line-height: 1.3; }
.nav a, .nav button { color: var(--ink); text-decoration: none; font: inherit; font-weight: 300; }
.nav button { background: none; border: 0; padding: 0; cursor: pointer; }
.nav .is-active > a, .nav .is-active > button { text-decoration: underline; text-underline-offset: 0.3em; text-decoration-thickness: 1px; }
.nav .folder { position: relative; }
.nav .dropdown {
  display: none;
  position: absolute;
  left: -18.4px;
  top: 100%;
  min-width: 200px;
  padding: 9.2px 18.4px;
  background: var(--bg);
  white-space: nowrap;
}
.nav .folder:hover .dropdown, .nav .folder:focus-within .dropdown, .nav .folder.open .dropdown { display: block; }
.nav .dropdown a { display: block; padding: 1.84px 0; }
.nav .dropdown a:hover { text-decoration: underline; opacity: 1; }
.burger { display: none; }

/* ---------- 24-column grid (matches Squarespace's fluid engine) ---------- */
.fe {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 0;
  max-width: calc(var(--maxw) + 2 * var(--pad));
  margin: 0 auto;
  padding: 0 var(--pad);
}
.fe > * { min-width: 0; }
.center { text-align: center; }
.right { text-align: right; }
.page { padding-top: clamp(24px, 3.3vw, 89px); padding-bottom: clamp(60px, 6vw, 160px); }
.page.tight { padding-top: 0; }

.home { padding-top: clamp(28px, 4vw, 108px); }
.portrait { width: 100%; aspect-ratio: 0.613; object-fit: cover; }

/* video embeds */
.video { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.videos-stack { display: flex; flex-direction: column; gap: 12px; }
.videos-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: calc(100% - 31px); margin: 0 auto; }

/* film / tv text */
.film-text { margin-top: clamp(16px, 1.6vw, 44px); }
.film-text p:first-child { margin-bottom: 0.6em; }
.awards { margin-top: clamp(16px, 1.4vw, 40px); }
.awards ul { padding-left: 1.4em; }

/* ---------- Photography landing ---------- */
.hero {
  position: relative;
  min-height: 70vh;
  background-size: cover;
  background-position: center;
}
.hero .fe { padding-top: clamp(24px, 4vw, 110px); }
.hero a { text-decoration: none; display: block; line-height: 1.3; margin-bottom: 1.3em; }
.hero a:hover { text-decoration: underline; opacity: 1; }

/* ---------- Music photography slideshows ---------- */
.band-title { font-size: clamp(22px, 1.75vw, 48px); font-weight: 700; letter-spacing: 0.01em; margin: 0; }
.band { margin-bottom: clamp(30px, 2.2vw, 60px); }
.band + .band { margin-top: clamp(20px, 2vw, 54px); }
.band-head { padding-bottom: clamp(20px, 2.2vw, 60px); }
.slideshow {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 4.05% 1fr 4.05%;
  align-items: stretch;
}
.slides { position: relative; aspect-ratio: var(--ratio, 1.3117); overflow: hidden; }
.slides img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain;
  opacity: 0; transition: opacity 0.45s ease; pointer-events: none;
}
.slides img.on { opacity: 1; pointer-events: auto; }
.ss-btn {
  background: none; border: 0; cursor: pointer; color: var(--ink);
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.ss-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.2; }
.ss-btn:hover { opacity: 0.6; }

/* ---------- 35MM masonry ---------- */
.masonry { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; padding: 0 var(--pad); }
.masonry img { width: 100%; }
@media (min-width: 2100px) { .masonry { padding: 0; } }

/* ---------- Interviews ---------- */
.link-list a { display: block; line-height: 1.3; }
.link-list p { margin: 0 0 clamp(30px, 2.6vw, 86px); }

/* ---------- Reels ---------- */
.reels-grid { row-gap: clamp(40px, 6.2vw, 170px); }

/* ---------- About ---------- */
.social { display: flex; justify-content: center; gap: 1.2em; font-size: 0.85em; }

/* ---------- Recent sound work ---------- */
.credits h4 { font-size: 1.6em; font-weight: 300; margin-top: 0.4em; }
.credits p { margin-bottom: 0.9em; }

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  :root { --pad: 6vw; --header-h: 72px; }
  .logo img { height: 42px; }
  .burger {
    display: block; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer;
  }
  .burger span { display: block; width: 26px; height: 1px; background: var(--ink); margin: 7px 0; transition: transform .25s, opacity .25s; }
  .nav {
    display: none; position: fixed; inset: var(--header-h) 0 0 0; margin: 0; padding: 8vw var(--pad);
    background: var(--bg); flex-direction: column; align-items: flex-start; gap: 0.9em; font-size: 26px; overflow-y: auto;
  }
  .menu-open .nav { display: flex; }
  .menu-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-open .burger span:nth-child(2) { opacity: 0; }
  .menu-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav .dropdown { position: static; display: none; padding: 0.3em 0 0 1em; min-width: 0; font-size: 20px; }
  .nav .folder:hover .dropdown, .nav .folder:focus-within .dropdown { display: none; }
  .nav .folder.open .dropdown { display: block; }

  .fe > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .fe > * + * { margin-top: 28px; }
  .stack-tight > * + * { margin-top: 12px; }
  .videos-pair { width: 100%; grid-template-columns: 1fr; }
  .masonry { grid-template-columns: 1fr; }
  .band-title { text-align: left; }
  .slideshow { grid-template-columns: 32px 1fr 32px; }
  .reels-grid { row-gap: 0; }
  .hero { min-height: 60vh; }
}
