:root {
  color-scheme: light;
  --ink: #171719;
  --paper: #fff8ec;
  --panel: #fffef9;
  --rose: #ff4b6e;
  --teal: #0aa89f;
  --yellow: #ffd166;
  --violet: #6457ff;
  --lime: #b7ff5a;
  --blue: #58c7ff;
  --muted: #6e6873;
  --line: rgba(23, 23, 25, 0.14);
  --shadow: 0 24px 80px rgba(23, 23, 25, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(255, 75, 110, 0.12), transparent 32%),
    linear-gradient(315deg, rgba(88, 199, 255, 0.18), transparent 36%),
    repeating-linear-gradient(135deg, rgba(23, 23, 25, 0.035) 0 1px, transparent 1px 16px),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

a {
  color: inherit;
}

.date-page {
  min-height: 100vh;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1fr);
  min-height: min(760px, 88vh);
  background: #111112;
  color: #fffef9;
  overflow: hidden;
  position: relative;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 75, 110, 0.2), transparent 26%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 18px);
  pointer-events: none;
}

.hero__photo {
  min-height: 420px;
  position: relative;
}

.hero__photo::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, transparent 44%, rgba(17, 17, 18, 0.82)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.34), transparent 55%);
}

.hero__photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.hero__content {
  align-self: center;
  padding: clamp(28px, 5vw, 72px);
  position: relative;
  z-index: 1;
}

.eyebrow,
.kicker {
  margin: 0 0 14px;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.admin-top h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.7rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-question {
  width: min(100%, 760px);
  margin: 18px 0 0;
  background: linear-gradient(90deg, var(--yellow), #fff, var(--blue), var(--lime));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(2.15rem, 6vw, 5.35rem);
  font-weight: 1000;
  line-height: 0.94;
}

.intro {
  width: min(100%, 620px);
  margin: 24px 0 0;
  color: rgba(255, 254, 249, 0.86);
  font-size: clamp(1.06rem, 2vw, 1.36rem);
  line-height: 1.55;
}

.bio-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.bio-strip span {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 7px 13px;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  font-weight: 750;
}

.hero-cta {
  width: max-content;
  max-width: 100%;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  margin-top: 30px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 0 18px;
  background: linear-gradient(90deg, var(--rose), var(--violet));
  color: #fff;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 18px 38px rgba(255, 75, 110, 0.28);
}

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

.photo-section {
  background:
    linear-gradient(135deg, rgba(255, 75, 110, 0.18), transparent 26%),
    linear-gradient(315deg, rgba(183, 255, 90, 0.12), transparent 32%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 52px),
    #15161a;
  color: #fffef9;
  padding: clamp(34px, 6vw, 70px) 0;
}

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

.photo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 22px;
}

.photo-head .kicker {
  color: var(--yellow);
}

.photo-head h2 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(2rem, 4.8vw, 4.45rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.photo-head p:not(.kicker) {
  max-width: 390px;
  margin: 0;
  color: rgba(255, 254, 249, 0.72);
  font-size: 1rem;
  line-height: 1.65;
}

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

.gallery-card {
  aspect-ratio: 4 / 5;
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 0;
  position: relative;
  overflow: hidden;
  background: #24252b;
  color: #fff;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.gallery-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.76));
}

.gallery-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 240ms ease;
}

.gallery-card:hover img,
.gallery-card:focus-visible img {
  transform: scale(1.045);
}

.gallery-card:focus-visible {
  outline: 4px solid rgba(255, 209, 102, 0.78);
  outline-offset: 3px;
}

.gallery-card span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  font-size: clamp(0.88rem, 1.5vw, 1rem);
  font-weight: 950;
  line-height: 1.1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.52);
}

.photo-dialog {
  width: min(920px, calc(100% - 24px));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  background: #15161a;
  color: #fffef9;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.54);
}

.photo-dialog::backdrop {
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(8px);
}

.photo-dialog img {
  width: 100%;
  max-height: 78vh;
  display: block;
  object-fit: contain;
  background: #0d0e12;
}

.photo-dialog p {
  margin: 0;
  padding: 14px 18px 18px;
  font-size: 1.05rem;
  font-weight: 900;
}

.dialog-close {
  position: absolute;
  right: 12px;
  top: 12px;
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  cursor: pointer;
  font-weight: 950;
}

.apply-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(36px, 7vw, 86px) 0;
}

.apply-copy {
  align-self: start;
  position: sticky;
  top: 28px;
}

.apply-copy .kicker,
.submissions-toolbar .kicker {
  color: var(--teal);
}

