/* ==========================================================================
   Mitch — Saxophonist — Site Stylesheet
   Design system: slate and cobalt. Cool slate-grey ground, cobalt for links,
   buttons and structure, brass/gold reserved for the text that matters most
   (eyebrows, dates, prices) and the saxophone itself. The "key pearl" motif
   borrowed from saxophone hardware is the recurring signature element
   (see .pearl / .pearl-row).
   ========================================================================== */

/* Fonts (Fraunces, Work Sans, IBM Plex Mono) are loaded by <link> tags in each page's <head> */

:root {
  --bg: #1c222b;           /* slate */
  --bg-alt: #252c37;       /* cards */
  --bg-alt-2: #2c3441;     /* notices */
  --brass: #c9a227;        /* gold: key text only */
  --brass-bright: #e6c158;
  --cobalt: #2b57d0;       /* buttons, tags (white text on it: 6.4:1) */
  --cobalt-hover: #3563e2; /* hover state, still passes 4.5:1 with white */
  --cobalt-bright: #7ea2ff;/* links and highlights on slate (6.5:1) */
  --ivory: #e9edf3;
  --ivory-dim: #aab4c4;
  --rust: #d98a5f;
  --teal: #7cc4b8;
  --line: rgba(190, 205, 230, 0.14);
  --line-bright: rgba(94, 134, 255, 0.5);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --maxw: 1100px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

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

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

a { color: var(--cobalt-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--cobalt-bright);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ivory);
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--ivory-dim); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 0.9em;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 64px 0; }
section.tight { padding: 40px 0; }

hr.line {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---- Pearl motif (signature element) ---- */
.pearl {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #b8ccff, #4a74ee 55%, #1d3a99 100%);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.25);
}

.pearl-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2.5rem 0;
}
.pearl-row .stem {
  flex: 1;
  height: 1px;
  background: var(--line);
}
.pearl-row .pearl:nth-child(2) { width: 13px; height: 13px; }

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(28, 34, 43, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--ivory);
  letter-spacing: 0.01em;
  /* role line stacks under the name so the header stays one row beside the nav */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.2;
}
.brand:hover { text-decoration: none; color: var(--cobalt-bright); }
.brand small {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
}

nav.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

nav.primary-nav a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}
nav.primary-nav a:hover,
nav.primary-nav a[aria-current="page"] {
  color: var(--cobalt-bright);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--ivory);
  border-radius: 6px;
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

@media (max-width: 640px) {
  .brand small { font-size: 0.7rem; letter-spacing: 0.06em; }
  .nav-toggle { display: inline-block; }
  nav.primary-nav {
    display: none;
    width: 100%;
    border-top: 1px solid var(--line);
    margin-top: 14px;
    padding-top: 14px;
  }
  nav.primary-nav.open { display: block; }
  nav.primary-nav ul { flex-direction: column; gap: 14px; }
  .site-header .wrap { flex-wrap: wrap; }
}

/* ---- Hero ---- */
.hero {
  padding: 110px 0 90px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 82% 8%, rgba(63,111,240,0.22), transparent 60%),
    var(--bg);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 820px) {
  .hero { padding: 32px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero-photo { order: -1; }
  /* short landscape crop on phones so the name and buttons stay on the first screen */
  .hero-photo img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 20%; }
}

.hero h1 { font-style: italic; }
.hero .tagline {
  font-family: var(--font-mono);
  color: var(--brass);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  margin-bottom: 1.4em;
}
.hero .pitch {
  font-size: 1.15rem;
  color: var(--ivory-dim);
  max-width: 46ch;
}

.hero-photo { margin: 0; }
.hero-photo img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.featured-clip { max-width: 820px; }

/* "Performed with" credits strip under the homepage hero */
.credits {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 18px 0;
}
.credits .eyebrow { display: block; margin: 0 0 6px; }
.credit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ivory);
}
/* separator trails each name so a wrapped line never starts with a dot */
.credit-list li:not(:last-child)::after {
  content: "·";
  color: var(--brass);
  margin: 0 0.6em;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 13px 22px;
  border-radius: 3px;
  border: 1px solid var(--cobalt-hover);
  color: var(--ivory);
  display: inline-block;
}
.btn:hover { text-decoration: none; border-color: var(--cobalt-bright); color: var(--cobalt-bright); }

.btn.solid {
  background: var(--cobalt);
  color: #fff;
  border-color: var(--cobalt);
}
.btn.solid:hover { background: var(--cobalt-hover); border-color: var(--cobalt-hover); color: #fff; }

/* ---- Quick links / cards ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--line-bright); transform: translateY(-2px); }
.card h3 { margin-bottom: 0.4em; }
.card .eyebrow { margin-bottom: 0.6em; }
.card p:last-child { margin-bottom: 0; }
.card a.card-link {
  display: block;
}
.card a.card-link:hover { text-decoration: none; }

/* ---- Section band variants ---- */
.band-block {
  border-top: 1px solid var(--line);
  padding: 56px 0;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
}
@media (max-width: 700px) {
  .band-block { grid-template-columns: 1fr; gap: 18px; }
}

.band-block .band-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--brass);
  letter-spacing: 0.05em;
}
.band-block .band-meta .role {
  display: block;
  color: var(--ivory-dim);
  margin-top: 8px;
  font-family: var(--font-body);
  letter-spacing: 0;
}

