:root {
  --bg: light-dark(#faf7f0, #17201c);
  --surface: light-dark(#fffdf8, #222c26);
  --text: light-dark(#212923, #f6f1e6);
  --muted: light-dark(#545d53, #c2c9bc);
  --purple: light-dark(#365c49, #bad5b6);
  --line: light-dark(#d6d6c9, #455247);
}
body, .page-home .hero { background: var(--bg); color: var(--text); }
.site-header.scrolled { background: var(--bg); }
html[data-theme] .brand-symbol {
  --mark-size: 40px;
  width: var(--mark-size);
  height: var(--mark-size);
  flex: 0 0 var(--mark-size);
  overflow: hidden;
  background: #2c3932;
  border-radius: 10px;
}
html[data-theme] .brand-symbol img {
  position: static;
  width: 100%;
  height: 100%;
  object-fit: contain;
  translate: none;
  transform: rotate(-42deg) scale(1.18);
  filter: none;
}
@media (max-width: 760px) {
  html[data-theme] .brand-symbol { --mark-size: 35px; }
}
html .button.primary, html .button.primary:hover {
  background: var(--text); border-color: var(--text); color: var(--bg);
}
html .header-download, .page-home .hero-actions .button.text {
  background: var(--surface); border: 1px solid var(--muted); color: var(--text);
}
.page-home .hero-actions .button.text:hover { background: var(--line); }
.page-home .hero h1, .page-home .hero h1 span, .page-home .eyebrow,
.page-home .nav-link.active, html .header-download { color: var(--purple); }
.page-home .hero h1 { color: var(--text); }
.page-home .hero-glow, .page-home .hero-grid { display: none; }
.page-home .ambient-canvas { opacity: .09; }
.community-visual {
  width: 100%; height: clamp(360px, 38vw, 530px); position: relative;
  isolation: isolate;
}
.community-photo {
  display: block; width: 88%; height: 95%; object-fit: cover; object-position: 50% 55%;
  border-radius: 32% 5% 20% 4%; transform: rotate(-2deg);
}
.community-chat {
  position: absolute; right: 1%; bottom: 0; height: 72%; width: auto;
  border: 5px solid #343d35; border-radius: 20px; transform: rotate(4deg);
  box-shadow: 0 12px 32px #18221d40;
}
@media (max-width: 700px) {
  .community-visual { width: min(94%, 390px); height: 320px; margin: 24px auto; }
  .community-chat { border-width: 3px; border-radius: 14px; }
}
