/* ===== Distill theme: Aspire Data Solutions ===== */

/* ---------- Base variables ---------- */
html {
  /* Main font sizes */
  --title-size:      40px;
  --body-size:       1.06rem;
  --code-size:       15px;
  --aside-size:      13px;
  --fig-cap-size:    14px;

  /* Main font colors (article area) */
  --title-color:     #076776;
  --header-color:    #076776;
  --body-color:      rgba(0, 0, 0, 0.8);
  --aside-color:     rgba(0, 0, 0, 0.6);
  --fig-cap-color:   rgba(0, 0, 0, 0.6);

  /* Fonts */
  --heading-font:    sans-serif;
  --mono-font:       monospace;
  --body-font:       sans-serif;
  --navbar-font:     sans-serif;
}

/* ---------- Article metadata / toc / appendix ---------- */
d-byline {
  --heading-size:    0.6rem;
  --heading-color:   rgba(0, 0, 0, 0.5);
  --body-size:       0.9rem;
  --body-color:      rgba(0, 0, 0, 0.8);
}
.d-contents {
  --heading-size:    18px;
  --contents-size:   18px;
}
d-appendix {
  --heading-size:    15px;
  --heading-color:   rgba(0, 0, 0, 0.65);
  --text-size:       0.8em;
  --text-color:      rgba(0, 0, 0, 0.5);
}

/* ---------- Site header + footer variable defaults ---------- */
.distill-site-header {
  --title-size:   18px;
  --text-color:   rgba(255,255,255,0.8);
  --text-size:    19px;
  --hover-color:  #ffffff;
  --bkgd-color:   #90AEAD; /* you can switch this if you prefer another teal */
}
.distill-site-footer {
  --text-color:   rgba(255,255,255,0.8);
  --text-size:    15px;
  --hover-color:  #ffffff;
  --bkgd-color:   #0F2E3D;
}

/* ---------- Code / fonts ---------- */
.d-article pre code,
.distill-site-footer { font-family: 'Nyala', sans-serif; }

.d-article pre code {
  font-family: 'Fira Code', monospace;
  font-size: 1.2rem;
}

/* Load Nyala from your site (ensure /fonts/nyala.woff2 exists) */
@font-face {
  font-family: 'Nyala';
  src: url('/fonts/nyala.woff2') format('woff2');
  font-display: swap;
}

/* ---------- Navbar: logo size ---------- */
.distill-site-header .logo img,
.distill-site-nav .logo img {
  height: 72px !important;
  width: auto !important;
}
.distill-site-header { padding-top: 8px; padding-bottom: 8px; }
@media (max-width: 991.98px) {
  .distill-site-header .logo img,
  .distill-site-nav .logo img { height: 44px !important; }
}

/* ---------- Navbar: force colors + sizes ---------- */
/* Background */
.distill-site-header { background: #90AEAD !important; }

/* Link text (Home, About, …) */
.distill-site-header a.nav-link,
.distill-site-nav a.nav-link {
  color: #0b2530 !important;
  font-size: 22px !important; /* bump menu text size */
}
.distill-site-header a.nav-link:hover,
.distill-site-header a.nav-link:focus,
.distill-site-header .nav-link.active {
  color: #001721 !important;
  text-decoration: none;
}

/* Site title next to logo */
.distill-site-header .title { color: #0b2530 !important; }

/* Mobile dropdown */
.distill-site-nav .nav-dropdown { background: #90AEAD !important; }
.distill-site-nav .nav-dropdown a { color: #0b2530 !important; font-size: 21px !important; }
.distill-site-nav .nav-dropdown a:hover { background: rgba(0,0,0,.06); }

/* ---------- Buttons: size bump ---------- */
button,
.button, a.button,
.btn, a.btn,
input[type="submit"],
input[type="button"] {
  font-size: 18px;
  line-height: 1.25;
  padding: 0.6rem 1rem;
  border-radius: 8px;
}
@media (min-width: 992px) {
  button,
  .button, a.button,
  .btn, a.btn,
  input[type="submit"],
  input[type="button"] {
    font-size: 19px;
    padding: 0.65rem 1.1rem;
  }
}

/* ---------- Article headings (inside content) ---------- */
d-title h1 { color: #076776 !important; }
d-article h1, d-article h2, d-article h3,
d-article h4, d-article h5, d-article h6 {
  color: #076776 !important;
}
d-article a { color: #076776; }
d-article a:hover { color: #034349; }

/* ---------- Card grid for posts ---------- */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin: 1rem 0 2rem;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s ease, transform .2s ease;
}
.post-card:hover { box-shadow: 0 6px 16px rgba(0,0,0,.10); transform: translateY(-1px); }
.post-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.post-card .card-body { padding: 12px 14px; }
.post-card .card-title { font-size: 1.06rem; line-height: 1.3; margin: 0 0 6px; font-weight: 600; }
.post-card .card-meta { font-size: .9rem; color: rgba(0,0,0,.55); }
