:root {
  --bg: #090909;
  --panel: #111111;
  --text: #f4f4f4;
  --muted: #a1a1a1;
  --line: #262626;
  --accent: #d6b06f;
  --font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  --base-font-size: 16px;
  --title-scale: 1;
  --home-section-gap: 24px;
  --home-releases-max-columns: 4;
  --spotify-embed-scale: 100;
  --footer-bar-height: 64px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-family);
  font-size: var(--base-font-size);
  background: radial-gradient(circle at top right, #191919 0%, var(--bg) 55%);
  color: var(--text);
  min-height: 100vh;
  letter-spacing: 0.01em;
  padding-bottom: calc(var(--footer-bar-height) + 20px);
}

body.site-loading {
  visibility: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  background: rgba(9, 9, 9, 0.82);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.mobile-nav-toggle {
  display: none;
}

.mobile-nav-icon {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.mobile-nav-icon::before,
.mobile-nav-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.mobile-nav-icon::before {
  top: -6px;
}

.mobile-nav-icon::after {
  top: 6px;
}

.brand {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
}

.brand-image {
  max-width: 150px;
  width: auto;
  height: auto;
  display: block;
}

nav {
  display: flex;
  gap: 1.2rem;
  font-size: 0.9rem;
  text-transform: uppercase;
}

nav a {
  color: var(--muted);
  transition: color 0.2s ease;
}

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

main {
  padding: 3.5rem 0 5rem;
}

h1 {
  font-size: clamp(2rem, calc(6vw * var(--title-scale)), calc(4.2rem * var(--title-scale)));
  line-height: 1.05;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

h2 {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.2rem;
}

p.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 680px;
  line-height: 1.7;
}

.hero {
  padding: 3rem 0 4rem;
}

[id] {
  scroll-margin-top: 100px;
}

.section-block {
  padding-top: 0.6rem;
  margin-top: var(--home-section-gap);
}

.section-action {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.hero-simple {
  display: grid;
  gap: 1rem;
}

.hero-title-row {
  display: grid;
  grid-template-columns: minmax(220px, auto) 1fr;
  align-items: center;
  gap: 1rem;
}

.hero-text-block {
  display: grid;
  gap: 0.5rem;
}

.hero-text-block .lead {
  margin: 0;
}

.hero-title-row.logo-hidden {
  grid-template-columns: 1fr;
}

.hero-title-row.logo-left {
  grid-template-columns: 1fr minmax(220px, auto);
}

.hero-title-row.logo-left #home-hero-logo {
  order: -1;
}

.hero-logo {
  max-width: min(560px, 100%);
  width: 100%;
  height: auto;
  border-radius: 0.8rem;
  border: 1px solid var(--line);
}

.hero-logo.hero-logo-blend {
  border: none;
  border-radius: 0;
  mix-blend-mode: screen;
  opacity: 0.94;
}

.hero-visual {
  width: 100%;
  min-height: 360px;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #171717 0%, #0b0b0b 100%);
  background-size: cover;
  background-position: center;
}

.hero-visual.has-image {
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

#home-releases.grid {
  grid-template-columns: repeat(var(--home-releases-max-columns), minmax(0, 1fr));
}

#sorties-grid.grid {
  grid-template-columns: repeat(var(--home-releases-max-columns), minmax(0, 1fr));
}

.cover-link {
  display: block;
}

.card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #111 0%, #0b0b0b 100%);
  padding: 1rem;
  border-radius: 0.8rem;
}

.release-embed {
  margin-top: 0.9rem;
  display: block;
}

.cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 0.6rem;
  background: linear-gradient(160deg, #272727 0%, #111 60%);
  margin-bottom: 0.9rem;
}

.cover-image {
  object-fit: cover;
  display: block;
}

.tag {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--muted);
  padding: 0.25rem 0.65rem;
}

.meta {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 0.4rem;
}

.meta-catalog {
  color: var(--muted);
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  opacity: 0.9;
}

.meta-date {
  color: var(--muted);
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  opacity: 0.9;
}

.list {
  display: grid;
  gap: 0.75rem;
}

.row {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1.2fr 1fr auto;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 0.9rem 1rem;
  align-items: center;
}

.tour-row {
  grid-template-columns: 1.4fr 1fr 1fr auto;
  align-items: center;
}

.tour-cell {
  min-width: 0;
}

.tour-cell-venue {
  font-weight: 700;
}

.tour-cell-tickets {
  justify-self: end;
  display: flex;
  justify-content: flex-end;
}

.tour-cell .meta {
  margin-top: 0;
}

.cta-placeholder {
  visibility: hidden;
}

