:root {
  --bg: #f7f3ec;
  --surface: #fffaf2;
  --surface-strong: #ffffff;
  --ink: #171512;
  --muted: #6d675e;
  --line: rgba(23, 21, 18, 0.12);
  --mint: #9ee6cf;
  --coral: #ff6f61;
  --yellow: #f4c84b;
  --violet: #7c5cff;
  --blue: #2b78ff;
  --shadow: 0 24px 70px rgba(39, 31, 20, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(23, 21, 18, 0.035) 1px, transparent 1px) 0 0 / 70px 70px,
    linear-gradient(180deg, rgba(23, 21, 18, 0.035) 1px, transparent 1px) 0 0 / 70px 70px,
    var(--bg);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  width: min(1180px, calc(100% - 32px));
  margin: 14px auto 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 10px;
  background: rgba(255, 250, 242, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 50px rgba(23, 21, 18, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow);
}

.brand,
.main-nav,
.header-actions,
.site-footer > div {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--mint), var(--yellow));
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--ink);
}

.main-nav {
  justify-content: center;
  gap: 8px;
}

.main-nav a,
.site-footer a {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease;
}

.main-nav a:hover,
.main-nav a.active,
.site-footer a:hover {
  color: var(--ink);
  background: rgba(158, 230, 207, 0.35);
  border-radius: var(--radius);
}

.header-actions {
  justify-content: flex-end;
  gap: 8px;
}