.apply-copy h2,
.login-panel h2,
.submissions-toolbar h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.apply-copy p:not(.kicker) {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.date-form,
.login-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 248, 236, 0.9)),
    var(--panel);
  box-shadow: var(--shadow);
}

.date-form {
  display: grid;
  gap: 18px;
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 850;
}

label > span {
  font-size: 0.88rem;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(23, 23, 25, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  outline: none;
}

input,
select {
  min-height: 48px;
  padding: 0 14px;
}

textarea {
  min-height: 148px;
  resize: vertical;
  padding: 14px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(100, 87, 255, 0.16);
}

.upload-box {
  min-height: 228px;
  border: 2px dashed rgba(23, 23, 25, 0.22);
  border-radius: 8px;
  place-items: center;
  padding: 18px;
  position: relative;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
}

.upload-box input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-box__text {
  color: var(--ink);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.upload-box__hint {
  margin-top: -2px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}

#photo-preview {
  display: none;
  width: 100%;
  max-height: 360px;
  border-radius: 8px;
  object-fit: cover;
}

#photo-preview.is-visible {
  display: block;
}

.check-row {
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
}

.check-row input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.primary-button,
.ghost-button,
.danger-button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 950;
}

.primary-button {
  background: linear-gradient(90deg, var(--rose), var(--violet));
  color: #fff;
  box-shadow: 0 12px 28px rgba(255, 75, 110, 0.28);
}

.primary-button:hover {
  background: #ea2f55;
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: transparent;
  color: #fff;
}

.danger-button {
  min-height: 36px;
  padding: 0 12px;
  background: #ffe4e8;
  color: #a31633;
}

.form-status {
  min-height: 24px;
  margin: 0;
  font-weight: 800;
}

.form-status.is-pending {
  color: var(--violet);
}

.form-status.is-success {
  color: #087f5b;
}

.form-status.is-error {
  color: #c01837;
}

.admin-body {
  background: #15161a;
  color: #fffef9;
}

.admin-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.admin-top h1 {
  font-size: clamp(2.6rem, 7vw, 5.8rem);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.admin-actions a {
  color: #fff;
  font-weight: 850;
}

.login-panel {
  width: min(520px, 100%);
  color: var(--ink);
}

.login-panel h2 {
  margin-bottom: 22px;
  font-size: clamp(2rem, 6vw, 3.5rem);
}

.login-form {
  display: grid;
  gap: 16px;
}

.submissions-panel {
  display: grid;
  gap: 22px;
}

.submissions-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.submissions-toolbar h2 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 4rem);
}

.search-field {
  width: min(380px, 100%);
  color: #fff;
}

.search-field input {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}

.search-field input::placeholder {
  color: rgba(255, 255, 255, 0.54);
}

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

.submission-card {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #fffef9;
  color: var(--ink);
}

.submission-card__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  background: #27272d;
}

.submission-card__body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.submission-card__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.submission-card h3 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.15;
}

.submission-card a {
  display: inline-block;
  margin-top: 4px;
  color: var(--violet);
  font-weight: 850;
  overflow-wrap: anywhere;
}

.status-picker {
  width: 132px;
  flex: 0 0 auto;
}

.status-picker select {
  min-height: 38px;
  padding: 0 8px;
  font-size: 0.88rem;
}

.submission-card__about {
  margin: 0;
  color: #3e3b42;
  line-height: 1.58;
  white-space: pre-wrap;
}

.submission-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.submission-card__meta span {
  border-radius: 999px;
  padding: 7px 10px;
  background: #f1eee7;
  color: #4b4650;
  font-size: 0.82rem;
  font-weight: 800;
}

.empty-state {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 30px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
}

@media (max-width: 860px) {
  .hero,
  .apply-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero__photo {
    min-height: 52vh;
  }

  .hero__photo::after {
    background: linear-gradient(180deg, transparent 42%, rgba(17, 17, 18, 0.9));
  }

  .hero__content {
    margin-top: -168px;
    padding-top: 0;
  }

  .apply-copy {
    position: static;
  }

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

  .photo-head p:not(.kicker) {
    max-width: 100%;
  }

  .photo-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .admin-top,
  .submissions-toolbar,
  .submission-card__header {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-actions {
    justify-content: flex-start;
  }

  .status-picker,
  .search-field {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .field-grid {
    grid-template-columns: 1fr;
  }

  .hero__content {
    padding-inline: 18px;
  }

  .apply-band,
  .photo-inner,
  .admin-shell {
    width: min(100% - 22px, 1180px);
  }

  .date-form,
  .login-panel {
    padding: 16px;
  }

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

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .gallery-card span {
    font-size: 0.78rem;
  }
}
