:root {
  --bg: #f6f7fb;
  --panel: #ffffff;
  --ink: #2f3440;
  --muted: #5f6673;
  --accent: #81a1c1;
  --accent-soft: #c7d9ef;
  --accent-rose: #f4d7dc;
  --shadow: 0 8px 24px rgba(47, 52, 64, 0.08);
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Palatino", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  background: radial-gradient(110% 80% at 10% 20%, var(--accent-soft), transparent 50%),
              radial-gradient(90% 70% at 90% 0%, var(--accent-rose), transparent 55%),
              var(--bg);
  color: var(--ink);
  min-height: 100vh;
}

a { color: var(--accent); }

a:hover { color: #4f6a8c; }

.page {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 20px 64px;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #e2e5ec;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  max-width: 980px;
  margin: 0 auto;
  padding: 12px 20px;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  font-size: 15px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--ink);
}

.hero {
  padding: 56px 0 18px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 46px);
}

.hero p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid #d6deea;
  color: var(--ink);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.button.secondary {
  background: linear-gradient(120deg, #e8f0fb, #f8f4ff);
  color: #2f3440;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
  border: 1px solid #e6eaf0;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.card p {
  margin: 0 0 6px;
  color: var(--muted);
  line-height: 1.5;
}

.section-title {
  font-size: 22px;
  margin: 32px 0 12px;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list li {
  background: #fff;
  border: 1px solid #e6eaf0;
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}

.list strong { display: block; margin-bottom: 4px; }

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

.figure {
  margin: 20px 0 10px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid #e6eaf0;
}

.figure img {
  width: 100%;
  display: block;
  cursor: pointer;
  transition: filter 0.45s ease, transform 0.4s ease;
}

.figure img:hover { transform: scale(1.01); }

.figure img.is-monochrome {
  filter: contrast(112%) brightness(102%);
}

.figure figcaption {
  padding: 10px 12px;
  font-size: 14px;
  color: var(--muted);
  background: #f9fbff;
}

.graph-card {
  background: var(--panel);
  border: 1px solid #e6eaf0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 14px 6px;
}

.graph-shell {
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(129, 161, 193, 0.14), rgba(114, 182, 170, 0.12));
  border: 1px solid #d4deeb;
  height: 380px;
  overflow: hidden;
}

#graph svg {
  display: block;
  width: 100%;
  height: 100%;
}

.graph-node circle {
  cursor: grab;
}

.graph-node circle.is-dragging {
  cursor: grabbing;
}

.graph-node text {
  user-select: none;
  pointer-events: none;
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.poster-card {
  margin: 0;
  background: #fff;
  border: 1px solid #e6eaf0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.poster-card img,
.poster-media {
  width: 100%;
  display: block;
}

.poster-card figcaption {
  padding: 10px 12px;
  font-size: 14px;
  color: var(--muted);
  background: #f9fbff;
}

footer {
  margin-top: 38px;
  padding: 18px 0 10px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 640px) {
  .navbar__inner {
    align-items: flex-start;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
  }

  .nav-links a {
    padding: 7px 9px;
  }
}

.repo-meta {
  font-size: 14px;
  color: var(--muted);
}

.repo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px !important;
  font-size: 15px;
}

.repo-links a {
  text-decoration: none;
  border-bottom: 1px solid var(--accent-soft);
}

.repo-links a:hover {
  border-bottom-color: #4f6a8c;
}

.list li p {
  line-height: 1.55;
  margin: 0 0 10px;
}

.list li p:last-child {
  margin-bottom: 0;
}

.list li code {
  font-size: 0.92em;
  background: #f2f5fa;
  border: 1px solid #e2e8f2;
  border-radius: 4px;
  padding: 1px 4px;
}

.card h3 a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-soft);
}

.card h3 a:hover {
  color: #4f6a8c;
  border-bottom-color: #4f6a8c;
}

.list strong { margin-bottom: 8px; }

.release-card {
  display: grid;
  grid-template-columns: minmax(0, 280px) 1fr;
  gap: 22px;
  align-items: center;
  background: var(--panel);
  border: 1px solid #e6eaf0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.release-globe {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.release-card video,
.release-card img {
  display: block;
  width: 100%;
}

.release-card strong {
  display: block;
  margin-bottom: 8px;
}

.release-card p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.55;
}

.subsection-title {
  font-size: 18px;
  margin: 28px 0 12px;
}

@media (max-width: 640px) {
  .release-card { grid-template-columns: 1fr; }
}

.page section > p {
  line-height: 1.6;
  margin: 0 0 12px;
}
