/* Shared standalone-page presentation; the main homepage is the reference. */
:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --surface-soft: #f1f5ef;
  --text: #1f2d25;
  --text-strong: #2f3e36;
  --muted: #5c6d62;
  --border: #d9dfd2;
  --primary: #2f3e36;
}

.site-page {
  --page-radius: 24px;
  --page-item-radius: 16px;
  --page-space: clamp(24px, 4vw, 44px);
  --primary-soft: #506457;
  --shadow-light: rgba(47, 62, 54, 0.08);
  display: block;
  padding: 0;
  background: linear-gradient(180deg, #fbfaf7 0%, var(--bg) 100%);
}

.site-page .site-shell { padding-bottom: 48px; }
.site-page .site-header .eyebrow { margin: 0; }
.site-page .site-header .brand-title { margin: 0; }
.site-page .site-header .brand-mark { padding: 0; border: 0; box-shadow: none; background: transparent; }

.site-page .panel,
.site-page .card {
  border: 1px solid var(--border);
  border-radius: var(--page-radius);
  padding: var(--page-space);
  background: var(--surface);
  box-shadow: 0 12px 36px var(--shadow-light);
}

.site-page h1 {
  color: var(--text-strong, var(--text));
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.site-local-navigation { margin: 0 0 18px; }
.site-local-navigation .top-links {
  align-items: center;
  justify-content: flex-start;
  gap: 4px 16px;
  font-size: 0.85rem;
}
.site-local-navigation .top-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--muted);
  font-weight: 600;
}

.site-page .badge,
.site-page .pill,
.site-page .language-toggle {
  border-color: var(--border);
  color: var(--muted);
  background: var(--surface-soft);
}

.site-page article a,
.site-page .language-toggle a,
.site-page .footer a:hover,
.site-page .social-links a:hover,
.site-page .social-links a:focus-visible,
.site-local-navigation a:hover,
.site-local-navigation a:focus-visible { color: var(--link, var(--primary)); }

.site-page--legal .panel > * { max-width: 760px; margin-inline: auto; }
.site-page--legal article { line-height: 1.75; overflow-wrap: anywhere; }
.site-page--legal article h2 { line-height: 1.35; }
.site-page--legal article h3 { line-height: 1.45; }
.site-page--legal article code { color: var(--text); background: var(--surface-soft); }

.site-page--auth .panel,
.site-page--invite .panel,
.site-page--share .panel,
.site-page .card { width: 100%; max-width: 760px; margin-inline: auto; }
.site-page--share .panel { margin-top: 32px; }
.site-page--share .logo,
.site-page--error .logo { display: none; }
.site-page--share .footer,
.site-page--auth .footer,
.site-page--invite .footer { max-width: 760px; margin-inline: auto; }
.site-page--error .card { margin-block: 40px; }
.site-page--error .button-secondary { color: var(--link, var(--primary)); background: var(--surface-soft); }

:root[data-theme="dark"] .site-page {
  --shadow-light: rgba(0, 0, 0, 0.4);
  --primary-soft: #607764;
}

@media (max-width: 760px) {
  .site-local-navigation .top-links { justify-content: flex-start; gap: 2px 14px; }
  .site-page .panel,
  .site-page .card { padding: 24px 20px; }
  .site-page--share .panel,
  .site-page--error .card { margin-top: 20px; }
}
