/* Shared Chops docs theme */

:root {
  --bg: #0c0a09;
  --surface: #161311;
  --text: #f5f0e8;
  --muted: #9a9188;
  --accent: #d4a82a;
  --line: rgba(255, 255, 255, 0.07);
  --page-pad: clamp(20px, 5vw, 32px);
  --content-max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

.site .bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 50% at 50% -10%, rgba(180, 130, 50, 0.12), transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(90, 60, 30, 0.08), transparent 60%),
    var(--bg);
}

/* Top bar */

.site .topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 12px var(--page-pad);
  padding-top: max(12px, env(safe-area-inset-top));
  background: rgba(12, 10, 9, 0.82);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}

.site .topbar-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site .logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.site .logo:hover {
  text-decoration: none;
  opacity: 0.9;
}

.site .logo img {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 0;
}

.site .topbar-links {
  display: flex;
  gap: 20px;
}

.site .topbar-links a {
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.15s;
}

.site .topbar-links a:hover,
.site .topbar-links a.is-active {
  color: var(--text);
  text-decoration: none;
}

/* Footer */

.site .site-footer {
  position: relative;
  z-index: 1;
  padding: 28px var(--page-pad);
  padding-bottom: max(28px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.site .site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site .site-footer a:hover {
  color: var(--text);
}

/* Inner pages (support, privacy) */

.site .page-main {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 64px) var(--page-pad) clamp(64px, 10vw, 96px);
}

.site .page-title {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.site .page-intro {
  margin: 0 0 40px;
  color: var(--muted);
  font-size: 1rem;
}

.site .page-section + .page-section {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.site .page-section h2 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.site .page-section p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.site .page-section p:last-child {
  margin-bottom: 0;
}

.site .page-section ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.site .page-section li {
  margin: 8px 0;
}

.site .page-section a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site .page-section a:hover {
  color: var(--accent);
}

@media (max-width: 380px) {
  .site .topbar-links {
    gap: 14px;
  }
}