@font-face {
  font-family: 'Mathilde';
  src: url('/tenants/dimarino/mathilde.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* DMC brand text color — also override Tailwind's p { text-neutral-700 } base style */
body {
  color: #4A0607;
}

p {
  color: #4A0607;
}

h1 {
  font-family: 'Mathilde', cursive !important;
  font-weight: 400 !important;
  letter-spacing: 0.02em;
  font-size: 2.5em !important;
  /* Mathilde font spacing fix: more space above, less below */
  padding-top: 0.35em !important;
  margin-bottom: -0.15em !important;
}

/* Only the home page hero h1 gets the big size */
section.pt-16.pb-24 h1 {
  font-size: 5em !important;
  /* Soft brand-tinted glow to lift the script wordmark off the page */
  text-shadow: 0 8px 34px rgba(247, 4, 114, 0.18);
}

/* Nested spans inside headings should inherit the size, not use their own Tailwind class */
h1 span {
  font-size: inherit !important;
}

/* CV pages (CVPreview, CVEdit): reset Mathilde font overrides on h1 */
.no-mathilde h1 {
  font-family: 'Raleway', 'Inter', system-ui, sans-serif !important;
  font-size: revert !important;
  padding-top: 0 !important;
  margin-bottom: 0 !important;
  letter-spacing: normal !important;
}

/* Replace gradient text with solid primary color for script font readability */
h1 .text-transparent,
h1>.text-transparent,
h1.text-transparent {
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  background-image: none !important;
  color: var(--color-primary-600) !important;
}