/* Jake Wood – Live Music
   Colours match the logo: paper, ink and sunset terracotta. */
:root {
  --paper: #faf6ee;
  --sand: #f1e7d6;
  --ink: #1c1814;
  --ink-soft: #4a423a;
  --accent: #c4622d;
  --accent-dark: #a24e20;
  --line: #e2d6c2;
  --ok: #2f6b45;
  --warn: #9a3412;
  --radius: 14px;
  --wrap: 1120px;
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
em { font-style: italic; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }
.center { text-align: center; }
.small { font-size: .85rem; opacity: .75; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow {
  font: 600 .78rem/1 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 40em; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font: 600 1rem/1 var(--sans);
  padding: 15px 26px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, transform .2s, border-color .2s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
.btn-small { padding: 10px 18px; font-size: .92rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-light:hover { background: #fff; border-color: #fff; }
.btn-ghost-light { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper); /* solid, so the logo's paper background blends in */
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand img { width: 210px; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
.site-nav a:not(.btn):hover { color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle .bar { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 980px) {
  .brand img { width: 170px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 16px 18px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 13px 4px; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 14px; text-align: center; }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }
}

/* Hero: dark stage with a spotlight on the mic, buttons below it */
.hero {
  position: relative;
  overflow: hidden;
  background: #050403;
  color: var(--paper);
  min-height: clamp(640px, calc(100svh - 72px), 980px);
  display: flex;
  align-items: flex-end;
}
.hero-stage {
  position: absolute; top: 0; left: 50%;
  height: 66%; aspect-ratio: 1;
  transform: translateX(-50%);
  background:
    /* darken everything outside the beam */
    /* the beam and mic stand stay untouched; only the far edges get darker */
    radial-gradient(ellipse 36% 72% at 51% 44%, rgba(5,4,3,0) 0%, rgba(5,4,3,0) 50%, rgba(5,4,3,.3) 70%, rgba(5,4,3,.85) 100%),
    url("../assets/hero-spotlight.jpg") center / cover no-repeat,
    /* fallback spotlight if the photo isn't there yet */
    radial-gradient(ellipse 22% 7% at 50% 80%, rgba(222,150,70,.55), transparent 70%),
    conic-gradient(from 166deg at 52% 4%, transparent 0deg, rgba(255,228,175,.20) 14deg, rgba(255,240,210,.30) 14deg 15deg, rgba(255,228,175,.20) 16deg, transparent 30deg),
    radial-gradient(circle at 52% 4%, rgba(255,240,210,.9) 0, transparent 2.5%),
    #050403;
  /* fade the photo's edges and floor into the black */
  -webkit-mask-image: radial-gradient(ellipse 62% 70% at 50% 42%, #000 58%, transparent 100%);
          mask-image: radial-gradient(ellipse 62% 70% at 50% 42%, #000 58%, transparent 100%);
}
.hero-copy {
  position: relative; z-index: 1;
  width: 100%;
  text-align: center;
  padding-bottom: 32px;
}
.hero .eyebrow { color: #e7915f; text-shadow: 0 1px 10px #000, 0 0 4px #000; }
.hero-eyebrow span { display: block; }
.hero-eyebrow .hero-name { font-size: 1.15rem; letter-spacing: .3em; color: var(--paper); margin-bottom: 10px; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin-bottom: .3em; text-shadow: 0 2px 18px #000; }
.hero .lede { color: #d9cfc1; margin: 0 auto 24px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-spotify {
  display: inline-block; margin-top: 18px;
  color: var(--paper); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid #ffffff55; padding-bottom: 2px;
}
.hero-spotify:hover { color: #1ed760; border-color: #1ed760; }
.hero-social {
  position: absolute; top: 20px; right: 20px; z-index: 2;
  display: flex; flex-direction: column; gap: 12px;
}
.hero-social a {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  color: var(--paper);
  border: 1px solid #ffffff40;
  background: #ffffff0d;
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}
.hero-social a:hover { transform: translateY(-1px); border-color: #ffffff99; background: #ffffff1f; }
.hero-social a:not(.spotify):hover { color: #f0a77c; }
.hero-social a.spotify:hover { color: #1ed760; }
@media (max-width: 640px) {
  .hero-social { top: 14px; right: 14px; gap: 10px; }
  .hero-social a { width: 42px; height: 42px; }
}
@media (max-width: 640px) {
  .hero-stage { height: 54%; }
  .hero-copy { padding-bottom: 28px; }
  .hero-actions .btn { flex: 1 1 140px; text-align: center; }
}

/* Sections */
.section { padding: 88px 0; }
@media (max-width: 700px) { .section { padding: 60px 0; } }
.section-sand { background: var(--sand); }
.section-dark { background: #050403; color: var(--paper); }
.section-dark .eyebrow { color: #e7915f; }
.section-dark .card { background: #15120f; border-color: #2c2620; }
.section-dark .card p { color: #cfc4b5; }
.section-ink { background: var(--ink); color: var(--paper); }
.section-ink .eyebrow { color: #e7915f; }
.section-ink .lede { color: #d9cfc1; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }

.social-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.social-links a { font-weight: 600; }

.tracks { display: grid; gap: 12px; }

/* About the artist */
.about { text-align: center; }
.about-portrait { margin: 0 auto 34px; width: min(280px, 70%); }
.about-portrait img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 12%;
  border-radius: 999px 999px var(--radius) var(--radius);
  box-shadow: 0 18px 40px rgba(28, 24, 20, .2);
}
.about h2 { max-width: 18em; margin-left: auto; margin-right: auto; }
.about-text { max-width: 680px; margin: 22px auto 0; text-align: left; font-size: 1.08rem; color: var(--ink-soft); }
.about-text p:first-child::first-letter {
  font-family: var(--serif); float: left; font-size: 3.4em; line-height: .85; padding: 6px 10px 0 0; color: var(--accent);
}

/* Carousel: one photo centre stage, the others peeking either side */
.carousel { margin-top: 56px; }
.carousel-stage { position: relative; height: clamp(340px, 44vw, 520px); overflow: hidden; }
.slide {
  position: absolute; top: 0; left: 50%; margin: 0;
  height: 100%; aspect-ratio: 4 / 5;
  transform: translateX(-50%) scale(.6); opacity: 0;
  transition: transform .9s cubic-bezier(.2, .7, .2, 1), opacity .9s ease, filter .9s ease;
  cursor: pointer;
}
.slide img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: 0 18px 40px rgba(28, 24, 20, .22); }
.slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 14px; text-align: center;
  font-family: var(--serif); font-size: 1.3rem; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .7);
  opacity: 0; transition: opacity .6s ease .3s;
}
.slide.is-center { transform: translateX(-50%) scale(1); opacity: 1; z-index: 3; cursor: default; }
.slide.is-center figcaption { opacity: 1; }
.slide.is-left  { transform: translateX(-128%) scale(.78); opacity: .6; z-index: 2; filter: saturate(.7); }
.slide.is-right { transform: translateX(28%) scale(.78); opacity: .6; z-index: 2; filter: saturate(.7); }
.slide.is-left:hover, .slide.is-right:hover { opacity: .85; }
.slide.is-hidden { z-index: 1; }
@media (max-width: 640px) {
  .carousel-stage { height: 380px; }
  .slide.is-left  { transform: translateX(-118%) scale(.74); }
  .slide.is-right { transform: translateX(18%) scale(.74); }
}
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; }
.carousel-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper);
  font-size: 1.6rem; line-height: 1; color: var(--ink); cursor: pointer; transition: background .2s, color .2s;
}
.carousel-btn:hover { background: var(--ink); color: var(--paper); }
.carousel-dots { display: flex; gap: 10px; }
.dot { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; transition: background .3s, transform .3s; }
.dot[aria-current="true"] { background: var(--accent); transform: scale(1.25); }
@media (prefers-reduced-motion: reduce) { .slide, .slide figcaption { transition: none; } }
.tracks iframe { width: 100%; height: 152px; border: 0; border-radius: 12px; background: var(--sand); }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 34px 0 38px; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px;
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--ink-soft); margin: 0; font-size: .97rem; }

/* Gigs */
.gig-list { list-style: none; padding: 0; margin: 28px 0 10px; display: grid; gap: 12px; }
.gig {
  display: grid; grid-template-columns: 84px 1fr auto; align-items: center; gap: 20px;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; background: #fff8;
}
.gig-date { text-align: center; font-family: var(--serif); line-height: 1; }
.gig-date .d { font-size: 2.1rem; display: block; }
.gig-date .m { font: 600 .75rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.gig-venue { font-weight: 600; }
.gig-meta { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 560px) {
  .gig { grid-template-columns: 64px 1fr; }
  .gig .btn { grid-column: 1 / -1; text-align: center; }
}
.gig-empty { color: var(--ink-soft); }
.played-at { margin-top: 44px; }
.venue-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.venue-list li { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: .95rem; background: var(--sand); }

/* Past gigs: continues the dark stage below the landing page */
.section-stage { background: #050403; color: var(--paper); padding-top: 40px; }
.section-stage .eyebrow { color: #e7915f; }
.past-gigs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 30px; }
@media (max-width: 1000px) { .past-gigs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .past-gigs { gap: 14px; } }
.past-gig { margin: 0; }
.past-gig img, .past-gig-placeholder {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .5);
}
.past-gig-placeholder {
  display: grid; place-items: center;
  background: repeating-linear-gradient(135deg, #1a1612 0 12px, #15120f 12px 24px);
  border: 1px dashed #ffffff30; color: #ffffff70; font-size: .85rem;
}
.past-gig figcaption {
  font-family: var(--serif); font-size: 1.3rem; line-height: 1.2;
  margin-top: 14px; text-align: center;
}
@media (max-width: 480px) { .past-gig figcaption { font-size: 1.05rem; margin-top: 10px; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 28px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }

/* About */
.about-art img { width: min(380px, 100%); margin: 0 auto; border-radius: var(--radius); }

/* Form */
.form { margin-top: 34px; max-width: 900px; }
.form .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 22px; margin-bottom: 18px; }
@media (max-width: 640px) { .form .grid { grid-template-columns: 1fr; } }
.form label { display: flex; flex-direction: column; gap: 7px; font-weight: 500; font-size: .95rem; }
.form > label { margin-bottom: 18px; }
.form input, .form select, .form textarea {
  font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid transparent; border-radius: 10px; padding: 12px 14px; width: 100%;
}
.form input[aria-invalid="true"], .form select[aria-invalid="true"] { border-color: #f08a5d; box-shadow: 0 0 0 2px #f08a5d55; }
.form .check { flex-direction: row; align-items: flex-start; gap: 12px; font-weight: 400; }
.form .check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--accent); }
.hint { font-weight: 400; font-size: .88rem; min-height: 1.2em; }
.hint.ok { color: #9fd8b0; }
.hint.warn { color: #f5b38f; }
.form-status { margin-top: 16px; min-height: 1.5em; }
.form-status.ok { color: #9fd8b0; }
.form-status.err { color: #f5b38f; }

.pay-box { margin-top: 52px; padding: 28px; border: 1px solid #ffffff2a; border-radius: var(--radius); max-width: 900px; }
.pay-box .btn { margin: 6px 10px 0 0; }

/* ---------- Animations ----------
   Only active when main.js adds .anim to <html>, so content is
   always visible if JavaScript is off or motion is reduced. */
.anim .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}
.anim .reveal.is-visible { opacity: 1; transform: none; }

/* photos ease in from a gentle zoom */
.listen-photo { overflow: hidden; border-radius: var(--radius); }
.anim .listen-photo.reveal img { transform: scale(1.08); transition: transform 1.6s cubic-bezier(.2, .7, .2, 1); }
.anim .listen-photo.reveal.is-visible img { transform: none; }

/* landing page fades up on load */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes lights-up { from { opacity: 0; filter: brightness(.4); } to { opacity: 1; filter: none; } }
.anim .hero-stage { animation: lights-up 1.8s ease-out both; }
.anim .hero-copy > * { animation: rise 1s cubic-bezier(.2, .7, .2, 1) both; }
.anim .hero-copy > :nth-child(1) { animation-delay: .5s; }
.anim .hero-copy > :nth-child(2) { animation-delay: .65s; }
.anim .hero-copy > :nth-child(3) { animation-delay: .8s; }
.anim .hero-copy > :nth-child(4) { animation-delay: .95s; }
.anim .hero-copy > :nth-child(5) { animation-delay: 1.1s; }
.anim .hero-social { animation: rise 1s 1.2s cubic-bezier(.2, .7, .2, 1) both; }

/* hover lift on photo cards */
.past-gig img { transition: transform .4s ease, box-shadow .4s ease; }
.past-gig:hover img { transform: translateY(-4px); box-shadow: 0 22px 40px rgba(0, 0, 0, .6); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim .reveal, .anim .listen-photo.reveal img { opacity: 1; transform: none; transition: none; }
  .anim .hero-stage, .anim .hero-copy > *, .anim .hero-social { animation: none; }
  .past-gig img { transition: none; }
}

/* Footer */
.site-footer { background: var(--sand); padding: 40px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; gap: 20px; }
.footer-inner p { margin: 0 0 4px; }
