:root {
  color-scheme: dark;
  font: 100%/1.6 system-ui, sans-serif;
  background: #171416;
  color: #f8efed;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible { outline: 2px solid #fbb59e; outline-offset: 4px; }
img { display: block; width: 100%; }
h1, h2, p { margin: 0; overflow-wrap: anywhere; }
h1, h2 { line-height: 1.12; }
.shell { width: min(100% - 2rem, 76rem); margin-inline: auto; }
.site-header, .site-footer { background: #211b1e; }
.site-header { border-bottom: 1px solid #453339; }
.site-header .shell, .site-footer .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  padding-block: 1rem;
}
.brand { font: bold 1.3rem Georgia, serif; text-decoration: none; }
.site-header nav, .pagination { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; }
.site-header nav a, .site-footer { color: #e3c9c0; }
main { padding-block: clamp(1.5rem, 4vw, 4rem); }
.page-heading {
  padding: clamp(1.2rem, 4vw, 3rem);
  border: 1px solid #594047;
  border-radius: .8rem;
  background: linear-gradient(125deg, #3d2830, #251e21);
  margin-bottom: 1.75rem;
}
.page-heading h1 { font: bold clamp(2rem, 6vw, 4rem)/1.08 Georgia, serif; }
.page-heading p { margin-top: .7rem; color: #eed5cc; }
.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
  gap: 1rem;
}
.thumbs__item { display: flex; min-width: 0; background: #261f23; border: 1px solid #453339; border-radius: .65rem; overflow: hidden; }
.thumb__link { display: block; width: 100%; text-decoration: none; }
a.thumb__link:hover .thumb__name, .site-header a:hover { color: #fbb59e; text-decoration: underline; }
.thumb__img { aspect-ratio: 4 / 3; object-fit: cover; background: #392831; }
.thumb__name { display: block; padding: .85rem 1rem; font-weight: 650; overflow-wrap: anywhere; }
.gallery-photo { width: min(100%, 46rem); margin: 0 0 2rem; }
.gallery-photo img { border-radius: .65rem; width: auto; max-width: 100%; max-height: 38rem; }
.gallery-photo figcaption { color: #e3c9c0; margin-top: .5rem; }
.section-title { margin: 1.5rem 0 1rem; font: bold clamp(1.4rem, 4vw, 2rem)/1.2 Georgia, serif; }
.pagination { margin-top: 1.75rem; }
.pagination a { background: #261f23; border: 1px solid #453339; padding: .35rem .75rem; border-radius: .4rem; }
.prose { max-width: 48rem; color: #ead9d5; }
.prose p + p { margin-top: .8rem; }
.site-footer { border-top: 1px solid #453339; }
.archive-list { columns: 3 16rem; padding-inline-start: 1.35rem; }
.archive-list li { break-inside: avoid; padding: .3rem .5rem .3rem 0; overflow-wrap: anywhere; }

@media (max-width: 40rem) {
  .thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .thumb__name { padding: .6rem; }
}
@media (max-width: 22rem) {
  .thumbs { grid-template-columns: minmax(0, 1fr); }
}
