<nav><a href="/">Home</a> <a href="/counter">Counter</a> <a href="/hello">Hello</a></nav>
<main>
<slot />
</main>
<style global>
:root { color-scheme: light dark; font-family: system-ui, sans-serif; line-height: 1.5; }
body { max-width: 40rem; margin: 2rem auto; padding: 0 1rem; }
nav { display: flex; gap: 1rem; margin-bottom: 2rem; }
button { font: inherit; padding: 0.25rem 0.75rem; border-radius: 6px; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; }
button:disabled { opacity: 0.4; cursor: default; }
</style>