:root {
  --bg: #ffffff;
  --ink: #2a2d31;
  --title-gray: #4a4f55;
  --muted: #555f68;
  --line: #d9dde2;
  --soft: #f6f7f8;
  --accent: #1d5f83;
  --blue: #2f6f98;
  --soft-red: #9f5f5c;
  --soft-blue: #4f7896;
  --brown-gold: #7d6333;
  --brown-red: #884d43;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.58;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

p,
h1,
h2,
h3,
figure {
  margin-top: 0;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
  padding: 16px 24px;
  font-size: 0.9rem;
}

.topbar div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.topbar div a {
  color: var(--muted);
}

.title-block {
  max-width: 780px;
  margin: 0 auto;
  padding: 38px 24px 42px;
  text-align: center;
}

.conference {
  margin-top: 14px;
  margin-bottom: 0;
  color: var(--blue);
  font-size: 1.28rem;
  font-weight: 750;
}

h1 {
  max-width: 720px;
  margin-right: auto;
  margin-bottom: 16px;
  margin-left: auto;
  color: var(--title-gray);
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 560;
  line-height: 1.3;
  letter-spacing: 0;
}

.title-soft-red {
  color: var(--soft-red);
  font-weight: 620;
}

.title-soft-blue {
  color: var(--soft-blue);
  font-weight: 620;
}

.title-brown-gold {
  color: var(--brown-gold);
  font-weight: 620;
}

.authors {
  max-width: 680px;
  margin-right: auto;
  margin-bottom: 0;
  margin-left: auto;
  color: var(--muted);
  font-size: 0.98rem;
}

.quest-highlight {
  color: var(--blue);
  font-weight: 750;
}

main {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px 56px;
}

.section {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.section.narrow {
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
}

.section:last-child {
  border-bottom: 0;
}

h2 {
  margin-bottom: 14px;
  color: var(--brown-red);
  font-size: clamp(1.22rem, 2vw, 1.55rem);
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
}

#abstract h2 {
  color: var(--brown-red);
}

#abstract p {
  hyphens: auto;
  text-align: justify;
  text-justify: inter-word;
}

h3 {
  margin-bottom: 7px;
  color: var(--brown-red);
  font-size: 0.98rem;
  font-weight: 650;
  text-align: center;
}

p {
  margin-bottom: 14px;
}

.section > p:last-child,
article p:last-child {
  margin-bottom: 0;
}

.contribution-list {
  margin: 0;
  padding-left: 22px;
}

.contribution-list li {
  margin-bottom: 10px;
}

.contribution-list li:last-child {
  margin-bottom: 0;
}

.text-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
  margin: 20px 0 18px;
}

.text-grid article {
  display: flex;
  flex-direction: column;
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(42, 45, 49, 0.08);
}

.text-grid h3 {
  margin-bottom: 10px;
  text-align: center;
}

.text-grid p {
  color: #202429;
  line-height: 1.62;
  hyphens: auto;
  text-align: justify;
  text-justify: inter-word;
}

.figure-block {
  margin-bottom: 22px;
}

.figure-block:last-child {
  margin-bottom: 0;
}

.figure-block img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: #fff;
}

.figure-block.wide {
  overflow-x: auto;
}

.figure-block.wide img {
  min-width: 900px;
}

figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 28px;
}

.video-card {
  width: min(100%, 560px);
  margin: 0;
}

.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background: #000;
  object-fit: cover;
}

pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: #f5f6f7;
}

code {
  color: #222;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.86rem;
  line-height: 1.5;
}

@media (max-width: 820px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .topbar div {
    justify-content: flex-start;
  }

  .text-grid {
    grid-template-columns: 1fr;
  }

  .figure-block.wide img {
    min-width: 760px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .topbar,
  .title-block,
  main {
    padding-right: 16px;
    padding-left: 16px;
  }

  .title-block {
    padding-top: 34px;
    padding-bottom: 34px;
    text-align: center;
  }

  h1 {
    font-size: 1.42rem;
  }

  .section {
    padding: 28px 0;
  }

  .figure-block.wide img {
    min-width: 680px;
  }
}
