/* Layout and type inspired by https://visibletouch.github.io/ */

:root {
  --text: #1d1f23;
  --muted: #5c6370;
  --faint: #8a919c;
  --link: #111111;
  --border: #e5e7eb;
  --soft: #f7f8fa;
  --accent: #111111;
  --accent-dark: #333333;
  --accent-darkest: #111111;
  --accent-tint: #f3f4f6;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06), 0 2px 8px rgba(16, 24, 40, 0.06);
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 12px 32px rgba(16, 24, 40, 0.1);
  --heading: "Google Sans", "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Google Sans Code", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --content: 1000px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: #fff;
  color: var(--text);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Navigation ---------- */

.top-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1120px, calc(100% - 40px));
  height: 56px;
  margin: 0 auto;
}

.nav-brand {
  color: var(--accent);
  font: 700 18px/1 var(--heading);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-brand:hover {
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--muted);
  font: 500 14.5px/1 var(--heading);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.nav-links a:hover {
  background: var(--soft);
  color: var(--text);
  text-decoration: none;
}

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

.hero {
  padding: 76px 0 44px;
  text-align: center;
}

.hero-inner {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
}

.venue-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin: 0 0 24px;
  padding: 9px 22px;
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  background: linear-gradient(90deg, #eef2ff 0%, #f5f3ff 50%, #fdf2f8 100%);
  color: #4338ca;
  font: 600 14px/1.3 var(--heading);
  letter-spacing: 0.02em;
  box-shadow: 0 1px 2px rgba(67, 56, 202, 0.08), 0 4px 14px rgba(124, 58, 237, 0.12);
}

.venue-badge .venue-sep {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #db2777);
  flex: none;
}

.venue-badge .venue-link {
  color: #be185d;
  text-decoration: underline;
  text-decoration-color: rgba(190, 24, 93, 0.35);
  text-underline-offset: 3px;
}

.venue-badge .venue-link:hover {
  color: #9d174d;
  text-decoration-color: currentColor;
}

h1 {
  margin: 0 0 26px;
  font-family: var(--heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.title-accent {
  display: inline-block;
  padding-bottom: 0.08em;
  color: var(--accent);
  font-size: clamp(46px, 7.5vw, 80px);
}

.title-sub {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: clamp(22px, 3.4vw, 36px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 22px;
  max-width: 900px;
  margin: 0 auto 8px;
  color: #2b2f36;
  font: 500 18px/1.5 var(--heading);
}

.affiliation {
  margin: 0;
  color: var(--muted);
  font: 400 16.5px/1.5 var(--heading);
}

/* ---------- Layout ---------- */

.page {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
  padding: 8px 0 96px;
}

figure {
  margin: 0;
}

.teaser-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.tldr {
  max-width: 840px;
  margin: 22px auto 0;
  color: #3a3f47;
  font-size: 17px;
  line-height: 1.65;
  text-align: center;
}

.tldr strong {
  display: inline-block;
  margin-right: 8px;
  padding: 0 7px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
  font: 600 12px/1.7 var(--heading);
  letter-spacing: 0.06em;
  vertical-align: 2px;
}

section {
  margin: 88px 0 0;
}

h2 {
  margin: 0 0 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  font: 600 30px/1.2 var(--heading);
  letter-spacing: -0.02em;
}
}

h3 {
  margin: 40px 0 14px;
  font: 600 22px/1.35 var(--heading);
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 16px;
  overflow-wrap: break-word;
}

.section-lead {
  color: #3a3f47;
}

.centered {
  text-align: center;
}

.muted {
  color: var(--faint);
}

.caption {
  max-width: 880px;
  margin: 14px auto 36px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

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

.abstract-card {
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--accent);
}

.abstract-card p {
  margin: 0;
  text-align: justify;
  hyphens: auto;
}

/* ---------- Videos ---------- */

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.video-grid video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  background: #000;
}

/* ---------- Figures & tables ---------- */

ul {
  margin: 8px 0 20px;
  padding-left: 22px;
}

li {
  margin: 6px 0;
}

.figure {
  margin: 32px 0 8px;
}

.figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.figure-narrow {
  max-width: 620px;
  margin-right: auto;
  margin-left: auto;
}

figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.fig-label {
  color: var(--text);
  font-weight: 600;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  white-space: nowrap;
}

th {
  border-bottom: 2px solid var(--accent);
  font: 600 14px/1.4 var(--heading);
}

th:first-child,
td:first-child {
  text-align: left;
}

td:last-child,
th:last-child {
  font-weight: 600;
}

.table-compact th,
.table-compact td {
  text-align: left;
}

.table-compact td:last-child {
  font-weight: inherit;
  white-space: normal;
}

.video-frame {
  position: relative;
}

.speed-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font: 600 12px/1.6 var(--heading);
  letter-spacing: 0.04em;
  pointer-events: none;
}

.video-grid figcaption {
  margin-top: 8px;
  font: 500 14px/1.4 var(--heading);
}

/* ---------- Placeholders (remove once real media is in) ---------- */

.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 1px dashed #c9cdd3;
  border-radius: 6px;
  background: var(--soft);
  color: var(--faint);
  font: 500 15px/1.4 var(--heading);
}

.placeholder-video {
  aspect-ratio: 16 / 9;
}

.placeholder-figure {
  aspect-ratio: 2 / 1;
}


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

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .nav-inner {
    width: calc(100% - 16px);
  }

  .nav-brand {
    display: none;
  }

  .nav-links a {
    padding: 7px 10px;
    font-size: 13.5px;
  }

  .hero {
    padding: 48px 0 30px;
  }

  .authors {
    font-size: 16px;
  }

  .page {
    width: calc(100% - 32px);
  }

  section {
    margin-top: 64px;
  }

  h2 {
    font-size: 27px;
  }

  .abstract-card {
    padding: 20px;
  }

  .abstract-card p {
    text-align: left;
  }

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