/* ── Reset & base ──────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --cream: #F7F3ED;
  --ink: #1A1410;
  --terracotta: #C4633A;
  --sage: #6B8C6B;
  --gold: #C9A84C;
  --muted: #8C7B6E;
  --border: rgba(26, 20, 16, 0.12);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'DM Sans', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* ── Shared utilities ──────────────────────────────────────────────────── */
.hidden {
  display: none !important;
}

/* ── Toast notification ────────────────────────────────────────────────── */
#toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 10px 20px;
  border-radius: 4px;
  opacity: 0;
  transition: all 0.25s ease;
  pointer-events: none;
  z-index: 999;
  white-space: nowrap;
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Loading skeleton ──────────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.06) 25%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.06) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 4px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ══════════════════════════════════════════════════════════════════════════
   LANDING PAGE
══════════════════════════════════════════════════════════════════════════ */
#landing {
  padding: 3rem 1.5rem 4rem;
}

.landing-eyebrow {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.landing-title {
  text-align: center;
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 8vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.landing-title em {
  font-style: italic;
  color: var(--terracotta);
}

.landing-sub {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 3rem;
}

/* Two-column side-by-side tile grid */
.event-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 560px) {
  .event-cards {
    grid-template-columns: 1fr;
  }
}

.event-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  padding: 2rem 1.75rem;
  text-decoration: none;
  display: block;
  color: inherit;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(26, 20, 16, 0.18);
}

.event-card:active {
  transform: translateY(-1px);
}

.card-a-bg {
  background: var(--ink);
  color: var(--cream);
}

.card-b-bg {
  background: var(--sage);
  color: #fff;
}

.card-deco {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  top: -40px;
  right: -40px;
  opacity: 0.07;
}

.card-a-bg .card-deco {
  background: var(--gold);
}

.card-b-bg .card-deco {
  background: #fff;
}

.card-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-label::before {
  content: '';
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.card-title em {
  font-style: italic;
}

.card-body {
  font-size: 13px;
  font-weight: 300;
  opacity: 0.72;
  line-height: 1.65;
  margin-bottom: 1.6rem;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-count {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.45;
}

.card-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.55;
  transition: opacity 0.15s, background 0.15s;
  font-size: 15px;
}

.event-card:hover .card-arrow {
  opacity: 1;
}

/* ── Divider between landing and polls ────────────────────────────────── */
.polls-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

/* ══════════════════════════════════════════════════════════════════════════
   POLL A — Editorial dark
══════════════════════════════════════════════════════════════════════════ */
#poll-a {
  background: var(--ink);
  color: var(--cream);
  border-radius: 20px;
  margin-bottom: 2rem;
  overflow: hidden;
  scroll-margin-top: 2rem;
}

.poll-header-a {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(247, 243, 237, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  background: var(--ink);
  z-index: 10;
  border-radius: 20px 20px 0 0;
}

.back-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  opacity: 0.45;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: opacity 0.15s;
}

.back-btn:hover {
  opacity: 1;
}

.poll-header-title-a {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  opacity: 0.85;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  margin-left: auto;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.poll-a-body {
  padding: 1.5rem;
}

.poll-eyebrow-a {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.card-ed {
  border: 1px solid rgba(247, 243, 237, 0.1);
  border-radius: 3px;
  margin-bottom: 2px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.card-ed.voted-up {
  border-color: var(--gold);
}

.card-ed.voted-down {
  border-color: rgba(247, 243, 237, 0.2);
  opacity: 0.7;
}

.card-ed-inner {
  padding: 1.25rem 1.25rem 0.75rem;
}

.ed-num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-style: italic;
  color: var(--gold);
  opacity: 0.3;
  line-height: 1;
  float: left;
  margin-right: 10px;
  margin-top: -6px;
}

.ed-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 3px;
}

.ed-meta {
  font-size: 11px;
  opacity: 0.4;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  margin-bottom: 9px;
  clear: both;
}

.ed-vibe {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.65;
  opacity: 0.78;
  margin-bottom: 9px;
}

.ed-gf {
  font-size: 11px;
  font-family: var(--font-mono);
  margin-bottom: 9px;
}

.gf-star { color: var(--sage); }
.gf-warn { color: var(--gold); }
.gf-no   { opacity: 0.4; }

.ed-links {
  display: flex;
  gap: 12px;
  margin-bottom: 0;
}

.ed-link {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--cream);
  opacity: 0.38;
  text-decoration: none;
  border-bottom: 1px solid rgba(247, 243, 237, 0.18);
  padding-bottom: 1px;
  transition: opacity 0.15s;
  letter-spacing: 0.04em;
}

