/* ============================================================
   MDL GROUP — BASE ELEMENT STYLES & HELPERS
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--text-primary);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--text-primary);
  margin: 0 0 0.4em;
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-snug);
  font-weight: var(--fw-bold);
}
h1 { font-size: var(--fs-h1); font-weight: var(--fw-black); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); font-weight: var(--fw-semibold); }

p { margin: 0 0 1em; }
a { color: var(--text-link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Helper classes ---- */
.mdl-eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-overline);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-overline);
  text-transform: uppercase;
  color: var(--color-brand);
}
.mdl-display {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}
.mdl-figure {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--ls-tight);
  color: var(--color-brand);
}

/* The brand "roofline" rule — a short green angled accent under headings */
.mdl-rule {
  display: inline-block;
  width: 56px;
  height: 4px;
  background: var(--color-brand);
  border-radius: 2px;
}

/* Angled section band, echoing the logo facet + site triangles */
.mdl-angle-top    { clip-path: polygon(0 36px, 100% 0, 100% 100%, 0 100%); }
.mdl-angle-bottom { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 36px)); }