/* photos and embeds share one rhythm: equal space above and below */
.band-photo {
  margin: 1.6em 0;
  max-width: 360px;
}
.band-photo.wide { max-width: none; }
.band-photo img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.venue-list {
  list-style: none;
  padding: 0;
  margin: 1em 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.venue-list li {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ivory-dim);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 5px 13px;
}

/* accent variants keyed to band identity */
.accent-teal { color: var(--teal); }
.band-block.exo .band-meta { color: #6fb3a8; }
.band-block.platinum .band-meta { color: var(--rust); }

/* ---- Gigs ---- */
.gig-list { list-style: none; padding: 0; margin: 0; }
.gig-row {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 640px) {
  .gig-row { grid-template-columns: 1fr; gap: 6px; }
}
.gig-date {
  font-family: var(--font-mono);
  color: var(--brass);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}
.gig-venue { font-weight: 600; }
.gig-city { color: var(--ivory-dim); font-size: 0.92rem; }
.gig-band-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--cobalt);
  padding: 3px 9px;
  border-radius: 20px;
  display: inline-block;
  margin-top: 4px;
}
/* per-band tag colors (white text on each passes 4.5:1); unknown bands stay cobalt */
.gig-band-tag.band-exo-blu-collective { background: #17695d; }
.gig-band-tag.band-water-city-jazz-orchestra { background: #6a4bb8; }
.gig-band-tag.band-platinum { background: #9b4a1f; }
.gig-more {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  margin-left: 8px;
}
.gig-empty {
  color: var(--ivory-dim);
  font-style: italic;
  padding: 30px 0;
}

/* ---- Shop ---- */
.product-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}
.product-price {
  font-family: var(--font-mono);
  color: var(--brass-bright);
  font-size: 1.1rem;
  margin-top: 10px;
}
.notice {
  background: var(--bg-alt-2);
  border-left: 3px solid var(--cobalt-hover);
  padding: 16px 20px;
  border-radius: 0 6px 6px 0;
  font-size: 0.95rem;
}

/* ---- Blog ---- */
.post {
  border-top: 1px solid var(--line);
  padding: 34px 0;
}
.post-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--brass);
  letter-spacing: 0.05em;
}

/* ---- Forms ---- */
.form-field { margin-bottom: 18px; }
label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ivory-dim);
  margin-bottom: 7px;
}
input[type="text"], input[type="email"], input[type="date"], textarea, select {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  color: var(--ivory);
  padding: 12px 14px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.98rem;
}
input:focus, textarea:focus, select:focus { border-color: var(--cobalt-bright); }
textarea { resize: vertical; min-height: 120px; }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  margin-top: 40px;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
.site-footer p { margin: 0; font-size: 0.85rem; color: var(--ivory-dim); }
.social-links { display: flex; gap: 16px; list-style: none; padding: 0; margin: 0; }
.social-links a { font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }

.placeholder-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--rust);
  border: 1px dashed var(--rust);
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  margin: 0 0 1em;
}

.page-hero {
  padding: 70px 0 20px;
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow { margin-bottom: 0.6em; }

/* anchor jumps clear the sticky header */
[id] { scroll-margin-top: 90px; }

/* ---- Layout fixes ---- */

/* quick-link cards: the <a> is the grid item, so let it stretch its card to equal heights */
.card-link { display: flex; }
.card-link .card { flex: 1; }

/* consistent vertical rhythm: space above a section heading comes from here, not inline styles */
main .wrap > h2 { margin-top: 2.2em; }
main .wrap > h2:first-child,
main .wrap > .eyebrow + h2,
main .wrap > .pearl-row + h2,
main .wrap > .placeholder-note:first-child + h2 { margin-top: 0; }
main .wrap > h3 { margin-top: 1.6em; }

/* keep running text at a readable line length */
main .wrap > p,
.band-block p { max-width: 65ch; }

.follow-links { font-size: 0.92rem; }

/* About: bio text beside a square portrait; photo stacks above the text on phones */
.bio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: start;
}
.bio-photo { margin: 0.3em 0 0; order: 2; }
.bio-photo img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.bio-text p { max-width: 65ch; }
@media (max-width: 820px) {
  .bio-layout { grid-template-columns: 1fr; gap: 24px; }
  .bio-photo { order: 0; max-width: 360px; margin: 0; }
}

/* gig date and time sit on two deliberate lines instead of wrapping mid-string */
.gig-date { display: flex; flex-direction: column; gap: 2px; white-space: nowrap; }
.gig-time { color: var(--ivory-dim); font-size: 0.78rem; }
@media (max-width: 640px) { .gig-date { flex-direction: row; gap: 0.7em; } }

/* ---- Gear list (About page) ---- */
.gear-list { list-style: none; padding: 0; margin: 0 0 1.4em; max-width: 520px; }
.gear-list li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.gear-list .k {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  align-self: center;
}
@media (max-width: 520px) { .gear-list li { grid-template-columns: 1fr; gap: 2px; } }

/* ---- Weekly / recurring gig callout ---- */
.weekly {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  margin: 1.2em 0;
  padding: 14px 18px;
  background: var(--bg-alt);
  border-left: 3px solid var(--cobalt-hover);
  border-radius: 0 6px 6px 0;
  color: var(--ivory);
}
.weekly .k {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass);
}

/* ---- Video / audio embeds (Music page) ---- */
.embed-block { margin: 1.6em 0; }
.embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-block figcaption {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--ivory-dim);
}

.embed.audio { aspect-ratio: auto; height: 166px; }
.embed.audio.tall { height: 300px; }
