/* ------------------------------------------------------------
   Gail James — Drummer
   v0.1 first draft · 2026-05-16
   Dark canvas · editorial · restrained
   ------------------------------------------------------------ */

:root {
  /* Palette */
  --ink:        #05080E;   /* near-black, cool blue undertone */
  --ink-2:      #0D131C;   /* slight cool lift for cards/plates */
  --bone:       #E8E1CE;   /* primary text, warm (Studio Six family, set apart from .com) */
  --sand:       #8A8174;   /* muted text, eyebrows */
  --sand-dim:   #5A544B;   /* dividers, footer */
  --ember:      #C8553D;   /* single warm accent, used sparingly */

  /* Type */
  --serif: "EB Garamond", "Times New Roman", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Rhythm */
  --gutter:    clamp(20px, 5vw, 64px);
  --measure:   62ch;
  --section-y: clamp(80px, 14vw, 200px);
}

/* ------------------------------------------------------------
   Reset
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, picture, video { display: block; max-width: 100%; height: auto; }
button, a { color: inherit; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }
dd { margin: 0; }
h1, h2, h3, p { margin: 0; }

::selection { background: var(--ember); color: var(--bone); }

html { background: var(--ink); }
body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--sand-dim);
  padding-bottom: 1px;
  transition: border-color .25s ease, color .25s ease;
}
a:hover { border-color: var(--ember); color: var(--ember); }

/* ------------------------------------------------------------
   Masthead
   ------------------------------------------------------------ */
.masthead {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(18px, 2.4vw, 28px) var(--gutter);
  mix-blend-mode: difference;   /* keeps mark legible over any photo */
  pointer-events: none;
  font-family: var(--sans);
  color: var(--bone);
  /* At the top: no surface. mix-blend-mode keeps the mark legible over the
     hero photo. Once scrolled, content runs underneath the bar and legibility
     breaks, so the bar gains a translucent ink surface with a soft backdrop
     blur and mix-blend-mode is dropped so the tint isn't differenced away. */
  background: rgba(5, 8, 14, 0);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  transition: padding .4s ease, background .5s ease,
              backdrop-filter .5s ease, -webkit-backdrop-filter .5s ease;
}
.masthead.scrolled {
  padding-top: clamp(12px, 1.6vw, 18px);
  padding-bottom: clamp(12px, 1.6vw, 18px);
  mix-blend-mode: normal;
  background: rgba(5, 8, 14, .32);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(138, 129, 116, .18);
}
.masthead .mark {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: .01em;
  font-style: italic;
}
.masthead .meta {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--bone);
}

/* Right-side section nav */
.mast-nav {
  pointer-events: auto;
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 1.8vw, 26px);
}
.mast-nav a {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(16px, 1.2vw, 18px);
  letter-spacing: .01em;
  color: var(--bone);
  border-bottom: 0;
  padding: 0;
  opacity: .82;
  text-decoration: none;
  transition: opacity .25s ease;
}
.mast-nav a:hover,
.mast-nav a:focus-visible {
  color: var(--bone);
  border-color: transparent;
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
@media (max-width: 540px) {
  .mast-nav {
    gap: clamp(10px, 3vw, 14px);
  }
  .mast-nav a {
    font-size: 14px;
  }
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--ink);
}
.hero picture,
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;   /* desktop: biased right to keep the face in frame */
}
@media (max-width: 768px) {
  .hero img {
    object-position: 47% 55%; /* mobile: nudge image ~30px left of viewport, profile sits inside the right edge instead of against it */
  }
}
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(5,8,14,.55) 0%,
      rgba(5,8,14,0)   18%,
      rgba(5,8,14,0)   48%,
      rgba(5,8,14,.85) 86%,
      rgba(5,8,14,1)   100%),
    radial-gradient(120% 80% at 30% 90%, rgba(5,8,14,.45), rgba(5,8,14,0) 60%);
  pointer-events: none;
}

.title {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(40px, 8vw, 96px);
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  line-height: .8;
  letter-spacing: -0.035em;
  color: var(--bone);
  font-size: clamp(72px, 17vw, 240px);
  text-wrap: balance;
}
.title .t-line { display: block; }
.title .t-line-2 {
  font-style: italic;
  letter-spacing: -0.035em;
  color: var(--bone);
  margin-left: clamp(20px, 6vw, 90px);
}

/* ------------------------------------------------------------
   Lede
   ------------------------------------------------------------ */
.lede {
  padding: var(--section-y) var(--gutter) 0;
}
.lede p {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.8vw, 64px);
  line-height: 1.06;
  letter-spacing: 0;
  color: var(--bone);
  max-width: 24ch;
}

/* ------------------------------------------------------------
   Sections
   ------------------------------------------------------------ */
