/* Knilb hero — full-viewport, lower-left anchored.
   Background and text use Zensical/Material's theme variables so the hero
   automatically tracks the active palette (default = white, slate = the
   same near-black as the header). */

:root {
  --knilb-hero-bg: url("../assets/static/bg/bg-light.svg");
}

[data-md-color-scheme="slate"] {
  --knilb-hero-bg: url("../assets/static/bg/bg-dark.svg");
}

.mdx-hero {
  background-color: var(--md-default-bg-color);
  background-image: var(--knilb-hero-bg);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  min-height: calc(100vh - 3rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 6rem clamp(1.5rem, 6vw, 5rem) 4rem;
  box-sizing: border-box;
}

.mdx-hero__teaser {
  text-align: left;
  width: 100%;
  max-width: 56rem;
  margin: 0;
}

.mdx-hero__eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--md-default-fg-color--light);
  margin: 0 0 1.5rem;
}

.mdx-hero__title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  color: var(--md-default-fg-color);
}

.mdx-hero__subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--md-default-fg-color--light);
  max-width: 42rem;
  margin: 0 0 2rem;
}

.mdx-hero__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Invert the monochrome logo in dark mode so the black dots become white
   against the near-black header background. */
[data-md-color-scheme="slate"] .md-logo img {
  filter: invert(1);
}

/* On narrow screens, collapse the hero title's hard line-break by hiding the
   <br> so the title wraps naturally. */
@media (max-width: 600px) {
  .mdx-hero__title br {
    display: none;
  }
  .mdx-hero__actions {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
  .mdx-hero__actions .md-button {
    width: auto;
  }
}
