@font-face {
  font-family: "Linux Biolinum";
  src: url("linux-biolinum/LinuxBiolinum.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: et-book, "Linux Biolinum", "GFS Didot", Palatino, "Palatino Linotype",
               "Palatino LT STD", "Book Antiqua", Georgia, serif;
}

/* Minimal site navigation (template.html5). */
.site-nav {
  font-size: 1.3rem;
  margin-top: 1.6rem;
}
.site-nav a {
  text-decoration: none;
  margin-right: 3em;
}
.site-nav a:hover {
  text-decoration: underline;
}

/* Date rendered as a margin note (template.html5): give its paragraph the
   same 55% text-column width Tufte uses for section paragraphs, so the
   floated .marginnote lands in the margin instead of off-screen. */
#title-block-header .date {
  width: 55%;
  margin: 0;
}

/* Constrain the title to the same 55% text column so the date note, now
   lifted beside the title, can never overlap it. */
#title-block-header .title {
  width: 55%;
}

span.marginnote.toc ul {
   list-style: none;
   padding-left: 0;
}

span.marginnote a {
   text-decoration: none;
}

/* Opt-in marginnote index (poem-index.lua): collection dirs, then poems. */
span.marginnote .toc-dir {
  font-variant: small-caps;
  /* font-variant: normal; */
  /* letter-spacing: 0.03em; */
  letter-spacing: 0;
}

span.marginnote .toc-title {
  display: block; margin-bottom: 0.6em;
}

span.marginnote .toc-poem {
  font-variant: small-caps;
  display: inline-block;
}


/* Index links: no underline until hovered (Tufte underlines all links). */
span.marginnote .toc-dir,
span.marginnote .toc-poem {
  display: inline-block;
  text-decoration: none;
}

/* One indentation step per nesting level (level 1 is flush, like xmark). */
span.marginnote .toc-l2 { padding-left: 1.2em; }
span.marginnote .toc-l3 { padding-left: 2.4em; }
span.marginnote .toc-l4 { padding-left: 3.6em; }

/* Poem listings (poem-index.lua): shared styles for the multi-column catalog
   (.poem-catalog) and the single-column collection list (.poem-collection). */

.poem-list {
  font-size: 1.4rem;
}
.poem-list a {
  display: block;
  text-decoration: none;
  break-inside: avoid;
}
.poem-list a:hover {
  text-decoration: underline;
}
.poem-list .cat-tag {
  font-style: italic;
  opacity: 0.75;
  margin-left: 0.75em;
}
.poem-list .cat-group {
  break-inside: avoid;
}
.poem-list .cat-letter {
  margin: 0em 0 0.3em;
  font-size: 1.1rem;
  font-weight: 400;
  font-style: normal;
  opacity: 0.6;
}
.poem-list .cat-group:first-child .cat-letter {
  margin-top: 0;
}

/* letters="false" (poem-catalog): keep the letter's box so each group keeps its
   separating gap, but do not print the glyph. */
.poem-list.cat-noletters .cat-letter {
  visibility: hidden;
}

/* Only the catalog lays out in columns; .poem-collection stays vertical. */
.poem-catalog {
  column-count: 3;
  column-gap: 2em;
}

span.marginnote .toc-dir:hover,
span.marginnote .toc-poem:hover {
  text-decoration: underline;
}

/* Book covers in publications.md: Tufte margin figures (via pandoc-sidenote's
   {^-} margin-note block), softened with a subtle shadow. pandoc-sidenote emits
   the note in a full-width wrapper, but Tufte's float assumes a 55%-wide
   containing block — so pin the wrapper to the text column, or the note (with
   its -60% right margin) flies off the right edge. */
div.sidenote-wrapper {
  width: 55%;
}

.marginnote img {
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25);
}

/* Epigraph blockquote: Tufte's look — indented (UA 40px), narrower paragraph,
   italic text, with the vertical spacing of Tufte's div.epigraph. Longhand
   vertical margins so the browser's 40px left/right indent is preserved. */
blockquote {
  font-style: italic;
  margin-top: 3em;
  margin-bottom: 3em;
}

blockquote footer {
  font-style: normal;
}

/* Keep the epigraph's margin notes on the same edge as every other note.
   The blockquote's fixed 40px indent shifts/narrows the note's containing
   block, so plain -60%/50% (or Tufte's -82%/59%) lands off by 8-130px.
   These tuned values line the note up with the rest of the margin. */
blockquote .sidenote,
blockquote .marginnote {
  margin-right: -65%;
  min-width: 53.5%;
}
