/* Print styles for articles */
header,
nav,
.local-nav,
.top-nav,
.site-footer {
  display: none !important;
}

/* Body text: Garamond-style serif with tighter line spacing */
body, main, article {
  font-family: 'EB Garamond', Garamond, Georgia, serif !important;
  font-size: 13.2pt; /* ~20% bigger than 11pt */
  line-height: 1.25;
  color: #000;
  background: #fff !important;
}

/* Headings: sans serif (Roboto) */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', Arial, sans-serif !important;
}

/* Reduce space after headings, keep space above */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 0.3em; /* tighten vertical spacing after heading */
}

/* Page margins */
body {
  margin: 0 0.75in;
}

/* Expand content */
main.container, article.container {
  max-width: 100% !important;
  margin: 0;
  padding: 0;
}

/* Images a bit smaller (65%) */
main img,
article img {
  max-width: 65% !important;
  height: auto !important;
}

/* Tighten blockquotes */
blockquote {
  line-height: 1.25;
}

/* Inline code: 20% smaller */
code {
  font-size: 0.8em;
}

/* Block code smaller and narrower */
pre code {
  font-size: 0.85em;
  display: block;
  max-width: 90%;
  overflow-wrap: break-word;
  white-space: pre-wrap;
  border: 1px solid #ccc;
  padding: 6pt;
  background: #f9f9f9;
}

/* Show URLs after links */
a::after {
  content: " (" attr(href) ")";
  font-size: 9pt;
}

/* --- Optional refinements --- */

/* 1. Hyphenation for better flow */
body, main, article, p {
  hyphens: auto;
}

/* 2. High-resolution images for print */
img {
  image-rendering: auto;
  -webkit-print-color-adjust: exact;
}

/* 3. Widow/orphan control */
p, blockquote {
  orphans: 3;
  widows: 3;
}

