/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Colors from WordPress customizer */
  --color-bg: #eeeeee;
  --color-text: #165144;
  --color-text-light: #555555;
  --color-primary: #165144;
  --color-secondary: #01332e;
  --color-tertiary: #c9c9c9;
  --color-border: #c9c9c9;
  --color-white: #ffffff;

  /* Fonts matching Go theme "welcoming" design style */
  --font-body: 'Karla', sans-serif;
  --font-heading: 'Work Sans', sans-serif;

  /* Layout — Go theme welcoming style with viewport-basis 657 */
  --max-width: 960px;
  --max-width-wide: 82rem;
  --viewport-basis: 657;
  --transition-speed: 0.3s;

  /* Type scale — ratio 1.235 from welcoming style */
  --type-scale-1: 1.235rem;
  --type-scale-2: 1.525rem;
  --type-scale-3: 1.884rem;
  --type-scale-4: 2.327rem;
  --type-scale-5: 2.874rem;
  --type-scale-6: 3.549rem;
}

html { font-size: 16px; scroll-behavior: smooth; }

/* Page fade-in on load */
@keyframes pageLoad {
  from { opacity: 0; }
  to { opacity: 1; }
}

main {
  animation: pageLoad 0.4s ease;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Fade-in animation on scroll ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.news-entry {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.news-entry:nth-child(1) { animation-delay: 0.05s; }
.news-entry:nth-child(2) { animation-delay: 0.1s; }
.news-entry:nth-child(3) { animation-delay: 0.15s; }
.news-entry:nth-child(4) { animation-delay: 0.2s; }
.news-entry:nth-child(5) { animation-delay: 0.25s; }
.news-entry:nth-child(6) { animation-delay: 0.3s; }
.news-entry:nth-child(7) { animation-delay: 0.35s; }
.news-entry:nth-child(8) { animation-delay: 0.4s; }
.news-entry:nth-child(9) { animation-delay: 0.45s; }
.news-entry:nth-child(10) { animation-delay: 0.5s; }

/* ===== Header ===== */
/* Go theme header-2 variant: sticky, white background */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: none;
  padding: calc(25 / var(--viewport-basis) * 100vw) 0;
}

.header-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 calc(50 / var(--viewport-basis) * 100vw);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--color-text-light);
  text-decoration: none;
  letter-spacing: 0;
  line-height: 1.1;
  transition: color var(--transition-speed);
}

.site-title:hover {
  color: var(--color-primary);
}

.site-nav {
  display: flex;
  gap: 0;
}

.site-nav a {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-light);
  text-decoration: none;
  text-transform: lowercase;
  letter-spacing: 1px;
  padding: 0 1.5vw;
  transition: color var(--transition-speed);
  position: relative;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--color-primary);
}

/* Underline on hover — matches welcoming style */
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -0.2rem;
  left: 1.5vw;
  right: 1.5vw;
  height: 0.2rem;
  background: var(--color-primary);
  opacity: 0;
  transition: opacity 0.1s ease-in-out;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  opacity: 1;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.3s, opacity 0.3s;
}

/* ===== Main Content ===== */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(15 / var(--viewport-basis) * 100vw * 4) calc(50 / var(--viewport-basis) * 100vw);
}

/* Prevent content images from overflowing, but not hero banners */
main img {
  max-width: 100%;
  height: auto;
}

/* ===== Hero Banner Image ===== */
.hero-banner {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-top: calc(-15 / var(--viewport-basis) * 100vw * 4);
  margin-bottom: calc(15 / var(--viewport-basis) * 100vw * 4);
}

.hero-banner img {
  width: 100%;
  max-width: none;
  height: auto;
  display: block;
}

/* ===== Typography ===== */
/* Go theme welcoming style: weight 300, line-height 1.35 */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 300;
  line-height: 1.35;
  color: var(--color-text);
  margin-bottom: 1.75rem;
}

h1 {
  font-size: var(--type-scale-6);
}

h2 {
  font-size: var(--type-scale-5);
  margin-top: 2.5rem;
}

