/* ==========================================================================
   Design 3, "Folio" — article pages, set like a page of a printed book:
   running heads, a chapter opening, justified text with indented
   paragraphs and a small-caps first line, an ornament to close.
   ========================================================================== */

[hidden]{ display:none !important; }

.leaf{ padding-top:clamp(26px,3.6vw,48px); }

.runhead{
  display:flex; justify-content:space-between; gap:18px;
  max-width:760px; margin:0 auto; padding-bottom:10px; border-bottom:1px solid var(--rule);
  font-size:.66rem; letter-spacing:.2em; text-transform:uppercase; color:var(--ink-3);
}

.leaf__open{ max-width:820px; margin:clamp(34px,5vw,70px) auto 0; text-align:center; }
.leaf__open > *{ margin:0; }
.leaf__title{ margin-top:14px; font-family:var(--f-display); font-size:clamp(2.1rem,5vw,3.9rem); line-height:1.06; }
.leaf__dek{
  max-width:46ch; margin:18px auto 0 !important;
  font-style:italic; font-size:clamp(1.05rem,1.5vw,1.25rem); line-height:1.55; color:var(--ink-2);
}
.leaf__open .orn{ margin-top:24px; }
.leaf__meta{ margin-top:14px !important; color:var(--ink-3); }
.leaf__time::before{ content:"\00B7"; margin:0 .7em; }

.leaf__plate{ max-width:1080px; margin:clamp(30px,4vw,54px) auto 0; padding-inline:var(--gut); }
.leaf__plate img{ width:100%; height:auto; }
.leaf__plate figcaption{ margin-top:10px; text-align:center; font-style:italic; font-size:.82rem; color:var(--ink-3); }

/* ---- her text, poured in by reader.js ---- */
.leaf__text{
  max-width:35em; margin:clamp(34px,4.6vw,62px) auto 0;
  font-size:clamp(1.06rem,1.16vw,1.18rem); line-height:1.74;
  hyphens:auto; -webkit-hyphens:auto;
}
.leaf__text > *{ margin:0; }
.leaf__text > p{ text-align:justify; }
/* a book indents the next paragraph instead of leaving a gap; a paragraph
   after a heading, picture or quotation starts flush */
.leaf__text > p + p{ text-indent:1.6em; }
.leaf__text > p:first-of-type::first-letter{
  float:left; font-family:var(--f-display); font-size:3.7em; line-height:.8;
  padding:.07em .08em 0 0; color:var(--green);
}
.leaf__text > p:first-of-type::first-line{ font-variant:small-caps; letter-spacing:.05em; }

.leaf__text h2, .leaf__text h3, .leaf__text h4{
  margin:2.3em 0 1.1em; text-align:center;
  font-family:var(--f-text); font-weight:400; font-size:.78em; line-height:1.5;
  letter-spacing:.2em; text-transform:uppercase; color:var(--green);
}
.leaf__text figure{ margin:2em 0; }
.leaf__text figure img{ margin-inline:auto; }
.leaf__text figcaption{ margin-top:10px; text-align:center; font-style:italic; font-size:.8em; line-height:1.5; color:var(--ink-3); }
.leaf__text blockquote{ margin:1.4em 1.8em; font-style:italic; color:var(--ink-2); }
.leaf__text blockquote p + p{ text-indent:1.6em; }
.leaf__text ul, .leaf__text ol{ margin:1em 0 1em 1.6em; }
.leaf__text ul{ list-style:disc; }
.leaf__text ol{ list-style:decimal; }
.leaf__text li{ margin-bottom:.3em; }
.leaf__text hr, .leaf__text [data-sep]{ height:auto; margin:1.8em 0; border:0; overflow:visible; text-align:center; }
.leaf__text hr::before, .leaf__text [data-sep]::before{ content:"\2042"; font-size:1.2em; color:var(--gold); }
.leaf__text [data-gallery]{ display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:10px; margin:2em 0; }
.leaf__text [data-gallery] figure{ margin:0; }
.leaf__text iframe{ width:100%; aspect-ratio:16/9; height:auto; margin:1.6em 0; border:0; }
.leaf__text a{ color:var(--green); text-decoration:none; border-bottom:1px solid rgba(31,58,46,.35); }
.leaf__text a:hover{ border-bottom-color:var(--green); }

.leaf__fin{ display:none; margin:2.2em 0 0 !important; text-align:center; font-family:Georgia, serif; font-size:1.4rem; color:var(--gold); }
.reader--ready .leaf__fin{ display:block; }
.leaf__src{
  max-width:35em; margin:1.6em auto 0 !important; padding-top:14px; border-top:1px solid var(--rule);
  text-align:center; font-style:italic; font-size:.85rem; color:var(--ink-3);
}
.leaf__fail{ max-width:35em; margin:0 auto; padding:18px 22px; text-align:center; background:var(--paper-2); border:1px solid var(--rule); }

/* ---- loading skeleton ---- */
.sk span{
  display:block; height:.95em; margin:0 0 .85em;
  background:linear-gradient(90deg,var(--paper-2) 25%,#E5DCCB 50%,var(--paper-2) 75%);
  background-size:200% 100%; animation:sk 1.4s linear infinite;
}
.sk .sk__s{ width:60%; margin-bottom:1.8em; }
@keyframes sk{ to{ background-position:-200% 0; } }
@media (prefers-reduced-motion:reduce){ .sk span{ animation:none; } }

/* ---- turn the page ---- */
.turn{ margin-top:clamp(44px,5.6vw,80px); border-top:1px solid var(--rule); border-bottom:1px solid var(--rule); }
.turn__in{ display:grid; grid-template-columns:1fr 1fr; gap:24px; padding-block:clamp(20px,2.8vw,34px); }
.turn__a{ display:flex; flex-direction:column; gap:6px; text-decoration:none; }
.turn__a .sc{ color:var(--gold); }
.turn__t{ font-family:var(--f-display); font-size:clamp(1.1rem,1.7vw,1.4rem); line-height:1.2; transition:color .25s var(--ease); }
.turn__a:hover .turn__t{ color:var(--green); }
.turn__a--r{ text-align:right; align-items:flex-end; }

@media (max-width:760px){
  .leaf__text{ hyphens:manual; -webkit-hyphens:manual; }
  .leaf__text > p{ text-align:left; }
  .runhead span:last-child{ display:none; }
  .turn__in{ grid-template-columns:1fr; }
  .turn__a--r{ text-align:left; align-items:flex-start; }
}

/* a standfirst that WordPress set as a heading reads as a standfirst here:
   italic, sentence case, a little larger than the text */
.leaf__text [data-standfirst]{
  margin:0 0 1.8em; text-align:center; text-transform:none; letter-spacing:0;
  font-family:var(--f-text); font-style:italic; font-size:1.08em; line-height:1.55;
  color:var(--ink-2);
}
