:host { display: block; --paper: white; --ink: #111827; --muted: #4b5563; --surface: #f3f4f6; font: 16px/1.5 Arial, system-ui, sans-serif; color: var(--ink); background: var(--paper); }
:host-context(html.dark) { --paper: #111827; --ink: #fff; --muted: #d1d5db; --surface: #1f2937; }
* { box-sizing: border-box; }
nav { max-width: 1280px; margin: auto; display: flex; align-items: center; gap: 48px; padding: 16px 32px; min-height: 68px; }
a { color: var(--muted); text-decoration: none; }
a:hover, a[aria-current] { color: var(--ink); }
.brand { color: var(--ink); font-size: 24px; font-weight: 600; }
.links, .actions { display: flex; align-items: center; gap: 48px; font-size: 18px; }
.actions { margin-left: auto; gap: 24px; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 8px; }
button:hover, button[aria-pressed=true] { background: var(--surface); }
button:focus-visible, a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.theme { position: relative; }
.options { position: absolute; right: 0; top: 100%; width: 144px; border-radius: 6px; padding: 4px; background: var(--paper); box-shadow: 0 4px 16px #0003; }
.options button { display: block; width: 100%; text-align: left; }
.mobile, [hidden] { display: none; }
dialog { color: var(--ink); background: var(--paper); border: none; margin: 0 0 0 auto; width: min(100%, 384px); height: 100dvh; max-height: none; max-width: none; padding: 24px; }
dialog::backdrop { background: #0004; }
.menu-head { display: flex; align-items: center; justify-content: space-between; }
.menu-links { display: grid; gap: 12px; padding: 32px 0; font-size: 18px; }
footer { padding: 24px; text-align: center; font-size: 14px; color: var(--muted); }
@media(max-width: 1023px) { nav { padding: 16px; min-height: 64px; justify-content: space-between; } .links,.actions { display: none; } .mobile { display: inline-flex; } }
