/* KEEP MOVIN — mobile-first exhibition catalog */

:root {
  --bg: #0a0a0a;
  --surface: #161616;
  --surface-2: #1f1f1f;
  --text: #f4f4f4;
  --text-dim: #9a9a9a;
  --accent: #e94560;
  --accent-press: #c93a52;
  --border: #2a2a2a;
  --radius: 14px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

/* ── Registration gate ─────────────────────────────────────────────── */

.gate {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(233, 69, 96, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(15, 52, 96, 0.5), transparent 60%),
    var(--bg);
}

.gate-inner {
  width: 100%;
  max-width: 420px;
}

.gate-kicker {
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 12px;
  color: var(--text-dim);
}

.gate-title {
  margin: 0 0 16px;
  font-size: clamp(56px, 18vw, 84px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(120deg, #fff 40%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gate-sub {
  margin: 0 0 28px;
  color: var(--text-dim);
  font-size: 15px;
}

/* ── Forms ─────────────────────────────────────────────────────────── */

.field { display: block; margin-bottom: 14px; }

.field-label {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px; /* prevents iOS zoom on focus */
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
}

.field input:focus {
  border-color: var(--accent);
}

.form-error {
  margin: 0 0 12px;
  color: #ff8a9b;
  font-size: 14px;
}

.btn {
  display: block;
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, opacity 0.15s;
}

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

.btn-primary:active { background: var(--accent-press); }
.btn-primary[disabled] { opacity: 0.6; }

.btn-ghost {
  margin-top: 12px;
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.btn-ghost:active { background: var(--surface); }

/* ── Catalog ───────────────────────────────────────────────────────── */

.catalog {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px calc(32px + env(safe-area-inset-bottom));
}

.catalog-header {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 18px 0 14px;
  margin: 0 -16px 20px;
  padding-left: 16px;
  padding-right: 16px;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.catalog-title {
  margin: 0;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 5px;
  text-transform: uppercase;
}

.catalog-sub {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--text-dim);
}

.works { display: grid; gap: 28px; }

.works-loading {
  text-align: center;
  color: var(--text-dim);
  padding: 40px 0;
}

/* ── Work card ─────────────────────────────────────────────────────── */

.work {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

/* The prints are mockups on white, so the photo panel is white too. */
.work-stage {
  background: #fff;
  padding: 16px;
}

.work-photo {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.work-body { padding: 16px 16px 18px; }

.work-title {
  margin: 0 0 2px;
  font-size: 20px;
  font-weight: 700;
}

.work-author {
  margin: 0 0 2px;
  font-size: 14px;
  color: var(--text);
}

.work-location {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text-dim);
}

.work-desc {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--text-dim);
}

.work-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.work-price {
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

.work-buy {
  width: auto;
  padding: 12px 22px;
  margin: 0;
}

.footer {
  margin-top: 36px;
  text-align: center;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ── Modal ─────────────────────────────────────────────────────────── */

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.modal.open { display: flex; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 88svh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px 20px 0 0;
  padding: 22px 20px calc(22px + env(safe-area-inset-bottom));
}

@media (min-width: 520px) {
  .modal { align-items: center; padding: 20px; }
  .modal-card { border-radius: 20px; }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-dim);
  font-size: 15px;
  cursor: pointer;
}

.modal-title {
  margin: 0 0 4px;
  font-size: 20px;
}

.modal-work {
  margin: 0;
  font-size: 15px;
  color: var(--text-dim);
}

.modal-price {
  margin: 2px 0 18px;
  font-size: 18px;
  font-weight: 700;
}

.order-done { text-align: center; padding: 8px 0; }
.order-done p:first-child { font-size: 20px; font-weight: 700; margin: 0 0 6px; }
.order-done-sub { color: var(--text-dim); font-size: 14px; margin: 0 0 18px; }

body.modal-open { overflow: hidden; }
