:root {
  color-scheme: light;
  --bg: #f8fafc;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --line: rgba(148, 163, 184, 0.24);
  --text: #0f172a;
  --muted: #475569;
  --soft: #64748b;
  --accent: #2563eb;
  --accent-2: #06b6d4;
  --accent-3: #22c55e;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.10);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.18), transparent 26%),
    linear-gradient(180deg, #eff6ff 0%, #f8fafc 35%, #ffffff 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  padding: 0.15rem 0.45rem;
  border-radius: 0.55rem;
  background: rgba(148, 163, 184, 0.12);
  font-size: 0.92em;
}

.shell {
  position: relative;
  overflow: hidden;
}

.shell::before,
.shell::after {
  content: "";
  position: absolute;
  inset: auto;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.38;
  pointer-events: none;
}

.shell::before {
  top: -8rem;
  left: -10rem;
  background: rgba(37, 99, 235, 0.24);
}

.shell::after {
  top: 12rem;
  right: -12rem;
  background: rgba(34, 197, 94, 0.14);
}

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 0.9rem;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a {
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.7);
}

.hero,
.page-main {
  padding: 3rem 0 5rem;
}

.hero-grid,
.page-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: stretch;
}

.hero-copy,
.hero-card,
.feature,
.page-hero-copy,
.list-panel,
.person-card,
.empty-state {
  backdrop-filter: blur(20px);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-copy,
.page-hero-copy {
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 4rem);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(37, 99, 235, 0.14);
  color: #1d4ed8;
  font-size: 0.9rem;
  font-weight: 600;
}

h1 {
  margin: 1.25rem 0 1rem;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

h2 {
  margin: 0.9rem 0 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

h3 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.hero-copy p,
.page-hero-copy p {
  max-width: 40rem;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.25rem;
  padding: 0 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.28);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(148, 163, 184, 0.24);
}

.hero-card,
.list-panel {
  border-radius: var(--radius-xl);
  padding: 1.3rem;
}

.hero-card {
  display: grid;
  gap: 1rem;
}

.card-top,
.person-header,
.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.chip,
.meta-pill {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  font-size: 0.82rem;
  font-weight: 700;
}

.preview {
  padding: 1.1rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.88));
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.date-label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--soft);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.date-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

select, input[type="date"] {
  flex: 1;
  width: 100%;
  min-height: 3.25rem;
  padding: 0 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: white;
  color: var(--text);
  font-size: 1rem;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

select:focus, input[type="date"]:focus {
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.hint {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.feature {
  border-radius: var(--radius-lg);
  padding: 1.15rem;
}

.feature strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.feature p,
.person-headline,
.empty-state p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.96rem;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.stat {
  min-width: 9rem;
  padding: 0.95rem 1rem;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.stat strong {
  display: block;
  font-size: 1.15rem;
  letter-spacing: -0.04em;
}

.stat span,
.person-meta span {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-content {
  margin-top: 1.5rem;
  padding: 1.2rem 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.list-panel {
  margin-top: 1.5rem;
}

.person-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.person-card {
  border-radius: var(--radius-lg);
  padding: 1.4rem;
}

.event-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.person-headline {
  margin-top: 0.5rem;
}

.person-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.person-meta span {
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.person-content {
  margin-top: 1rem;
  color: var(--muted);
  line-height: 1.75;
}

.person-content > :first-child {
  margin-top: 0;
}

.person-content > :last-child {
  margin-bottom: 0;
}

.empty-state {
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 1.5rem;
}

.person-card-inner {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.person-avatar {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  width: 9rem;
  height: 9rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: white;
}

.person-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.person-info {
  flex: 1;
  min-width: 0;
}

@media (max-width: 920px) {
  .hero-grid,
  .page-hero,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .nav,
  .card-top,
  .section-heading,
  .person-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .hero,
  .page-main {
    padding-top: 1rem;
    padding-bottom: 3rem;
  }

  .date-row,
  .cta-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .person-card-inner {
    flex-direction: column;
  }

  .person-avatar {
    width: 100%;
    height: 240px;
    border-radius: var(--radius-lg);
    width: 9rem;
    height: 9rem;
  }
}
.page-hero-single {
  grid-template-columns: 1fr;
}

.quiz-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.quiz-card,
.quiz-panel {
  border-radius: var(--radius-lg);
  padding: clamp(1.2rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.quiz-card h2,
.quiz-panel h2 {
  margin-top: 1rem;
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
}

.quiz-card p,
.quiz-result p,
.quiz-hint-box {
  color: var(--muted);
  line-height: 1.7;
}

.quiz-card .btn {
  margin-top: 1.4rem;
}

.quiz-page {
  max-width: 860px;
  margin-inline: auto;
}

.quiz-panel {
  margin-top: 1.5rem;
  box-shadow: var(--shadow);
}

.quiz-options {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.quiz-btn {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  min-height: 4rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: white;
  color: var(--text);
  font: inherit;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.quiz-btn:hover:not(:disabled),
.quiz-btn:focus-visible {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
  outline: none;
}

.quiz-option-index {
  display: grid;
  place-items: center;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.08);
}

.quiz-btn.is-correct {
  border-color: rgba(34, 197, 94, 0.65);
  background: rgba(34, 197, 94, 0.1);
  color: #166534;
}

.quiz-btn.is-incorrect {
  border-color: rgba(239, 68, 68, 0.65);
  background: rgba(239, 68, 68, 0.08);
  color: #991b1b;
}

.quiz-btn.is-muted {
  opacity: 0.48;
}

.quiz-hint {
  margin-top: 1.25rem;
}

.quiz-hint-toggle {
  padding: 0;
  border: 0;
  background: transparent;
  color: #1d4ed8;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.quiz-hint-box {
  margin-top: 0.75rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(202, 138, 4, 0.22);
  background: rgba(254, 252, 232, 0.9);
}

.quiz-result {
  margin-top: 1.5rem;
  padding: 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.quiz-result h3 {
  margin-bottom: 0.45rem;
}

.quiz-result p {
  margin: 0;
}

.quiz-result.is-correct {
  border-color: rgba(34, 197, 94, 0.32);
  background: rgba(34, 197, 94, 0.08);
}

.quiz-result.is-incorrect {
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.07);
}

@media (max-width: 640px) {
  .quiz-grid {
    grid-template-columns: 1fr;
  }
}
