/* The look of the art review page: dark, quiet surfaces, one cyan accent, and the vote colours. */
:root {
  --bg: #0a0b0f;
  --surface: #12141a;
  --raised: #1a1d25;
  --border: #262a35;
  --text: #e8eaf0;
  --muted: #8a90a2;
  --accent: #3ee0ff;
  --keep: #34d399;
  --maybe: #fbbf24;
  --reject: #f87171;
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body {
  background: radial-gradient(1200px 600px at 50% -200px, #14202b 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--text);
  font: 15px/1.5 Inter, "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
main { max-width: 1500px; margin: 0 auto; padding: 32px 24px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 28px; font-weight: 650; }
h2 { font-size: 18px; font-weight: 600; }
h3 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 8px; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.hero { max-width: 640px; margin: 24px auto 40px; text-align: center; display: grid; gap: 10px; }
.hero h1 { font-size: 40px; }
.eyebrow { color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 380px)); justify-content: center; gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; display: grid; gap: 12px; align-content: start;
}
.card.link { transition: border-color .15s, transform .15s; }
.card.link:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); transform: translateY(-2px); }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.narrow { max-width: 460px; margin: 8vh auto 0; gap: 16px; }
.brief { border-left: 2px solid var(--accent); padding-left: 12px; }

.badge {
  justify-self: start; font-size: 12px; font-weight: 600; text-transform: capitalize;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-radius: 999px; padding: 2px 10px;
}
.meter { height: 4px; border-radius: 4px; background: var(--raised); overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.meter.flat { border-radius: 0; }

.field { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
input, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; resize: vertical;
}
input:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

button { font: inherit; color: inherit; cursor: pointer; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--raised); border: 1px solid var(--border); border-radius: 10px; padding: 9px 16px; font-weight: 550;
}
.button:hover { border-color: var(--muted); }
.button.primary { background: var(--accent); border-color: var(--accent); color: #041014; }
.text-button { background: none; border: 0; padding: 0; color: var(--muted); font-size: 13px; }
.text-button:hover { color: var(--text); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  background: var(--raised); border: 1px solid var(--border); border-radius: 999px;
  padding: 5px 12px; font-size: 13px; color: var(--muted); transition: all .12s;
}
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { color: var(--text); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--raised)); }

main:has(.review) { padding: 0; max-width: none; }
.review { min-height: 100vh; display: flex; flex-direction: column; }
.bar {
  display: flex; align-items: center; gap: 16px; padding: 12px 20px;
  background: color-mix(in srgb, var(--surface) 85%, transparent); border-bottom: 1px solid var(--border);
}
.bar-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-body { flex: 1; display: flex; padding: 20px; }
.review-body > .card { flex: 0 1 460px; align-self: flex-start; }
.stage { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; }
.picture {
  margin: 0; display: flex; align-items: center; justify-content: center;
  background: #000; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; min-height: 300px;
}
.picture img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; cursor: zoom-in; display: block; }
.panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 18px; align-self: start;
}
.subject { margin: 4px 0 8px; }
.subject::first-letter { text-transform: uppercase; }
.caption-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.caption { margin-top: 8px; font-size: 13px; color: var(--muted); background: var(--bg); border-radius: 10px; padding: 10px 12px; }

.votes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vote {
  --tone: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px; font-weight: 650; font-size: 15px;
  background: color-mix(in srgb, var(--tone) 8%, var(--raised)); border: 1px solid color-mix(in srgb, var(--tone) 35%, var(--border));
  border-radius: 12px; color: var(--tone); transition: all .12s;
}
.vote:hover { background: color-mix(in srgb, var(--tone) 18%, var(--raised)); }
.vote[aria-pressed="true"] { background: var(--tone); border-color: var(--tone); color: #0a0b0f; }
.vote.keep { --tone: var(--keep); }
.vote.maybe { --tone: var(--maybe); }
.vote.reject { --tone: var(--reject); }
kbd { font: 11px ui-monospace, monospace; opacity: .7; }
.nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.reasons { display: grid; gap: 10px; border-left: 2px solid var(--reject); padding-left: 12px; }
.reasons h3 { color: var(--reject); margin: 0; }
.reasons .button { justify-self: start; }

#toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--raised); border: 1px solid var(--reject); border-radius: 10px; padding: 10px 16px; transition: all .2s;
}
#toast.visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  main { padding: 20px 14px; }
  .stage { grid-template-columns: 1fr; }
  .review-body { padding: 12px; }
  .picture img { max-height: 60vh; }
  .keys { display: none; }
  .bar { gap: 10px; padding: 10px 12px; }
}
