* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #1f1a17;
  --panel: #2b231e;
  --panel-2: #352b24;
  --text: #f2e7d3;
  --muted: #c6b59a;
  --border: #6e5846;
  --accent: #c98d3a;
  --danger: #b85c4a;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
}

body {
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-body {
  background: #1b1714;
}

.site-shell {
  min-height: 100vh;
}

/* Hero */

.hero {
  min-height: 520px;
  background-image: url("/assets/banners/main.webp");
  background-size: cover;
  background-position: top center;
  position: relative;
}

.hero-overlay {
  min-height: 520px;
  background: linear-gradient(to bottom, rgba(30, 22, 16, 0.42), rgba(30, 22, 16, 0.82));
  padding: 24px;
}

.site-nav {
  width: min(1200px, calc(100% - 16px));
  margin: 0 auto 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy {
  position: relative;
  width: min(1200px, calc(100% - 16px));
  margin: 0 auto;
  padding: 72px 0 36px;
  z-index: 1;
}

.hero-copy-inner {
  display: inline-block;
  max-width: 720px;
  padding: 0;
  background: none;
}

.hero-copy-inner::before {
  content: none;
}

.hero-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 0.96;
}

.hero-copy p:last-child {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.05rem;
}

#hero-subtitle:empty {
  display: none;
}

/* Layout */

.site-main,
.page-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0 0 8px;
  font-size: 1.8rem;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.88rem;
}

/* Shows */

.shows-list {
  display: grid;
  gap: 16px;
}

.show-card {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--panel);
}

.show-date {
  min-width: 0;
}

.show-date-main {
  font-weight: 700;
  font-size: 1rem;
}

.show-date-sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.show-details {
  min-width: 0;
}

.show-band {
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.show-title {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.show-location,
.show-note {
  margin: 6px 0 0;
  color: var(--muted);
}

.show-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* Generic buttons */

.ticket-button,
.ticket-placeholder,
.nav-button,
button {
  border-radius: 0;
  border: none;
  padding: 12px 16px;
}

.ticket-button,
button,
.nav-button {
  cursor: pointer;
  background: var(--accent);
  color: #1f1711;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ticket-placeholder {
  display: inline-block;
  background: var(--panel-2);
  color: var(--muted);
  border: 1px solid var(--border);
}

/* Empty states */

.empty-panel {
  width: 100%;
  border: 1px dashed var(--border);
  border-radius: 0;
  background: rgba(43, 35, 30, 0.8);
  padding: 18px;
}

.empty-panel strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.empty-panel-large {
  padding: 26px;
}

/* Projects toggle + drawer */

.projects-toggle {
  position: fixed;
  left: 0;
  top: 340px;
  z-index: 30;
  width: auto;
  overflow: hidden;
  border-radius: 0;
  padding: 12px 16px 12px 12px;
  background: rgba(43, 35, 30, 0.95);
  color: var(--text);
  border: 1px solid var(--border);
  border-left: none;
  backdrop-filter: blur(8px);
}

.projects-toggle::after {
  content: "";
  position: absolute;
  top: -20%;
  left: -60%;
  width: 42%;
  height: 140%;
  transform: rotate(18deg);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.08) 45%,
    rgba(255, 255, 255, 0.28) 50%,
    rgba(255, 255, 255, 0.08) 55%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  animation: projectsSheen 5s ease-in-out infinite;
}

.projects-toggle:hover {
  border-color: var(--accent);
}

@keyframes projectsSheen {
  0% {
    left: -60%;
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  18% {
    left: 130%;
    opacity: 0;
  }
  100% {
    left: 130%;
    opacity: 0;
  }
}

.projects-backdrop {
  position: fixed;
  inset: 0;
  z-index: 39;
  background: rgba(5, 8, 13, 0.38);
}

.projects-backdrop.is-open {
  display: block;
}

.projects-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(360px, calc(100vw - 36px));
  height: 100vh;
  z-index: 40;
  background: rgba(31, 26, 23, 0.99);
  border-right: 1px solid var(--border);
  transform: translateX(-100%);
  transition: transform 180ms ease;
  padding: 20px 18px 24px;
  overflow-y: auto;
}

.projects-drawer.is-open {
  transform: translateX(0);
}

.projects-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.projects-drawer-header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.projects-close {
  width: auto;
  margin: 0;
  padding: 8px 12px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 0;
}

.projects-close:hover {
  border-color: var(--accent);
}

.projects-list {
  display: grid;
  gap: 10px;
}

.project-item {
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--panel);
  color: var(--text);
  padding: 14px 14px;
}

