:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #111;
  --muted: #595959;
  --rule: #e0e0e0;
  --headings: "Montserrat", Helvetica, Arial, sans-serif;
  --sans: "Roboto", Helvetica, Arial, sans-serif;
  --navigation: "Raleway", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body { margin: 0; background: var(--paper); color: var(--muted); font: 400 1rem/1.65 var(--sans); }
a { color: var(--ink); text-underline-offset: .2em; }
a:hover { color: #000; }
a:focus-visible, summary:focus-visible { outline: 2px solid #333; outline-offset: .25rem; }
img { display: block; max-width: 100%; height: auto; }
main { min-height: 50vh; }
main:focus { outline: none; }

.skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 4; transform: translateY(-200%); padding: .75rem 1rem; background: white; }
.skip-link:focus { transform: none; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--rule); }
.header-inner, .footer-inner, .hero-inner, .listing, .wide-page {
  width: min(75rem, calc(100% - 3rem));
  margin-inline: auto;
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding-block: .75rem;
  gap: .4rem 1.75rem;
}
.wordmark { color: var(--ink); font: 700 clamp(1.65rem, 3vw, 2.2rem)/1.2 var(--headings); text-decoration: none; letter-spacing: -1px; }
.site-header nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 clamp(.65rem, 2vw, 1.5rem); }
.site-header nav a { color: var(--muted); font: 600 .875rem/1.4 var(--navigation); letter-spacing: .07em; text-decoration: none; text-transform: uppercase; padding-block: .65rem; }
.site-header nav a:hover, .site-header nav [aria-current="page"] { color: var(--ink); text-decoration: underline; }

