/* Whatzon — /reviews, the public page of member-written reviews.
 *
 * Deliberately a near-copy of returning.css rather than an import of it. The two public
 * pages should look like siblings, and they do -- but they are read by different people for
 * different reasons, and a shared file would mean tuning the reviews layout silently
 * restyles the page that answers "when is my show back". Duplication is the cheaper mistake
 * here; tests/test_brand_palette.py holds both to the same palette.
 *
 * Theme-aware like privacy.css and share.css, and for the same reason: somebody arriving
 * from a search result should get the setting their device is already in. The app itself is
 * dark-only, which is a decision about a logged-in tool, not about a public page.
 *
 * No inline styles anywhere in the markup this dresses -- Content-Security-Policy is
 * enforcing, and tests/test_inline_assets.py walks every surface this app serves.
 */
:root {
  --page-bg: #F7F5FC;
  --page-fg: #241A44;
  --page-mut: #6B6489;
  --card: #FFFFFF;
  --card-rule: #EAE5F7;
  --apricot: #FFA24C;
  --accent-ink: #C2701E;   /* apricot fails contrast on white; its print twin. See /branding */
  --art-bg: #EFEAFB;
  --body: system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Avenir Next", "Avenir", "Futura", "Trebuchet MS", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page-bg: #120C28;
    --page-fg: #EFEAFB;
    --page-mut: #9A92BC;
    --card: #1B1338;
    --card-rule: #2E2458;
    --accent-ink: #FFA24C;
    --art-bg: #241A44;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--page-fg);
  font-family: var(--body);
  line-height: 1.6;
}

.top {
  width: min(62rem, 100% - 2.5rem);
  margin: 0 auto;
  padding: 1.6rem 0 0.4rem;
}

.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: inherit;
  text-decoration: none;
}

.wordmark .z { color: var(--apricot); }

.tagline {
  margin: 0.15rem 0 0;
  color: var(--page-mut);
  font-size: 0.9rem;
}

main {
  width: min(62rem, 100% - 2.5rem);
  margin: 0 auto;
  padding: 1.2rem 0 4rem;
}

h1 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 1.2rem 0 0.8rem;
}

h2 {
  font-family: var(--display);
  font-size: 1.2rem;
  margin: 2.4rem 0 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--card-rule);
}

h3 {
  font-family: var(--display);
  font-size: 1rem;
  margin: 0 0 0.2rem;
}

.lede { max-width: 62ch; }
.lede, .note, .empty { color: var(--page-mut); }
.note { max-width: 62ch; font-size: 0.92rem; }

a { color: var(--accent-ink); text-underline-offset: 2px; }

.shows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
}

.show {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--card-rule);
  border-radius: 0.7rem;
  padding: 0.7rem;
}

/* Fixed box so a missing poster does not collapse the row. The width/height attributes on
 * the element match these, which is what stops the page reflowing as art loads in. */
.poster {
  width: 70px;
  height: 96px;
  flex: none;
  object-fit: cover;
  border-radius: 0.4rem;
  background: var(--art-bg);
}

.show-body { min-width: 0; }

.when {
  margin: 0;
  font-weight: 600;
  color: var(--accent-ink);
  font-size: 0.92rem;
}

.meta {
  margin: 0.15rem 0 0;
  color: var(--page-mut);
  font-size: 0.85rem;
}

.cta {
  margin: 2.6rem 0 0;
  padding: 1.2rem 1.3rem;
  background: var(--card);
  border: 1px solid var(--card-rule);
  border-left: 3px solid var(--apricot);
  border-radius: 0.7rem;
}

.cta h2 { margin-top: 0; border: 0; padding: 0; }
.cta p { max-width: 62ch; }

.button {
  display: inline-block;
  background: var(--apricot);
  color: #3A2408;
  text-decoration: none;
  font-weight: 700;
  padding: 0.6rem 1.1rem;
  border-radius: 0.6rem;
}

footer {
  width: min(62rem, 100% - 2.5rem);
  margin: 0 auto;
  padding: 1.4rem 0 3rem;
  border-top: 1px solid var(--card-rule);
  color: var(--page-mut);
  font-size: 0.88rem;
}

/* --- the hero, shared shape with /returning --------------------------------------------- */
.hero {
  padding: 1.6rem 0 0.6rem;
  border-bottom: 1px solid var(--card-rule);
  margin-bottom: 1.2rem;
}

.hero-lede {
  max-width: 54ch;
  font-size: 1.08rem;
  color: var(--page-fg);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin: 1.1rem 0 0.6rem;
}

.button-quiet {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border-radius: 0.6rem;
  border: 1px solid var(--card-rule);
  background: var(--card);
  color: var(--page-fg);
  text-decoration: none;
  font-weight: 600;
}

.top nav a {
  float: right;
  margin-top: -1.9rem;
  font-weight: 600;
}

/* --- the reviews themselves --------------------------------------------------------------
 *
 * One column, not the card grid /returning uses. A review is prose meant to be read, and
 * prose in a 19rem grid cell is a column of six-word lines.
 */
.reviews {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.review {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--card-rule);
  border-radius: 0.7rem;
  padding: 1rem;
}

.review-body { min-width: 0; }

.rating {
  margin: 0.1rem 0 0.5rem;
  color: var(--apricot);
  font-size: 1rem;
  letter-spacing: 0.08em;
}

/* The readable measure is the whole point of this page existing. */
.prose {
  margin: 0;
  max-width: 68ch;
  white-space: pre-wrap;
}

.byline {
  margin: 0.6rem 0 0;
  color: var(--page-mut);
  font-size: 0.88rem;
  font-style: italic;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.how {
  margin: 2.6rem 0 0;
  padding: 1.2rem 1.3rem;
  background: var(--card);
  border: 1px solid var(--card-rule);
  border-left: 3px solid var(--apricot);
  border-radius: 0.7rem;
}

.how h2 { margin-top: 0; border: 0; padding: 0; }
.how p { max-width: 62ch; }
