/* Base typography + layout rules (last-loaded override) */
body {
  background-color: var(--uf-base);
  color: var(--uf-text);
  font-family: var(--fd-font-family);
  font-size: var(--fd-font-size-base);
  line-height: var(--fd-line-height-base);
  letter-spacing: var(--fd-letter-spacing);
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

iframe,
embed,
object {
  max-width: 100%;
}

.site-content h1,
.site-content h2,
.site-content h3,
.site-content h4,
.site-content h5,
.site-content h6 {
  color: var(--uf-text);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 0;
}

.site-content h1 { font-size: 2rem; line-height: 1.25; }
.site-content h2 { font-size: 1.6rem; line-height: 1.3; }
.site-content h3 { font-size: 1.35rem; line-height: 1.35; }
.site-content h4 { font-size: 1.15rem; line-height: 1.4; }
.site-content h5 { font-size: 1.05rem; line-height: 1.45; }
.site-content h6 { font-size: 1rem; line-height: 1.5; }

.site-content a {
  color: var(--uf-link);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-content a:hover {
  color: var(--uf-accent);
}

.site-content,
.site-content .site-main,
.site-content .content-area,
.site-content .inside-article,
.site-content .entry-content {
  box-sizing: border-box;
}
