:root {
  --bg: #222629;
  --bg-raised: #2a2f33;   /* panels */
  --bg-inset: #1d2124;    /* page accents / code-ish areas */
  --fg: #e8e8e6;
  --fg-soft: #b8bab8;
  --dim: #6b6e70;
  --grey: #474b4f;
  --grey-light: #6b6e70;
  --accent: #86c232;
  --accent-dark: #61892f;
  --border: #383d41;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- masthead ---------- */
header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 2.2rem 0 1.2rem;
  border-bottom: 2px solid var(--accent-dark);
}
.site-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.site-name:hover { text-decoration: none; color: var(--accent); }

nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
nav a { color: var(--fg-soft); }
nav a:hover { color: var(--accent); }
nav a i { font-size: 1rem; vertical-align: -1px; }

/* ---------- intro ---------- */
.intro { padding: 3.2rem 0 2.8rem; }
.intro h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.25;
  margin-bottom: 1rem;
}
.intro em { color: var(--accent); font-style: italic; }
.intro p {
  color: var(--fg-soft);
  font-size: 0.95rem;
}

/* ---------- sections ---------- */
section { padding: 1.8rem 0 2.4rem; }

.section-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}
.section-title i { color: var(--accent); font-size: 0.85rem; }

/* ---------- frameworks ---------- */
.framework-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.framework {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-dark);
  padding: 1.3rem 1.5rem;
  transition: border-left-color .2s;
}
.framework:hover { border-left-color: var(--accent); }
.framework.muted { opacity: 0.75; }

.framework-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}
.framework h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.1rem;
}
.abbr {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--bg-inset);
  border: 1px solid var(--border);
  padding: 0.15rem 0.45rem;
  vertical-align: 2px;
  margin-left: 0.4rem;
}
.status {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-soft);
  white-space: nowrap;
}
.status.dim { color: var(--dim); }
.dots-green { color: var(--accent); font-size: 0.5rem; vertical-align: 2px; margin-right: 0.3rem; }
.framework p { color: var(--fg-soft); font-size: 0.9rem; }

/* ---------- progress ---------- */
.progress { margin-top: 1rem; }
.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dim);
  margin-bottom: 0.3rem;
}
.progress-value { color: var(--accent); font-weight: 500; }
.progress-track {
  height: 4px;
  background: var(--bg-inset);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
}

/* ---------- software ---------- */
.software {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-dark);
  padding: 1.3rem 1.5rem;
}
.software:hover { border-left-color: var(--accent); }
.software-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}
.software h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.1rem;
}
.software h3 i { color: var(--accent); font-size: 0.9rem; margin-right: 0.4rem; }
.software p { color: var(--fg-soft); font-size: 0.9rem; }
.software-links {
  margin-top: 1rem;
  display: flex;
  gap: 1.4rem;
  font-size: 0.8rem;
  font-weight: 400;
}
.software-links a { color: var(--fg-soft); }
.software-links a:hover { color: var(--accent); text-decoration: none; }
.software-links i { color: var(--accent); margin-right: 0.3rem; }

/* software cards reuse .framework; links inside */
.framework .software-links {
  margin-top: 1rem;
  display: flex;
  gap: 1.2rem;
  font-size: 0.8rem;
  font-weight: 400;
}
.framework .software-links a { color: var(--fg-soft); }
.framework .software-links a:hover { color: var(--accent); text-decoration: none; }
.framework .software-links i { color: var(--accent); margin-right: 0.3rem; }
.framework h3 i { color: var(--accent); font-size: 0.9rem; margin-right: 0.4rem; }

/* ---------- papers ---------- */
.paper {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0.2rem;
  border-bottom: 1px solid var(--border);
}
.paper:hover { background: rgba(134, 194, 50, 0.03); }
.paper-icon {
  color: var(--accent-dark);
  font-size: 1.1rem;
  margin-top: 0.35rem;
}
.paper:hover .paper-icon { color: var(--accent); }
.paper-main { flex: 1; min-width: 240px; }
.paper-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.02rem;
  margin-bottom: 0.1rem;
}
.paper-title a { color: var(--fg); }
.paper-title a:hover { color: var(--accent); text-decoration: none; }
.paper-meta {
  color: var(--dim);
  font-size: 0.78rem;
}
.paper-links {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin-top: 0.2rem;
}
.paper-links a {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--fg-soft);
  border: 1px solid var(--border);
  padding: 0.2rem 0.55rem;
  white-space: nowrap;
  transition: all .15s;
}
.paper-links a:hover {
  color: var(--accent);
  border-color: var(--accent-dark);
  text-decoration: none;
}
.arxiv-id { color: var(--dim); font-weight: 400; }

/* ---------- footer ---------- */
footer {
  padding: 1.6rem 0 2.4rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--dim);
  font-size: 0.78rem;
}

/* ---------- responsive ---------- */
@media (max-width: 680px) {
  .framework-grid { grid-template-columns: 1fr; }
  .paper { flex-wrap: wrap; }
  .paper-links { width: 100%; justify-content: flex-start; }
}
