@font-face {
  font-family: "Cormorant";
  src: url("/fonts/cormorant-400.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant";
  src: url("/fonts/cormorant-400i.woff2") format("woff2");
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #0d0d0e;
  --bg2: #131315;
  --ink: #e7e4de;
  --dim: #8b8880;
  --faint: #55534e;
  --line: rgba(231, 228, 222, 0.09);
  --brass: #c29a63;
  --serif: "Cormorant", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea { font: inherit; color: var(--ink); background: none; border: none; outline: none; }
::placeholder { color: var(--faint); }

.label {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ── header ── */
header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  column-gap: 22px;
  padding: 26px 28px 22px;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 27px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.wordmark::after {
  content: ".";
  color: var(--brass);
  font-style: normal;
}
nav { display: flex; gap: 26px; align-items: baseline; }
nav a, nav button {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color 0.15s;
}
nav a:hover, nav button:hover { color: var(--ink); }
nav a.here { color: var(--ink); }
nav .who { color: var(--faint); letter-spacing: 0.08em; text-transform: none; font-size: 11px; }

main { padding: 22px 28px 60px; }

/* ── filter bar ── */
.bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 4px 0 20px;
  flex-wrap: wrap;
}
.chips { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
  padding: 3px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s;
}
.chip:hover { color: var(--ink); }
.chip.on { color: var(--brass); border-bottom-color: var(--brass); }
.search {
  width: 150px;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
  padding: 3px 1px;
  transition: border-color 0.2s;
}
.search:focus { border-bottom-color: var(--dim); }

/* ── masonry ── */
.wall { display: flex; gap: 12px; align-items: flex-start; }
.col { flex: 1; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ph { position: relative; display: block; width: 100%; cursor: pointer; overflow: hidden; background: var(--bg2); }
.ph img {
  display: block;
  width: 100%;
  height: auto;
  transition: filter 0.25s, transform 0.4s;
  filter: brightness(0.96);
}
.ph:hover img { filter: brightness(1.05); transform: scale(1.012); }

.empty {
  padding: 90px 0;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--faint);
}

/* ── lightbox ── */
.lb {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(8, 8, 9, 0.96);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.lb.open { display: flex; }
.lb img { max-width: min(94vw, 1600px); max-height: 84vh; object-fit: contain; }
.lb .cap { margin-top: 14px; text-align: center; max-width: 80vw; }
.lb .cap .t { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--ink); }
.lb .cap .g { margin-top: 4px; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.lb button {
  position: absolute;
  color: var(--dim);
  font-size: 30px;
  font-family: var(--serif);
  padding: 18px;
  transition: color 0.15s;
}
.lb button:hover { color: var(--ink); }
.lb .x { top: 8px; right: 14px; }
.lb .prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lb .next { right: 6px; top: 50%; transform: translateY(-50%); }

/* ── upload ── */
.drop {
  border: 1px dashed rgba(231, 228, 222, 0.22);
  padding: 68px 20px;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--dim);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  margin-bottom: 26px;
}
.drop:hover, .drop.over { border-color: var(--brass); color: var(--ink); }

.rows { display: flex; flex-direction: column; }
.row {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.row img { width: 84px; height: 62px; object-fit: cover; background: var(--bg2); flex: none; }
.row .fields { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.row input {
  border-bottom: 1px solid var(--line);
  padding: 2px 1px;
  font-size: 13px;
  width: 100%;
  max-width: 420px;
}
.row input:focus { border-bottom-color: var(--dim); }
.row .st { flex: none; min-width: 92px; text-align: right; }
.row .rm { flex: none; color: var(--faint); font-size: 17px; padding: 4px 8px; }
.row .rm:hover { color: var(--ink); }

.btn {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid rgba(231, 228, 222, 0.25);
  padding: 10px 26px;
  transition: border-color 0.2s, color 0.2s;
}
.btn:hover { border-color: var(--brass); color: var(--brass); }
.btn:disabled { opacity: 0.35; pointer-events: none; }
.btn.quiet { border-color: transparent; color: var(--dim); }
.btn.quiet:hover { color: var(--ink); }
.actions { margin-top: 24px; display: flex; gap: 14px; }

/* ── status ── */
.st { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; }
.st.pending { color: var(--brass); }
.st.approved { color: #7d9b7a; }
.st.rejected { color: #a96a62; }
.reason { font-size: 12px; color: var(--dim); font-style: italic; }

/* ── review ── */
.card {
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}
.card .pic { flex: 1 1 380px; min-width: 260px; }
.card .pic img { width: 100%; height: auto; max-height: 68vh; object-fit: contain; background: var(--bg2); }
.card .meta { flex: 1 1 220px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.card .meta .t { font-family: var(--serif); font-style: italic; font-size: 20px; }
.card .meta .by { font-size: 12px; color: var(--dim); }
.card .rj { display: none; gap: 10px; align-items: baseline; width: 100%; }
.card .rj.open { display: flex; }
.card .rj input { flex: 1; border-bottom: 1px solid var(--line); padding: 2px 1px; font-size: 13px; }

.note {
  padding: 10px 0 22px;
  font-size: 12px;
  color: var(--dim);
  font-style: italic;
  font-family: var(--serif);
  font-size: 15px;
}

footer {
  padding: 30px 28px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

@media (max-width: 640px) {
  header { padding: 18px 16px 14px; flex-wrap: wrap; row-gap: 10px; }
  main { padding: 16px 16px 50px; }
  nav { gap: 14px; flex-wrap: wrap; }
  nav .who { display: none; }
  .bar { gap: 12px; }
  .chips { flex-basis: 100%; }
  .search { width: 100%; }
  .wall { gap: 8px; }
  .col { gap: 8px; }
}
