:root {
  --site-bg: #191c1f;
  --site-surface: #202428;
  --site-ink: #e6e9e8;
  --site-muted: #a4afaf;
  --site-line: #384147;
  --site-accent: #a1c393;
  --site-button: #a1c393;
  --site-on-button: #1b2d17;
}
:root[data-theme='light'] {
  --site-bg: #f5f7f5;
  --site-surface: #fff;
  --site-ink: #1b1b1b;
  --site-muted: #5f6861;
  --site-line: #cbd3cc;
  --site-accent: #286d31;
  --site-button: #81c784;
  --site-on-button: #0b1f10;
}
.public-page { margin: 0; color: var(--site-ink); background: var(--site-bg); }
.site-header, .site-footer { box-sizing: border-box; width: min(1180px, calc(100% - 32px)); margin: auto; display: flex; align-items: center; gap: 20px; padding: 20px 0; }
.site-header { justify-content: space-between; border-bottom: 1px solid var(--site-line); }
.site-header nav { display: flex; align-items: center; gap: 16px; }
.site-header a, .site-footer a { color: var(--site-accent); text-underline-offset: 4px; }
.site-header .site-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--site-ink); font-size: 20px; font-weight: 700; text-decoration: none; }
.site-brand img { width: 36px; height: 36px; }
.site-brand span { color: var(--site-accent); font-weight: 400; }
.site-header .site-button { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 6px; background: var(--site-button); color: var(--site-on-button); font-weight: 650; text-decoration: none; }
.site-header a:focus-visible, .site-footer a:focus-visible { outline: 2px solid var(--site-accent); outline-offset: 4px; }
.site-footer { flex-wrap: wrap; margin-top: 24px; border-top: 1px solid var(--site-line); color: var(--site-muted); font-size: 14px; }
.site-footer > span { margin-right: auto; }
.site-footer a, .site-header nav > a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 540px) {
  .site-header { gap: 8px; }
  .site-header .site-brand { gap: 6px; font-size: 16px; }
  .site-brand span { display: none; }
  .site-brand img { width: 28px; height: 28px; }
  .site-header nav { gap: 10px; font-size: 13px; }
  .site-header .site-button { padding: 8px 10px; }
  .site-footer { gap: 8px 16px; }
}
