/* Shared foundations; project demos can add their own page-scoped assets. */
:root { color-scheme: light; --background: #f8f9fa; --surface: #fff; --text: #212529; --muted: #535c65; --link: #165d9c; --border: #dee2e6; --width: 1100px; }
* { box-sizing: border-box; }
html { scroll-padding-top: 2rem; }
body { margin: 0; background: var(--background); color: var(--text); font: 16px/1.7 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: #0b3d6b; }
a:focus-visible { outline: 3px solid var(--link); outline-offset: 4px; border-radius: 2px; }
h1, h2, h3 { line-height: 1.3; }
p { margin: 0 0 1rem; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header-inner { max-width: var(--width); margin: auto; padding: 1rem 1.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.site-name { color: var(--text); font-weight: 650; text-decoration: none; }
nav ul { display: flex; flex-wrap: wrap; list-style: none; gap: .25rem 1.7rem; padding: 0; margin: 0; }
nav a { display: inline-block; padding: .3rem 0; text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .5em; }
nav a[aria-current="page"] { font-weight: 650; }
.site-main { max-width: var(--width); margin: auto; padding: 3rem 1.5rem 4rem; }
.site-footer { max-width: calc(var(--width) - 3rem); margin: 0 auto; border-top: 1px solid var(--border); padding: 1.25rem 0 2rem; color: var(--muted); font-size: .85rem; }
.simple-page { min-height: 50vh; max-width: 48rem; }
.simple-page h1 { font-size: 2rem; margin-top: 0; }
.skip-link { position: absolute; left: 1rem; top: -8rem; padding: .65rem 1rem; background: var(--surface); z-index: 10; }
.skip-link:focus { top: .5rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 700px) {
  .site-header-inner { flex-direction: column; align-items: flex-start; gap: .45rem; padding: 1rem 1.25rem; }
  nav ul { gap: .25rem 1.25rem; }
  .site-main { padding: 2rem 1.25rem 3rem; }
  .site-footer { margin: 0 1.25rem; }
}
