/* ================================================================
   BASE — Reset + body defaults
   Depends on: design-tokens.css
================================================================ */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-relaxed);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Headings */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  color: var(--text-heading);
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}

p {
  margin: 0 0 var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

/* Links */
a {
  color: var(--color-blue-deep);
  text-decoration: none;
  cursor: pointer;
  transition: color var(--duration-instant) var(--ease-default);
}

a:hover {
  color: var(--accent);
}

/* Lists */
ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Media */
img, video, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Forms */
input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

/* ── Override GeneratePress structural defaults ───────────────── */

/* Remove GP container constraints — we manage layout with our own classes */
.grid-container {
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Remove GP content area padding */
.site-content {
  padding: 0;
}

/* Remove GP entry margins */
.entry-content > *:first-child {
  margin-top: 0;
}

/* Default spacing for all custom blocks */
.mdasy-block {
  margin-bottom: var(--space-12);
}
