:root {
  color-scheme: dark;
  --bg-900: #121417;
  --bg-800: #1B1F24;
  --bg-700: #252A31;
  --text-100: #F2F2F2;
  --text-200: #CFCFCF;
  --yellow-100: #FFF4BF;
  --yellow-200: #FFE88A;
  --yellow-300: #FFD84D;
  --yellow-400: #D4A017;
  --blue-100: #D8E3EA;
  --blue-200: #A9C0D0;
  --blue-300: #6E8FA3;
  --blue-400: #405B6D;
  --page-bg: var(--bg-900);
  --nav-bg: rgba(18, 20, 23, 0.94);
  --nav-border: rgba(255, 216, 77, 0.22);
  --text: var(--text-100);
  --muted: var(--text-200);
  --accent: var(--yellow-300);
  --accent-strong: var(--yellow-400);
  --focus: var(--blue-200);
}

:root.light-theme {
  color-scheme: light;
  --page-bg: #F4F6F7;
  --nav-bg: rgba(244, 246, 247, 0.94);
  --nav-border: rgba(64, 91, 109, 0.28);
  --text: #121417;
  --muted: #405B6D;
  --accent: #D4A017;
  --accent-strong: #405B6D;
  --focus: #6E8FA3;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page-bg);
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
}

.site-nav {
  width: min(100%, 1160px);
  margin: 0 auto;
  padding: 0 20px;
}

.desktop-nav {
  display: grid;
  grid-template-columns: 1fr 1fr auto 1fr 1fr 56px;
  gap: 12px;
  min-height: 76px;
  align-items: center;
}

.mobile-nav {
  display: none;
}

.nav-link,
.mobile-menu-link,
.menu-toggle,
.theme-toggle {
  min-height: 48px;
  border-radius: 4px;
}

.nav-link,
.mobile-menu-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-home {
  color: var(--accent);
  font-size: 2rem;
  font-weight: 900;
}

.nav-link:hover,
.mobile-menu-link:hover,
.nav-link:focus-visible,
.mobile-menu-link:focus-visible,
.menu-toggle:focus-visible,
.theme-toggle:focus-visible {
  color: var(--text);
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.nav-link[aria-current="page"],
.mobile-menu-link[aria-current="page"] {
  color: var(--accent);
}

.menu-toggle,
.theme-toggle {
  border: 0;
  color: var(--text);
  cursor: pointer;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  background: transparent;
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
}

.theme-toggle {
  display: inline-grid;
  width: 56px;
  min-width: 56px;
  padding: 0;
  place-items: center;
  background: transparent;
}

.theme-toggle img {
  display: block;
}

.theme-toggle img {
  width: 36px;
  height: auto;
}

picture,
img {
  display: block;
}

.home-page,
.content-page,
.media-page {
  background: var(--page-bg);
}

.home-hero {
  position: relative;
  min-height: calc(100svh - 77px);
  overflow: hidden;
}

.home-hero picture,
.hero-image {
  width: 100%;
  height: 100%;
}

.home-hero picture {
  position: absolute;
  inset: 0;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 20, 23, 0.18), rgba(18, 20, 23, 0.4));
  pointer-events: none;
}

.content-page {
  min-height: calc(100svh - 77px);
  padding: 32px 20px;
}

.image-stage {
  display: grid;
  width: 100%;
  margin: 0 auto;
  place-items: center;
}

.image-stage picture,
.feature-image {
  max-width: 100%;
}

.feature-image {
  height: auto;
}

.tour-stage {
  max-width: 1024px;
}

.album-stage {
  max-width: min(100%, 980px);
  min-height: calc(100svh - 141px);
}

.album-cover {
  max-height: min(78svh, 920px);
  object-fit: contain;
}

.media-page {
  min-height: calc(100svh - 77px);
  padding: clamp(40px, 8vw, 92px) 20px;
}

.media-panel {
  display: grid;
  width: min(100%, 960px);
  margin: 0 auto;
  gap: 28px;
}

.media-panel h1 {
  margin: 0;
  color: var(--accent);
  font-size: clamp(3rem, 12vw, 8rem);
  font-weight: 900;
  line-height: 0.9;
  text-align: center;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.media-block {
  display: grid;
  aspect-ratio: 4 / 3;
  min-height: clamp(150px, 22vw, 260px);
  border: 1px solid rgba(110, 143, 163, 0.45);
  background:
    linear-gradient(135deg, rgba(255, 216, 77, 0.08), transparent 45%),
    var(--bg-800);
  place-items: center;
}

:root.light-theme .media-block {
  background:
    linear-gradient(135deg, rgba(212, 160, 23, 0.14), transparent 45%),
    #FFFFFF;
}

.media-block span {
  color: var(--muted);
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 900;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 16px 20px;
  border-top: 1px solid var(--nav-border);
  background: var(--nav-bg);
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer p {
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  .site-nav {
    padding: 0 12px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: grid;
    grid-template-columns: minmax(58px, 1fr) auto minmax(58px, 1fr);
    min-height: 68px;
    align-items: center;
  }

  .mobile-nav .menu-toggle {
    justify-self: start;
  }

  .mobile-nav .theme-toggle {
    justify-self: end;
  }

  .mobile-nav .nav-home {
    font-size: 1.65rem;
  }

  .mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 4px 0 16px;
    border-top: 1px solid var(--nav-border);
  }

  .mobile-menu[hidden] {
    display: none;
  }

  .mobile-menu-link {
    justify-content: flex-start;
    width: 100%;
    padding: 0 14px;
  }

  .theme-toggle img {
    width: 34px;
  }

  .home-hero,
  .content-page,
  .media-page {
    min-height: calc(100svh - 69px);
  }

  .content-page {
    padding: 0;
  }

  .tour-stage,
  .album-stage {
    max-width: 100%;
    min-height: auto;
  }

  .tour-map,
  .album-cover {
    width: 100%;
    max-height: none;
  }

  .media-page {
    padding: 36px 14px;
  }

  .media-panel {
    gap: 18px;
  }

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

  .site-footer {
    min-height: 58px;
    padding: 14px 12px;
  }
}