h3 {
  font-size: var(--type-scale-4);
  margin-top: 2rem;
}

h4 {
  font-size: var(--type-scale-3);
  margin-top: 1.75rem;
  color: var(--color-primary);
}

p {
  margin-bottom: 1.2rem;
}

a {
  color: var(--color-primary);
  text-decoration: underline;
  transition: color var(--transition-speed);
}

a:hover {
  color: var(--color-secondary);
}

em { font-style: italic; }
strong { font-weight: 700; }

/* ===== Biography / Home ===== */
.bio-text {
  font-size: 1rem;
  max-width: var(--max-width);
  line-height: 1.8;
}

.bio-text p { margin-bottom: 1.2rem; }

.bio-portrait {
  margin: 3rem 0;
}

.bio-portrait img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== Reviews ===== */
.featured-reviews {
  margin-bottom: 3.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-border);
}

.featured-reviews .review {
  border-left: none;
  text-align: center;
  padding: 1.5rem 1rem;
  margin-bottom: 2rem;
}

.featured-reviews .review-quote {
  font-size: 1.5em;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 0.75rem;
}

.featured-reviews .review-source {
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

.reviews-subcategory {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--color-border);
  font-size: var(--type-scale-2);
  color: var(--color-primary);
}

.reviews-section {
  margin-bottom: 3.5rem;
}

.review {
  margin-bottom: 2rem;
  padding: 1.5rem 0 1.5rem 1.75rem;
  border-left: 3px solid var(--color-primary);
  transition: border-color var(--transition-speed);
}

.review:hover {
  border-left-color: var(--color-secondary);
}

.review-source {
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.review-quote {
  font-family: var(--font-heading);
  font-size: var(--type-scale-1);
  font-style: italic;
  line-height: 1.7;
  color: var(--color-text);
}

/* ===== News Gallery ===== */
.news-grid {
  display: block;
  margin-top: 1.5rem;
}

.news-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.news-entry {
  width: 100%;
  margin-bottom: 1.5rem;
  background: var(--color-white);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.news-entry:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.news-entry img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.news-lightbox-image {
  cursor: zoom-in;
}

.news-lightbox-image:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: -3px;
}

.news-entry-wide {
  display: block;
}

.news-entry .caption {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
  padding: 1rem 1.25rem;
}

.news-entry .caption p {
  margin-bottom: 0.6rem;
}

.news-entry .caption p:last-child {
  margin-bottom: 0;
}

.news-entry .caption .news-meta {
  color: var(--color-text-light);
  margin-bottom: 0;
}

.news-update {
  margin-top: 0.6rem;
}

.news-update p {
  margin-bottom: 0;
}

.news-entry .caption strong {
  color: var(--color-text);
  display: block;
  margin-bottom: 0.25rem;
}

.image-stack-item + .image-stack-item {
  border-top: 1px solid var(--color-border);
}

.news-media-list {
  display: grid;
  gap: 0.9rem;
  padding: 0 1rem 1rem;
}

.news-media iframe {
  display: block;
}

.news-media .video-embed {
  margin-bottom: 0.5rem;
}

.media-caption {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

.media-caption p {
  margin-bottom: 0;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.86);
}

.image-lightbox.active {
  display: flex;
}

.image-lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.image-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: var(--color-white);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.image-lightbox-close:hover,
.image-lightbox-close:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

/* ===== Video ===== */
.video-section {
  margin-bottom: 3rem;
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin-bottom: 1rem;
  background: #000;
  border-radius: 3px;
}

.video-embed iframe,
.video-embed video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 3px;
}

.video-caption {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

/* Video thumbnail grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
}

.video-card {
  display: block;
  width: 100%;
  padding: 0;
  cursor: pointer;
  border-radius: 3px;
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  color: inherit;
  font: inherit;
  text-align: left;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.video-card:hover,
.video-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.video-card:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-speed);
}

.video-card:hover .video-thumb img,
.video-card:focus-visible .video-thumb img {
  transform: scale(1.05);
}

.video-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a1a, #333);
  color: #666;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.85;
  transition: opacity var(--transition-speed), transform var(--transition-speed);
}

.video-card:hover .video-play-btn,
.video-card:focus-visible .video-play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

a.video-card-link {
  color: inherit;
  text-decoration: none;
}

.video-card-caption {
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.4;
  margin: 0;
}

/* Video modal */
.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.video-modal.active {
  display: flex;
}

.video-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
}

