:root {
  --bg: #ebe7de;
  --panel: #f6f3ec;
  --panel-strong: #f0ebe1;
  --text: #111218;
  --muted: rgba(17, 18, 24, 0.62);
  --line: rgba(17, 18, 24, 0.12);
  --line-strong: rgba(17, 18, 24, 0.2);
  --accent: #cf3a2f;
  --accent-dark: #af2d23;
  --success: #4c9a63;
  --warning: #ab7a22;
  --danger: #b8392c;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(17, 18, 24, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(235, 231, 222, 0.9), rgba(235, 231, 222, 0.9)),
    url("https://lumen.fashion/assets/images/hero-main.jpg") center/cover fixed;
  color: var(--text);
  font-family: "Manrope", sans-serif;
}

a,
button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.shell {
  min-height: 100vh;
  padding: 22px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  background: rgba(246, 243, 236, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--text);
  color: var(--white);
  font-family: "Bebas Neue", sans-serif;
  font-size: 28px;
  letter-spacing: 0.04em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-copy strong {
  font-size: 18px;
  letter-spacing: 0.08em;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.topnav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.page {
  display: grid;
  gap: 28px;
  margin-top: 22px;
}

.hero,
.grid-section,
.archive-section {
  border: 1px solid var(--line);
  background: rgba(246, 243, 236, 0.94);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 28px;
  padding: 28px;
}

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

.hero h1,
.section-head h2,
.detail-title {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(3.2rem, 7vw, 5.8rem);
  line-height: 0.92;
}

.lead {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-secondary {
  border: 1px solid var(--line-strong);
  color: var(--text);
}

.hero-panel {
  display: grid;
  gap: 14px;
}

.hero-stat,
.detail-card,
.event-card,
.purchase-box {
  border: 1px solid var(--line);
  background: var(--panel);
}

.hero-stat {
  padding: 18px 20px;
}

.hero-stat span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.hero-stat strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
}

.grid-section,
.archive-section {
  padding: 26px;
}

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

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-note {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.events-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.95fr);
  gap: 22px;
  align-items: start;
}

.events-column,
.detail-panel {
  min-width: 0;
}

.cards {
  display: grid;
  gap: 16px;
}

.event-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
}

.event-card button {
  display: contents;
  cursor: pointer;
}

.card-poster {
  width: 132px;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(17, 18, 24, 0.18), rgba(17, 18, 24, 0.18)),
    var(--card-image, linear-gradient(135deg, #d9d2c5, #f7f4ee));
  background-position: center;
  background-size: cover;
}

.card-content {
  display: grid;
  gap: 10px;
  text-align: left;
}

.card-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

.card-subtitle,
.card-meta,
.card-description,
.empty,
.notice,
.purchase-hint {
  color: var(--muted);
}

.card-subtitle,
.card-meta,
.card-description,
.notice,
.purchase-hint {
  line-height: 1.55;
}

.card-meta {
  font-size: 14px;
}

.price-row,
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 13px;
  font-weight: 700;
}

.badge.is-accent {
  border-color: rgba(207, 58, 47, 0.22);
  background: rgba(207, 58, 47, 0.08);
  color: var(--accent-dark);
}

.badge.is-success {
  border-color: rgba(76, 154, 99, 0.22);
  background: rgba(76, 154, 99, 0.12);
  color: var(--success);
}

.badge.is-archive {
  border-color: rgba(17, 18, 24, 0.12);
  background: rgba(17, 18, 24, 0.06);
  color: var(--text);
}

.event-card.is-selected {
  border-color: rgba(207, 58, 47, 0.3);
  box-shadow: inset 0 0 0 1px rgba(207, 58, 47, 0.16);
}

.detail-panel {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 18px;
}

.detail-card,
.purchase-box {
  padding: 22px;
}

.detail-cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(17, 18, 24, 0.18), rgba(17, 18, 24, 0.18)),
    var(--detail-image, linear-gradient(135deg, #d9d2c5, #f7f4ee));
  background-position: center;
  background-size: cover;
}

.detail-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 0.95;
}

.detail-subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.detail-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.detail-grid dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-grid dd {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.55;
}

.detail-text {
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.7;
  white-space: pre-line;
}

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

.tier-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--white);
}

.tier-item strong {
  display: block;
  font-size: 15px;
}

.tier-item span {
  color: var(--muted);
  font-size: 13px;
}

.tier-price {
  font-size: 16px;
  font-weight: 800;
}

.purchase-box h3,
.empty-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

.form-grid {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.form-grid.is-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--text);
  outline: none;
}

.field textarea {
  min-height: 120px;
  padding: 12px 14px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(207, 58, 47, 0.5);
}

.purchase-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
}

.purchase-total span {
  color: var(--muted);
}

.purchase-total strong {
  font-size: 24px;
}

.purchase-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.purchase-actions button {
  min-height: 50px;
  padding: 0 18px;
}

.submit-button {
  flex: 1;
  background: var(--accent);
  color: var(--white);
}

.submit-button:hover {
  background: var(--accent-dark);
}

.submit-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.reload-button {
  border: 1px solid var(--line-strong);
  background: transparent;
}

.feedback {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--white);
  line-height: 1.6;
}

.feedback.is-error {
  border-color: rgba(184, 57, 44, 0.25);
  background: rgba(184, 57, 44, 0.08);
  color: var(--danger);
}

.feedback.is-success {
  border-color: rgba(76, 154, 99, 0.25);
  background: rgba(76, 154, 99, 0.08);
  color: var(--success);
}

.empty {
  padding: 34px;
  border: 1px dashed var(--line-strong);
  text-align: center;
}

.empty-title {
  margin-bottom: 12px;
}

@media (max-width: 1180px) {
  .hero,
  .events-layout {
    grid-template-columns: 1fr;
  }

  .detail-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .shell {
    padding: 12px;
  }

  .topbar,
  .hero,
  .grid-section,
  .archive-section {
    padding: 18px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .event-card {
    grid-template-columns: 1fr;
  }

  .card-poster {
    width: 100%;
  }

  .form-grid.is-two {
    grid-template-columns: 1fr;
  }

  .purchase-actions {
    flex-direction: column;
  }
}