.ed-link:hover {
  opacity: 0.9;
}

.ed-vote-row {
  display: flex;
  align-items: stretch;
  border-top: 1px solid rgba(247, 243, 237, 0.07);
  margin-top: 0.75rem;
}

.ed-vote-btn {
  flex: 1;
  background: none;
  border: none;
  border-right: 1px solid rgba(247, 243, 237, 0.07);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cream);
  padding: 11px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  opacity: 0.38;
  transition: all 0.12s;
  letter-spacing: 0.05em;
}

.ed-vote-btn:last-of-type {
  border-right: none;
}

.ed-vote-btn:hover {
  opacity: 0.85;
  background: rgba(247, 243, 237, 0.04);
}

.ed-vote-btn.active-up {
  opacity: 1;
  color: var(--gold);
  background: rgba(201, 168, 76, 0.09);
}

.ed-vote-btn.active-down {
  opacity: 0.5;
}

.ed-score {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 11px 14px;
  opacity: 0.3;
  display: flex;
  align-items: center;
}

.comment-block-a {
  padding: 1.5rem 1.5rem 2rem;
  border-top: 1px solid rgba(247, 243, 237, 0.08);
}

.comment-eyebrow-a {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.cf-input-a {
  background: rgba(247, 243, 237, 0.05);
  border: 1px solid rgba(247, 243, 237, 0.1);
  border-radius: 3px;
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 13px;
  padding: 9px 12px;
  width: 100%;
  margin-bottom: 8px;
  outline: none;
  transition: border-color 0.15s;
}

.cf-input-a:focus {
  border-color: rgba(247, 243, 237, 0.3);
}

.cf-input-a::placeholder {
  opacity: 0.28;
}

textarea.cf-input-a {
  resize: vertical;
  min-height: 72px;
}

.submit-a {
  background: var(--gold);
  color: var(--ink);
  border: none;
  padding: 9px 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
  border-radius: 2px;
  transition: opacity 0.15s;
}

.submit-a:hover {
  opacity: 0.85;
}

.comment-list-a {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comment-item-a {
  border-left: 2px solid rgba(201, 168, 76, 0.4);
  padding-left: 12px;
}

.comment-author-a {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gold);
  opacity: 0.65;
  margin-bottom: 3px;
}

.comment-text-a {
  font-size: 13px;
  opacity: 0.65;
  font-weight: 300;
  line-height: 1.55;
}

/* ══════════════════════════════════════════════════════════════════════════
   POLL B — Warm playful
══════════════════════════════════════════════════════════════════════════ */
#poll-b {
  background: #FDF8F2;
  color: #2D2016;
  border-radius: 20px;
  overflow: hidden;
  scroll-margin-top: 2rem;
}

.poll-header-b {
  padding: 1.1rem 1.5rem;
  background: #fff;
  box-shadow: 0 1px 0 rgba(45, 32, 22, 0.07);
  display: flex;
  align-items: center;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 10;
  border-radius: 20px 20px 0 0;
}

.back-btn-b {
  color: #2D2016;
}

.poll-header-title-b {
  font-size: 15px;
  font-weight: 500;
}

.live-dot-b {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
  margin-left: auto;
  animation: pulse 2s infinite;
}

