:root {
  font: 17px/1.75 system-ui, "PingFang TC", "Noto Sans TC", sans-serif;
  color: #182d49;
  background: #fffbf2;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #155b4d; text-underline-offset: .2em; }
a:focus-visible { outline: 2px solid #155b4d; outline-offset: 4px; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.35; text-wrap: balance; }
p { margin: .6rem 0 0; }
.header {
  position: sticky; top: 0; z-index: 1;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 60px; padding: 6px max(18px, calc((100% - 1100px) / 2));
  background: #fffbf2; border-bottom: 1px solid #dddcd3;
}
.header nav { display: flex; gap: clamp(12px, 3vw, 24px); align-items: center; font-size: 15px; }
.header nav a { white-space: nowrap; }
.brand { display: inline-flex; align-items: center; color: inherit; font-weight: 800; font-size: 25px; text-decoration: none; }
.brand img { margin-right: 6px; }
.brand span { color: #a06800; }
.start { display: inline-block; padding: 7px 12px; color: white; background: #08783f; border-radius: 8px; text-decoration: none; }
.listing, .reading { width: min(calc(100% - 36px), 800px); margin: clamp(32px, 7vw, 78px) auto; overflow-wrap: anywhere; }
.intro {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #e6efe8; padding: clamp(20px, 5vw, 46px); border-radius: 18px;
}
.intro img { flex: 0 0 auto; width: min(50%, 360px); }
@media (max-width: 600px) {
  .intro { flex-direction: column; align-items: flex-start; }
  .intro img { width: min(100%, 360px); align-self: center; }
}
h1 { margin: 0; font-size: clamp(30px, 6vw, 49px); }
.posts { list-style: none; padding: 0; margin: 30px 0 0; }
.posts li { padding: 25px 0; border-bottom: 1px solid #dddcd3; }
.posts h2 { margin: 8px 0; font-size: clamp(22px, 4vw, 28px); }
.post-link { display: flex; align-items: flex-start; gap: 22px; color: inherit; text-decoration: none; }
.post-link:hover h2 { color: #155b4d; text-decoration: underline; }
.post-text { min-width: 0; }
.post-text .meta { margin-top: 0; }
.thumbnail {
  flex: none;
  width: 168px;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-radius: 10px;
  background: #e6efe8;
}
@media (max-width: 600px) {
  .post-link { flex-direction: column; gap: 14px; }
  .thumbnail { width: 100%; aspect-ratio: 16 / 9; }
}
.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; color: #47615d; font-size: 15px; }
.meta span { background: #e6efe8; border-radius: 6px; padding: 1px 8px; }
.meta .draft { background: #fbe6aa; color: #644901; }
.reading { max-width: 720px; }
.article-head { margin: 24px 0 28px; }
.byline { color: #47615d; font-size: 15px; }
.summary { margin: 18px 0 0; font-size: 1.08rem; color: #354c63; }
.cover, .prose img { border-radius: 12px; }
.cover { display: block; width: auto; max-height: 660px; object-fit: contain; margin: 0 auto 28px; }
.prose img { display: block; width: auto; max-width: min(100%, 380px); margin: 1rem auto; }
.prose { border-block: 1px solid #dddcd3; padding: 24px 0; margin-bottom: 24px; line-height: 1.9; }
.prose h2 { font-size: 1.42rem; margin: 1.4em 0 .35em; }
.prose h2:first-child { margin-top: 0; }
.prose p + p { margin-top: 1em; }
.prose pre { overflow-x: auto; }
.footer { text-align: center; border-top: 1px solid #dddcd3; padding: 20px; font-size: 15px; }
