:root {
  color-scheme: light;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans TC", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, .08), transparent 34rem),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 38%, #f1f5f9 100%);
}

.glass-nav {
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, .86);
}

.hero-image {
  background-image:
    linear-gradient(90deg, rgba(15, 23, 42, .88), rgba(15, 23, 42, .50), rgba(15, 23, 42, .18)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
}

.section-kicker {
  letter-spacing: .14em;
}

.focus-ring:focus-visible {
  outline: 3px solid rgba(20, 184, 166, .45);
  outline-offset: 3px;
}

.mobile-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .22s ease;
}

.mobile-panel.is-open {
  max-height: 28rem;
}

.score-bar {
  width: var(--score);
}

.portrait-frame {
  background:
    linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.candidate-number {
  display: inline-grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 4px solid #dc2626;
  border-radius: 9999px;
  background: #fff;
  color: #020617;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .18);
}

.timeline-line::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.1rem;
  bottom: 1.1rem;
  width: 2px;
  background: #ccfbf1;
}

@media (min-width: 768px) {
  .timeline-line::before {
    left: 50%;
  }
}
