/* =====================================================
   BASE STYLES
   ===================================================== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

/* Prevent body scroll with layout shift compensation for mobile menu */
body.menu-open {
  overflow: hidden;
}

/* SPA shell */
main#spa-root {
  min-height: 50vh;
}

.spa-view[hidden] {
  display: none !important;
}

.view-placeholder {
  max-width: 960px;
  margin: var(--xl) auto;
  padding: var(--xxl) var(--xl);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  color: var(--muted);
}

.anchor-spacer {
  position: relative;
  top: -110px;
  height: 1px;
  visibility: hidden;
}

/* Keep in-page scroll targets visible below the sticky header */
.spa-view,
.hero,
section,
.anchor-spacer {
  scroll-margin-top: 120px;
}

/* Make images scale within containers */
img {
  max-width: 100%;
  height: auto;
  display: block;
}
