/* ==========================================================================
   BTJ - Backing Tracks by Johnny
   Vintage cream / brown / olive look
   ========================================================================== */

:root {
  --cream: #f2eee2;
  --cream-soft: #eae5d5;
  --brown: #362b1b;
  --brown-deep: #2b2214;
  --olive: #6b5a2e;
  --olive-soft: #8a7639;
  --mustard: #e0a93e;
  --navy: #2c3a6b;
  --brick: #a33b2e;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Cormorant Garamond", Georgia, serif;

  --max-width: 1200px;
  --radius: 4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

body {
  font-family: var(--font-body);
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--brown);
  background: var(--cream);
}

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

h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--mustard);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.85em 1.9em;
  border: 2px solid var(--olive);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.btn-solid {
  background: var(--olive);
  color: var(--cream);
}
.btn-solid:hover { background: var(--brown); border-color: var(--brown); }

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

.btn:active { transform: translateY(1px); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 1.1rem 2.5rem;
  background: var(--cream);
  border-bottom: 2px solid var(--brown);
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.9rem;
  text-decoration: none;
  display: flex;
  align-items: baseline;
  line-height: 1;
}
.logo-b { color: var(--navy); }
.logo-t { color: var(--navy); }
.logo-j { color: var(--brown); }
.logo-dot {
  width: 0.55em;
  height: 0.55em;
  background: var(--mustard);
  border-radius: 50%;
  margin-left: 0.15em;
  align-self: flex-end;
}

.logo-img {
  height: 3.4rem;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  gap: 2.4rem;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--brown);
  padding-bottom: 0.2em;
  border-bottom: 2px solid transparent;
}
.nav-link:hover { border-bottom-color: var(--olive); }
.nav-link.active { border-bottom-color: var(--brown); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 2px solid var(--brown);
  border-radius: var(--radius);
  padding: 0.55rem 0.6rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--brown);
  margin: 4px 0;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 5rem 2.5rem 6rem;
  background-color: var(--cream);
  background-image: url("../images/placeholders/hero collage.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: right center;
}

.hero-text {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  margin-bottom: 1.4rem;
  max-width: 12ch;
}

.lede {
  font-size: 1.45rem;
  max-width: 32ch;
  margin-bottom: 2.2rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   YouTube section
   -------------------------------------------------------------------------- */

.youtube {
  position: relative;
  background: var(--cream);
}

.youtube-band {
  background: var(--brown-deep);
  padding: 3.2rem 2.5rem;
  overflow: hidden;
}

.band-title {
  display: block;
  max-width: var(--max-width);
  margin: 0 auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  color: var(--olive);
  text-align: center;
  letter-spacing: 0.02em;
}

.youtube-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 2.5rem 5rem;
}

.youtube-text p {
  max-width: 44ch;
  margin-bottom: 2rem;
}

.youtube-art {
  display: flex;
  justify-content: center;
}

.youtube-art img {
  /* Change these two numbers to resize the image */
  max-width: min(400px, 100%);
  max-height: 520px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   Scales section
   -------------------------------------------------------------------------- */

.scales {
  position: relative;
  background: var(--brown-deep);
  color: var(--cream);
  text-align: center;
  padding: 6rem 2.5rem 6.5rem;
  overflow: hidden;
}

.scales h2 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  color: var(--cream);
  margin-bottom: 1.2rem;
}

.scales-sub {
  max-width: 52ch;
  margin: 0 auto 3rem;
  color: var(--cream-soft);
}

.scales-notes { position: absolute; inset: 0; pointer-events: none; }
.note {
  position: absolute;
  font-size: 9rem;
  color: rgba(0, 0, 0, 0.35);
  user-select: none;
}
.n1 { top: 4%;  left: 4%;  transform: rotate(-12deg); }
.n2 { top: 34%; left: 12%; transform: rotate(10deg); font-size: 12rem; }
.n3 { bottom: 6%; right: 6%; transform: rotate(-8deg); }

.scale-picker {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.picker-field {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.picker-field label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mustard);
}

