/* /essays/<slug>: a calm reading page, one text column (scripts/essay-pages.mjs).
   The house's own colours (shell.css: ivory by day, navy by night) and its one family, EB Garamond.
   Greek: the same family's Greek and polytonic (greek-ext) subsets, from the same package as the latin files
   (@fontsource-variable/eb-garamond 5.3.0, OFL-1.1, see fonts/LICENSE-eb-garamond.txt), loaded only when a page has Greek.
   No shadow behind letters: nothing on this page has a text-shadow. */
@font-face {
  font-family: "EB Garamond";
  src: url("/publishing-ui/fonts/eb-garamond-greek-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}
@font-face {
  font-family: "EB Garamond";
  src: url("/publishing-ui/fonts/eb-garamond-greek-ext-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+1F00-1FFF;
}

.essay {
  /* One column, 40rem wide: about 70 characters a line at 1440 px, about 40 at 390 px. */
  width: min(calc(100% - 2 * var(--side-gutter, 24px)), 40rem);
  margin-inline: auto;
  padding-block: clamp(2rem, 6vw, 4.5rem) clamp(3.5rem, 8vw, 6rem);
  color: var(--copy, #263156);
  font-size: clamp(1.0625rem, 0.97rem + 0.34vw, 1.2rem);
  line-height: 1.68;
  text-shadow: none;
  overflow-wrap: break-word;
  hyphens: manual;
}
.essay *, .essay *::before, .essay *::after { text-shadow: none; }
.essay h1 {
  margin: 0 0 clamp(1.4rem, 4vw, 2.2rem);
  max-width: 24ch;
  font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem);
  line-height: 1.12;
  letter-spacing: -.005em;
  color: var(--cream, #141d3d);
  text-wrap: balance;
}
/* store.css, house.css and site.css set the size, line, width and spacing of "p" and "blockquote" with ".skin" in front and load
   after this file; the same ".skin .essay" in front is what outranks them. */
.skin .essay p { margin: 0; max-width: none; font-size: inherit; line-height: inherit; }
.skin .essay p + p, .skin .essay p + blockquote, .skin .essay blockquote + p { margin-top: 1.15em; }
.essay a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}
.essay em { font-style: italic; }

/* The Greek: a block quote that stands a little apart, with a thin rule beside it. */
.skin .essay blockquote {
  margin: 1.6em 0 0;
  padding: .1em 0 .1em 1.1em;
  border-left: 2px solid var(--line-strong, rgba(20, 29, 61, .32));
  quotes: none;
  font-family: "EB Garamond", "Gentium Plus", "Gentium Book Plus", "Noto Serif", "Cardo", "Palatino Linotype", "Times New Roman", serif;
  font-style: normal;
  font-size: 1.1em;
  line-height: 1.6;
  color: var(--cream, #141d3d);
  font-feature-settings: "kern" 1;
}
.skin .essay blockquote p + p { margin-top: .55em; }
/* The citation under a Greek block, and then our English. */
.skin .essay p.essay__cite { margin-top: .6em; font-size: .86em; line-height: 1.4; color: var(--quiet, #37446c); }
.skin .essay blockquote + .essay__cite + p { margin-top: .9em; }

/* The index of the essays (/essays): the heading, one line, and the two essays as entries with a thin rule above each. Nothing here has a text-shadow. */
.skin .essay .essays-index__lead { color: var(--quiet, #37446c); }
.essays-index__list { list-style: none; margin: clamp(1.8rem, 5vw, 2.8rem) 0 0; padding: 0; display: grid; gap: clamp(1.5rem, 4vw, 2.2rem); }
.essays-index__item { padding-top: clamp(1.1rem, 3vw, 1.5rem); border-top: 1px solid var(--line, rgba(20, 29, 61, .16)); }
.essays-index__item h2 { margin: 0 0 .45em; font-size: 1.3em; line-height: 1.25; font-weight: 500; text-wrap: balance; }
.skin .essay .essays-index__item p + p { margin-top: .7em; }

@media (max-width: 720px) {
  .skin .essay blockquote { padding-left: .85em; font-size: 1.06em; }
}
@media print {
  .essay { width: auto; margin: 0; padding: 0; color: #000; }
}
