:root {
  --bg: #ffffff;
  --text: #202124;
  --muted: #5f6368;
  --line: #e6e6e6;
  --panel: #fafafa;
  --link: #1967d2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

.site {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 72px;
}

.hero {
  text-align: center;
  padding: 28px 0 18px;
}

.kicker {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

h1 {
  margin: 0;
  font-size: clamp(2.3rem, 6vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.subtitle {
  width: min(760px, 100%);
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.authors {
  width: min(980px, 100%);
  margin: 18px auto 0 !important;
  color: var(--text) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem !important;
  line-height: 1.65 !important;
  text-align: center;
}

.affiliations {
  width: min(980px, 100%);
  margin: 12px auto 0 !important;
  color: var(--text) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.98rem !important;
  line-height: 1.6 !important;
  text-align: center;
}

.hero-links {
  width: min(980px, 100%);
  margin: 14px auto 0 !important;
  color: var(--muted) !important;
  font-size: 1rem !important;
  line-height: 1.7 !important;
  text-align: center;
}

.hero-links a {
  color: var(--link);
  text-decoration: none;
  font-weight: 600;
}

.hero-links span {
  margin: 0 8px;
  color: var(--muted);
}

.link-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--link);
  text-decoration: none;
  font-weight: 600;
}

.section {
  margin-top: 44px;
}

.section h2 {
  margin: 0 0 14px;
  font-size: 1.9rem;
  text-align: center;
}

.section p {
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.8;
}

.media {
  margin: 0;
}

.media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.caption {
  margin-top: 12px !important;
  text-align: center;
  font-size: 0.96rem !important;
}

.grid {
  display: grid;
  gap: 16px;
}

.stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.usage {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stack {
  display: grid;
  gap: 16px;
}

.card,
.code-block {
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  min-width: 0;
}

.card strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 8px;
}

.card span {
  color: var(--muted);
  line-height: 1.5;
}

.code-block h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.snippet {
  position: relative;
  width: 100%;
  min-width: 0;
}

.copy-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

pre {
  overflow-x: auto;
  overflow-y: hidden;
  margin: 0;
  padding: 42px 16px 16px;
  background: #f5f5f5;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #222;
  font-size: 0.92rem;
  line-height: 1.58;
  width: 100%;
  max-width: 100%;
  white-space: pre;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  display: block;
  width: max-content;
  min-width: 100%;
}

@media (max-width: 800px) {
  .stats,
  .usage {
    grid-template-columns: 1fr;
  }

  .site {
    width: min(100% - 20px, 980px);
  }
}
