/* breccia brand palette — purple matrix on warm fragment accent */
:root {
  --md-primary-fg-color: #5b21b6;        /* deep purple — cementing matrix */
  --md-primary-fg-color--light: #7c3aed;
  --md-primary-fg-color--dark: #4c1d95;
  --md-accent-fg-color: #ea580c;         /* amber/orange — fragment shimmer */
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #7c3aed;
  --md-primary-fg-color--light: #a855f7;
  --md-primary-fg-color--dark: #5b21b6;
  --md-accent-fg-color: #f97316;
  --md-default-bg-color: #0a0817;
}

/* Hero on landing page */
.breccia-hero {
  text-align: center;
  margin: 2rem 0 3rem;
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, var(--md-primary-fg-color) 0%, var(--md-primary-fg-color--dark) 100%);
  color: white;
  border-radius: 10px;
}

.breccia-hero h1 {
  color: white;
  font-size: 3rem;
  margin: 0 0 0.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.breccia-hero p.tagline {
  font-size: 1.2rem;
  margin: 0;
  opacity: 0.95;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.breccia-hero .badges {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.breccia-hero .badges img {
  height: 22px;
}

/* Metric cards for the landing */
.breccia-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.breccia-metric {
  padding: 1.5rem;
  border-radius: 8px;
  background: var(--md-code-bg-color);
  border-left: 4px solid var(--md-accent-fg-color);
}

.breccia-metric .value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--md-primary-fg-color);
  line-height: 1;
  margin-bottom: 0.3rem;
  font-feature-settings: "tnum";
}

[data-md-color-scheme="slate"] .breccia-metric .value {
  color: var(--md-accent-fg-color);
}

.breccia-metric .label {
  font-size: 0.85rem;
  color: var(--md-default-fg-color--light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Tighter code blocks */
.md-typeset pre > code {
  font-size: 0.84em;
}

/* Subtle nav-tab underline on active */
.md-tabs__link--active {
  font-weight: 600;
}

/* Better-looking tables */
.md-typeset table:not([class]) th {
  background: var(--md-primary-fg-color);
  color: white;
  font-weight: 600;
}

/* Code copy button: always visible (not just hover) */
.md-clipboard {
  color: var(--md-default-fg-color--lighter);
}

/* API reference (mkdocstrings) styling */
.doc-symbol-class::after { content: "class"; }
.doc-symbol-function::after { content: "func"; }
.doc-symbol-method::after { content: "method"; }
.doc-symbol-attribute::after { content: "attr"; }

.doc-heading code {
  font-weight: 600;
}

.doc-contents > h4 {
  margin-top: 1.5rem;
}

/* Recipe / format chips for inline use */
.breccia-chip {
  display: inline-block;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78em;
  font-weight: 500;
  background: var(--md-primary-fg-color);
  color: white;
  letter-spacing: 0.02em;
}

.breccia-chip.accent {
  background: var(--md-accent-fg-color);
}
