/* Box-sizing reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Body */
body {
  margin: 0;
  padding: 0;
  font-family: var(--mb-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--mb-text);
  background-color: var(--mb-secondary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--mb-font-heading);
  color: var(--mb-primary);
  margin-top: 0;
  line-height: 1.3;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.625rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

/* Links */
a {
  color: var(--mb-primary);
  text-decoration: none;
  transition: opacity var(--mb-transition);
}

a:hover {
  opacity: 0.8;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Paragraphs */
p {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Lists */
ul, ol {
  padding-left: 1.5rem;
}

/* Focus visible styles for accessibility */
:focus-visible {
  outline: 2px solid var(--mb-primary);
  outline-offset: 2px;
}

/* Remove default focus outline for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}

/* Container */
.mb-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Site main — consistent padding around all page content */
.mb-site-main {
  padding: 24px 20px 40px;
}

.mb-site-main > .mb-container {
  padding-top: 0;
  padding-bottom: 0;
}

/* Content (narrower for reading) */
.mb-content {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
