/* Mavens Hive brand font + text glow cleanup

   Folder setup:
   - Styles live in public/styles/
   - Upload your own brand font to public/fonts/
   - Font files are intentionally not bundled in this project package.

   Recommended names:
   - public/fonts/brand.woff2  (best)
   - public/fonts/brand.woff
   - public/fonts/brand.ttf
   - public/fonts/brand.otf

   Also supported for convenience:
   - public/fonts/Minecrafter-MA3Dw.ttf
*/

@font-face {
  font-family: "MavensBrandFont";
  src:
    url("/fonts/brand.woff2") format("woff2"),
    url("/fonts/brand.woff") format("woff"),
    url("/fonts/brand.ttf") format("truetype"),
    url("/fonts/brand.otf") format("opentype"),
    url("/fonts/Minecrafter-MA3Dw.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --mh-font-brand: "MavensBrandFont", "Arial Black", Impact, system-ui, sans-serif;
  --mh-font-normal: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mh-site-font: var(--mh-font-normal);
}

/* Keep all normal text normal. Do not apply the uploaded brand font globally. */
html,
body,
p,
span,
div,
section,
article,
header,
footer,
nav,
label,
small,
strong,
em,
li,
td,
th,
input,
textarea,
select,
h1,
h2,
h3,
h4,
h5,
h6,
button,
a,
.font-body,
.font-body-md,
.font-body-lg,
.font-tech,
.font-label-caps,
.font-display-xl,
.font-headline-lg,
.font-headline-md,
.font-minecraft,
.font-pixel,
.minecraft-heading,
.pixel-text {
  text-shadow: none !important;
}

/* Older classes may point to a pixel/Minecraft font. Reset them unless they are brand titles. */
.font-minecraft:not(.mh-brand-title),
.font-pixel:not(.mh-brand-title),
.minecraft-heading:not(.mh-brand-title),
.pixel-text:not(.mh-brand-title) {
  font-family: var(--mh-font-normal) !important;
}

/* Only brand-title elements use the uploaded brand font. */
.mh-brand-title,
.mh-brand-title *,
[data-font="brand"],
[data-font="brand"] * {
  font-family: var(--mh-font-brand) !important;
  text-shadow: none !important;
  letter-spacing: 0.015em;
}

/* Material icons must keep their icon font. */
.material-symbols-outlined {
  font-family: "Material Symbols Outlined" !important;
  text-shadow: none !important;
}

/* Remove glow/shadow filters from text elements and arbitrary Tailwind drop-shadow classes. */
*:not(img):not(svg):not(canvas)[class*="drop-shadow"],
.minecraft-heading,
.pixel-text,
.font-minecraft,
.font-pixel,
.font-tech,
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
a,
button,
label,
small,
strong,
em,
li,
td,
th {
  filter: none !important;
  text-shadow: none !important;
}

body.mh-animations-ready .pixel-text {
  animation: mhHeroRise .84s cubic-bezier(.22, 1, .36, 1) .18s both !important;
}

.nav-link:hover,
a:hover,
button:hover {
  text-shadow: none !important;
}

@keyframes mhTextGlow {
  0%, 50%, 100% { filter: none; }
}
