/* The container, header, navigation bar and footer geometry every public
   page shares (.kiro/specs/public-website/design.md, "Shared layout"). The
   one definition: the landing page and the dashboard hold byte copies
   (`task site:layout-sync`), checked by scripts/ci/site-check.sh. Colours
   come from /theme.css (theme-dark.css or theme-light.css). */

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  max-width: 72rem;
  padding: 1.5rem 1.25rem 3rem;
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* The nav on the left, the preferences at the top right
   (.kiro/specs/site-theme-language/design.md#markup). */
header.site {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
}

nav.site {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

nav.site a { text-decoration: none; }
nav.site a:hover { color: var(--fg); }
nav.site a:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 2px; }
nav.site a[aria-current="page"] { color: var(--fg); font-weight: 700; }

.prefs { display: flex; align-items: center; gap: 0.75rem; margin: 0; }
.prefs a { display: inline-flex; color: var(--fg); }
.prefs a:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 2px; }
.prefs .icon {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

main { padding-top: 1.5rem; }

footer.site {
  margin-top: 3rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
}