.poll-b-body {
  padding: 1.25rem 1.25rem 1.5rem;
}

.poll-eyebrow-b {
  font-size: 13px;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 1.25rem;
}

.card-pl {
  background: #fff;
  border-radius: 20px;
  margin-bottom: 12px;
  padding: 1.1rem 1.1rem 0.9rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(45, 32, 22, 0.06);
  transition: box-shadow 0.18s, transform 0.18s, opacity 0.18s;
}

.card-pl:hover {
  box-shadow: 0 6px 24px rgba(45, 32, 22, 0.11);
  transform: translateY(-2px);
}

.card-pl.voted-up {
  box-shadow: 0 4px 20px rgba(107, 140, 107, 0.22);
}

.card-pl.voted-down {
  opacity: 0.68;
}

.card-pl-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  border-radius: 0;
}

.pl-name {
  font-size: 17px;
  font-weight: 500;
  color: #2D2016;
  margin-bottom: 3px;
}

.pl-meta {
  font-size: 12px;
  color: #A0907E;
  margin-bottom: 7px;
}

.pl-vibe {
  font-size: 13px;
  color: #4A3728;
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 9px;
}

.pl-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 9px;
}

.pl-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 30px;
}

.pl-badge-green { background: #E8F4E8; color: #2D6B2D; }
.pl-badge-amber { background: #FEF3E2; color: #8B5C00; }
.pl-badge-red   { background: #FEEDED; color: #8B2020; }

.pl-links {
  display: flex;
  gap: 8px;
  margin-bottom: 11px;
}

.pl-link {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid #E8E0D8;
  border-radius: 8px;
  padding: 4px 12px;
  text-decoration: none;
  transition: border-color 0.12s, color 0.12s;
}

.pl-link:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
}

.pl-vote-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 9px;
  border-top: 1px solid #F0EAE2;
}

.pl-vote-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 15px;
  border-radius: 30px;
  border: 1.5px solid #E8E0D8;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font-sans);
  color: #8C7B6E;
  font-weight: 500;
  transition: all 0.12s;
}

.pl-vote-btn:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
}

.pl-vote-btn.active-up {
  background: #E8F4E8;
  border-color: var(--sage);
  color: #2D6B2D;
}

.pl-vote-btn.active-down {
  background: #FEF0F0;
  border-color: #D4A0A0;
  color: #8B4040;
}

.pl-score {
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
}

.pl-score-pos { background: #E8F4E8; color: #2D6B2D; }
.pl-score-neg { background: #FEEDED; color: #8B2020; }

.comment-block-b {
  background: #fff;
  border-radius: 18px;
  padding: 1.1rem 1.1rem 1.25rem;
  margin: 0 1.25rem 1.25rem;
  box-shadow: 0 2px 8px rgba(45, 32, 22, 0.05);
}

.comment-title-b {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 0.85rem;
}

.cf-input-b {
  background: #FDF8F2;
  border: 1.5px solid #E8E0D8;
  border-radius: 10px;
  color: #2D2016;
  font-family: var(--font-sans);
  font-size: 13px;
  padding: 9px 13px;
  width: 100%;
  margin-bottom: 8px;
  outline: none;
  transition: border-color 0.15s;
}

.cf-input-b:focus {
  border-color: var(--terracotta);
}

textarea.cf-input-b {
  resize: vertical;
  min-height: 72px;
}

.submit-b {
  background: var(--terracotta);
  color: #fff;
  border: none;
  padding: 9px 22px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 30px;
  transition: opacity 0.15s;
}

.submit-b:hover {
  opacity: 0.87;
}

.comment-list-b {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comment-item-b {
  background: #FDF8F2;
  border-radius: 10px;
  padding: 9px 13px;
}

.comment-author-b {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 3px;
}

.comment-text-b {
  font-size: 13px;
  color: #4A3728;
  line-height: 1.55;
}
