*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Font scale: 5 tiers */
  --fs-lg: 2.0rem;
  --fs-ml: 1.5;
  --fs-md: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.8125rem;

  /* Colors */
  --bg: #fdfcfa;
  --bg-card: #ffffff;
  --bg-highlight: #efede8;
  --text-primary: #000;
  --text-secondary: #4d4d4d;
  --accent: #fa541c;
  --accent-hover: #db2b00;
  --gold: #ffc00a;
  --gold-bg: rgba(255, 192, 10, 0.15);
  --border: #dbd9d5;
  --border-light: #efede8;

  /* Radii */
  --radius: 24px;
  --radius-inner: 16px;
  --radius-btn: 8px;

  /* Font */
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-size: var(--fs-md);
  color: var(--text-primary);
  background-color: var(--bg);
  line-height: 1.7;
  word-break: break-word;
  padding: 30px 16px 48px;
}

.card {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px;
  border-radius: var(--radius);
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
}

/* ---- Hero ---- */

.hero {
  text-align: center;
  padding-bottom: 24px;
}

.hero__title {
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.hero__authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0 1.5rem;
  font-size: var(--fs-ml);
  font-weight: 400;
  margin-bottom: 8px;
  line-height: 1.7;
}

.hero__authors a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-size: var(--fs-ml);
  transition: color 0.2s;
}

.hero__authors a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.hero__affiliation {
  font-size: var(--fs-ml);
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 4px;
}

/* ---- Resource Links ---- */

.resources {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.resources__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 20px;
  font-family: var(--font);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #fff;
  background: #000;
  border: none;
  border-radius: var(--radius-btn);
  text-decoration: none;
  line-height: 24px;
  transition: background-color 0.2s;
  min-height: 36px;
}

.resources__link:hover {
  background-color: #333;
}

.resources__link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ---- Divider ---- */

hr {
  border: 0;
  border-top: 1px solid var(--border-light);
  margin: 24px 0;
}

/* ---- Section ---- */

.section {
  padding: 0;
}

.section__title {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section__text {
  font-size: var(--fs-md);
  color: var(--text-primary);
  line-height: 1.7;
}

/* ---- Abstract Callout ---- */

.abstract-callout {
  background: var(--gold-bg);
  border: 1px solid var(--gold);
  border-radius: var(--radius-inner);
  padding: 24px 32px;
}

.abstract-callout__title {
  color: var(--text-primary);
  font-size: var(--fs-md);
  font-weight: 600;
  line-height: 1.7;
  margin-bottom: 8px;
  text-align: center;
}

.abstract-callout__text {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  line-height: 1.7;
  text-align: justify;
}

/* ---- Highlight Block ---- */

.highlight-block {
  background: var(--bg-highlight);
  padding: 1rem;
  border-radius: var(--radius-inner);
}

.highlight-block p {
  margin: 0;
  font-size: var(--fs-md);
  line-height: 1.7;
  color: var(--text-primary);
}

/* ---- Citation Card ---- */

.citation {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-inner);
  padding: 16px;
}

.citation__text {
  font-size: var(--fs-md);
  color: var(--text-primary);
  line-height: 1.7;
}

.citation__text a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

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

/* ---- BibTeX Block ---- */

.bibtex-block {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-inner);
  padding: 16px;
}

.bibtex-block pre {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-all;
  margin: 0;
}

/* ---- Video ---- */

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: var(--bg-highlight);
  border-radius: var(--radius-inner);
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: var(--fs-sm);
}

/* ---- Acknowledgements ---- */

.ack-block {
  background: var(--bg);
  border: 1px solid var(--border-light);
  padding: 1rem;
  border-radius: var(--radius-inner);
}

.ack-block p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* ---- Responsive ---- */

@media (max-width: 640px) {
  body {
    padding: 16px 8px 32px;
  }

  .card {
    border-radius: var(--radius-inner);
    padding: 16px;
  }

  .hero__title {
    font-size: 1.25rem;
    line-height: 1.35;
  }

  .resources__link {
    padding: 6px 14px;
  }

  .abstract-callout {
    padding: 16px;
  }

  .citation {
    padding: 12px;
  }

  .bibtex-block {
    padding: 12px;
  }

  .bibtex-block pre {
    font-size: 0.6875rem;
  }
}
