:root {
  --text: #1e293b;
  --muted: #64748b;
  --blue: #2563eb;
  --border: #e2e8f0;
  --background: #f6f7f9;
  --card: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  color: var(--text);
  background: var(--background);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  min-width: 320px;
  margin: 0;
}

a {
  color: inherit;
}

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

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 1rem;
}

.wordmark {
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.header-link {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.header-link:hover {
  color: var(--blue);
}

.page-heading {
  padding: 4.5rem 0 2.5rem;
}

.page-heading > p:first-child {
  margin: 0 0 0.65rem;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-heading h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.intro {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.paper-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  padding-bottom: 5rem;
}

.paper-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
}

.thumbnail {
  display: grid;
  height: 215px;
  overflow: hidden;
  place-items: center;
  border-bottom: 1px solid var(--border);
  background: #eef0f3;
}

.thumbnail img {
  width: 100%;
  height: 100%;
}

.thumbnail--photo img {
  object-fit: cover;
}

.thumbnail--figure img {
  padding: 0.9rem;
  object-fit: contain;
}

.paper-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.35rem;
}

.venue {
  margin: 0 0 0.7rem;
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.paper-content h2 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.paper-content h2 a {
  text-decoration: none;
}

.paper-content h2 a:hover {
  color: var(--blue);
}

.full-title {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
}

.authors {
  margin: 1rem 0 1.4rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.paper-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
}

.paper-links a {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.paper-links a:hover {
  color: var(--blue);
}

.paper-links .project-link {
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  color: #fff;
  background: var(--text);
}

.paper-links .project-link:hover {
  color: #fff;
  background: var(--blue);
}

.site-footer {
  padding: 1.6rem 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  background: var(--card);
  font-size: 0.75rem;
}

a:focus-visible {
  outline: 3px solid #93b4fa;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .paper-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .container {
    width: min(1120px, calc(100% - 28px));
  }

  .page-heading {
    padding: 3.25rem 0 2rem;
  }

  .paper-grid {
    grid-template-columns: 1fr;
    padding-bottom: 3.5rem;
  }

  .thumbnail {
    height: 220px;
  }
}
