/* Base */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 56px; }

body {
  background: #1c1917;
  color: #e7e5e4;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

/* Header — fixed, full width */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #292524;
  border-bottom: 1px solid #44403c;
}

.header-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 16px;
  color: #d4a843;
  text-decoration: none;
}

/* Nav */
.site-nav {
  display: flex;
  gap: 20px;
}

.site-nav a {
  color: #a8a29e;
  text-decoration: none;
  font-size: 13px;
}

.site-nav a:hover { color: #d4a843; }

/* Burger toggle — hidden on desktop */
.nav-toggle { display: none; }
.nav-toggle-label { display: none; }

/* Main content */
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 76px 24px 48px;
}

.section {
  margin-bottom: 48px;
}

.section h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px;
  font-weight: normal;
  color: #d4a843;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #44403c;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
  object-fit: contain;
}

/* Inline icons */
.icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  vertical-align: text-bottom;
}

/* Screenshots */
.screenshot {
  display: block;
  cursor: pointer;
  max-width: 100%;
  border-radius: 6px;
  border: 1px solid #44403c;
  margin: 16px 0;
}

.screenshot-figure {
  margin: 0;
}

.screenshot-figure figcaption {
  font-size: 12px;
  color: #78716c;
  text-align: center;
  margin-top: 6px;
}

.screenshots {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 16px 0;
}

.screenshots .screenshot-figure {
  flex: 1 1 300px;
}

.screenshots .screenshot {
  margin: 0;
  width: 100%;
}

.screenshots--mobile {
  justify-content: center;
}

.screenshots--mobile .screenshot-figure {
  flex: 0 1 180px;
}

.screenshot--mobile {
  max-width: 180px;
}

/* Callout box */
.callout {
  background: #292524;
  border: 1px solid #44403c;
  border-left: 3px solid #d4a843;
  border-radius: 4px;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 14px;
}

.callout strong { color: #d4a843; }
.callout a { color: #d4a843; }

/* Code blocks */
pre {
  background: #292524;
  border: 1px solid #44403c;
  border-radius: 4px;
  padding: 12px 16px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.5;
  color: #e7e5e4;
  margin: 12px 0;
}

code {
  font-family: 'SF Mono', 'Fira Code', 'Fira Mono', monospace;
  font-size: 0.9em;
}

p code, li code {
  background: #292524;
  padding: 2px 5px;
  border-radius: 3px;
}

/* Footer */
.site-footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 24px 32px;
  border-top: 1px solid #44403c;
  text-align: center;
  font-size: 13px;
}

.site-footer a {
  color: #a8a29e;
  text-decoration: none;
}

.site-footer a:hover { color: #d4a843; }

.site-footer .sep {
  margin: 0 8px;
  color: #44403c;
}

/* Sections content */
.section p { margin-bottom: 12px; }
.section ul, .section ol {
  margin: 12px 0;
  padding-left: 24px;
}
.section li { margin-bottom: 6px; }

.section h3 {
  font-size: 15px;
  font-weight: 600;
  color: #e7e5e4;
  margin: 20px 0 8px;
}

.section h3:first-of-type {
  margin-top: 16px;
}

.section .browser-heading {
  font-size: 17px;
  color: #d4a843;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #44403c;
}

/* Install links */
.install-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.install-btn {
  display: inline-block;
  background: #44403c;
  color: #d4a843;
  border: 1px solid #d4a843;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
}

.install-btn:hover {
  background: #d4a843;
  color: #1c1917;
}

/* Steps in migration */
.section ol {
  margin: 12px 0;
  padding-left: 24px;
}

.section ol li {
  margin-bottom: 8px;
}

/* Mobile */
@media (max-width: 640px) {
  .nav-toggle-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
  }
  .nav-toggle-label span {
    display: block;
    width: 20px;
    height: 2px;
    background: #a8a29e;
    transition: 0.2s;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    background: #292524;
    border-bottom: 1px solid #44403c;
    flex-direction: column;
    padding: 12px 24px;
    gap: 12px;
  }

  .nav-toggle:checked ~ .site-nav {
    display: flex;
  }

  main { padding-top: 68px; }
}
