:root {
  --void: #050506;
  --ink: #0b0b0d;
  --cream: #f3ead8;
  --muted: #9a927f;
  --gold: #c9a227;
  --line: rgba(243, 234, 216, 0.12);
  --card: #101114;
  --ok: #7a9b5e;
  --warn: #c86b3a;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; background: var(--void); color: var(--cream); }
body {
  font-family: Manrope, system-ui, sans-serif;
  background:
    radial-gradient(ellipse 70% 40% at 50% -8%, rgba(201, 162, 39, 0.12), transparent 55%),
    var(--void);
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
}
button { cursor: pointer; }
.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}
.crumb { width: min(1120px, calc(100% - 2rem)); margin: .85rem auto 0; }
.crumb a {
  display: inline-block;
  border-radius: 999px;
  background: var(--gold);
  color: #1a1404;
  text-decoration: none;
  font-family: Oswald, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .85rem;
  padding: .45rem .95rem;
}
.mast {
  padding: 1.4rem 0 0.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}
.brand img {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.55));
}
.brand-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.brand h1 {
  font-family: Oswald, sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 1.35rem;
  text-transform: uppercase;
}
.guest-chip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.7rem 0.35rem 0.35rem;
  font-size: 0.85rem;
}
.guest-chip img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}
.hero {
  padding: 1.25rem 0 1.6rem;
}
.hero p {
  max-width: 36ch;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 0.45rem;
}
.cats {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin: 1.1rem 0 1.4rem;
}
.cat {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--muted);
}
.cat.on {
  color: var(--void);
  background: var(--cream);
  border-color: var(--cream);
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  padding-bottom: 3rem;
}
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
}
@media (min-width: 1020px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 180ms ease, border-color 180ms ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(201,162,39,.45); }
.card .art {
  aspect-ratio: 3 / 4;
  background: #000;
  overflow: hidden;
}
.card .art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.meta {
  padding: 0.75rem 0.8rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.card-blurb {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.meta h2 {
  font-family: Oswald, sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.05;
}
.votes {
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}
.price {
  color: var(--cream);
  font-weight: 600;
  font-size: 0.9rem;
}
.sheet {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  display: grid;
  place-items: end center;
  z-index: 20;
  padding: 0;
}
.sheet-card {
  width: min(640px, 100%);
  max-height: 94vh;
  overflow: auto;
  background: var(--ink);
  border-top: 1px solid var(--line);
  border-radius: 22px 22px 0 0;
  padding: 0 0 1.5rem;
}
@media (min-width: 720px) {
  .sheet { place-items: center; padding: 1.5rem; }
  .sheet-card { border-radius: 22px; }
}
.sheet-art {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 46vh;
  object-fit: cover;
  object-position: center center;
  background: #000;
}
.sheet-body { padding: 1rem 1.15rem 0; }
.sheet-body h2 {
  font-family: Oswald, sans-serif;
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  text-transform: uppercase;
  line-height: 0.95;
}
.blurb {
  margin: 0.7rem 0 1rem;
  color: var(--muted);
  line-height: 1.5;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}
.btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-size: 0.88rem;
}
.btn.gold {
  background: var(--gold);
  color: #1a1404;
  border-color: var(--gold);
  font-weight: 700;
}
.btn.on {
  background: var(--cream);
  color: var(--void);
  border-color: var(--cream);
}
.close {
  position: absolute;
  right: 0.7rem;
  top: 0.7rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  border: 1px solid var(--line);
}
.sheet-card { position: relative; }
form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.7rem 0 1rem;
}
textarea, input[type="url"], input[type="text"] {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  background: #0a0a0c;
}
.muted { color: var(--muted); font-size: 0.85rem; line-height: 1.45; }
.review {
  border-top: 1px solid var(--line);
  padding: 0.7rem 0;
}
.review strong { display: block; font-size: 0.82rem; }
.flash {
  background: rgba(122,155,94,.15);
  border: 1px solid rgba(122,155,94,.4);
  color: #d7e8c8;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  margin: 0.6rem 0;
}
.err {
  background: rgba(200,107,58,.12);
  border: 1px solid rgba(200,107,58,.4);
  color: #f0c4ae;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  margin: 0.6rem 0;
}
.empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}
.foot {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.story-link {
  display: inline-block;
  margin: 0.25rem 0.4rem 0.25rem 0;
  color: var(--gold);
}
@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
}
