@font-face {
  font-family: "Inter";
  src: url("/assets/GrgcKwrN6d3Uz8EwcLHZxwEfC4.woff2") format("woff2");
  font-display: block;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/d3tHnaQIAeqiE5hGcRw4mmgWYU.woff2") format("woff2");
  font-display: block;
  font-style: normal;
  font-weight: 500;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/1ZFS7N918ojhhd0nQWdj3jz4w.woff2") format("woff2");
  font-display: block;
  font-style: normal;
  font-weight: 600;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/DXD0Q7LSl7HEvDzucnyLnGBHM.woff2") format("woff2");
  font-display: block;
  font-style: normal;
  font-weight: 700;
}

:root {
  --text: #1f1f1f;
  --muted: #737378;
  --faint: #9a9aa1;
  --background: #ffffff;
  --border: #eeeeee;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  font-size: 12px;
}

img {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
figure {
  margin: 0;
}

main {
  width: 100%;
}

.site-shell {
  align-items: center;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  max-width: 1200px;
  min-height: 100vh;
  overflow: hidden;
  width: 100%;
}

.site-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  max-width: 1152px;
  padding: 20px 20px 0;
  width: 100%;
}

.site-logo {
  display: block;
  flex: 0 0 auto;
  height: 40px;
  overflow: hidden;
  width: 40px;
}

.site-logo img {
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.site-nav {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 20px;
  justify-content: center;
}

.site-nav a,
.text-label,
.project-title {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 16px;
}

.site-nav a {
  transition: color 0.3s cubic-bezier(0.44, 0, 0.56, 1);
}

.site-nav a:hover {
  color: var(--muted);
}

.text-muted {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 17px;
}

.site-footer {
  align-items: center;
  color: var(--faint);
  display: flex;
  font-size: 12px;
  font-weight: 600;
  justify-content: space-between;
  line-height: 14px;
  max-width: 1152px;
  padding: 0 20px 120px;
  width: 100%;
}

.footer-left {
  align-items: center;
  display: flex;
  gap: 8px;
}

.site-footer a {
  color: var(--faint);
  transition: color 0.3s cubic-bezier(0.44, 0, 0.56, 1);
}

.site-footer a:hover {
  color: var(--text);
}

.home-hero {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 200px 20px 20px;
  width: 100%;
}

.home-info {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 300px;
  width: 100%;
}

.home-grid {
  display: grid;
  gap: 12px;
  grid-auto-rows: minmax(0, 1fr);
  grid-template-columns: repeat(5, minmax(50px, 1fr));
  justify-content: center;
  padding: 0 20px 120px;
  width: 100%;
}

.project-card {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  width: 100%;
}

.project-card img {
  height: auto;
  max-width: 100%;
  user-select: none;
  width: 100%;
}

.page-hero {
  align-items: flex-start;
  display: flex;
  gap: 20px;
  padding: 200px 20px 80px;
  width: 100%;
}

.page-hero-main,
.page-hero-copy {
  flex: 1 0 0;
  min-width: 0;
}

.page-hero-copy {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-hero-copy .text-muted {
  max-width: 450px;
}

.image-strip {
  display: flex;
  gap: 40px;
  padding: 20px;
  width: 100%;
}

.research-cover {
  aspect-ratio: 1.78462;
  flex: 1 0 0;
  height: 650px;
  min-width: 0;
  overflow: hidden;
}

.research-cover img,
.research-secondary img {
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.research-content {
  align-items: flex-start;
  display: flex;
  gap: 20px;
  padding: 20px 20px 80px;
  width: 100%;
}

.research-column {
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  gap: 16px;
  list-style: none;
  margin: 0;
  min-height: 16px;
  min-width: 0;
  padding: 0;
}

.research-images {
  align-items: center;
  display: flex;
  gap: 20px;
  padding: 20px 20px 200px;
  width: 100%;
}

.research-spacer,
.research-secondary {
  aspect-ratio: 0.823529;
  flex: 1 0 0;
  height: 692px;
  min-width: 0;
  overflow: hidden;
}

.paper-link {
  align-items: flex-start;
  color: inherit;
  display: flex;
  gap: 20px;
  padding: 200px 20px 20px;
  width: 100%;
}

.paper-copy {
  align-items: flex-start;
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  gap: 40px;
  min-width: 0;
  position: sticky;
  top: 20px;
}

.paper-card {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 400px;
  width: 100%;
}

.paper-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.paper-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.paper-title {
  width: 360px;
}

.paper-abstract {
  max-height: none;
  overflow: auto;
  white-space: pre-wrap;
  width: 100%;
}

.paper-visual {
  align-items: center;
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.paper-visual img {
  height: auto;
  max-height: 100%;
  max-width: 100%;
  user-select: none;
  width: auto;
}

.paper-bottom-space {
  display: flex;
  gap: 10px;
  padding: 0 20px 200px;
  width: 100%;
}

.hc-board {
  padding: 0 0 120px;
  width: 100%;
}

.hc-tabs {
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
  padding: 16px 0;
}

.hc-tab-list {
  display: flex;
  gap: 16px;
}

.hc-tab {
  border-bottom: 2px solid transparent;
  color: var(--faint);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  padding-bottom: 8px;
}

.hc-tab.active {
  border-bottom-color: var(--text);
  color: var(--text);
}

#hc-composer {
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  display: none;
  margin-bottom: 16px;
  padding: 16px;
}

#post-input {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  color: var(--text);
  font: 14px/20px "Inter", Arial, sans-serif;
  min-height: 80px;
  outline: none;
  padding: 10px;
  resize: vertical;
  width: 100%;
}

#post-input:focus {
  border-color: var(--text);
}

.composer-actions {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.composer-actions span {
  color: var(--faint);
  font-size: 12px;
}

.composer-buttons {
  display: flex;
  gap: 8px;
}

.composer-buttons button {
  border-radius: 6px;
  cursor: pointer;
  font-family: "Inter", Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 16px;
}

#post-cancel {
  background: #fff;
  border: 1px solid #e0e0e0;
  color: var(--muted);
}

#post-cancel:hover {
  background: #f5f5f5;
}

