:root {
  --bg: #fdfaf4;
  --text-main: #333;
  --text-secondary: #444;
  --text-muted: #555;
  --text-soft: #606060;
  --surface: #fff;
  --border: #ddd;

  --accent: #2196f3;
  --accent-hover: #0b7dda;
  --accent-red: #e74c3c;
  --accent-red-dark: #c0392b;

  --ui-neutral-1: #f0e8e7;
  --ui-neutral-2: #f5f5f5;
  --ui-neutral-3: #e8e8e8;
  --ui-neutral-4: #e0e0e0;
  --ui-neutral-5: #ccc;

  --container-max-width: 960px;
  --section-spacing: 60px;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Work Sans", "Open Sans", sans-serif;
  color: var(--text-main);
  line-height: 1.65;
  background-color: var(--bg);
}

a {
  color: var(--accent);
  transition: color 0.25s ease;
}

a:hover {
  color: var(--accent-hover);
}

.page {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 18px 20px 72px;
}

.section {
  margin-top: var(--section-spacing);
}

.hero {
  margin-top: 10px;
  text-align: center;
}

.hero-title {
  margin: 0 auto 14px;
  max-width: 90%;
  color: #222;
  font-family: "Varela Round", sans-serif;
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1.24;
}

.authors {
  margin: 0;
  color: var(--text-main);
  font-size: 1.1rem;
}

.authors a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.acceptance {
  margin: 24px 0 8px;
  color: #222;
  font-family: "Varela Round", sans-serif;
  font-size: 2rem;
}

.hero-links {
  display: flex;
  justify-content: center;
  gap: 34px;
  margin-top: 8px;
}

.icon-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
  text-decoration: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

.icon-link:hover {
  transform: translateY(-2px);
  color: #222;
}

.icon-link:hover .icon svg {
  animation: nudge 0.6s ease;
}

.icon-label {
  font-size: 1.85rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.icon-label-stacked {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  line-height: 1.05;
}

.icon {
  width: 56px;
  height: 56px;
}

.icon svg {
  width: 100%;
  height: 100%;
}

.section-title {
  margin: 24px 0 16px;
  color: #222;
  text-align: center;
  font-family: "Varela Round", sans-serif;
  font-size: 1.75rem;
  font-weight: 400;
}

.media-block {
  margin: 0;
}

.media-block img,
.media-block video {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

figcaption,
.section-caption {
  max-width: 900px;
  margin: 10px auto 0;
  color: var(--text-secondary);
  text-align: center;
  font-size: 1rem;
  line-height: 1.65;
}

.section-copy {
  max-width: 900px;
  margin: 18px auto 0;
  color: var(--text-secondary);
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.7;
}

.pulse-highlight {
  color: var(--accent-red);
  font-weight: 600;
  animation: pulse-glow 2.2s ease-in-out infinite;
}

.citation-card {
  max-width: 780px;
  margin: 0 auto;
  padding: 20px;
  background: var(--ui-neutral-1);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.citation-card .section-title {
  margin-top: 0;
  margin-bottom: 8px;
  text-align: left;
}

.citation-card .section-caption {
  margin: 0 0 14px;
  text-align: left;
}

pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  white-space: pre-wrap;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #1e1e1e;
}

code {
  color: #d4d4d4;
  font-family: "Fira Code", "Monaco", "Menlo", "Courier New", monospace;
  font-size: 0.95rem;
  line-height: 1.6;
}

@keyframes nudge {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(3px);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    color: var(--accent-red);
    text-shadow: 0 0 0 rgba(192, 57, 43, 0);
  }
  50% {
    color: var(--accent-red-dark);
    text-shadow: 0 0 8px rgba(192, 57, 43, 0.2);
  }
}

@media (max-width: 640px) {
  .page {
    max-width: 100%;
    padding: 14px 16px 34px;
  }

  .section {
    margin-top: 42px;
  }

  .hero-title {
    max-width: 100%;
    font-size: 1.58rem;
  }

  .authors {
    font-size: 1rem;
  }

  .acceptance {
    margin-top: 18px;
    font-size: 1.6rem;
  }

  .hero-links {
    gap: 18px;
    margin-top: 6px;
  }

  .icon {
    width: 44px;
    height: 44px;
  }

  .icon-label {
    font-size: 1.05rem;
    text-align: center;
  }

  .section-title {
    margin-bottom: 12px;
    font-size: 1.48rem;
  }

  .section-copy {
    font-size: 0.9rem;
  }

  .citation-card {
    padding: 14px;
    border-radius: var(--radius-xl);
  }

  code {
    font-size: 0.87rem;
  }
}
