.site-header { position: sticky; top: 0; z-index: 40; height: 65px; border-bottom: 1px solid var(--border); background: var(--background); transition: background-color .15s, border-color .15s; }
.site-header-inner { position: relative; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.site-wordmark { flex: none; font-family: "Saira Stencil One", sans-serif; font-size: 30px; font-weight: 400; line-height: 36px; letter-spacing: -.75px; color: var(--foreground); }
.desktop-navigation { position: absolute; left: 50%; top: 0; height: 64px; display: flex; align-items: center; gap: 32px; transform: translateX(-50%); }
.desktop-navigation a { white-space: nowrap; color: var(--muted-foreground); font-size: 14px; font-weight: 500; line-height: 20px; transition: color .15s; }
.desktop-navigation a:hover, .desktop-navigation a.is-current { color: var(--foreground); }
.header-actions { display: flex; flex: none; align-items: center; gap: 12px; }
.language-compact, .header-icon-button, .mobile-menu-button { border: 0; background: transparent; }
.language-compact { display: inline-flex; gap: 6px; align-items: center; padding: 6px 8px; border-radius: 6px; font-size: 14px; font-weight: 500; }
.language-compact:hover, .header-icon-button:hover { background: var(--muted); }
.header-icon-button { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 999px; color: var(--muted-foreground); }
.header-icon-button span, .header-icon-button svg { width: 20px; height: 20px; }
.header-github { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; color: var(--muted-foreground); font-size: 14px; font-weight: 500; transition: color .15s, background-color .15s; }
.header-github:hover { color: var(--foreground); background: var(--muted); }
.header-github svg, .mobile-drawer-github svg { width: 18px; height: 18px; fill: currentColor; }
.mobile-menu-button { position: relative; z-index: 71; display: none; width: 40px; height: 40px; padding: 10px; border-radius: 6px; }
.mobile-menu-button span { display: block; width: 20px; height: 2px; margin: 4px 0; border-radius: 2px; background: currentColor; transition: transform .25s, opacity .2s; }
.mobile-menu-button.is-active { background: var(--muted); }
.mobile-menu-button.is-active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-menu-button.is-active span:nth-child(2) { opacity: 0; }
.mobile-menu-button.is-active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.drawer-backdrop { position: fixed; inset: 65px 0 0; z-index: 60; background: rgba(23, 23, 23, .26); opacity: 0; backdrop-filter: blur(0); transition: opacity .3s, backdrop-filter .3s; }
.drawer-backdrop.is-open { opacity: 1; backdrop-filter: blur(5px); }
.mobile-drawer { position: fixed; z-index: 65; top: 65px; right: 0; bottom: 0; width: 256px; padding: 24px; border-left: 1px solid var(--border); background: var(--background); transform: translateX(100%); transition: transform .3s ease; }
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer-links { display: flex; flex-direction: column; gap: 2px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.mobile-drawer-links a { padding: 9px 0; color: var(--muted-foreground); font-size: 18px; line-height: 26px; }
.mobile-drawer-links a.is-current { color: var(--foreground); }
.mobile-drawer-github { display: flex; align-items: center; gap: 10px; padding: 22px 0; border-bottom: 1px solid var(--border); color: var(--muted-foreground); font-size: 17px; }
.mobile-language { padding-top: 24px; color: var(--muted-foreground); font-size: 14px; }
.mobile-language > span { display: block; margin-bottom: 14px; }
.mobile-language > div { display: inline-flex; padding: 4px; border-radius: 9px; background: color-mix(in oklch, var(--border) 58%, transparent); }
.mobile-language button { min-width: 48px; padding: 5px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--muted-foreground); }
.mobile-language button.is-active { background: var(--card); color: var(--primary); box-shadow: var(--shadow-sm); }

.site-footer { margin-top: auto; border-top: 1px solid var(--border); background: var(--card); }
.footer-main { display: flex; gap: 96px; padding: 64px 0 32px; }
.footer-brand { flex: 1; min-width: 0; }
.footer-brand-title { display: flex; align-items: center; gap: 8px; font-size: 20px; }
.footer-brand-title img { width: 32px; height: 32px; border-radius: 6px; }
.footer-brand p { max-width: 448px; margin: 16px 0 0; color: var(--muted-foreground); font-size: 14px; line-height: 20px; }
.footer-socials { display: flex; gap: 24px; margin-top: 40px; }
.footer-socials a { color: var(--muted-foreground); font-size: 18px; transition: color .15s; }
.footer-socials a:hover { color: var(--foreground); }
.footer-links { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.footer-links > div { display: flex; flex-direction: column; gap: 12px; }
.footer-links strong { margin-bottom: 4px; font-size: 16px; }
.footer-links a, .footer-links button { padding: 0; border: 0; background: transparent; color: var(--muted-foreground); font-size: 14px; line-height: 20px; text-align: left; transition: color .15s; }
.footer-links a:hover, .footer-links button:hover { color: var(--primary); }
.footer-bottom { display: flex; gap: 16px; padding: 32px 0; border-top: 1px solid var(--border); color: var(--muted-foreground); font-size: 14px; }
.footer-bottom span:last-child { opacity: .5; }

.modal-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .72); opacity: 0; transition: opacity .2s; }
.modal-backdrop.is-open { opacity: 1; }
.community-modal { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; padding: 24px; pointer-events: none; opacity: 0; transform: scale(.95); transition: opacity .2s, transform .2s; }
.community-modal.is-open { opacity: 1; transform: scale(1); }
.community-modal-panel { position: relative; width: min(448px, 100%); max-height: calc(100vh - 48px); overflow: hidden; border-radius: 16px; background: #fff; box-shadow: var(--shadow-xl); pointer-events: auto; }
.community-modal-panel img { width: 100%; height: auto; max-height: calc(100vh - 48px); object-fit: contain; }
.community-modal-close { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 2px solid color-mix(in srgb, var(--primary) 50%, white); border-radius: 8px; background: rgba(255,255,255,.86); color: #6b6b6b; }
.community-modal-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.site-header a:focus-visible, .site-header button:focus-visible, .site-footer a:focus-visible, .site-footer button:focus-visible, .community-modal-close:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

@media (max-width: 767px) {
  .desktop-navigation, .language-compact, .header-github { display: none; }
  .mobile-menu-button { display: block; }
  .site-wordmark { font-size: 30px; line-height: 36px; }
  .header-actions { gap: 4px; }
  .footer-main { flex-direction: column; gap: 32px; padding-top: 48px; }
  .footer-brand { margin-bottom: 8px; }
  .footer-links { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .footer-socials { margin-top: 28px; }
  .footer-bottom { flex-direction: column; gap: 4px; }
  .community-modal { padding: 0; }
  .community-modal-panel { width: 100%; border-radius: 16px; }
}
