/* Ryan Johnston — Warm Contemporary Worship
   Deep charcoal + gold/amber · Fraunces + DM Sans */

:root {
  --bg: #12100E;
  --bg-elevated: #1A1714;
  --bg-soft: #221E1A;
  --bg-card: #1E1A16;
  --border: rgba(232, 184, 109, 0.12);
  --border-strong: rgba(232, 184, 109, 0.28);

  --text: #F4EDE3;
  --text-muted: #B8A99A;
  --text-dim: #8A7B6C;

  --gold: #E8B86D;
  --gold-bright: #F0C98A;
  --gold-deep: #C4841A;
  --amber: #D4A017;
  --cream: #F7F0E6;

  --spotify: #1DB954;
  --spotify-hover: #1ed760;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-2xl: 5.5rem;

  --radius: 12px;
  --radius-lg: 20px;
  --shadow-glow: 0 0 60px rgba(212, 160, 23, 0.15);
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}

a:hover {
  color: var(--gold-bright);
}

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

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--gold);
  color: var(--bg);
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-md);
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(18, 16, 14, 0.85);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space-md);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.logo:hover {
  color: var(--gold-bright);
}

.logo-mark {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--gold-bright), var(--gold-deep));
  box-shadow: 0 0 12px rgba(232, 184, 109, 0.45);
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.5rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  color: var(--text);
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: block;
  padding: 0.5rem 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-list a:hover,
.nav-list a[aria-current="true"] {
  color: var(--cream);
  background: rgba(232, 184, 109, 0.08);
}

.nav-cta {
  text-decoration: none !important;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--amber));
  color: #1A1208 !important;
  box-shadow: 0 4px 20px rgba(212, 160, 23, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #F5D4A0, var(--gold));
  color: #1A1208 !important;
  box-shadow: 0 6px 28px rgba(212, 160, 23, 0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--cream) !important;
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: rgba(232, 184, 109, 0.1);
  border-color: var(--gold);
  color: var(--gold-bright) !important;
}

.btn-spotify {
  background: var(--spotify);
  color: #fff !important;
}

.btn-spotify:hover {
  background: var(--spotify-hover);
  color: #fff !important;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  padding: var(--space-2xl) var(--space-md) var(--space-xl);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: min(70vw, 640px);
  height: min(70vw, 640px);
  background: radial-gradient(circle, rgba(212, 160, 23, 0.18) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-xl);
  align-items: center;
}

.eyebrow {
  margin: 0 0 var(--space-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero h1 {
  margin: 0 0 var(--space-md);
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.hero-lead {
  margin: 0 0 var(--space-lg);
  max-width: 34ch;
  font-size: 1.125rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

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

.album-frame {
  display: block;
  width: min(100%, 420px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    var(--shadow-glow),
    0 24px 48px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
  text-decoration: none;
}

.album-frame:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow:
    0 0 80px rgba(212, 160, 23, 0.22),
    0 32px 56px rgba(0, 0, 0, 0.5);
}

.album-frame img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

/* ——— Sections ——— */
.section {
  padding: var(--space-2xl) var(--space-md);
}

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

.section-header {
  margin-bottom: var(--space-xl);
  max-width: 40rem;
}

.section-header h2 {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.section-intro {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

/* ——— Music ——— */
.music {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 40%, var(--bg) 100%);
}

.spotify-embed-wrap,
.artist-embed-wrap {
  margin-bottom: var(--space-xl);
}

.embed-title,
.tracks-heading {
  margin: 0 0 var(--space-md);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--cream);
}

.spotify-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.album-grid {
  list-style: none;
  margin: 0 0 var(--space-xl);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-lg);
}

.album-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease);
}

.album-card-link:hover {
  transform: translateY(-4px);
}

.album-card-link:hover .album-cta {
  color: var(--gold-bright);
}

.album-card-link:hover .album-cover img {
  transform: scale(1.03);
}

.album-cover {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  margin-bottom: var(--space-md);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.album-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1A1208;
  background: linear-gradient(135deg, var(--gold-bright), var(--amber));
  border-radius: 999px;
}

.album-meta h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 550;
  color: var(--cream);
  line-height: 1.3;
}

.album-year {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  color: var(--text-dim);
}

.album-cta {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gold);
  transition: color 0.2s;
}

.album-card.featured .album-cover {
  box-shadow: 0 0 40px rgba(212, 160, 23, 0.2), 0 12px 32px rgba(0, 0, 0, 0.35);
}

/* Featured tracks */
.featured-tracks {
  margin-bottom: var(--space-xl);
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.track-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.track-list li + li {
  border-top: 1px solid var(--border);
}

.track-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 1rem 0.5rem;
  text-decoration: none;
  color: var(--text);
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.track-list a:hover {
  background: rgba(232, 184, 109, 0.06);
  color: var(--gold-bright);
}

.track-name {
  font-weight: 500;
}

.track-action {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
}

.track-list a:hover .track-action {
  opacity: 1;
}

/* ——— About ——— */
.about {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 280px) 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.about-inner .section-header {
  margin-bottom: 0;
}

.about-body {
  max-width: 42rem;
}

.about-body p {
  margin: 0 0 var(--space-md);
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.about-body p:last-child {
  margin-bottom: 0;
}

.about-body em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
}

/* ——— Events ——— */
.events-empty {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  background: var(--bg-card);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  max-width: 32rem;
  margin: 0 auto;
}

.events-empty-icon {
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: var(--space-md);
}

.events-empty h3 {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 550;
  color: var(--cream);
}

.events-empty p {
  margin: 0 0 var(--space-lg);
  color: var(--text-muted);
}

/* ——— Contact ——— */
.contact {
  background: radial-gradient(ellipse at 50% 0%, rgba(212, 160, 23, 0.08) 0%, transparent 55%);
}

.contact-inner {
  text-align: center;
  max-width: 36rem;
}

.contact-inner .section-header {
  margin-left: auto;
  margin-right: auto;
}

.contact-email {
  display: inline-block;
  margin-bottom: var(--space-lg);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 500;
  color: var(--gold-bright);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.contact-email:hover {
  color: var(--cream);
  text-decoration: underline;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}

/* ——— Footer ——— */
.site-footer {
  padding: var(--space-lg) var(--space-md);
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.footer-brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--cream);
}

.footer-copy {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-dim);
}

.footer-top {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-top:hover {
  color: var(--gold);
}

/* ——— Responsive ——— */
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-art {
    order: -1;
  }

  .album-frame {
    width: min(100%, 320px);
  }

  .about-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-md) var(--space-lg);
    background: rgba(18, 16, 14, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s var(--ease), opacity 0.25s, visibility 0.25s;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .nav-list a {
    padding: 0.85rem 1rem;
    font-size: 1.0625rem;
  }

  .nav-cta {
    text-align: center;
    justify-content: center;
  }

  .album-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .album-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: var(--space-xl);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
