html { scroll-padding-top: 64px; }
body { padding-top: 48px; padding-bottom: 0; min-height: 100vh; display: flex; flex-direction: column; }
body > header.site-header, body > footer.site-footer {
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(8, 20, 37, .96);
  backdrop-filter: blur(16px);
  color: #d8e3fb;
  font-family: "Segoe UI", sans-serif;
}
body > header.site-header { position: fixed; top: 0; height: 48px; border-bottom: 1px solid rgba(220,198,110,.25); }
body > footer.site-footer { position: relative; margin-top: auto; border-top: 1px solid rgba(220,198,110,.25); }
.shell-inner { width: min(1152px,calc(100% - 32px)); margin: 0 auto; }
.site-header .shell-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 100%; }
.shell-brand { display: flex; flex-shrink: 0; align-items: center; gap: 8px; color: #dcc66e; text-decoration: none; font: 600 16px/1.2 Georgia,serif; letter-spacing: .03em; }
.shell-brand img { width: 28px; height: 28px; object-fit: contain; }
.site-header .shell-nav { padding: 6px 2px; gap: 20px; }
.site-header.has-menu-toggle .shell-inner { position: relative; flex-direction: row; align-items: center; justify-content: space-between; }
.shell-menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; border: 1px solid rgba(220,198,110,.35); border-radius: 8px; background: transparent; color: #dcc66e; cursor: pointer; }
.shell-menu-toggle span { display: block; width: 100%; height: 2px; background: currentColor; }
.shell-menu-toggle:hover { background: rgba(220,198,110,.1); }
.shell-menu-toggle:focus-visible { outline: 2px solid #dcc66e; outline-offset: 2px; }
.site-header.has-menu-toggle .shell-nav { position: absolute; top: calc(100% + 8px); right: 0; display: flex; flex-direction: column; gap: 0; width: min(240px, calc(100vw - 32px)); padding: 8px; border: 1px solid rgba(220,198,110,.3); border-radius: 12px; background: #081425; box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.site-header.has-menu-toggle .shell-nav[hidden] { display: none; }
.site-header.has-menu-toggle .shell-nav a { padding: 12px 16px; border-radius: 6px; }
.site-header.has-menu-toggle .shell-nav a:hover { background: rgba(220,198,110,.1); }
.shell-nav { display: flex; gap: 24px; overflow-x: auto; white-space: nowrap; padding: 6px 2px 10px; scrollbar-width: thin; }
.shell-nav a { flex: 0 0 auto; color: #c6c6cd; text-decoration: none; font-size: 13px; line-height: 20px; }
.shell-nav a:hover, .shell-nav a[aria-current="page"] { color: #ffe8a8; }
.shell-nav a:focus-visible, .shell-brand:focus-visible { outline: 2px solid #dcc66e; outline-offset: 2px; }
.site-footer .shell-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "copyright navigation" "copyright contact"; align-items: center; gap: 2px 32px; padding: 8px 0; }
.site-footer .shell-nav { grid-area: navigation; justify-content: flex-end; flex-wrap: wrap; gap: 2px 20px; overflow: visible; padding: 0; white-space: normal; }
.site-footer .shell-nav a { padding: 2px 0; font-size: 12px; line-height: 16px; }
.shell-copyright { grid-area: copyright; color: #8e9bb0; font-size: 11px; line-height: 1.4; }
.shell-contact { grid-area: contact; justify-self: end; color: #8e9bb0; font-size: 12px; line-height: 16px; overflow-wrap: anywhere; }
.shell-contact a { color: #dcc66e; text-decoration: underline; text-underline-offset: 3px; }
.shell-contact a:hover { color: #ffe8a8; }
.shell-contact a:focus-visible { outline: 2px solid #dcc66e; outline-offset: 2px; }
body > main, body > main.page { padding-top: 32px; padding-bottom: 40px; }
body > main.home-main { padding-top: 18px; }
.home-intro { margin-bottom: 22px; text-align: center; }
.home-intro h1 { margin: 0; font-size: clamp(1.65rem, 4vw, 2.5rem); line-height: 1.35; }
.home-intro p { max-width: 600px; margin: 10px auto 0; font-size: .95rem; line-height: 1.7; }
.skip-link:focus { position: fixed; z-index: 100; }
#debug-panel { bottom: 16px; }
@media (max-width: 640px) {
  html { scroll-padding-top: 64px; }
  body { padding-top: 48px; }
  body > header.site-header { height: 48px; }
  .site-header .shell-inner { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; }
  .site-header .shell-nav { width: 100%; gap: 22px; }
  .shell-brand { font-size: 14px; }
  .shell-brand img { width: 24px; height: 24px; }
  .shell-nav { gap: 18px; }
  .shell-nav a { font-size: 12px; }
  .site-footer .shell-inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "navigation" "contact" "copyright"; gap: 4px; padding: 8px 0; text-align: center; }
  .site-footer .shell-nav { justify-content: center; gap: 2px 16px; }
  .shell-contact { justify-self: center; }
  .shell-copyright { padding-top: 4px; border-top: 1px solid rgba(220,198,110,.12); }
  body > main.home-main { padding-top: 12px; }
  .home-intro { margin-bottom: 12px; }
  .home-intro h1 { font-size: 22px; line-height: 1.35; }
  .home-intro p { margin-top: 6px; font-size: 13px; line-height: 1.5; }
}
