/* Pier's orange on the layout of levimc.org. LeviLamina is green, the leaves; Pier grows from
   it and is the fruit. A white header in light mode, zinc in dark mode. Links take the darker
   orange in light mode, where #ea580c on white reads too faintly as body text. */
:root {
  --pier-orange: #ea580c;
  --pier-orange-light: #f97316;
  --pier-orange-text: #c2410c;
  --md-accent-fg-color: var(--pier-orange-light);
  --md-accent-fg-color--transparent: rgba(249, 115, 22, 0.1);
  --md-typeset-a-color: var(--pier-orange-text);
}
[data-md-color-scheme="slate"] {
  --md-default-bg-color: #09090b;
  --md-default-bg-color--light: #18181b;
  --md-code-bg-color: #18181b;
  --md-typeset-a-color: #fb923c;
  --md-footer-bg-color: #09090b;
  --md-footer-bg-color--dark: #050506;
}
[data-md-color-scheme="slate"][data-md-color-primary="black"] .md-header,
[data-md-color-scheme="slate"][data-md-color-primary="black"] .md-tabs {
  background-color: #09090b;
}
/* Material fills a hovered or focused button with the accent color and writes its text in
   --md-accent-bg-color. Both buttons set all three colors for both states here, so the text
   keeps its contrast: white on orange for the primary button, dark orange on a light tint for
   the others. */
.md-typeset .md-button--primary,
.md-typeset .md-button--primary:focus {
  background-color: var(--pier-orange);
  border-color: var(--pier-orange);
  color: #fff;
}
.md-typeset .md-button--primary:hover {
  background-color: var(--pier-orange-light);
  border-color: var(--pier-orange-light);
  color: #fff;
}
.md-typeset .md-button:not(.md-button--primary):hover,
.md-typeset .md-button:not(.md-button--primary):focus {
  background-color: var(--md-accent-fg-color--transparent);
  border-color: var(--pier-orange);
  color: var(--pier-orange-text);
}
[data-md-color-scheme="slate"] .md-typeset .md-button:not(.md-button--primary):hover,
[data-md-color-scheme="slate"] .md-typeset .md-button:not(.md-button--primary):focus {
  color: #fb923c;
}

/* The home page: the hero of levimc.org, title and buttons beside a code card. */
.pier-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  margin: 1.5rem 0 3rem;
}
.pier-hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--md-default-fg-color);
}
.pier-hero h1 .pier-accent {
  color: var(--pier-orange-light);
}
.pier-hero .pier-tagline {
  font-size: 1.1rem;
  color: var(--md-default-fg-color--light);
  margin-bottom: 1.6rem;
}
.pier-hero .md-button {
  margin: 0 0.5rem 0.5rem 0;
}
.pier-hero .highlight {
  border-radius: 0.6rem;
  box-shadow: 0 10px 30px rgba(234, 88, 12, 0.18);
}
@media screen and (max-width: 60em) {
  .pier-hero {
    grid-template-columns: 1fr;
  }
}
.md-typeset .grid.cards > ul > li:hover {
  border-color: var(--pier-orange-light);
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.14);
}

/* API entries, laid out as the LegacyScriptEngine documentation lays them: the signature in
   a line of its own under the entry's title. */
.md-typeset h4 + p > code:only-child {
  font-size: 0.85em;
}