.picker-field select {
  font-family: var(--font-body);
  font-size: 1.2rem;
  color: var(--brown);
  background: var(--cream);
  border: 2px solid var(--olive);
  border-radius: var(--radius);
  padding: 0.7em 1em;
  min-width: 200px;
  cursor: pointer;
}

.picker-field select.picker-wide { min-width: 280px; }

.scale-stale {
  position: relative;
  color: var(--mustard);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.finder-card {
  position: relative;
  max-width: 1000px;
  margin: 1.5rem auto 0;
  background: var(--cream);
  color: var(--brown);
  border-radius: 8px;
  padding: 1.8rem 2rem 1.5rem;
  text-align: left;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.finder-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.8rem;
}

.finder-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.finder-note {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
  background: #fff;
  border: 2px solid var(--navy);
  border-radius: 999px;
  padding: 0.15em 0.8em;
}

.finder-note.root {
  background: var(--navy);
  color: var(--cream);
}

.finder-board {
  overflow-x: auto;
  padding-bottom: 0.4rem;
  -webkit-overflow-scrolling: touch;
}

.finder-board svg {
  display: block;
  width: 100%;
  min-width: 820px;
  height: auto;
  user-select: none;
}

.finder-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  margin-top: 0.6rem;
  font-size: 1rem;
  color: var(--navy);
}

.finder-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact {
  background: var(--cream);
  padding: 6rem 2.5rem;
}

.contact-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.contact-intro h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  margin-bottom: 1.2rem;
}

.contact-intro p { max-width: 38ch; }

.contact-form { display: flex; flex-direction: column; gap: 1.4rem; }

.form-field { display: flex; flex-direction: column; gap: 0.4rem; }

.form-field label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--olive);
}

.form-field input,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1.2rem;
  color: var(--brown);
  background: #fbf9f2;
  border: 2px solid var(--olive);
  border-radius: var(--radius);
  padding: 0.7em 1em;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 3px solid var(--mustard);
  outline-offset: 2px;
}

.contact-form .btn { align-self: flex-start; }

.form-status {
  font-style: italic;
  color: var(--olive);
  min-height: 1.4em;
}

/* --------------------------------------------------------------------------
   Blog
   -------------------------------------------------------------------------- */

.blog-hero {
  background: var(--brown-deep);
  color: var(--cream);
  text-align: center;
  padding: 5rem 2.5rem;
}

.blog-hero h1 { font-size: clamp(2.6rem, 5.5vw, 4rem); margin-bottom: 1rem; }
.blog-hero p { color: var(--cream-soft); }

/* ----- Homepage blog strip ----- */

.home-blog {
  background: var(--cream);
  padding: 5rem 0 6rem;
}

.home-blog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: var(--max-width);
  margin: 0 auto 2.5rem;
  padding: 0 2.5rem;
}

.home-blog-head h2 { font-size: clamp(2rem, 4vw, 3rem); }

.blog-strip {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 0.5rem 2.5rem 1.5rem;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--olive) transparent;
}

.blog-strip.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.blog-strip .blog-card {
  flex: 0 0 auto;
  width: min(300px, 78vw);
  scroll-snap-align: start;
}

/* ----- Blog cards (used on the strip and on blog.html) ----- */

.blog-card {
  display: block;
  text-decoration: none;
  color: var(--brown);
}

.card-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 3px solid var(--brown);
  border-radius: var(--radius);
  background: var(--cream-soft);
  transition: transform 0.2s ease;
}

.card-thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--cream);
  background: var(--brown-deep);
}

.blog-card:hover .card-thumb { transform: translateY(-4px); }

.blog-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  margin-top: 0.9rem;
}

.blog-card:hover h3 { color: var(--olive); }

.blog-card .post-date { margin: 0.9rem 0 0.2rem; }

/* ----- Blog index page (blog.html) ----- */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 3rem 2.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2.5rem 6rem;
}

/* ----- Single post page (post.html) ----- */

.post-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 3.5rem 2.5rem 6rem;
}

.back-link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--olive);
  margin-bottom: 2.5rem;
}
.back-link:hover { color: var(--brown); }

.post-page .blog-post { border-bottom: none; padding-bottom: 0; }

.post-page .blog-post h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 1.6rem;
}

