:root {
  --paper: #faf8f1;
  --ink: #161616;
  --muted: #888;
  --faint: #aaa;
  --border: #ddd;
  --line: #eee;
  --wash: rgba(0, 0, 0, .08);
  --highlight: #ffecaa;
  --quote: #fbf3e7;
  --quote-line: #dcbb85;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  min-height: 100%;
  margin: 0;
  padding: 20px;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu,
    "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans CN", "Noto Sans CJK SC", sans-serif;
  font-size: 1.7rem;
  line-height: 1.85;
  letter-spacing: .02em;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; }
a { color: var(--ink); text-decoration: none; transition: color .2s ease, border-color .2s ease, opacity .2s ease; }
a:hover { color: rgba(0, 0, 0, .6); }
::selection { background: var(--highlight); color: #222; }

.site-header, .site-main, .site-footer { width: 100%; max-width: 800px; margin-right: auto; margin-left: auto; }
.site-header { margin-bottom: 120px; }
.site-nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 90px;
  padding: 10px 0;
  color: var(--muted);
}
.site-nav a { border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: currentColor; }
.site-nav .guide { white-space: nowrap; }
.site-nav .guide strong { color: var(--ink); }
.site-nav .top-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; text-align: right; }
.site-title { margin: 0; font-size: 2.6rem; line-height: 1.5; letter-spacing: .03em; }
.site-title .brand-main,
.site-title .brand-signature { font-size: 1em; font-weight: 700; letter-spacing: inherit; }
.site-lead { margin: 0; padding: 5px 0; color: var(--muted); font-weight: 400; }
.page-context { display: block; margin-top: 20px; color: var(--faint); font-size: 1.5rem; }

h1, h2, h3, h4, h5, h6 { clear: both; margin: 10px 0 12px; line-height: 1.5; }
h1, h2, h3 { letter-spacing: .03em; }
h1 { font-size: 2.6rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.8rem; }
h5, h6 { font-size: 1.6rem; }
p { margin: 0 0 1.25em; line-height: 1.8; }

.posts { margin: 0; padding: 0; list-style: none; }
.post-entry { margin: 0 0 50px; padding: 0 0 50px; border-bottom: 1px solid var(--line); }
.post-entry time { color: var(--ink); font-size: 1.6rem; opacity: .5; }
.post-entry h2 { margin: 10px 0 20px; font-size: 2.2rem; }
.post-entry .excerpt { margin-bottom: 1.25em; }
.read-more::after { content: " →"; }
.post-info { margin-top: 10px; color: var(--faint); font-size: 1.5rem; }
.post-info a { color: inherit; border-bottom: 1px solid transparent; }
.post-info a:hover { border-bottom-color: currentColor; }

.pagination { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 50px; }
.pagination a, .pagination span {
  display: inline-block;
  width: 35px;
  height: 35px;
  border-radius: 4px;
  line-height: 35px;
  text-align: center;
}
.pagination .current, .pagination a:hover { background: var(--ink); color: var(--paper); }

