/* Nimbledeck site: brand colours follow the deck tokens (--nd-accent #2563eb, night #38bdf8). */
:root {
  --md-primary-fg-color: #2563eb;
  --md-primary-fg-color--light: #60a5fa;
  --md-primary-fg-color--dark: #1d4ed8;
  --md-accent-fg-color: #1d4ed8;
  --md-typeset-a-color: #1d4ed8;
  --nd-hero-from: #eff6ff;
  --nd-hero-to: #ffffff;
  --nd-card-line: var(--md-default-fg-color--lightest);
}
[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #0f172a;
  --md-accent-fg-color: #7dd3fc;
  --md-typeset-a-color: #7fb4ff;
  --md-hue: 222;
  --nd-hero-from: #0b1222;
  --nd-hero-to: #0f172a;
}
.md-typeset h1, .md-typeset h2 { letter-spacing: -0.02em; font-weight: 700; }

/* Hero */
.nd-hero {
  margin: 0 -0.8rem 2.5rem;
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
  border-radius: 1rem;
  background:
    radial-gradient(60% 80% at 50% 0%, color-mix(in srgb, var(--md-accent-fg-color) 18%, transparent), transparent 70%),
    linear-gradient(180deg, var(--nd-hero-from), var(--nd-hero-to));
}
.md-typeset .nd-hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin: 0 0 .6rem; line-height: 1.08; color: var(--md-default-fg-color); }
.nd-hero .nd-tagline { font-size: clamp(1rem, 2.4vw, 1.3rem); max-width: 40rem; margin: 0 auto 1.8rem; color: var(--md-default-fg-color--light); }
.nd-hero .md-button { margin: .25rem .3rem; border-radius: 2rem; padding: .55em 1.5em; font-weight: 600; }
.nd-hero .md-button--primary { background: var(--md-accent-fg-color); border-color: var(--md-accent-fg-color); color: #fff; box-shadow: 0 6px 18px -6px var(--md-accent-fg-color); }
[data-md-color-scheme="slate"] .nd-hero .md-button--primary { color: #04121f; }

/* Embedded live deck */
.nd-frame {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  border: 1px solid var(--nd-card-line); border-radius: .8rem; overflow: hidden;
  box-shadow: 0 18px 50px -20px rgb(15 23 42 / .45); background: #fff;
}
.nd-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.nd-hero .nd-frame { max-width: 52rem; margin: 2.2rem auto 0; text-align: left; }
.nd-caption { font-size: .8rem; color: var(--md-default-fg-color--light); text-align: center; margin-top: .6rem; }

/* Cards: markdown grid with the .nd-cards class */
.md-typeset .nd-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.md-typeset .nd-cards > div, .md-typeset .nd-cards > a {
  border: 1px solid var(--nd-card-line); border-radius: .8rem; padding: 1rem 1.2rem;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.md-typeset .nd-cards > div:hover { transform: translateY(-2px); border-color: var(--md-accent-fg-color); box-shadow: 0 10px 28px -14px rgb(15 23 42 / .5); }
.md-typeset .nd-cards h3 { margin: 0 0 .3rem; font-size: 1.05rem; }
.md-typeset .nd-cards p { margin: 0; font-size: .85rem; color: var(--md-default-fg-color--light); }
.md-typeset .nd-cards code { font-size: .8em; }
@media (prefers-reduced-motion: reduce) {
  .md-typeset .nd-cards > div { transition: none; }
  .md-typeset .nd-cards > div:hover { transform: none; }
}


/* The playground needs more room than a 16:9 frame */
.nd-frame.nd-tall { aspect-ratio: auto; height: min(44rem, 92vh); }
@media (max-width: 800px) { .nd-frame.nd-tall { height: 80rem; } }

/* Screenshot cards */
.md-typeset .nd-shots { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.md-typeset .nd-shots img { border-radius: .5rem; border: 1px solid var(--nd-card-line); margin-bottom: .6rem; }
