:root {
  --bg-top: #fdf9f2;
  --bg-bottom: #f3ecdf;
  --surface: rgba(255, 253, 248, 0.84);
  --surface-solid: #fffdf8;
  --surface-muted: rgba(247, 241, 230, 0.92);
  --ink: #1f2733;
  --ink-soft: #546072;
  --line: #d7cfbf;
  --line-strong: #b8ab93;
  --accent: #1f2a44;
  --accent-hover: #111b33;
  --accent-soft: #b78b4f;
  --shadow-lg: 0 24px 60px rgba(31, 42, 68, 0.12);
  --shadow-md: 0 16px 32px rgba(31, 42, 68, 0.09);
  --shadow-sm: 0 10px 20px rgba(31, 42, 68, 0.06);
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 18px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Source Sans 3", sans-serif;
  line-height: 1.7;
  background:
    radial-gradient(circle at top, rgba(183, 139, 79, 0.16), transparent 32%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.page {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  padding: 52px 0 88px;
}

.hero,
.section {
  animation: fade-up 0.7s ease both;
}

.hero {
  padding: 48px 34px 38px;
  text-align: center;
  border: 1px solid rgba(215, 207, 191, 0.9);
  border-radius: var(--radius-xl);
  background: var(--surface);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
}

.section-eyebrow {
  margin: 0 0 10px;
  color: var(--accent-soft);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 4.9rem);
  line-height: 1.02;
}

.hero-subtitle {
  width: min(760px, 100%);
  margin: 18px auto 0;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

.hero-meta {
  margin-top: 24px;
}

.hero-author,
.hero-affiliation,
.hero-venue {
  margin: 0;
}

.hero-author {
  font-size: 1.16rem;
  font-weight: 700;
}

.hero-author a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.hero-author a:hover {
  color: var(--accent);
  border-color: currentColor;
}

.hero-affiliation,
.hero-venue {
  color: var(--ink-soft);
  font-size: 1rem;
}

.action-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.action-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 138px;
  padding: 13px 20px;
  border-radius: 18px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 26px rgba(31, 42, 68, 0.18);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    opacity 0.18s ease;
}

.action-pill:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(17, 27, 51, 0.2);
}

.action-pill.is-disabled {
  opacity: 0.64;
  cursor: default;
  box-shadow: none;
}

.action-pill.is-disabled:hover {
  background: var(--accent);
  transform: none;
}

.action-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

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

.section {
  margin-top: 72px;
}

.section-heading {
  width: min(760px, 100%);
  margin: 0 auto 24px;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.08;
}

.abstract-panel,
.feature-figure,
.media-card,
.result-card {
  border: 1px solid rgba(215, 207, 191, 0.95);
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
  box-shadow: var(--shadow-md);
}

.abstract-panel {
  padding: 30px 34px;
}

.abstract-panel p {
  margin: 0;
  font-size: 1.1rem;
}

.media-grid,
.results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.media-grid {
  width: min(980px, 100%);
  margin: 0 auto;
}

.results-grid {
  align-items: stretch;
}

.media-card,
.result-card {
  margin: 0;
  padding: 18px;
}

.media-card {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.media-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow-md);
  object-fit: cover;
}

.feature-figure {
  margin: 0;
  padding: 20px;
}

.feature-figure img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid rgba(215, 207, 191, 0.9);
  background: #fff;
}

.result-card img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(215, 207, 191, 0.9);
  background: #fff;
  object-fit: contain;
}

.result-card {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  padding: 14px;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 640px) {
  .page {
    width: calc(100% - 24px);
    padding-top: 24px;
    padding-bottom: 72px;
  }

  .hero {
    padding: 32px 18px 22px;
    border-radius: 26px;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .action-row {
    gap: 10px;
  }

  .action-pill {
    width: 100%;
  }

  .media-card,
  .result-card,
  .feature-figure,
  .abstract-panel {
    border-radius: 22px;
  }

  .abstract-panel,
  .media-card,
  .result-card,
  .feature-figure {
    padding: 16px;
  }

  .abstract-panel p {
    font-size: 1rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero,
  .section,
  .action-pill {
    animation: none;
    transition: none;
  }
}
