/* OpenVLSI docs theme — brand palette borrowed from xmake-docs (VitePress).
   xmake-docs uses --vp-c-brand-1 #4acf93, --vp-c-brand-2 #42d392,
   --vp-c-brand-3 #42b883, 300px sidebar, 8px rounded buttons. */

:root {
  --openvlsi-brand-1: #4acf93;
  --openvlsi-brand-2: #42d392;
  --openvlsi-brand-3: #42b883;
  --openvlsi-brand-soft: #e6f6ee;
}

/* Hero block on the index page (mirrors the xmake-docs home hero). */
.openvlsi-hero {
  padding: 3rem 0 1.5rem;
}

.openvlsi-logo {
  width: 160px;
  height: 160px;
  margin-bottom: 1rem;
}

.openvlsi-hero-name {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: -webkit-linear-gradient(120deg, #42d392 30%, #41d1ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.openvlsi-hero-text {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 0.25rem;
}

.openvlsi-hero-tagline {
  font-size: 1.05rem;
  color: var(--color-foreground-muted);
  margin-top: 0.5rem;
}

.openvlsi-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.openvlsi-hero-actions a {
  display: inline-block;
  padding: 0.55rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}

.openvlsi-hero-actions a.openvlsi-btn-brand {
  background: var(--openvlsi-brand-3);
  color: #fff;
}

.openvlsi-hero-actions a.openvlsi-btn-brand:hover {
  background: var(--openvlsi-brand-2);
  color: #000;
}

.openvlsi-hero-actions a.openvlsi-btn-alt {
  border-color: var(--color-background-border);
  color: inherit;
}

/* Feature cards (mirrors the xmake-docs home features grid). */
.openvlsi-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 2rem 0;
}

.openvlsi-feature {
  border: 1px solid var(--color-background-border);
  border-radius: 12px;
  padding: 20px;
  background: var(--color-background-secondary);
}

.openvlsi-feature .openvlsi-feature-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Sidebar width parity with xmake-docs (300px). */
@media (min-width: 82em) {
  .sidebar-drawer {
    width: 300px;
  }
}
