/* Renagerie blog. Light and dark, one column on phones, sidebar on wide screens. */
:root {
  color-scheme: light dark;
  --bg: #fbfaf7; --fg: #222; --muted: #6b6760; --rule: #e3dfd7; --accent: #9a3d12; --box: #f2efe8;
  --off: #dedad2; --on: #b5501c; --on-text: #fff; --off-text: #8a857c;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #1b1a18; --fg: #e6e2da; --muted: #9c968b; --rule: #34312c; --accent: #f0915a; --box: #25231f;
          --off: #34312c; --on: #c8622a; --on-text: #fff; --off-text: #8a857c; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg);
       font: 18px/1.6 Charter, "Iowan Old Style", Georgia, serif; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

header.site, .wrap, footer.site { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }
header.site { padding-top: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.site-title { font: 700 2.2rem/1.1 -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
              color: var(--fg); text-decoration: none; letter-spacing: -.01em; }
.tagline { margin: .3rem 0 .8rem; color: var(--muted); font-style: italic; }
header nav a, .meta, .small, .tags, .prevnext, .widget h2, footer.site, .who, h2.month {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif; }
header nav a { margin-right: 1.1rem; font-size: .95rem; text-decoration: none; }

.wrap { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: 3.5rem; padding-top: 1.5rem; }
@media (max-width: 52rem) { .wrap { grid-template-columns: minmax(0, 1fr); gap: 1rem; } }
main { min-width: 0; }

article.post { margin-bottom: 3rem; }
article.post h1, article.post h2 { font: 700 1.6rem/1.25 -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  margin: 0 0 .3rem; letter-spacing: -.01em; }
article.post h2 a { color: var(--fg); text-decoration: none; }
article.post h2 a:hover { color: var(--accent); }
main > h1 { font: 700 1.8rem/1.2 -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif; margin: 0 0 .3rem; }
.meta, .small, .tags { color: var(--muted); font-size: .85rem; }
.meta { margin: 0 0 1rem; }
.meta a, .tags a { color: var(--muted); }

.content { overflow-wrap: break-word; }
.content::after { content: ""; display: table; clear: both; }
.content img { max-width: 100%; height: auto; }
.content iframe { max-width: 100%; }
.content .embed-youtube iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.content blockquote { margin: 1rem 0; padding: .2rem 1rem; border-left: 3px solid var(--rule); color: var(--muted); }
.content table { border-collapse: collapse; max-width: 100%; display: block; overflow-x: auto; }
.content td, .content th { padding: .2rem .5rem; border: 1px solid var(--rule); font-size: .9rem; }
.content h2, .content h3 { font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif; line-height: 1.3; }

.wp-caption { max-width: 100%; margin: .3rem 0 1rem; }
.wp-caption img { display: block; }
.wp-caption-text { margin: .3rem 0 0; font: .82rem/1.4 -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif; color: var(--muted); }
.alignleft { float: left; margin: .3rem 1.2rem .8rem 0; }
.alignright { float: right; margin: .3rem 0 .8rem 1.2rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
@media (max-width: 34rem) { .alignleft, .alignright { float: none; margin: .3rem 0 1rem; } }
.gallery { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.gallery-item { margin: 0; }
.gallery-icon { margin: 0; }
.gallery-caption { margin: 0; font-size: .8rem; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .5rem; margin: 1rem 0; }
.photos img { display: block; width: 100%; height: 170px; object-fit: cover; }

.prevnext { display: flex; justify-content: space-between; gap: 1rem; margin: 2rem 0; font-size: .9rem; }
.prevnext .next { margin-left: auto; text-align: right; }

.comments { border-top: 1px solid var(--rule); margin-top: 2rem; padding-top: 1rem; }
.comments h2 { font: 700 1.2rem -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif; }
.comments ol { list-style: none; padding: 0; }
.comments .reply { margin: 1rem 0 0; }
.comment { margin: 0 0 1.2rem; }
.comment .content { font-size: .95rem; }
.comment .content p { margin: .3rem 0; }
.who { margin: 0; font-weight: 600; font-size: .9rem; }
.who .small { font-weight: 400; margin-left: .4rem; }
ol.replies { margin: .8rem 0 0 1.2rem; padding-left: 1rem; border-left: 2px solid var(--rule); }

h2.month { font-size: 1rem; margin: 1.5rem 0 .3rem; color: var(--muted); }
ul.titles { list-style: none; padding: 0; margin: 0; }
ul.titles li { padding: .15rem 0; }

aside { font-size: .95rem; }
.widget { margin-bottom: 2rem; }
.widget h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 .6rem; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: .1rem 0; }
ul.years { columns: 3; }
svg.states { width: 100%; height: auto; display: block; }
svg.states rect { fill: var(--off); }
svg.states .on rect { fill: var(--on); }
svg.states text { font: 600 9px -apple-system, BlinkMacSystemFont, sans-serif; text-anchor: middle; fill: var(--off-text); }
svg.states .on text { fill: var(--on-text); }

footer.site { border-top: 1px solid var(--rule); margin-top: 2rem; padding-top: 1rem; padding-bottom: 2rem; color: var(--muted); font-size: .85rem; }
.content .credit { display: block; text-align: center; margin-top: .2rem;
  font: .75rem -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif; color: var(--muted); }
.content .credit a { color: var(--muted); }
ul.books { list-style: none; padding: 0; margin: 0; }
ul.books li { margin: 0 0 .7rem; }
ul.books a { display: flex; gap: .7rem; align-items: center; text-decoration: none; color: var(--fg); }
ul.books img { width: 2.6rem; height: auto; border-radius: 2px; box-shadow: 0 1px 3px rgba(0,0,0,.25); flex: none; }
ul.books .book { display: block; line-height: 1.3; }
ul.books a:hover .book { color: var(--accent); }
.widget h2 a { color: inherit; text-decoration: none; }
