/*
 * whatif brand customizations on top of Furo.
 *
 * Most of the palette lives in conf.py via Furo's CSS-variable hooks
 * (light_css_variables / dark_css_variables). This file holds layout
 * helpers and custom components used in the landing page.
 */

:root {
  --whatif-violet:        #6B46C1;
  --whatif-violet-light:  #8B5CF6;
  --whatif-violet-dark:   #553C9A;
  --whatif-indigo:        #4F46E5;
  --whatif-indigo-light:  #6366F1;
  --whatif-slate:         #1E293B;
  --whatif-blue:          #3B82F6;
}

/* ----- Hero on the landing page ------------------------------------------ */
/* The H1 of index.md is `# whatif {.hero-title}` and the tagline paragraph
   carries `.hero-tagline`. These rules give the landing page a centered,
   gradient look while keeping the page a syntactically real H1 (which MyST
   requires for proper document structure). */

h1.hero-title {
  text-align: center;
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(
    90deg,
    var(--whatif-violet) 0%,
    var(--whatif-indigo) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 3rem 0 1rem;
}

p.hero-tagline {
  text-align: center;
  font-size: 1.2rem;
  color: var(--color-foreground-secondary);
  max-width: 48rem;
  margin: 0 auto 2rem;
}

/* ----- Highlight callout ------------------------------------------------- */

.whatif-callout {
  background: linear-gradient(135deg, var(--whatif-violet) 0%, var(--whatif-indigo) 100%);
  color: #fff;
  padding: 1.25rem 1.5rem;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
  font-weight: 600;
}

.whatif-callout a {
  color: #fff;
  text-decoration: underline;
}

/* ----- Image rounding for screenshots / diagrams ------------------------- */

article.bd-article img,
.bd-content img {
  border-radius: 0.5rem;
}