#post-submit {
  background: var(--text);
  border: 0;
  color: #fff;
  font-weight: 600;
  padding-left: 20px;
  padding-right: 20px;
}

#post-submit:hover {
  opacity: 0.85;
}

#post-submit:disabled {
  cursor: default;
  opacity: 0.4;
}

.hc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.hc-item {
  align-items: flex-start;
  border-bottom: 1px solid #f4f4f4;
  display: flex;
  gap: 10px;
  padding: 14px 0;
  width: 100%;
}

.hc-item:last-child {
  border-bottom: 0;
}

.hc-rank {
  color: var(--faint);
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 500;
  min-width: 20px;
  padding-top: 2px;
  text-align: right;
}

.hc-content {
  flex: 1;
  min-width: 0;
}

.hc-title-row {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.hc-title {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.hc-title:hover {
  text-decoration: underline;
}

.hc-source {
  color: var(--faint);
  font-size: 12px;
  font-weight: 400;
}

.hc-meta {
  align-items: center;
  color: var(--faint);
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 10px;
  margin-top: 5px;
}

.hc-reply-count {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-weight: 500;
  gap: 4px;
}

.hc-reply-count .count {
  color: var(--text);
  font-weight: 600;
}

.hc-toggle {
  background: none;
  border: 0;
  color: var(--faint);
  cursor: pointer;
  font-family: "Inter", Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 2px 0;
}

.hc-toggle:hover {
  color: var(--text);
}

.hc-replies {
  display: none;
  margin-top: 8px;
}

.hc-replies.open {
  display: block;
}

.hc-reply {
  background: #fafafa;
  border-left: 3px solid #e0e0e0;
  border-radius: 8px;
  display: flex;
  gap: 10px;
  margin-top: 6px;
  padding: 10px 12px;
}

.hc-reply-avatar {
  align-items: center;
  background: var(--text);
  border-radius: 50%;
  color: #fff;
  display: flex;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.hc-reply-body {
  flex: 1;
  min-width: 0;
}

.hc-reply-agent {
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.hc-reply-agent .stance {
  color: var(--faint);
  font-size: 11px;
  font-weight: 400;
  margin-left: 4px;
}

.hc-reply-text {
  color: #3a3a3a;
  font-size: 13px;
  line-height: 1.5;
  margin-top: 3px;
}

.hc-reply-time {
  color: #b0b0b0;
  font-size: 11px;
  margin-top: 4px;
}

@media (min-width: 810px) and (max-width: 1199.98px) {
  .site-shell {
    max-width: 810px;
  }

  .home-grid {
    grid-template-columns: repeat(4, minmax(50px, 1fr));
    padding-bottom: 80px;
  }

  .page-hero {
    padding-bottom: 40px;
  }

  .research-cover {
    aspect-ratio: 1.71111;
    height: 450px;
  }

  .research-images {
    padding-bottom: 80px;
  }

  .research-spacer,
  .research-secondary {
    aspect-ratio: 0.824445;
    height: 455px;
  }

  .paper-card {
    max-width: 350px;
  }

  .paper-bottom-space {
    padding-bottom: 80px;
  }
}

@media (max-width: 809.98px) {
  .site-shell {
    max-width: 390px;
  }

  .home-hero {
    padding-bottom: 40px;
  }

  .home-grid {
    grid-template-columns: repeat(2, minmax(50px, 1fr));
    padding-bottom: 60px;
  }

  .page-hero {
    flex-direction: column;
    gap: 8px;
    padding: 200px 20px 40px;
  }

  .page-hero-main,
  .page-hero-copy {
    flex: none;
    width: 100%;
  }

  .research-cover {
    aspect-ratio: 0.7;
    height: 500px;
  }

  .research-content {
    flex-direction: column;
    padding: 40px 20px;
  }

  .research-column {
    flex: none;
    width: 100%;
  }

  .research-images {
    flex-direction: column;
    padding-bottom: 80px;
  }

  .research-spacer {
    display: none;
  }

  .research-secondary {
    aspect-ratio: 0.833333;
    flex: none;
    height: 420px;
    width: 100%;
  }

  .paper-link {
    flex-direction: column;
    gap: 40px;
  }

  .paper-copy {
    flex: none;
    position: relative;
    top: auto;
    width: 100%;
  }

  .paper-card {
    max-width: none;
  }

  .paper-title {
    width: 100%;
  }

  .paper-visual {
    flex: none;
    width: 100%;
  }

  .paper-bottom-space {
    padding-bottom: 40px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 80px;
  }

  .composer-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}
