/* Blog index and posts. The sheet, type, and palette come from day.css.
   This file does not style the header. Body type is Source Serif 4, on the
   blog only. Headings stay IM Fell.
   The upright files are a variable font (weight 200–900: regular and semibold).
   Italic is regular italic. SIL OFL: /fonts/source-serif-4-OFL.txt. */

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin-ext-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* The sheet uses the header container (--site-header-max from day.css).
   The outer gutter matches the header's horizontal padding. Prose fills
   the sheet. Header and footer sit outside main, so they keep the shared faces. */
main.day {
  box-sizing: border-box;
  width: min(var(--site-header-max, 72rem), calc(100% - 2.5rem));
  margin: 0 auto 4rem;
  color: #1F1B17;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.65;
}
main.day strong,
main.day b {
  font-weight: 600;
}
/* Beats day.css .day-sheet padding, including the 1440px rule.
   Sides are 1.25rem on a phone and 3rem from about 1440px up. */
body.blog .day-sheet {
  background: #FFFFFF;
  color: #1F1B17;
  border: 1px solid rgba(31, 27, 23, 0.12);
  box-shadow: 0 1px 2px rgba(31, 27, 23, 0.05), 0 12px 32px rgba(31, 27, 23, 0.06);
  padding: 1.65rem clamp(1.25rem, 0.63rem + 2.63vw, 3rem) 2.15rem;
}
.day-sheet h1,
.day-sheet h2,
.blog-body h3 {
  font-family: var(--display);
  font-weight: 400;
  color: #1F1B17;
}
.blog-body {
  overflow-wrap: anywhere;
}
.blog-body h2 { margin-top: 1.75rem; }
.blog-body h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 1.35rem 0 0.5rem;
}
.blog-body p { margin: 0 0 1rem; }
.blog-body ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.blog-body li { margin: 0.35rem 0; }
.blog-body a { text-underline-offset: 0.15em; }
/* Illustrations stay the width they had in the 46rem sheet
   (that sheet's padding was 1.25rem on each side) and sit in the
   middle of the wider panel. Narrow viewports shrink the figure. */
.blog-figure {
  width: min(calc(46rem - 2.5rem), 100%);
  max-width: 100%;
  margin-top: 0;
  margin-bottom: 1.5rem;
  margin-left: auto;
  margin-right: auto;
  overflow-x: auto;
}
.blog-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  background: #FFFFFF;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
/* A heading that titles a table shares this block with the table, so the
   heading's left edge is the table's left edge. The block is as wide as
   the widest table inside it (up to the sheet) and is centred.
   Headings and lead paragraphs must not set that width: a paragraph's
   max-content is the whole sentence on one line, which would stretch the
   block to the sheet and pin a narrower table to the prose edge. */
.blog-captioned {
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.blog-captioned-figure {
  width: min(calc(46rem - 2.5rem), 100%);
}
.blog-captioned > h2,
.blog-captioned > h3,
.blog-captioned > p,
.blog-table-figure > figcaption {
  width: 0;
  min-width: 100%;
}
.blog-captioned-figure > .blog-figure {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}
.blog-table-figure {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 1.25rem;
  padding: 0;
}
.blog-captioned > .blog-table-figure {
  margin-left: 0;
  margin-right: 0;
}
.blog-table-figure > figcaption {
  display: block;
  padding: 0;
  text-align: left;
}
/* Tables size to their cells, wider than the illustrations, up to the
   sheet. A table that is wider than the sheet scrolls inside the wrap.
   Cells stay on one line: the sheet's overflow-wrap:anywhere must not
   apply here, or a narrow column breaks "Summer" into "Summe r". */
.blog-table-wrap {
  width: fit-content;
  max-width: 100%;
  margin-top: 0;
  margin-bottom: 1.25rem;
  margin-left: auto;
  margin-right: auto;
  overflow-x: auto;
}
.blog-table-figure > .blog-table-wrap {
  margin: 0;
}
.blog-table {
  width: max-content;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.45;
}
.blog-table th,
.blog-table td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 0.45rem 0.55rem;
  vertical-align: top;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}
.blog-table th {
  font-family: var(--small-caps);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.35;
}
.blog-date {
  margin: 0 0 1rem;
  color: var(--letter-muted);
  font-family: var(--small-caps);
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}
.blog-list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.blog-list li { border-top: 1px solid var(--line); padding: 1.15rem 0; }
.blog-list h2 { margin: 0 0 0.35rem; font-size: 1.45rem; }
.blog-list h2 a { text-decoration: none; }
.blog-list h2 a:hover { text-decoration: underline; }
.blog-list p { margin: 0.35rem 0 0; color: #1F1B17; }
.blog-list .blog-date { margin: 0; color: var(--letter-muted); }
.site-foot {
  padding: 1rem 1.25rem 3rem;
  text-align: center;
  color: var(--muted);
}
.site-foot .plate {
  width: min(280px, 70%);
  margin: 0 auto 1rem;
  border: 0;
  padding: 0;
  background: transparent;
}
.site-foot .plate img { background: transparent; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; justify-content: center; }
.site-foot a { color: var(--muted); }

/* One left edge for the date, the title, headings, and paragraphs.
   Margin shorthands above must not re-center them. */
.day-sheet > .day-kicker,
.day-sheet > h1,
.day-sheet > p,
.blog-body > h1,
.blog-body > h2,
.blog-body > h3,
.blog-body > p,
.blog-body > ul,
.blog-list {
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}
@media (min-width: 2560px) {
  main.day { width: min(var(--site-header-max, 90rem), calc(100% - 4rem)); }
}