.entry-content { position: relative; }
.entry-content > :first-child { margin-top: 0; }
.entry-content > :last-child { margin-bottom: 0; }
.entry-content h1, .entry-content h2, .entry-content h3,
.entry-content h4, .entry-content h5, .entry-content h6 { margin: 25px 0 20px; }
.entry-content a { border-bottom: 1px solid currentColor; }
.entry-content ul, .entry-content ol { margin: 15px 0 15px 15px; padding: 0; }
.entry-content li { margin: 8px 0; line-height: 1.5; }
.entry-content blockquote {
  position: relative;
  margin: 20px 0;
  padding: 20px 20px 3px;
  border-left: 3px solid var(--quote-line);
  background: var(--quote);
}
.entry-content pre {
  max-width: 100%;
  margin: 2em 0;
  padding: 20px;
  overflow: auto;
  border-radius: 4px;
  background: #222;
  color: var(--highlight);
  font-size: 1.4rem;
  line-height: 1.8;
  white-space: pre-wrap;
}
.entry-content code { padding: 0 5px; background: var(--wash); }
.entry-content pre code { padding: 0; background: transparent; }
.entry-content figure { margin: 2.5em auto; }
.entry-content figcaption { padding: 5px 0 2px; color: var(--muted); font-size: 1.5rem; line-height: 1.4; }
.entry-content figcaption::before { content: "▲"; padding-right: 5px; }
.entry-content table { display: block; width: 100%; margin: 2em auto; overflow-x: auto; border-collapse: collapse; font-size: 1.4rem; }
.entry-content th, .entry-content td { padding: 2.5%; text-align: left; }
.entry-content tbody > tr:nth-child(odd) { background: var(--line); }
.entry-content hr { width: 50%; margin: 50px auto; border: 0; border-top: 1px solid var(--line); }
.entry-content iframe, .entry-content object, .entry-content embed { max-width: 100%; }
.notice { margin-bottom: 35px; padding: 15px 20px; border-radius: 4px; background: var(--quote); color: #644006; }

.post-date { color: var(--muted); }
.post-date .section-head { margin-bottom: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 10px; color: var(--muted); font-size: 1.5rem; }
.tags a::before { content: "#"; }
.tags a { color: var(--muted); border-bottom: 1px solid currentColor; }

.section-head { margin: 80px 0 20px; font-size: 1.7rem; }
.section-head::before { content: ""; display: block; width: 45px; height: 2px; margin: 15px 0; background: var(--border); }
.post-nav { display: block; }
.post-nav span { display: block; margin-bottom: 10px; color: var(--muted); font-size: 1.5rem; }
.post-nav a { display: block; margin-bottom: 20px; }
.post-nav h4 { margin: 5px 0; font-size: 1.6rem; font-weight: 400; }
.related-posts { margin: 0; padding: 0; list-style: none; }
.related-posts li { margin: 8px 0; list-style: none; }
.related-posts .postin { margin-right: 5px; color: var(--muted); }
.related-posts a { border-bottom: 1px solid transparent; }
.related-posts a:hover { border-bottom-color: currentColor; }

.archives { border-top: 1px solid var(--line); }
.archives details { margin: 0; }
.archives summary {
  position: relative;
  margin: 0;
  padding: 14px 0 12px;
  border-bottom: 1px solid var(--line);
  font-size: 1.8rem;
  letter-spacing: 1px;
  list-style: none;
  cursor: pointer;
}
.archives summary::-webkit-details-marker { display: none; }
.archives summary::after { content: "+"; position: absolute; right: 0; color: var(--faint); }
.archives details[open] summary::after { content: "−"; }
.archives ul { margin: 0 0 20px; padding: 0; list-style: none; }
.archives li { margin: 0; padding: 14px 0 12px; border-bottom: 1px solid var(--line); }
.archives li a { display: flex; justify-content: space-between; gap: 24px; }
.archives h2 { max-width: 68%; margin: 0; overflow: hidden; font-size: 1.8rem; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.archives .time { flex: 0 0 auto; color: var(--faint); font-size: 1.5rem; font-weight: 400; white-space: nowrap; }

.taxonomy-list { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.taxonomy-list li { display: flex; justify-content: space-between; gap: 20px; margin: 0; padding: 14px 0 12px; border-bottom: 1px solid var(--line); }
.taxonomy-list strong { font-size: 1.8rem; }
.taxonomy-list span { color: var(--faint); }

.search-form { display: flex; width: 100%; max-width: 460px; margin: 20px 0 40px; gap: 10px; }
.search-form label { flex: 1; }
.search-form input {
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
}
.search-form button {
  padding: 8px 20px;
  border: 0;
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  cursor: pointer;
}
.search-status { min-height: 1.85em; color: var(--muted); }
.search-results article { padding: 25px 0; border-top: 1px solid var(--line); }
.search-results h2 { margin: 0 0 4px; }
.search-results time { color: var(--faint); font-size: 1.4rem; }
.search-results p { margin: 8px 0 0; }

.comments { margin-top: 80px; }
.comment-list { margin: 0; padding: 0; }
.comment-body { margin: 0 0 36px; }
.comment-content-wrap { position: relative; }
.comment-meta { display: flex; justify-content: space-between; gap: 20px; margin: 30px 0 16px; padding: 0; }
.comment-author { display: flex; align-items: center; gap: 10px; }
.comment-author .comment-avatar { display: none; }
.comment-author cite { font-style: normal; font-weight: 700; }
.comment-meta > span { color: var(--faint); font-size: 1.4rem; white-space: nowrap; }
.comment-content, .comment-content p, .comment-content li { line-height: 1.5; }
.comment-content p, .comment-content li { margin-bottom: 20px; }
.comment-content-inner > :last-child { margin-bottom: 0; }
.comment-children { margin-left: 35px; }

.site-footer { margin-top: 120px; padding-bottom: 60px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 0; padding: 0; list-style: none; }
.footer-nav a { color: var(--muted); border-bottom: 1px solid transparent; }
.footer-nav a:hover { color: var(--ink); border-bottom-color: currentColor; }
.back-to-top { display: inline-block; margin-top: 60px; }
.copyright { margin-top: 60px; line-height: 1.5; }
.copyright a { border-bottom: 1px solid var(--faint); }
.copyright small { color: var(--faint); }
.site-mark { width: 36px; height: 36px; margin-top: 60px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 1.5rem; font-weight: 700; }

.screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

@media (max-width: 767px) {
  body { padding: 15px; }
  .site-nav { align-items: flex-start; margin-bottom: 68px; font-size: 1.5rem; }
  .site-nav .guide { white-space: normal; }
  .site-nav .top-nav { gap: 6px 10px; }
  .site-header { margin-bottom: 88px; }
  .post-entry { margin-bottom: 42px; padding-bottom: 42px; }
  .post-entry h2 { font-size: 2.2rem; }
  .archives h2 { max-width: 100%; }
  .archives .time { display: none; }
  .comment-meta { align-items: flex-start; }
  .comment-children { margin-left: 20px; }
  .site-footer { margin-top: 90px; }
}

@media (max-width: 430px) {
  .site-nav .top-nav a:first-child { display: none; }
  .site-nav .separator-search { display: none; }
  .search-form { display: block; }
  .search-form button { margin-top: 10px; }
  .comment-meta { display: block; }
  .comment-meta > span { display: block; margin-top: 8px; }
}

@media print {
  body { background: #fff; color: #000; }
  .site-nav, .site-footer, .post-nav, .tags, .comments { display: none; }
  .site-header { margin-bottom: 50px; }
  a { color: inherit; }
}