.project-item:hover {
  border-color: var(--accent);
}

.project-item.is-active {
  background: var(--panel);
  color: var(--text);
  border: 2px solid var(--accent);
  box-shadow: none;
}

.project-item-name {
  display: block;
  font-weight: 700;
}

/* Social icons */

.social-links {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.social-icon-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border-radius: 999px;
}

.social-icon-link::before,
.social-icon-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  pointer-events: none;
}

.social-icon-link::before {
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.social-icon-link::after {
  border-left: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  transform: scaleY(0);
  transform-origin: center top;
  opacity: 0;
  transition:
    transform 180ms ease 90ms,
    opacity 180ms ease 90ms;
}

.social-icon-link:hover::before,
.social-icon-link:hover::after,
.social-icon-link:focus-visible::before,
.social-icon-link:focus-visible::after {
  opacity: 1;
}

.social-icon-link:hover::before,
.social-icon-link:focus-visible::before {
  transform: scaleX(1);
}

.social-icon-link:hover::after,
.social-icon-link:focus-visible::after {
  transform: scaleY(1);
}

.social-icon {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.social-icon-link.is-instagram {
  border-radius: 12px;
}

.social-icon-link.is-instagram::before,
.social-icon-link.is-instagram::after {
  border-radius: 12px;
}

/* Admin */

.page-shell {
  padding-top: 24px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 28px;
}

.top-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 20px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.wide-panel {
  grid-column: 1 / -1;
}

label {
  display: block;
  margin-bottom: 14px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 8px;
  border-radius: 0;
  border: 1px solid var(--border);
  background: #241d18;
  color: var(--text);
  padding: 12px 14px;
}

textarea {
  resize: vertical;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-row input {
  width: auto;
  margin: 0;
}

.checkbox-row span {
  margin-top: 8px;
}

.stack-list {
  display: grid;
  gap: 12px;
}

.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--panel-2);
}

.block-top {
  align-items: flex-start;
}

.list-grow {
  flex: 1 1 auto;
  min-width: 0;
}

.swatch {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex: 0 0 auto;
}

.danger-button {
  width: auto;
  margin: 0;
  align-self: flex-start;
  background: var(--danger);
  color: #1a0c0c;
  padding: 10px 12px;
}

.field-note {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.admin-helper-row {
  margin-bottom: 14px;
}

.admin-help-panel {
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--border);
  background: var(--panel-2);
}

.admin-help-panel strong {
  display: block;
  margin-bottom: 8px;
}

.admin-help-panel p,
.admin-help-panel ol {
  margin: 0 0 10px;
}

.admin-help-panel code {
  font-family: Consolas, monospace;
  font-size: 0.92em;
}

/* Responsive */

@media (max-width: 980px) {
  .show-card {
    grid-template-columns: 1fr;
  }

  .show-actions {
    justify-content: flex-start;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .site-nav,
  .hero-copy,
  .site-main,
  .page-shell {
    width: min(100%, calc(100% - 24px));
  }

  .site-header {
    flex-direction: column;
  }

  .projects-toggle {
    left: 12px;
    top: auto;
    bottom: 16px;
    border-radius: 0;
    border-left: 1px solid var(--border);
    padding: 12px 15px;
  }

  .projects-drawer {
    width: min(340px, calc(100vw - 24px));
  }
}