.contact-row {
  grid-template-columns: 1fr;
}

.pact-story-list {
  display: grid;
  gap: 1rem;
}

.pact-story-item {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: linear-gradient(145deg, #111 0%, #0b0b0b 100%);
  padding: 1rem;
}

.pact-story-item.pact-story-item-blend {
  border: none;
  background: transparent;
  box-shadow: none;
}

.pact-story-item.image-left {
  grid-template-columns: 0.9fr 1.1fr;
}

.pact-story-item.image-left .pact-story-image,
.pact-story-item.image-left .pact-story-placeholder {
  order: -1;
}

.pact-story-text .lead {
  margin: 0;
}

.pact-story-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.7rem;
  border: 1px solid var(--line);
}

.pact-story-image-blend {
  border: none !important;
  border-radius: 0;
  mix-blend-mode: screen;
  opacity: 0.94;
  box-shadow: none;
  background: transparent;
}

.pact-story-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 0.7rem;
  border: 1px dashed var(--line);
  background: linear-gradient(160deg, #1d1d1d 0%, #0f0f0f 100%);
}

.cta {
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  text-transform: uppercase;
}

form {
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  padding: 1rem;
  background: var(--panel);
  max-width: 680px;
  margin-bottom: 1rem;
}

label {
  display: block;
  font-size: 0.86rem;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

label:has(input[type="checkbox"]) {
  text-transform: none;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
}

input,
textarea,
select {
  width: 100%;
  background: #0b0b0b;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.72rem;
  margin-bottom: 0.9rem;
}

button {
  background: var(--accent);
  color: #0a0a0a;
  border: 0;
  border-radius: 999px;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.7rem 1.2rem;
  cursor: pointer;
}

button.danger {
  background: transparent;
  color: #ef8d8d;
  border: 1px solid #7a2f2f;
}

h3 {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
}

.admin-list {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1rem;
  max-width: 680px;
}

.admin-page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  max-width: 680px;
}

.admin-page-nav button {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  text-transform: none;
  font-weight: 500;
}

.admin-page-nav button.active {
  color: var(--text);
  border-color: var(--accent);
}

.footer-admin-preview {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: #0b0b0b;
}

.admin-item {
  border: 1px solid var(--line);
  background: #0d0d0d;
  border-radius: 0.6rem;
  padding: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-item.dragging {
  opacity: 0.5;
}

.admin-item.drop-target {
  border-color: var(--accent);
}

.drag-handle {
  display: inline-block;
  margin-right: 0.5rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  cursor: grab;
}

.hidden {
  display: none;
}

footer {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
  background: rgba(9, 9, 9, 0.82);
  border-top: 1px solid var(--line);
  padding: 0;
}

.footer-bar {
  min-height: var(--footer-bar-height);
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-bar.footer-left {
  justify-content: flex-start;
}

.footer-bar.footer-right {
  justify-content: flex-end;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 32px;
}

.footer-link-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.02);
}

.footer-link-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.footer-links.footer-no-frame .footer-link-item {
  border: none;
  background: transparent;
}

@media (max-width: 760px) {
  .topbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .brand {
    align-self: center;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    margin-left: auto;
    order: 1;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0;
    width: 38px;
    height: 34px;
    line-height: 1;
    text-transform: none;
    font-size: 0.9rem;
  }

  .mobile-nav-toggle.is-open .mobile-nav-icon {
    background: transparent;
  }

  .mobile-nav-toggle.is-open .mobile-nav-icon::before {
    top: 0;
    transform: rotate(45deg);
  }

  .mobile-nav-toggle.is-open .mobile-nav-icon::after {
    top: 0;
    transform: rotate(-45deg);
  }

  nav {
    width: 100%;
    order: 2;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.3rem;
    align-items: flex-end;
  }

  nav.mobile-open {
    display: flex;
  }

  .mobile-nav-toggle.is-open {
    order: 3;
    margin-top: 0.2rem;
  }

  nav a {
    white-space: normal;
    flex: initial;
    text-align: right;
  }

  .hero-title-row,
  .hero-title-row.logo-left {
    grid-template-columns: 1fr;
  }

  .hero-title-row.logo-left #home-hero-logo {
    order: initial;
  }

  .hero-logo {
    max-width: 100%;
  }

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

  #home-releases.grid {
    grid-template-columns: 1fr;
  }

  #sorties-grid.grid {
    grid-template-columns: 1fr;
  }

  .pact-story-item,
  .pact-story-item.image-left {
    grid-template-columns: 1fr;
  }

  .pact-story-item.image-left .pact-story-image,
  .pact-story-item.image-left .pact-story-placeholder {
    order: initial;
  }
}
