/* Lucky Records — dark elegant theme */

:root {
  --bg: #0e0f18;
  --bg-elevated: #161822;
  --bg-soft: #1c1e2a;
  --text: #e8e6e3;
  --text-muted: #9a958c;
  --accent: #f18a1f;
  --accent-soft: rgba(241, 138, 31, 0.18);
  --border: rgba(232, 230, 227, 0.08);
  --radius: 14px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;
  --header-h: 4rem;
  --max: 1100px;
  --narrow: 640px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background-color: #0e0f18;
  background-image:
    linear-gradient(180deg, rgba(14, 15, 24, 0.72) 0%, rgba(14, 15, 24, 0.78) 50%, rgba(14, 15, 24, 0.88) 100%),
    url("assets/lucky-bg.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #ffb45a;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: #111;
  border-radius: 8px;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.container.narrow {
  width: min(100% - 2.5rem, var(--narrow));
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.logo:hover {
  color: var(--text);
  opacity: 0.9;
}

.logo-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

.logo-text {
  font-size: 0.95rem;
}

.hero-logo {
  width: min(160px, 42vw);
  height: auto;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  box-shadow: var(--shadow);
  border: 2px solid rgba(241, 138, 31, 0.35);
}

.gallery-item--logo img {
  object-fit: cover;
  background: #0a1628;
}


/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  backdrop-filter: blur(16px);
  background: rgba(14, 15, 24, 0.7);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text);
  letter-spacing: 0.02em;
}

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

.nav {
  display: flex;
  gap: 1.75rem;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.35rem;
  height: 2px;
  background: var(--text);
  margin-inline: auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  padding: 4rem 0 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 50% 42%, rgba(14, 15, 24, 0.25), transparent 70%),
    linear-gradient(180deg, rgba(14, 15, 24, 0.15) 0%, rgba(14, 15, 24, 0.55) 100%);
  pointer-events: none;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.65);
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 7rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  margin: 1.25rem auto 0;
  max-width: 28rem;
  color: var(--text-muted);
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 2.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: #14120e;
}

.btn-primary:hover {
  background: #dbbf8f;
  color: #14120e;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.section-intro,
.lead {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.about {
  background: rgba(22, 24, 34, 0.72);
  border-block: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.about p {
  margin: 0 0 1rem;
}

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

/* Gallery carousel — 2 rows × 3 images */
.gallery-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  margin-top: 2rem;
}

.gallery-viewport {
  min-width: 0;
}

.gallery-pages {
  position: relative;
}

.gallery-page {
  display: none;
}

.gallery-page.is-active {
  display: block;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 1.25rem;
}

.gallery-arrow {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.gallery-arrow:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.gallery-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.gallery-status {
  margin: 0.9rem 0 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.gallery-item {
  margin: 0;
  background: var(--bg-soft);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  border-color: rgba(196, 165, 116, 0.35);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-item figcaption {
  padding: 0.85rem 1rem 1.1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Music gallery */
.music {
  background: rgba(22, 24, 34, 0.72);
  border-block: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.music-gallery {
  margin-top: 1.5rem;
}

.music-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.music-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.music-tab:hover {
  color: var(--text);
  border-color: rgba(241, 138, 31, 0.35);
}

.music-tab.is-active {
  color: #0e0f18;
  background: var(--accent);
  border-color: var(--accent);
}

.music-tab-icon {
  display: inline-flex;
  line-height: 0;
}

.music-tab.is-active .music-tab-icon svg circle {
  fill: #0e0f18;
}

.music-tab.is-active[data-tab="spotify"] .music-tab-icon svg path {
  fill: #1DB954;
}

.music-tab.is-active[data-tab="ytmusic"] .music-tab-icon svg path {
  fill: #FF0033;
}

.music-panel[hidden] {
  display: none;
}

.platform-card {
  padding: 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.platform-card-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.15rem;
}

.platform-card-head h3 {
  margin: 0;
  font-size: 1.2rem;
}

.platform-card-head p {
  margin: 0.15rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.platform-hint {
  margin: 0.9rem 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.embed-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}

.embed-wrap iframe {
  display: block;
  width: 100%;
  border: 0;
}

.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  box-shadow: var(--shadow);
}

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

/* Footer */
.site-footer {
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  align-items: baseline;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-inner p {
  margin: 0;
}

.footer-note {
  opacity: 0.8;
}

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

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 1rem;
    background: rgba(12, 13, 16, 0.96);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.9rem 1.5rem;
  }

  .gallery-carousel {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .gallery-viewport {
    width: 100%;
    order: -1;
  }

  .gallery-arrow {
    width: 2.5rem;
    height: 2.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .footer-inner {
    flex-direction: column;
  }
}

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

  .gallery-item,
  .btn,
  .nav {
    transition: none;
  }
}

.platform-link {
  display: inline-flex;
  margin-top: 1rem;
  text-decoration: none;
}

.ytmusic-cta {
  padding: 0.5rem 0 0.25rem;
}

.ytmusic-copy {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.video-section {
  background: var(--bg);
}

.video-section .platform-link {
  margin-top: 1.25rem;
}

.gallery {
  background: rgba(14, 15, 24, 0.35);
}

.video-section {
  background: rgba(22, 24, 34, 0.72);
  backdrop-filter: blur(8px);
}

.site-footer {
  background: rgba(14, 15, 24, 0.55);
}

@media (max-width: 720px) {
  body {
    background-attachment: scroll; /* iOS-friendly */
  }
}