.video-modal-content {
  position: relative;
  width: 90vw;
  max-width: 960px;
  z-index: 1;
}

.video-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
  opacity: 0.7;
  transition: opacity var(--transition-speed);
}

.video-modal-close:hover {
  opacity: 1;
}

.video-modal-player {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #000;
  border-radius: 3px;
  overflow: hidden;
}

.video-modal-player iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ===== Recordings ===== */
.spotify-embed {
  margin: 2rem 0;
  border-radius: 12px;
  overflow: hidden;
}

.recordings-intro {
  margin: 2rem 0 1.5rem;
  color: var(--color-text-light);
}

.recordings-catalogue {
  margin-top: 3rem;
}

.recording-section {
  margin-top: 3.5rem;
}

.recording-section h2 {
  border-bottom: 1px solid var(--color-border);
  font-size: var(--type-scale-4);
  margin-bottom: 1.5rem;
  padding-bottom: 0.65rem;
}

.recording-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.recording-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  min-height: 116px;
  overflow: hidden;
  transition: border-color var(--transition-speed), transform var(--transition-speed), box-shadow var(--transition-speed);
}

.recording-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.recording-cover-link {
  background: #ddd;
  display: block;
  min-height: 116px;
}

.recording-cover {
  aspect-ratio: 1;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.recording-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 0.95rem 1rem;
}

.recording-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 0.45rem;
}

.recording-title a {
  text-decoration: none;
}

.recording-title a:hover {
  text-decoration: underline;
}

.recording-artist,
.recording-release {
  color: var(--color-text-light);
  font-size: 0.88rem;
  line-height: 1.45;
  margin: 0;
}

.recording-release {
  margin-top: 0.45rem;
}

/* ===== Images ===== */
main > p > img,
main > img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem 0;
}

.full-width-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 2rem 0;
}

.inline-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem 0;
}

/* Two-column image layout */
.image-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 2rem 0;
}

.image-pair img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== Photo credits ===== */
.photo-credit {
  font-size: 0.75rem;
  color: var(--color-text-light);
  margin-top: -1rem;
  margin-bottom: 1.5rem;
  font-style: italic;
  opacity: 0.7;
}

/* ===== Footer ===== */
.site-footer {
  border-top: none;
  padding: 2.5rem 2rem;
  text-align: center;
  color: var(--color-text);
  font-size: 0.85rem;
  background: var(--color-bg);
}

.footer-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1.25rem;
  }

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

  .site-title { font-size: 1.5rem; }

  main { padding: 2rem 1.25rem 3rem; }

  h1 { font-size: var(--type-scale-4); }
  h2 { font-size: var(--type-scale-3); }

  .hero-banner { margin-top: -2rem; }

  .news-grid {
    display: block;
  }

  .news-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .image-pair {
    grid-template-columns: 1fr;
  }

  .recording-grid {
    grid-template-columns: 1fr;
  }

  .site-nav a {
    font-size: 1.75rem;
  }

  .review-quote {
    font-size: 1rem;
  }

  .review {
    padding-left: 1.25rem;
  }
}

@media (max-width: 480px) {
  main { padding: 1.5rem 1rem 2.5rem; }
  .site-title { font-size: 1.25rem; }

  h1 { font-size: var(--type-scale-3); }

  .recording-card {
    grid-template-columns: 88px minmax(0, 1fr);
    min-height: 88px;
  }

  .recording-cover-link {
    min-height: 88px;
  }

  .recording-info {
    padding: 0.8rem;
  }

  .recording-title {
    font-size: 0.95rem;
  }

  .recording-artist,
  .recording-release {
    font-size: 0.82rem;
  }

  .review-quote {
    font-size: 0.95rem;
  }
}