.section {
  padding: var(--section-y) var(--gutter) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
  scroll-margin-top: clamp(72px, 9vw, 96px);
}
@media (min-width: 900px) {
  .section {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: clamp(40px, 6vw, 96px);
  }
}

.section-head {
  display: block;
}
.section-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--bone);
}

/* ------------------------------------------------------------
   Prose
   ------------------------------------------------------------ */
.prose {
  max-width: var(--measure);
}
.prose p {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 1.6vw, 26px);
  line-height: 1.42;
  letter-spacing: -0.005em;
  color: var(--bone);
}
.prose p + p { margin-top: 1.1em; }

/* ------------------------------------------------------------
   Credits
   ------------------------------------------------------------ */
.credits {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(138,129,116,.18);
}
.credit-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: clamp(18px, 2.2vw, 26px) 0;
  border-bottom: 1px solid rgba(138,129,116,.18);
}
@media (min-width: 700px) {
  .credit-row {
    grid-template-columns: 200px 1fr;
    gap: 32px;
  }
}
.credit-row dt {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(16px, 1.2vw, 19px);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--sand);
  padding-top: 4px;
}
.credit-row dd {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(19px, 1.55vw, 23px);
  line-height: 1.4;
  color: var(--bone);
}
.credit-note {
  color: var(--sand);
  font-size: .82em;
  white-space: nowrap;
}

/* ------------------------------------------------------------
   Image plates
   ------------------------------------------------------------ */
.plate {
  margin: var(--section-y) 0 0;
}
.plate img {
  width: 100%;
  height: auto;
  display: block;
}
.plate figcaption {
  padding: 14px var(--gutter) 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--sand);
}
/* Split caption variant - place left, credit right (Figma-locked). Stacks on
   phone so the long photographer credit doesn't crowd the location. */
.plate-caption-split {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
}
@media (max-width: 600px) {
  .plate-caption-split { flex-direction: column; gap: 4px; }
}

.plate-full { padding: 0; }
.plate-full img { width: 100%; }

/* Cropped variant - clips the bassist on the right edge.
   Image is 1.5:1 (2200x1467). Container is taller (narrower aspect),
   so with object-fit: cover the image overflows horizontally and
   object-position: 0% 50% pushes all the overflow off the right edge. */
.plate-crop-bw {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.plate-crop-bw img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0% 50%;
}
@media (min-width: 1100px) {
  .plate-crop-bw { aspect-ratio: 21 / 20; }
}

.plate-half {
  padding: 0 var(--gutter);
}
.plate-half img {
  max-height: 88vh;
  object-fit: cover;
  object-position: 50% 10%;   /* tall portrait plates: anchor crop near the top so heads stay in frame on wide (1920+) viewports */
  width: 100%;
}
@media (min-width: 900px) {
  .plate-half {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
  }
  .plate-half img,
  .plate-half figcaption {
    grid-column-end: span 7;
  }
  .plate-half.plate-right img,
  .plate-half.plate-right figcaption {
    grid-column-start: 6;
  }
  .plate-half.plate-left img,
  .plate-half.plate-left figcaption {
    grid-column-start: 1;
  }
  .plate-half figcaption { padding-left: 0; padding-right: 0; }

  /* curtain plate: 75% width, anchored to the right edge (9 of 12 cols) */
  .plate-half.plate-wide-75.plate-right img,
  .plate-half.plate-wide-75.plate-right figcaption {
    grid-column: 4 / span 9;
  }
}

/* ------------------------------------------------------------
   Listen — placeholder slots
   ------------------------------------------------------------ */
.slots-audio {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(138,129,116,.18);
  border-top: 1px solid rgba(138,129,116,.18);
  border-bottom: 1px solid rgba(138,129,116,.18);
}
.slot {
  background: var(--ink);
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: 20px;
  padding: clamp(18px, 2vw, 26px) 0;
}
.slot-track { align-items: start; }   /* play button sits level with the title, same padding below the key line */
.slot-art {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(138,129,116,.28);
}
.slot-line {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--sand);
}
.slot-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.slot-eyebrow {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(15px, 1.1vw, 18px);
  color: var(--sand);
}
.slot-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 1.6vw, 24px);
  color: var(--bone);
}
.slot-soon { color: var(--sand); }   /* placeholder rows read quieter than the live track */
.slot-subtitle {
  font-family: var(--serif);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.3;
  color: var(--sand);
  margin-top: 2px;
}
.slot-time {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--sand);
  margin-top: 6px;
}
.slot-time .t-sep { opacity: .5; padding: 0 2px; }
.slot-sub {
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--sand);
}

/* Audio player — reuses the slot motif: the square becomes a play/pause
   control, the thin line becomes a seek track. Restrained, no browser chrome. */
.slot-audio { display: none; }

