/* Ad Fontes journal-style article typesetting.
 * Visual specification: Patrick Timmis's supplied Journal of Inklings Studies
 * article (2025), 442.2 × 663.3 pt, classical single-column text with running
 * heads, page numbers, page footnotes, centered first-page title/byline, and
 * restrained block quotations.
 */
@font-face {
  font-family:"AF Typeset";
  src:url("fonts/eb-garamond/EBGaramond-latin.woff2") format("woff2");
  font-style:normal; font-weight:400 700; font-display:swap;
}

@page {
  size:6.1417in 9.2126in;
  margin:0.72in 0.821in 0.63in;
  @top-center { content:none; }
  @bottom-center {
    content:counter(page);
    font-family:"AF Typeset", Georgia, serif;
    font-size:9pt; color:#111;
  }
  @footnote {
    border-top:0.55pt solid #333;
    padding-top:5pt;
    margin-top:8pt;
  }
}
@page:first {
  margin-top:1.06in;
  margin-bottom:1.62in;
  @top-center { content:none; }
}

* { box-sizing:border-box; }
html, body { margin:0; padding:0; background:#e7e5e1; color:#111; }
body { font-family:"AF Typeset", Georgia, serif; }

.af-typeset-toolbar {
  position:sticky; top:0; z-index:1000;
  display:flex; justify-content:center; align-items:center; gap:0.8rem;
  padding:0.7rem 1rem; color:#f8f3ea; background:#441922;
  box-shadow:0 2px 10px rgba(0,0,0,0.25);
}
.af-typeset-toolbar a,
.af-typeset-toolbar button {
  appearance:none; border:1px solid rgba(248,243,234,0.75);
  border-radius:999px; padding:0.5rem 0.9rem;
  background:transparent; color:#f8f3ea;
  font:600 0.86rem/1.1 Arial,sans-serif; text-decoration:none; cursor:pointer;
}
.af-typeset-toolbar button { background:#f8f3ea; color:#441922; }
.af-typeset-toolbar button:disabled { opacity:0.55; cursor:wait; }
.af-typeset-status { font:0.82rem/1.2 Arial,sans-serif; }
.af-typeset-source { display:none; }
.af-typeset-pages { padding:1.4rem 0 2rem; }

/* Paged.js preview surface. */
.pagedjs_pages { display:flex; flex-direction:column; align-items:center; gap:1.2rem; }
.pagedjs_page {
  margin:0 !important; background:#fff;
  box-shadow:0 3px 18px rgba(0,0,0,0.18);
}
.pagedjs_page_content { color:#111; }

.af-typeset-article {
  font-family:"AF Typeset", Georgia, serif;
  font-size:10.5pt; line-height:1.18;
  color:#111; text-align:justify; hyphens:auto;
  orphans:3; widows:3;
}
.af-typeset-title {
  margin:0 0 0.27in; text-align:center;
  font-family:"AF Typeset", Georgia, serif;
  font-size:18pt; line-height:1.12; font-weight:400;
}
.af-typeset-author {
  margin:0 0 0.68in; text-align:center;
  font-size:13pt; line-height:1.15;
}
.af-typeset-content p { margin:0; text-indent:1em; }
.af-typeset-content > p:first-child,
.af-typeset-content h2 + p,
.af-typeset-content h3 + p,
.af-typeset-content blockquote + p,
.af-typeset-content figure + p { text-indent:0; }
.af-typeset-content h2,
.af-typeset-content h3,
.af-typeset-content h4,
.af-typeset-content h5,
.af-typeset-content h6 {
  margin:0.16in 0 0.04in; text-align:center;
  font-family:"AF Typeset", Georgia, serif;
  font-size:11pt; line-height:1.15; font-weight:700;
  color:#111; letter-spacing:0; text-transform:none;
  break-after:avoid; page-break-after:avoid;
}
.af-typeset-content blockquote,
.af-typeset-content .wp-block-quote,
.af-typeset-content .wp-block-pullquote {
  margin:0.13in 0.17in; padding:0;
  border:0; color:#111; font-size:9.5pt; line-height:1.18;
  text-align:justify; break-inside:avoid-page;
}
.af-typeset-content blockquote p,
.af-typeset-content .wp-block-quote p,
.af-typeset-content .wp-block-pullquote p { margin:0; text-indent:0; }
.af-typeset-content cite { display:block; margin-top:4pt; text-align:right; }
.af-typeset-content figure { margin:0.14in 0; break-inside:avoid-page; }
.af-typeset-content img { display:block; max-width:100%; height:auto; margin:0 auto; }
.af-typeset-content figcaption { margin-top:3pt; font-size:8.5pt; text-align:center; }
.af-typeset-content ul,
.af-typeset-content ol { margin:0.08in 0 0.1in 0.24in; padding:0; }
.af-typeset-content li { margin:0 0 0.03in; }
.af-typeset-content a { color:inherit; text-decoration:none; }

/* Paged.js moves each inline note into the current page's footnote area and
   generates both the superscript call and the numbered marker. */
.af-typeset-footnote {
  float:footnote;
  font-family:"AF Typeset", Georgia, serif;
  font-size:8.5pt; line-height:1.12; text-align:left; hyphens:auto;
  footnote-display:block;
}
.af-typeset-footnote::footnote-call {
  content:counter(footnote);
  vertical-align:super; font-size:70%; line-height:0;
}
.af-typeset-footnote::footnote-marker {
  content:counter(footnote-marker) ". ";
  font-variant-numeric:tabular-nums;
}
.pagedjs_footnote_content { font-size:8.5pt; line-height:1.12; }
.af-typeset-footnote a,
.pagedjs_footnote_content a {
  color:#111 !important; text-decoration:none !important; overflow-wrap:anywhere;
}

.af-typeset-page-header {
  position:absolute; z-index:5; top:34px; left:59px; right:59px;
  font-family:"AF Typeset", Georgia, serif;
  font-size:9pt; line-height:1.1; color:#111; text-align:center;
}
.af-typeset-page-publication {
  position:absolute; z-index:5; left:59px; bottom:45px; width:260px;
  font-family:"AF Typeset", Georgia, serif;
  font-size:8.5pt; line-height:1.16; color:#111; text-align:left;
}
.af-typeset-page-publication em { font-style:italic; }


@media (max-width:700px) {
  .af-typeset-toolbar { flex-wrap:wrap; gap:0.45rem; }
  .af-typeset-status { flex-basis:100%; text-align:center; }
  .af-typeset-pages { padding:0.8rem 0 1.2rem; overflow-x:auto; align-items:flex-start; }
  .pagedjs_pages { align-items:flex-start; transform:scale(0.78); transform-origin:top left; width:128%; }
}

@media print {
  html, body { background:#fff !important; }
  .af-typeset-toolbar,
  .af-typeset-source { display:none !important; }
  .af-typeset-pages { padding:0 !important; }
  .pagedjs_pages { display:block !important; transform:none !important; width:auto !important; }
  .pagedjs_page { margin:0 !important; box-shadow:none !important; break-after:page; }
  .pagedjs_page:last-child { break-after:auto; page-break-after:auto; }
}

/* Complete-issue edition: retain the online season palette and artwork on a
   restrained cover, then flow the editorial order continuously. */
.af-typeset-issue-cover {
  page:issue-cover; break-after:page; height:7.5in; position:relative;
  padding:0.55in 0.45in; color:#f8f3ea; background:#441922; text-align:center;
}
.af-typeset-issue-cover__art {
  position:absolute; inset:0; background-size:cover; background-position:center;
  opacity:0.34; filter:grayscale(0.25);
}
.af-typeset-issue-cover::after { content:""; position:absolute; inset:0; background:linear-gradient(rgba(68,25,34,.28),rgba(68,25,34,.78)); }
.af-typeset-issue-cover > *:not(.af-typeset-issue-cover__art) { position:relative; z-index:2; }
.af-typeset-issue-cover__rule { width:3px; height:1.2in; margin:0 auto 0.45in; background:var(--issue-accent); }
.af-typeset-issue-kicker { margin:0; font-size:15pt; letter-spacing:.18em; text-transform:uppercase; }
.af-typeset-issue-cover h1 { margin:1.2in 0 0.12in; font-size:54pt; font-weight:400; }
.af-typeset-issue-season { margin:0; font-size:18pt; }
.af-typeset-issue-subtitle { margin:1.45in 0 0; font-size:12pt; font-style:italic; }
.af-typeset-issue-toc { break-after:page; padding-top:0.15in; }
.af-typeset-issue-toc h1 { text-align:center; font-size:18pt; font-weight:400; margin:0 0 0.3in; }
.af-typeset-issue-toc ol { list-style:upper-roman; margin:0; padding-left:0.3in; font-size:10pt; }
.af-typeset-issue-toc li { padding:0.08in 0 0.1in 0.06in; border-bottom:0.4pt solid #bbb; }
.af-typeset-issue-toc li span { display:block; text-transform:uppercase; font-size:8pt; letter-spacing:.08em; }
.af-typeset-issue-toc li em { display:block; font-size:10.5pt; }
.af-typeset-issue-article { break-before:page; }
@page issue-cover { margin:0; @bottom-center { content:none; } }

/* v2.36.162 — Patrick's print QA: a justified paragraph's final line must
   remain flush-left; never stretch it across the measure. */
.af-typeset-content p,
.af-typeset-content blockquote,
.af-typeset-content li,
.af-typeset-footnote,
.pagedjs_footnote_content {
  text-align:justify;
  text-align-last:left;
}
/* Our editorial footnotes are already explicitly numbered in the source
   conversion. Suppress Paged.js's list-marker glyph (Safari rendered it as a
   bullet) and supply the stable source number ourselves. */
.af-typeset-footnote::footnote-marker { content:none; }
.pagedjs_footnote_content [data-footnote-marker] { display:block; list-style:none; }
.af-typeset-article [data-align-last-split-element],
.af-typeset-article p,
.af-typeset-article blockquote,
.af-typeset-article li {
  text-align-last:left !important;
  -webkit-text-align-last:left !important;
}
