/* ── forest docs palette ─────────────────────────────────────────────
   canopy  #1b4332   pine  #2d6a4f   fern  #40916c
   sprout  #52b788   lichen #95d5b2  mist  #74c69d
   Custom color scheme wiring per Material's "custom colors" docs.   */

:root {
  --md-primary-fg-color: #2d6a4f;
  --md-primary-fg-color--light: #40916c;
  --md-primary-fg-color--dark: #1b4332;
  --md-accent-fg-color: #40916c;
}

/* Dark mode: forest-tinted charcoal instead of stock blue-slate. */
[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #1b4332;
  --md-primary-fg-color--light: #2d6a4f;
  --md-primary-fg-color--dark: #12291d;
  --md-accent-fg-color: #95d5b2;
  --md-typeset-a-color: #74c69d;
  --md-default-bg-color: #121b16;
  --md-code-bg-color: #1a2620;
}

/* Slightly tighter, calmer headings for IBM Plex Sans. */
.md-typeset h1,
.md-typeset h2 {
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ── Landing hero: misty treeline band behind the terminal ──────────── */
.fx-hero {
  margin: 1.5rem 0 2rem;
  padding: 1.1rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(149, 213, 178, 0.16);
  background-color: #0b1f18;
  background-image:
    linear-gradient(to bottom, rgba(11, 31, 24, 0.72), rgba(4, 18, 12, 0.35)),
    url(../assets/scene-dark.svg);
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: cover;
  box-shadow: 0 16px 40px rgba(16, 34, 24, 0.35);
}

.fx-hero .fx-terminal {
  margin: 0;
}

/* ── Signature element: the quick-start terminal on the landing page ── */
.fx-terminal {
  margin: 1.5rem 0 2rem;
  border-radius: 0.6rem;
  overflow: hidden;
  background: #0e1712;
  box-shadow: 0 12px 32px rgba(16, 34, 24, 0.35);
  border: 1px solid rgba(149, 213, 178, 0.18);
}

.fx-terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.9rem;
  background: #14231b;
  border-bottom: 1px solid rgba(149, 213, 178, 0.12);
}

.fx-terminal-bar span {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: #2d6a4f;
  opacity: 0.9;
}

.fx-terminal-bar span:nth-child(2) { background: #52b788; }
.fx-terminal-bar span:nth-child(3) { background: #95d5b2; }

.fx-terminal-bar em {
  margin-left: auto;
  font-style: normal;
  font-family: var(--md-code-font-family);
  font-size: 0.62rem;
  color: #74c69d;
  opacity: 0.85;
}

.fx-terminal pre {
  margin: 0;
  padding: 1rem 1.1rem 1.2rem;
  background: transparent;
  overflow-x: auto;
}

.fx-terminal code {
  background: transparent;
  color: #d8f3dc;
  font-size: 0.62rem;
  line-height: 1.8;
}

.fx-terminal .fx-cmd { color: #95d5b2; font-weight: 600; }
.fx-terminal .fx-dim { color: #6b8f7c; }
.fx-terminal .fx-ok  { color: #52b788; }

/* Landing-page grid cards: quiet borders, pine hover. */
.md-typeset .grid.cards > ul > li {
  border-radius: 0.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.md-typeset .grid.cards > ul > li:hover {
  border-color: #52b788;
  box-shadow: 0 6px 18px rgba(45, 106, 79, 0.15);
}

/* Keyboard-visible focus, always. */
:focus-visible {
  outline: 2px solid #52b788;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .md-typeset .grid.cards > ul > li { transition: none; }
}