.slot-play {
  cursor: pointer;
  pointer-events: auto;
  background: var(--ink);
  font: inherit;
  padding: 0;
  transition: border-color .25s ease;
}
.slot-play:hover,
.slot-play:focus-visible {
  border-color: var(--bone);
  outline: none;
}
.ic-play {
  width: 0;
  height: 0;
  margin-left: 3px;            /* optical centering of the triangle */
  border-style: solid;
  border-width: 6px 0 6px 11px;
  border-color: transparent transparent transparent var(--bone);
}
.ic-pause {
  display: none;
  gap: 4px;
}
.ic-pause::before,
.ic-pause::after {
  content: "";
  width: 3px;
  height: 14px;
  background: var(--bone);
}
.slot-track.is-playing .ic-play  { display: none; }
.slot-track.is-playing .ic-pause { display: flex; }

.slot-seek {
  display: block;
  width: 100%;
  max-width: 340px;
  margin-top: 8px;
  padding: 9px 0;              /* invisible padding gives the 1px line a real hit area */
  cursor: pointer;
  pointer-events: auto;
}
.slot-seek-track {
  display: block;
  position: relative;
  height: 1px;
  background: rgba(138, 129, 116, .28);
}
.slot-seek-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: var(--bone);
}
.slot-seek-fill::after {            /* playhead dot, shown while playing or on hover */
  content: "";
  position: absolute;
  right: -3px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bone);
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity .2s ease;
}
.slot-track.is-playing .slot-seek-fill::after,
.slot-seek:hover .slot-seek-fill::after { opacity: 1; }

/* ------------------------------------------------------------
   Watch — placeholder video slot
   ------------------------------------------------------------ */
.video-slot {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(138,129,116,.06) 0 1px,
      transparent 1px 14px),
    var(--ink-2);
  border: 1px solid rgba(138,129,116,.18);
  display: grid;
  place-items: center;
}
.video-mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--sand);
}

/* Video facade — poster + square play control (matches the audio motif).
   The YouTube iframe is injected on click, so nothing loads from Google
   until the visitor presses play. */
.video-embed { padding: 0; cursor: pointer; }
.video-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-play-btn {
  position: relative;
  z-index: 1;
  width: clamp(54px, 5.5vw, 72px);
  height: clamp(54px, 5.5vw, 72px);
  display: grid;
  place-items: center;
  background: rgba(5, 8, 14, .38);
  border: 1px solid rgba(232, 225, 206, .72);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: background .25s ease, border-color .25s ease;
}
.video-play:hover .video-play-btn,
.video-play:focus-visible .video-play-btn {
  background: rgba(5, 8, 14, .56);
  border-color: var(--bone);
  outline: none;
}
.video-tri {
  width: 0;
  height: 0;
  margin-left: 4px;            /* optical centering */
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--bone);
}
.video-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ------------------------------------------------------------
   Contact
   ------------------------------------------------------------ */
.contact {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(138,129,116,.18);
}
.contact-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: clamp(18px, 2.2vw, 26px) 0;
  border-bottom: 1px solid rgba(138,129,116,.18);
}
@media (min-width: 700px) {
  .contact-row {
    grid-template-columns: 200px 1fr;
    gap: 32px;
  }
}
.contact-row dt {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(16px, 1.2vw, 19px);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--sand);
  padding-top: 4px;
}
.contact-row dd {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 1.9vw, 30px);
  line-height: 1.4;
  color: var(--bone);
}
.contact-row dd a {
  border-bottom-color: var(--sand-dim);
}

/* ------------------------------------------------------------
   Foot
   ------------------------------------------------------------ */
.foot {
  margin-top: var(--section-y);
  padding: 40px var(--gutter) 56px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--sand-dim);
  display: flex;
  gap: 14px;
}
.foot .dot { color: var(--sand-dim); }

/* ------------------------------------------------------------
   Motion — quiet
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .title .t-line-1 {
    animation: rise .9s cubic-bezier(.2,.7,.2,1) .15s both;
  }
  .title .t-line-2 {
    animation: rise 1.0s cubic-bezier(.2,.7,.2,1) .35s both;
  }
  .lede p,
  .section-head,
  .prose p,
  .credit-row,
  .contact-row,
  .slot,
  .video-slot,
  .plate img {
    animation: fade .9s ease-out both;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Touch — kill hover state */
@media (hover: none) {
  a:hover { color: inherit; border-color: var(--sand-dim); }
}


/* ------------------------------------------------------------
   Back to top
   ------------------------------------------------------------ */
.to-top {
  position: fixed;
  right: var(--gutter);
  bottom: clamp(20px, 3vw, 36px);
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(14px, 1.05vw, 16px);
  color: var(--bone);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
.to-top.visible {
  opacity: .45;
  transform: none;
  pointer-events: auto;
}
.to-top:hover,
.to-top:focus-visible { opacity: 1; outline: none; }
.to-top-arrow {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 4px 7px 4px;
  border-color: transparent transparent var(--bone) transparent;
}
