@layer shell {
  .site-header { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 100px; padding: 18px max(32px, calc((100vw - 1240px) / 2)); border-bottom: 1px solid var(--border-subtle); }
  .brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; white-space: nowrap; }
  .brand-mark { flex: none; width: 56px; height: 56px; }
  .brand-lockup { display: flex; flex-direction: column; gap: 5px; }
  .brand-name { font-size: 2rem; line-height: 1; font-weight: 650; letter-spacing: -.06em; }
  .brand-sage { font-weight: 400; }
  .brand-tagline { font-size: .56rem; line-height: 1.4; font-weight: 600; text-transform: uppercase; letter-spacing: .13em; color: var(--text-secondary); }
  .desktop-nav, .header-actions, .site-footer nav { display: flex; align-items: center; gap: 22px; }
  .desktop-nav a, .site-footer a, .credit-link { text-decoration: none; font-size: .83rem; }
  .desktop-nav a:hover, .site-footer a:hover { text-decoration: underline; }
  .header-actions { gap: 10px; flex-shrink: 0; } .credit-link { white-space: nowrap; }
  .header-actions > .icon-button, .mobile-menu summary { min-width: 44px; min-height: 44px; flex-shrink: 0; }
  .header-actions > .button { white-space: nowrap; }
  .mobile-menu { display: none; }
  .skip-link { position: absolute; top: -100px; left: 16px; background: var(--surface-raised); padding: 16px; z-index: 100; }
  .skip-link:focus { top: 10px; }
  .site-footer { border-top: 1px solid var(--border-subtle); padding: 28px max(32px, calc((100vw - 1240px) / 2)); display: flex; justify-content: space-between; gap: 24px; align-items: center; font-size: .8rem; color: var(--text-secondary); }
  .site-footer .brand-mark { width: 44px; height: 44px; }
  .site-footer .brand-name { color: var(--text-primary); font-size: 1.6rem; }
  .site-footer .brand-tagline { font-size: .47rem; }
  @media (max-width: 1050px) { .desktop-nav { gap: 12px; } .credit-link { display: none; } }
  @media (max-width: 960px) { .site-header { padding: 16px; gap: 8px; min-height: 88px; } .desktop-nav { display: none; } .mobile-menu { display: block; padding: 0; border: 0; } .mobile-menu summary { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; list-style: none; } .mobile-menu summary::-webkit-details-marker { display: none; } .mobile-menu nav { position: absolute; top: calc(100% - 1px); left: 16px; right: 16px; display: grid; padding: 18px; z-index: 30; border: 1px solid var(--border-subtle); background: var(--surface-raised); border-radius: 10px; box-shadow: var(--shadow); max-height: 70vh; overflow-y: auto; } .mobile-menu nav a { padding: 12px; text-decoration: none; } .site-footer { padding: 28px 16px calc(28px + env(safe-area-inset-bottom)); flex-wrap: wrap; } .header-actions { gap: 0; } }
  @media (max-width: 480px) {
    .site-header { flex-wrap: wrap; }
    .header-actions { margin-left: auto; }
    .site-header .brand { gap: 9px; }
    .site-header .brand-mark { width: 44px; height: 44px; }
    .site-header .brand-name { font-size: 1.5rem; }
    .site-header .brand-tagline { font-size: .42rem; letter-spacing: .1em; }
    .header-actions .button { padding-inline: 10px; font-size: .8rem; }
    .header-actions > .button .icon { display: none; }
  }
  @media (max-width: 360px) {
    .site-header { padding-inline: 12px; }
    .site-header .brand-mark { width: 34px; height: 34px; }
    .site-header .brand-name { font-size: 1.25rem; }
    .site-header .brand-tagline { font-size: .35rem; }
  }
  @media print { .site-header, .site-footer, .skip-link { display: none; } .page-wrap { width: 100%; padding: 0; } }
}
