/* =========================================================
   blackie.black — site.css
   ========================================================= */

/* --- Base / Defaults ----------------------------------- */
:root {
  color-scheme: light dark;
}

body {
  margin: 0;
  font: 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
}

h1, h2, h3 {
  line-height: 1.2;
}

/* --- Navigation ---------------------------------------- */
/* Your generated nav should ideally use: <nav class="site-nav"> */
.site-nav {
  margin-bottom: 1rem;
}

/* No “brand color” — just calm, readable grayscale */
.site-nav a {
  margin-right: 14px;
  text-decoration: none;
  color: #444;
  opacity: 0.95;
}

/* Hover uses underline, not color */
.site-nav a:hover {
  text-decoration: underline;
  color: #000;
}

/* Active page indicator (set class="active" on current link) */
.site-nav a.active {
  font-weight: 600;
}

/* Center nav on the homepage only */
.home-page .site-nav {
  text-align: center;
}

/* --- Home / Mark --------------------------------------- */
.home {
  text-align: center;
}

/* If your homepage image uses class="mark", this covers it */
.mark {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 1.5rem auto 2rem;
}

/* Backward-compatible: if homepage still uses .home img */
.home img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 1.5rem auto 2rem;
}

@media (max-width: 600px) {
  .mark,
  .home img {
    max-width: 280px;
  }
}

/* --- Content fragments (Listed cache) ------------------- */
.listed-fragment h1 {
  margin-top: 0;
}

.listed-fragment hr {
  opacity: 0.25;
}

/* --- Utility images ------------------------------------ */
.hero-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 4rem auto;
}

/* --- Print --------------------------------------------- */
@media print {
  /* Hide navigation when printing */
  .site-nav {
    display: none !important;
  }

  body {
    margin: 0;
    font-size: 11pt;
    color: #000;
    background: #fff;
  }

  a {
    color: #000;
    text-decoration: none;
  }

  /* Print URLs after links (useful for resumes/PDFs) */
  a::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
  }
}
