/* scrapbook 主题之外的补充样式 */

.one-column #content #alpha .asset-content pre,
.two-columns #content #alpha .asset-content pre {
  background-color: #f5f2f0;
  border: .3em solid #e0dfcc;
  border-radius: 1em;
  padding: 1em 1.4em;
  margin: 2em;
  overflow: auto;
  font-family: Consolas, Monaco, "Andale Mono", monospace;
  font-size: 1.4em;
  line-height: 1.7;
}

.asset-content pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: 100%;
}

.one-column #content #alpha li code,
.one-column #content #alpha h2 code,
.one-column #content #alpha h3 code,
.one-column #content #alpha td code {
  display: inline-block;
  padding-left: 5px;
  padding-right: 5px;
  font-size: 90%;
  background-color: pink;
  border-radius: 5px;
  margin: auto 3px;
}

.asset-content hr {
  border: 0;
  border-top: 1px solid #d3d3d3;
  margin: 2em;
}

#feed_icon img,
#feed_icon svg {
  border: none;
  width: 32px;
  height: 32px;
  display: block;
}

#footer {
  clear: both;
  border-top: 1px solid #d3d3d3;
  margin: 2em 1em;
  padding-top: 1em;
}

#footer p {
  font-size: 1.3em;
  color: #567;
}

#footer a {
  color: #567;
  text-decoration: underline;
}

h1.archive-title {
  font-size: 2.4em;
  border-bottom: 1px solid #d3d3d3;
  padding-bottom: .3em;
  margin-bottom: .8em;
}

.archive-list {
  margin: 1em 0 2em 1em;
}

.archive-year {
  color: #567;
  margin-top: 1.2em;
}

/* base font: 10px -> 12px, body text ~19px */
body {
  font-size: 75%;
}

/* keep post images from overflowing / dominating the page */
body.one-column #content #alpha .asset-content img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  margin: 1.8em auto;
}

body.one-column #content #alpha .asset-content figure {
  margin: 1.6em auto;
  text-align: center;
}

body.one-column #content #alpha .asset-content figure img {
  margin: 0 auto;
}

body.one-column #content #alpha .asset-content figcaption {
  margin-top: .6em;
  font-size: 1.4em;
  line-height: 1.6;
  color: #567;
}

/* responsive photo grid: 3 cols on desktop, 1-2 on phones; keeps aspect ratio */
body.one-column #content #alpha .asset-content .photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 1.2em;
  margin: 1.8em 0;
}

body.one-column #content #alpha .asset-content .photo-grid figure {
  margin: 0;
  min-width: 0;
}

body.one-column #content #alpha .asset-content .photo-grid img {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  border-width: .15em;
  border-radius: .6em;
}

body.one-column #content #alpha .asset-content .photo-grid figcaption {
  margin-top: .4em;
  font-size: 1.2em;
}

@media (min-width: 48.01rem) {
  body.one-column #content #alpha .asset-content img {
    max-width: min(720px, 100%);
  }
}
