/* ─────────────────────────────────────────────────────────
   Family Notes — custom styles
   Material for MkDocs exposes CSS variables; override them
   rather than fighting specificity. See:
   https://squidfunk.github.io/mkdocs-material/customization/
   ───────────────────────────────────────────────────────── */

:root {
  /* ---- Brand colors (used by both light & dark via palette) ---- */
  /* Primary is set in mkdocs.yml; here we tune supporting tokens. */
  --md-primary-fg-color--light: #4051b5;
  --md-primary-fg-color--dark:  #303f9f;

  /* Accent tweaks */
  --md-accent-fg-color: #ff6f00;   /* warm amber */
}

/* ---- Reading width: cozier than the default wide layout ---- */
.md-grid {
  max-width: 960px;                /* default ~1220px; tighten for prose */
}

/* ---- Slightly larger body text for non-technical readers ---- */
.md-typeset {
  font-size: 0.72rem;              /* ~ from 0.65rem default */
}
.md-typeset p,
.md-typeset li {
  line-height: 1.65;
}

/* ---- Headings: a touch more breathing room ---- */
.md-typeset h1 {
  margin-top: 0;
  font-weight: 600;
}
.md-typeset h2 {
  margin-top: 2em;
  font-weight: 600;
}

/* ---- Links: clearer in body text ---- */
.md-typeset a {
  text-decoration: underline;
  text-decoration-color: var(--md-accent-fg-color);
  text-underline-offset: 2px;
}

/* ---- Admonitions: round the corners slightly ---- */
.md-typeset .admonition {
  border-radius: 6px;
}

/* ---- Home page hero (used by index.md below) ---- */
.hero {
  text-align: center;
  padding: 2rem 1rem 1rem;
}
.hero h1 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}
.hero p {
  font-size: 1.05rem;
  color: var(--md-default-fg-color--light);
  max-width: 40ch;
  margin: 0 auto 1.5rem;
}

/* ---- App-link cards on the home page ---- */
.app-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 1.5rem 0;
}
.app-grid a {
  display: block;
  padding: 1rem 1.25rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 8px;
  background: var(--md-default-bg-color);
  text-decoration: none !important;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.app-grid a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.app-grid a strong {
  display: block;
  font-size: 1rem;
  color: var(--md-primary-fg-color);
}
.app-grid a span {
  font-size: 0.85rem;
  color: var(--md-default-fg-color--light);
}

/* ---- Mobile tweaks ---- */
@media screen and (max-width: 600px) {
  .md-typeset {
    font-size: 0.78rem;            /* bump up on small screens for legibility */
  }
  .hero h1 { font-size: 1.6rem; }
}
