/* Bunny — light, minimal stylesheet */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --text: #1a1a2e;
  --text-light: #555;
  --bg: #fff;
  --bg-alt: #f7f8fa;
  --border: #e2e4e8;
  --accent: #4a6fa5;
  --accent-hover: #3a5a8a;
  --radius: 6px;
  --max-width: 960px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* --- Nav --- */

nav {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

nav .nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav .brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}

nav .brand img {
  width: 28px;
  height: 28px;
}

nav .nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

nav .nav-links a {
  color: var(--text-light);
  font-size: 0.95rem;
}
nav .nav-links a:hover {
  color: var(--accent);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}

/* --- Main content --- */

main {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
}

/* --- Hero --- */

.hero {
  text-align: center;
  padding: 3rem 0 2rem;
}

.hero img {
  width: 96px;
  height: 96px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero .tagline {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.hero .cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.15s;
}
.hero .cta:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

/* --- Feature grid --- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  padding: 2rem 0;
}

.feature {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.feature h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.feature p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* --- Section headings --- */

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* --- Extensions list --- */

.extensions-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.extension-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.extension-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.extension-card .meta {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.extension-card p {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.extension-card .tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.8rem;
  background: var(--border);
  color: var(--text-light);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
}

.empty-message {
  color: var(--text-light);
  font-style: italic;
  padding: 2rem 0;
}

/* --- Docs --- */

.docs h2 {
  font-size: 1.3rem;
  margin: 2rem 0 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border);
}

.docs h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.4rem;
}

.docs p {
  margin-bottom: 0.75rem;
}

.docs ul,
.docs ol {
  margin: 0.5rem 0 0.75rem 1.5rem;
}

.docs li {
  margin-bottom: 0.3rem;
}

.docs pre {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  overflow-x: auto;
  margin: 0.5rem 0 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.docs code {
  font-family: "SF Mono", "Menlo", "Monaco", "Courier New", monospace;
  font-size: 0.9em;
}

.docs p code,
.docs li code {
  background: var(--bg-alt);
  padding: 0.1em 0.35em;
  border-radius: 3px;
  border: 1px solid var(--border);
}

/* --- Download / Help --- */

.info-section {
  margin-bottom: 2rem;
}

.info-section h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.info-section p,
.info-section ul {
  margin-bottom: 0.75rem;
}

.info-section ul {
  margin-left: 1.5rem;
}

.info-section li {
  margin-bottom: 0.3rem;
}

/* --- FAQ --- */

.faq dt {
  font-weight: 600;
  margin: 1.25rem 0 0.25rem;
}

.faq dd {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

/* --- Footer --- */

footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  margin-top: auto;
}

footer .footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  font-size: 0.85rem;
  color: var(--text-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer a {
  color: var(--text-light);
}
footer a:hover {
  color: var(--accent);
}

/* --- Responsive --- */

@media (max-width: 640px) {
  .nav-toggle {
    display: block;
  }

  nav .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    gap: 0.75rem;
  }

  nav .nav-links.open {
    display: flex;
  }

  nav .nav-inner {
    position: relative;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero .tagline {
    font-size: 1rem;
  }

  footer .footer-inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