.primary-button,
.ghost-button,
.dark-button,
.icon-button,
.event-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: var(--radius);
  border: 1px solid var(--ink);
  padding: 0 16px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button {
  background: var(--coral);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.ghost-button,
.icon-button {
  background: var(--surface-strong);
  color: var(--ink);
}

.dark-button,
.event-buy {
  width: 100%;
  background: var(--ink);
  color: #fff;
}

.icon-button {
  width: 42px;
  padding: 0;
  font-size: 22px;
}

.primary-button:hover,
.ghost-button:hover,
.dark-button:hover,
.icon-button:hover,
.event-buy:hover {
  transform: translateY(-2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.hero {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 720px;
  margin: 26px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: end;
  gap: 28px;
  padding: 44px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 26px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: end;
  gap: 34px;
  min-height: 420px;
  padding: 42px;
  background:
    radial-gradient(circle at 80% 20%, rgba(158, 230, 207, 0.45), transparent 22%),
    linear-gradient(135deg, rgba(255, 111, 97, 0.18), transparent 42%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.page-hero h1 {
  font-size: clamp(50px, 7vw, 96px);
}

.page-hero p:not(.eyebrow),
.page-card p,
.workflow-card p,
.feature-list li,
.artist-profile p {
  color: var(--muted);
  line-height: 1.65;
}

.page-hero-art {
  display: grid;
  gap: 12px;
}

.page-hero-art img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--ink);
}

.page-toolbar {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  margin-bottom: 22px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.event-grid.expanded {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.event-card.wide img {
  height: 260px;
}

.page-card-grid,
.workflow-grid,
.comparison-grid {
  display: grid;
  gap: 18px;
}

.page-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-card,
.workflow-card,
.artist-profile,
.comparison-card {
  padding: 22px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 45px rgba(23, 21, 18, 0.08);
}

.page-card strong,
.workflow-card strong,
.comparison-card strong {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  margin-bottom: 18px;
  background: var(--yellow);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 3px 3px 0 var(--ink);
}

.artist-profile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.artist-profile img {
  width: 100%;
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.artist-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.artist-meta span,
.status-pill {
  padding: 6px 9px;
  color: var(--ink);
  background: rgba(158, 230, 207, 0.35);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 900;
}

.workflow-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.resale-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 24px;
  align-items: start;
}

.feature-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 20px;
}

.comparison-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.comparison-card {
  display: grid;
  gap: 10px;
}

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

.admin-panel {
  min-height: 280px;
  padding: 22px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 45px rgba(23, 21, 18, 0.08);
}

.admin-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.admin-row {
  padding: 12px;
  background: rgba(158, 230, 207, 0.22);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.admin-row strong {
  display: block;
  color: var(--ink);
}

.comparison-card strong {
  background: var(--mint);
}

.mini-total {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
}

.mini-total span {
  color: rgba(255, 255, 255, 0.68);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 26%, rgba(244, 200, 75, 0.38), transparent 24%),
    radial-gradient(circle at 78% 18%, rgba(124, 92, 255, 0.22), transparent 22%),
    linear-gradient(135deg, transparent 0 50%, rgba(158, 230, 207, 0.5) 50% 63%, transparent 63%);
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-media img {
  position: absolute;
  width: clamp(160px, 18vw, 260px);
  aspect-ratio: 1 / 1.25;
  object-fit: cover;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 10px 10px 0 rgba(23, 21, 18, 0.94);
  animation: float 7s ease-in-out infinite;
}

.hero-media img:nth-child(1) {
  top: 80px;
  right: 360px;
  transform: rotate(-8deg);
}

.hero-media img:nth-child(2) {
  top: 120px;
  right: 90px;
  transform: rotate(9deg);
  animation-delay: -1.5s;
}

.hero-media img:nth-child(3) {
  bottom: 74px;
  right: 250px;
  transform: rotate(4deg);
  animation-delay: -3s;
}

.hero-content,
.hero-ticket {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", Inter, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(54px, 8vw, 112px);
  line-height: 0.88;
}

h2 {
  font-size: clamp(34px, 4vw, 64px);
  line-height: 0.96;
}

h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.hero-copy {
  max-width: 560px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.6;
}

.search-panel,
.sell-form,
.checkout-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 55px rgba(23, 21, 18, 0.12);
}

.search-panel {
  grid-template-columns: 1.5fr 1fr 1fr auto;
  align-items: end;
  max-width: 940px;
  margin-top: 32px;
}

label {
  display: grid;
  gap: 8px;
}

label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 13px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border 180ms ease, box-shadow 180ms ease;
}

input:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(43, 120, 255, 0.14);
}

.hero-ticket {
  align-self: center;
  padding: 22px;
  background: var(--mint);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 10px 10px 0 var(--ink);
}

.hero-ticket p {
  font-weight: 900;
  text-transform: uppercase;
}

.ticket-grid {
  display: grid;
  place-items: center;
  min-height: 190px;
  margin: 22px 0;
  background: var(--surface-strong);
  border: 2px dashed var(--ink);
  border-radius: var(--radius);
}

.ticket-grid span,
.ticket-grid small {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.ticket-grid strong {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 82px;
  line-height: 0.8;
}

.ticket-meta,
.event-meta,
.checkout-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.ticket-meta {
  margin-bottom: 18px;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 96px auto 0;
}

.event-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.event-strip div,
.event-card,
.artist-card,
.plan-card,
.join-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 45px rgba(23, 21, 18, 0.09);
}

.event-strip div {
  padding: 20px;
}

.event-strip strong {
  display: block;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 36px;
}

.event-strip span,
.artist-card span,
.plan-card p,
.join-card li,
.sell-copy p {
  color: var(--muted);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.section-heading h2 {
  max-width: 710px;
  margin-bottom: 0;
}

.section-heading > p:not(.eyebrow) {
  max-width: 430px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tabs button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  font-weight: 900;
}

.filter-tabs button.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.event-grid,
.artist-wall,
.plan-grid {
  display: grid;
  gap: 18px;
}

.event-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.event-card {
  overflow: hidden;
  transition: opacity 180ms ease, transform 180ms ease;
}

.event-card.is-hidden {
  display: none;
}

.event-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.event-card-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.event-card p {
  min-height: 66px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.tag {
  justify-self: start;
  padding: 6px 9px;
  background: rgba(244, 200, 75, 0.4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 900;
}

.split-section,
.sell-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 34px;
  align-items: center;
}

.artist-wall {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.artist-card {
  padding: 12px;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.artist-card:hover,
.event-card:hover,
.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.artist-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
}

.artist-card h3 {
  margin-top: 14px;
}

.sell-section {
  padding: 34px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  overflow: hidden;
}

.sell-section .eyebrow {
  color: var(--mint);
}

.sell-copy p {
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.7;
}

.sell-form {
  background: var(--surface);
  color: var(--ink);
}

.upload-zone {
  min-height: 110px;
  place-items: center;
  border: 2px dashed rgba(23, 21, 18, 0.25);
  border-radius: var(--radius);
  background: rgba(158, 230, 207, 0.18);
  text-align: center;
}

.upload-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-zone span {
  color: var(--ink);
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--blue);
  font-weight: 800;
}

.plan-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plan-card {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.plan-card.featured {
  background: linear-gradient(135deg, var(--ink), #302840);
  color: #fff;
}

.plan-card.featured p {
  color: rgba(255, 255, 255, 0.72);
}

.plan-card > span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.plan-card.featured > span {
  color: var(--mint);
}

.join-section {
  margin-bottom: 90px;
}

.join-card {
  padding: 32px;
  background:
    linear-gradient(135deg, rgba(255, 111, 97, 0.18), transparent 38%),
    var(--surface-strong);
}

.join-card ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
  margin: 18px 0 0;
  padding-left: 20px;
}

.join-card li {
  line-height: 1.6;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.checkout-modal {
  width: min(520px, calc(100% - 30px));
  border: 0;
  padding: 0;
  background: transparent;
}

.checkout-modal::backdrop {
  background: rgba(23, 21, 18, 0.48);
  backdrop-filter: blur(5px);
}

.checkout-card {
  position: relative;
  padding: 24px;
}

.close-button {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-size: 22px;
}

.checkout-total {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.checkout-total strong {
  color: var(--ink);
  font-size: 24px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%,
  100% {
    margin-top: 0;
  }
  50% {
    margin-top: -18px;
  }
}

@media (max-width: 1020px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .main-nav,
  .header-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero,
  .page-hero,
  .split-section,
  .sell-section,
  .resale-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 34px;
  }

  .hero-media {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    order: -1;
  }

  .hero-media img {
    position: static;
    width: 100%;
    transform: none;
  }

  .search-panel,
  .page-toolbar,
  .event-strip,
  .event-grid,
  .event-grid.expanded,
  .artist-wall,
  .artist-profile-grid,
  .workflow-grid,
  .comparison-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading {
    display: grid;
  }
}

@media (max-width: 720px) {
  .site-header,
  .hero,
  .page-hero,
  .section,
  .site-footer {
    width: min(100% - 22px, 1180px);
  }

  .hero,
  .page-hero,
  .sell-section,
  .join-card {
    padding: 22px;
  }

  h1 {
    font-size: 52px;
  }

  h2 {
    font-size: 36px;
  }

  .main-nav {
    display: none;
  }

  .search-panel,
  .page-toolbar,
  .event-strip,
  .event-grid,
  .event-grid.expanded,
  .artist-wall,
  .artist-profile-grid,
  .plan-grid,
  .page-card-grid,
  .workflow-grid,
  .comparison-grid,
  .admin-grid,
  .join-card ul {
    grid-template-columns: 1fr;
  }

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

  .hero-media img:nth-child(3) {
    display: none;
  }

  .site-footer {
    display: grid;
  }
}
