/* Typography: old ZG is basically Georgia everywhere */
body,
.post-content,
.post-meta,
.post-nav,
.projects-list a,
.site-nav a {
  font-family: "Georgia", serif;
  line-height: 1.7;
}

/* Headings */
h1, h2, h3, h4, h5, h6,
.post-header {
  font-family: "Georgia", serif;
  letter-spacing: 0;
}

/* ---- Layout: center column like old site ---- */
main {
  width: auto;          /* overrides main.css 75% */
  max-width: 800px;
  margin: 0 auto;
  padding: 0.5rem;
  min-height: unset;    /* optional: remove the calc height feel */
}

/* If you want the whole page to feel narrower, keep body centered too */
body {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0.5rem;
}

header.site-header {
  max-height: none;     /* critical: stops title being cut off */
  border-radius: 0;     /* match old ZG */
  background: transparent;
}

/* Keep title centered while actions stay right */
header.site-header .header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "title actions"
    "nav   nav";
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

/* Title centered */
header.site-header .site-title { grid-area: title; justify-self: center; }
header.site-header .site-title a { border-bottom: none; }

/* Dark mode button area stays right */
header.site-header .header-actions { grid-area: actions; justify-self: end; }

/* Nav centered under title */
header.site-header .site-nav { grid-area: nav; justify-self: center; }
header.site-header .site-nav ul { margin: 0.75rem 0 0 0; padding: 0; }

.header-inner {
  /* main.css makes this flex + spaced; ZG wants centered stack */
  display: block;
  max-width: 800px;
  margin: 0 auto;
}

.site-title a {
 /* display: inline-block;*/
  font-size: 2rem;
  font-weight: 700;
  /*color: #111;*
  border-bottom: none; /* don’t underline site title */
}

/* Nav list */
.site-nav {
  display: block; /* ensure visible */
  position: static;
  margin-top: 1rem;
}

.site-nav ul {
  justify-content: center;
  gap: 1.5rem;

  margin: 1rem 0 0 0;
  padding: 0;

  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-nav a.active {
  font-weight: bold;
  border-bottom: 2px solid #ff7f50;
}

/* ---- Post cards ---- */
.post-card {
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  padding: 1.5rem;
  margin-bottom: 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* ---- Writing wrapper ---- */
.writing-content-wrapper {

  border-radius: 1rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);

  max-width: 680px;
  width: auto;          /* overrides main.css 50vw */
  margin: 3rem auto;
  padding: 2.5rem 2rem;

  color: #222;
  text-align: left;
}

.writing-content {
  font-family: "Georgia", serif;

  max-width: 520px;
  margin: 0 auto;
  white-space: pre-line;
}

/* restore list bullets inside writing/posts if your global UL reset causes issues */
.writing-content ul,
.writing-content ol,
.post-content ul,
.post-content ol {
  padding-left: 1.25rem;
  margin: 1.25rem 0;
}


.writing-content blockquote,
.post-content blockquote {
  border-left: 4px solid #ff7f50;
  padding-left: 1rem;
  margin: 2rem 0;
  background: #fffaf8;
  font-style: italic;
}



/* ---- Footer: unfix it for ZG ---- */
.page-footer {
  position: static;  /* overrides fixed footer in main.css */
  transform: none;
  left: auto;

  margin: 4rem 0 2rem;
  text-align: center;
  font-size: 0.875rem;
}
/* ==========================
   ZG: make mobile menu behave like SE (overlay / hover)
   ========================== */

@media (max-width: 700px) {
  /* Ensure header is the positioning context */
  header.site-header {
    position: relative;
  }

  /* Match SE behavior: hidden by default */
  header.site-header .site-nav {
    display: none;
    position: absolute;
    top: 60px;
    right: 1rem;
    z-index: 9999;

    background: var(--header-bg, #222);
    padding: 0.5rem 1rem;
    border-radius: 8px;
  }

  /* Show when toggled */
  header.site-header .site-nav.open {
    display: block;
  }

  /* Stack links vertically like SE */
  header.site-header .site-nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  /* Hamburger visible on mobile */
  header.site-header .menu-toggle {
    display: block !important;
  }
}

/* Desktop: keep normal horizontal nav + hide hamburger */
@media (min-width: 701px) {
  header.site-header .site-nav { display: block; position: static; }
  header.site-header .menu-toggle { display: none !important; }
}

