:root {
  --panel: rgba(255, 255, 255, 0.82);
  --text: #1f2328;
  --accent: #0969da;
  --muted: #57606a;
  --line: rgba(31, 35, 40, 0.08);
}

html,
body {
  height: 100%;
}

body {
  background:
    radial-gradient(circle at top left, rgba(9, 105, 218, 0.08), transparent 28%),
    radial-gradient(circle at bottom right, rgba(47, 129, 247, 0.09), transparent 30%),
    linear-gradient(135deg, #f6f8fa 0%, #eef2f6 100%);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
}

.home-link {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  font-family: Arial, sans-serif;
  font-size: 14px;
  left: 20px;
  padding: 10px 16px;
  position: fixed;
  text-decoration: none;
  top: 20px;
  z-index: 20;
}

.home-link:hover,
.home-link:focus {
  opacity: 0.85;
}

.reveal {
  font-size: 34px;
}

.reveal .slides {
  text-align: left;
}

.reveal section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(48, 37, 25, 0.12);
  padding: 2.5rem !important;
}

.reveal .hero {
  text-align: center;
}

.reveal .hero-compact {
  display: flex !important;
  flex-direction: column;
  gap: 0.85rem;
  justify-content: center;
  text-align: left;
  width: 100%;
}

.reveal .hero-compact h1 {
  font-size: 1.45em;
  line-height: 1.08;
  margin-bottom: 0.15em;
  max-width: none;
  width: 100%;
}

.reveal .hero-compact .lead {
  font-size: 0.68em;
  margin: 0;
  max-width: 42em;
  width: 100%;
}

.reveal .year-overview {
  text-align: center;
}

.reveal .publication-slide,
.reveal .detail-slide,
.reveal .summary-slide {
  display: flex !important;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  width: 100%;
}

.reveal h1,
.reveal h2 {
  color: var(--text);
  font-family: "Palatino Linotype", Palatino, serif;
  letter-spacing: -0.03em;
  text-transform: none;
}

.reveal h1 {
  font-size: 2.3em;
  margin-bottom: 0.35em;
}

.reveal h2 {
  font-size: 1.35em;
  margin-bottom: 0.45em;
  max-width: none;
  width: 100%;
}

.reveal p,
.reveal li {
  color: var(--muted);
  line-height: 1.45;
}

.reveal ul {
  display: block;
  margin-left: 1.2em;
}

.eyebrow {
  color: var(--accent) !important;
  font-size: 0.45em;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 1.2rem !important;
  text-transform: uppercase;
}

.lead {
  font-size: 0.8em;
  margin: 0 auto;
  max-width: 20em;
}

.meta-line {
  font-size: 0.72em;
  margin: 0 !important;
  max-width: 100%;
  width: 100%;
}

.publication-count {
  color: var(--accent) !important;
  font-size: 0.52em;
  letter-spacing: 0.08em;
  margin-top: 0.6rem !important;
  text-transform: uppercase;
}

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

.detail-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 20px;
  min-height: 160px;
  padding: 1.1rem 1.2rem;
}

.detail-card p {
  font-size: 0.66em;
  margin: 0 !important;
}

.detail-label {
  color: var(--accent);
  display: inline-block;
  font-size: 0.42em;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.summary-copy {
  font-size: 0.72em;
  margin: 0 !important;
  max-width: 100%;
  width: 100%;
}

.link-line {
  margin-top: 0.8rem !important;
}

.link-line a {
  border-bottom: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.68em;
  text-decoration: none;
}

.link-line a:hover,
.link-line a:focus {
  opacity: 0.8;
}

.reveal .progress {
  color: var(--accent);
}

.reveal .controls {
  color: var(--accent);
}

@media (max-width: 900px) {
  .home-link {
    font-size: 12px;
    left: 12px;
    padding: 8px 12px;
    top: 12px;
  }

  .reveal {
    font-size: 26px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-card {
    min-height: 0;
  }
}
