/* ---------------------------------------------------------------------------
   Site styling for the Quarto rebuild of shajoezhu.github.io.
   Ported from the old Jekyll _sass partials (variables / base / layout /
   header / hero / highlights / posts / footer). Anything not listed here is
   inherited from the cosmo Bootswatch theme.
   --------------------------------------------------------------------------- */

:root {
  --jz-text-color: #1f2328;
  --jz-muted-color: #6b7280;
  --jz-border-color: #e5e7eb;
  --jz-code-bg: #f5f6f7;
  --jz-accent-color: #2563eb;
  --jz-accent-dark: #1e40af;
  --jz-content-width: 860px;
}

body {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--jz-text-color);
  -webkit-font-smoothing: antialiased;
}

/* Keep the reading column at the same width as the old Jekyll site. */
#quarto-content main.content {
  max-width: var(--jz-content-width);
}

a {
  color: var(--jz-accent-color);
}

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.25;
  margin: 1.6rem 0 0.8rem;
}

h1 { font-size: 1.9rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }

blockquote {
  border-left: 3px solid var(--jz-border-color);
  color: var(--jz-muted-color);
}

code {
  background: var(--jz-code-bg);
  border-radius: 4px;
  padding: 0.15em 0.4em;
}

pre {
  background: var(--jz-code-bg);
  border-radius: 6px;
  padding: 1rem;
}

table {
  width: 100%;
}

/* ---------------------------------------------------------------------------
   About page: profile photo floated to the right of the intro text
   --------------------------------------------------------------------------- */
.profile {
  float: right;
  margin: 0 0 1rem 1.5rem;
}

.profile img {
  width: 220px;
  max-width: 220px;
  height: auto;
  border-radius: 8px;
}

.about-content {
  overflow: hidden;
}

@media (max-width: 640px) {
  .profile {
    float: none;
    margin: 0 0 1rem;
  }
}

/* ---------------------------------------------------------------------------
   Hero banner (used on the Highlights page)
   --------------------------------------------------------------------------- */
.hero {
  padding: 2.2rem 1.4rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--jz-accent-color), var(--jz-accent-dark));
  color: #fff;
  text-align: center;
}

.hero h1 {
  margin: 0 0 0.5rem;
  color: #fff;
  font-size: 2.1rem;
}

.hero p {
  margin: 0;
  font-size: 1.05rem;
  opacity: 0.92;
}

/* Quarto's title-block-banner stands in for the old .hero div. */
.quarto-title-banner {
  --jz-quarto-title-banner-color: #fff;
}

/* ---------------------------------------------------------------------------
   News feed on the About page
   --------------------------------------------------------------------------- */
.news {
  margin-top: 2.5rem;
  clear: both;
}

.news h2 {
  border-bottom: 1px solid var(--jz-border-color);
  padding-bottom: 0.4rem;
}

#listing-news table {
  border: none;
  margin: 0;
  font-size: 0.95rem;
}

#listing-news thead {
  display: none;
}

#listing-news td {
  border: none;
  padding: 0.45rem 0.5rem 0.45rem 0;
  vertical-align: top;
}

/* ---------------------------------------------------------------------------
   Blog listing
   --------------------------------------------------------------------------- */
.listing-title {
  font-size: 1.2rem;
  font-weight: 600;
}

/* ---------------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------------- */
.nav-footer {
  color: var(--jz-muted-color);
  font-size: 0.85rem;
}

.nav-footer a {
  color: var(--jz-muted-color);
}