/* ----- Related posts at the end of a post ----- */

.related-posts {
  margin-top: 4.5rem;
  border-top: 2px solid var(--olive);
  padding-top: 3rem;
}

.related-posts h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 2rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2.5rem 2rem;
}

.related-grid .blog-card h3 { font-size: 1.05rem; }
.related-grid .card-thumb-fallback { font-size: 2.6rem; }

.blog-post { border-bottom: 2px solid var(--olive); padding-bottom: 4rem; }
.blog-post:last-child { border-bottom: none; }

.post-date {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 0.6rem;
}

.blog-post h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 1.4rem; }

.blog-post img {
  width: 100%;
  border: 3px solid var(--brown);
  border-radius: var(--radius);
  margin-bottom: 1.6rem;
}

.blog-post .post-body p { margin-bottom: 1.2rem; }

.blog-post .post-body img { margin-top: 0.4rem; }

.blog-post .post-body h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0 0.8rem;
}

.blog-post .post-body ul {
  margin: 0 0 1.2rem 1.4rem;
}

.blog-post .post-body li { margin-bottom: 0.4rem; }

.blog-post .post-body a {
  color: var(--olive);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.blog-post .post-body a:hover { color: var(--brown); }

.blog-post .post-body h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1.6rem 0 0.7rem;
}

.post-table {
  width: 100%;
  max-width: 460px;
  border-collapse: collapse;
  margin: 0 0 1.4rem;
  font-size: 1.1rem;
}

.post-table th,
.post-table td {
  border: 2px solid var(--olive);
  padding: 0.45em 0.9em;
  text-align: left;
}

.post-table th {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--cream-soft);
  color: var(--brown);
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 1.6rem;
  border: 3px solid var(--brown);
  border-radius: var(--radius);
  overflow: hidden;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.blog-empty { text-align: center; font-style: italic; color: var(--olive); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--brown-deep);
  color: var(--cream-soft);
  text-align: center;
  padding: 3.5rem 2.5rem;
}

.footer-logo-img {
  display: inline-block;
  height: 3.5rem;
}

.site-footer nav {
  display: flex;
  justify-content: center;
  gap: 1.8rem;
  flex-wrap: wrap;
  margin: 1.4rem 0;
}

.site-footer nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  text-decoration: none;
  color: var(--cream);
}
.site-footer nav a:hover { color: var(--mustard); }

.footer-copy { font-size: 1rem; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .youtube-inner,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  /* The hero keeps its full-section background image at every size,
     so it simply rescales with the device. Only the height and text
     spacing adapt here. */
  .hero {
    min-height: 92vh;
    padding: 3.5rem 2.5rem 4rem;
  }

  /* A soft cream wash over the image, strongest at the top where the
     text sits, fading away so the artwork below stays fully visible.
     To make text MORE readable, raise the first two 0.xx numbers
     (max 1). To show MORE artwork, lower them. */
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      rgba(242, 238, 226, 0.94) 0%,
      rgba(242, 238, 226, 0.85) 55%,
      rgba(242, 238, 226, 0.3) 78%,
      rgba(242, 238, 226, 0) 100%
    );
    pointer-events: none;
  }

  .hero-text {
    position: relative;
    z-index: 1;
  }

  /* The outlined button gets a solid fill on phones so its label stays
     readable if it lands on top of the artwork */
  .hero .btn-ghost { background: var(--cream); }

  /* Center the Watch now button on small screens */
  .youtube-text .btn {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }

  .youtube-art { justify-content: center; }
  .youtube-art img { max-height: 420px; }

  .site-header { gap: 1.5rem; }

  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border-bottom: 2px solid var(--brown);
  }

  .site-nav.open { display: flex; }

  .site-nav .nav-link {
    padding: 1rem 2.5rem;
    border-bottom: 1px solid var(--cream-soft);
  }
}

@media (max-width: 540px) {
  body { font-size: 1.15rem; }
  .picker-field select { min-width: 100%; }
  .scale-picker { flex-direction: column; align-items: stretch; }
  .note { font-size: 6rem; }
  .n2 { font-size: 8rem; }
}