.with-cover .site-header { position: absolute; inset: 0 0 auto; z-index: 2; background: transparent; border: 0; }
.with-cover .header-inner { padding-block: clamp(.85rem, 2vw, 1.5rem); }
.with-cover .site-header .wordmark, .with-cover .site-header nav a:hover,
.with-cover .site-header nav [aria-current="page"] { color: #fff; }
.with-cover .site-header nav a { color: #f0f0f0; }
.with-cover .site-header a:focus-visible, .hero-down:focus-visible { outline-color: #fff; }

.hero {
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  padding-block: 6rem;
  background: #282828;
}
.hero > img, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero > img { z-index: -2; object-fit: cover; object-position: center; }
.hero::after {
  z-index: -1;
  content: "";
  background: linear-gradient(180deg, rgb(0 0 0 / .78), transparent 28%, transparent 70%, rgb(0 0 0 / .55)),
              radial-gradient(ellipse at center, rgb(0 0 0 / .46), transparent 70%);
}
.hero h1 {
  color: #fff;
  font: 400 clamp(1.2rem, 2.55vw, 1.8rem)/1.4 var(--headings);
  letter-spacing: .14em;
  margin: 0;
  text-align: center;
  text-shadow: 0 1px 12px #222, 0 2px 21px #222;
  text-transform: uppercase;
  text-wrap: balance;
}
.hero-down {
  position: absolute;
  inset: auto 0 max(1.2rem, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: 3.125rem;
  height: 3.125rem;
  margin-inline: auto;
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / .8));
}
.hero-down img { width: 2rem; height: 2rem; }
#blog-posts:focus { outline: none; }

@media (prefers-reduced-motion: no-preference) {
  .with-cover { scroll-behavior: smooth; }
}

.listing, .wide-page { padding-block: clamp(2.25rem, 4vw, 3rem); }
.section-heading {
  margin: 0 0 1.5rem;
  color: var(--ink);
  font: 500 clamp(1.4rem, 2.65vw, 1.8rem)/1.2 var(--headings);
  letter-spacing: .13em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.posts, .books { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.posts { gap: 0; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
#blog-posts { width: 100%; padding-block-end: 2.25rem; }
#blog-posts > :not(.posts) { margin-inline: auto; width: min(75rem, calc(100% - 3rem)); }
.with-cover #blog-posts { padding-block-start: 0; }
.with-cover #blog-posts .posts { border-top: 0; }
.with-cover #blog-posts > .section-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.post-card { border-inline-end: 1px solid var(--rule); border-block-end: 1px solid var(--rule); aspect-ratio: 1; }
.post-card-link {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.post-card-link:hover { color: inherit; }
.post-card-content { padding: 8%; }
.post-card h2, .post-card h3, .book h2 { margin: 0 0 .45rem; color: var(--ink); font: 500 1.1rem/1.2 var(--headings); letter-spacing: .067em; text-transform: uppercase; overflow-wrap: anywhere; }
.post-card-link:hover :is(h2, h3), .book-link:hover h2, .book-link:focus-visible h2 { text-decoration: underline; }
.post-card-link:focus-visible { outline-offset: -4px; }
.post-card p { color: var(--muted); font-size: .9rem; line-height: 1.65; margin: 1.25rem 0 0; }
.post-card--photo { color: #fff; background: #222; text-align: center; }
.post-card--photo .post-card-link:focus-visible { outline-color: #fff; }
.post-card--photo img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.post-card--photo .post-card-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(transparent, rgb(0 0 0 / .64) 30% 70%, transparent);
}
.post-card--photo :is(h2, h3), .post-card--photo .entry-meta { color: #fff; }
.post-card--photo .entry-meta { justify-content: center; }
.entry-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .65rem; color: var(--muted); font-size: .8125rem; line-height: 1.55; }
.pagination { border-top: 1px solid var(--rule); margin-top: 2.25rem; padding-top: .9rem; display: flex; justify-content: space-between; }
.pagination span { margin-inline: auto; color: var(--muted); }

.books-page > .section-heading, .articles-page > .section-heading { text-align: center; }
.books-page > .section-heading { margin-block-end: 2.25rem; }
.books { row-gap: 2rem; }
.book { border-top: 1px solid var(--rule); padding-top: 1rem; text-align: center; }
.book-link { display: block; text-decoration: none; }
.book-art {
  position: relative;
  display: block;
  width: min(100%, 17rem);
  aspect-ratio: 3 / 4;
  margin: 0 auto .85rem;
}
.book-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin-inline: auto;
  object-fit: contain;
  object-position: center bottom;
}
/* Front widths in the source images, scaled to the common 3:4 cover area. */
.book-art--trianon { --front-width: calc(100% * 490 / 696 * 4 / 3); }
.book-art--pergo { --front-width: calc(100% * 488 / 710 * 4 / 3); }
.book-art--front img { width: var(--front-width); object-fit: cover; object-position: right center; }
.book-cover { max-width: min(100%, 25rem); margin-bottom: 1.5rem; }
.site-footer { border-top: 1px solid var(--rule); background: #f4f4f4; }
.footer-inner { display: grid; gap: 1.75rem; padding-block: 2.25rem; }
.footer-inner > .wordmark { justify-self: start; font-size: 1.5rem; }
.footer-credit { display: grid; justify-self: center; gap: .55rem; text-align: center; }
.footer-archive + .footer-credit { margin-block-start: 1rem; }
.footer-logo { justify-self: center; width: 150px; height: auto; }
.footer-copyright { margin: 0; font-size: .875rem; }
.footer-archive h2 { margin: 0 0 1.25rem; color: var(--ink); font: 500 1rem/1.2 var(--headings); text-transform: uppercase; letter-spacing: .14em; }
.archive-years {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr));
  gap: 1rem .75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.archive-years > li { position: relative; padding: .4rem .25rem 0; border-top: 1px solid #b8b8b8; }
.archive-years > li::before { position: absolute; inset: -.24rem auto auto .25rem; content: ""; width: .42rem; height: .42rem; border-radius: 50%; background: #555; }
.archive-years summary { cursor: pointer; padding-block: .5rem; color: var(--ink); font: 600 1rem/1.35 var(--headings); }
.archive-years ul { border-inline-start: 1px solid var(--rule); margin: 0 0 .5rem .35rem; padding: 0 0 0 .75rem; list-style: none; }
.archive-years a { display: inline-block; padding-block: .2rem; font-size: .9rem; }

@media (max-width: 52rem) {
  .posts, .books { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 36rem) {
  .header-inner, .footer-inner, .hero-inner, .listing, .wide-page { width: calc(100% - 2rem); }
  .header-inner { padding-block: .8rem .3rem; }
  .header-inner nav { width: 100%; }
  .posts { grid-template-columns: 1fr; }
  .archive-years { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.entry, .entry-inner {
  width: min(47.5rem, calc(100% - 3rem));
  margin-inline: auto;
  padding-block: clamp(2.25rem, 5vw, 3rem);
}
.entry-header { text-align: center; padding-block-end: 1.5rem; }
.entry-heading {
  margin: 0;
  color: var(--ink);
  font: 500 clamp(1.25rem, 2.65vw, 1.6rem)/1.25 var(--headings);
  letter-spacing: .16em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.prose { overflow-wrap: anywhere; }
.prose::after { display: table; clear: both; content: ""; }
.prose p { margin-block: 2rem; }
.prose > :first-child { margin-block-start: 0; }
.prose > :last-child { margin-block-end: 0; }
.prose h2, .prose h3 { color: var(--ink); font-family: var(--headings); font-weight: 500; }
.prose li { margin-block: .45em; }
.prose figure, .prose blockquote { margin: 2rem 0; }
.prose blockquote { border-inline-start: 2px solid var(--rule); padding-inline-start: 1.5rem; font-style: italic; }
.prose figcaption { margin-top: .5em; font-size: .89em; }
.prose .portrait { float: left; width: min(42%, 19rem); margin: 0 1.5rem .65rem 0; }
.prose .align-right { text-align: right; }

.article-cover {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: clamp(17rem, 42vw, 36rem);
  background: #222;
  text-align: center;
  padding: 2rem 1.5rem;
}
.article-cover img, .article-cover::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.article-cover img { z-index: -2; object-fit: cover; }
.article-cover::after { z-index: -1; content: ""; background: linear-gradient(transparent, rgb(0 0 0 / .7) 30% 70%, transparent); }
.article-cover .entry-heading { color: #fff; }

.article-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
  border-block: 1px solid var(--rule);
  background: #f5f5f5;
  text-align: center;
}
.article-info, .article-neighbor {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: clamp(11rem, 22vw, 18rem);
  padding: 1.5rem;
}
.article-info { border-inline: 1px solid var(--rule); }
.article-info img { width: 6rem; height: 6rem; object-fit: cover; border-radius: 2px; }
.article-author { font: 600 1rem/1.4 var(--headings); letter-spacing: .12em; text-transform: uppercase; }
.article-author a { text-decoration: none; }
.article-author a:hover { text-decoration: underline; }
.article-info time { font-size: .9rem; }
.article-terms { display: flex; justify-content: center; flex-wrap: wrap; gap: .25rem .8rem; list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.article-neighbor { position: relative; isolation: isolate; text-decoration: none; overflow-wrap: anywhere; }
.article-neighbor:hover .neighbor-title { text-decoration: underline; }
.article-neighbor:focus-visible { outline-offset: -4px; }
.neighbor-label { font-size: .875rem; }
.neighbor-title { font: 600 .95rem/1.4 var(--navigation); letter-spacing: .08em; text-transform: uppercase; }
.article-neighbor--photo, .article-neighbor--photo:hover { color: #fff; background: #222; }
.article-neighbor--photo:focus-visible { outline-color: #fff; }
.article-neighbor img, .article-neighbor--photo::before { position: absolute; inset: 0; width: 100%; height: 100%; }
.article-neighbor img { z-index: -2; object-fit: cover; }
.article-neighbor--photo::before { content: ""; z-index: -1; background: rgb(0 0 0 / .58); }

@media (max-width: 43rem) {
  .article-bottom { grid-template-columns: 1fr; }
  .article-info { border-inline: 0; }
  .article-neighbor { min-height: 10rem; border-block: 1px solid var(--rule); }
  .article-neighbor-space { display: none; }
}
@media (max-width: 36rem) {
  .entry, .entry-inner { width: calc(100% - 2rem); }
  .prose .portrait { float: none; width: min(75%, 17rem); margin: 0 0 1.2rem; }
}
