:root {
  color-scheme: light;
  --primary: #b9defa;
  --secondary: #f0f8ff;
  --highlight: #18689b;
  --text: #000;
  --on-highlight: #fff;
  font-family: ui-rounded, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--secondary);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
.app { min-height: 100vh; min-height: 100dvh; }
.app-header { background: var(--primary); padding-top: env(safe-area-inset-top); }
.header-inner { max-width: 960px; margin: auto; padding: 24px clamp(20px, 5vw, 40px); }
.wordmark { font-size: 1.55rem; font-weight: 800; letter-spacing: -.065em; }
.wordmark-dot { color: var(--highlight); }
main { max-width: 960px; margin: auto; padding: 32px clamp(20px, 5vw, 40px) calc(116px + env(safe-area-inset-bottom)); }
main:focus { outline: none; }
h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.3rem); letter-spacing: -.045em; line-height: 1.2; font-weight: 750; }
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background: var(--primary); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid rgb(24 104 155 / 12%); }
.nav-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 680px; margin: auto; padding: 10px 8px 12px; gap: 4px; }
.nav-item { display: flex; min-height: 58px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: var(--text); text-decoration: none; font-size: .875rem; line-height: 1.3; font-weight: 550; }
.nav-icon { display: grid; place-items: center; width: 56px; height: 32px; border-radius: 16px; transition: background-color 160ms ease, color 160ms ease; }
.nav-icon svg { width: 23px; height: 23px; }
.nav-item[aria-current="page"] { font-weight: 750; }
.nav-item[aria-current="page"] .nav-icon { background: var(--highlight); color: var(--on-highlight); }
.nav-item:hover .nav-icon { outline: 1px solid var(--highlight); }
a:focus-visible { outline: 3px solid var(--highlight); outline-offset: 3px; border-radius: 8px; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10; padding: 12px 16px; background: var(--highlight); color: var(--on-highlight); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
@media (max-width: 340px) { .nav-inner { padding-inline: 2px; gap: 0; } .nav-item { font-size: .875rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
