:root {
  --flag-accent: #1f8452;
  --flag-bg: #effaf5;
  --flag-text: #1f5138;
  --flag-label: #3d8f66;
  --measure: 38em;
}
[data-theme='dark']:root {
  --flag-accent: #41c885;
  --flag-bg: rgba(46,184,115,0.1);
  --flag-text: #b8e0cc;
  --flag-label: #81bb9e;
}
.article-entry {
  font-size: 16px;
  line-height: 1.8;
}
.article-entry p,
.article-entry li,
.article-entry dd,
.article-entry dt {
  line-height: 1.8;
}
.article-entry p {
  letter-spacing: 0.01em;
}
.article-entry > p,
.article-entry > ul,
.article-entry > ol,
.article-entry > dl,
.article-entry > blockquote,
.article-entry > h1,
.article-entry > h2,
.article-entry > h3,
.article-entry > h4,
.article-entry > h5,
.article-entry > h6 {
  max-width: var(--measure);
}
.article-entry > p:has(> img) {
  max-width: 100%;
}
.article-entry h2 {
  margin-top: 2.2em;
  margin-bottom: 0.9em;
  line-height: 1.35;
}
.article-entry h3 {
  margin-top: 2em;
  margin-bottom: 0.6em;
  line-height: 1.4;
}
.article-entry h2 + h3 {
  margin-top: 1.2em;
}
.article-entry img {
  border-radius: 8px;
}
.article-entry blockquote[data-flag='yes'] {
  background: var(--flag-bg);
  border-left: 6px solid var(--flag-accent);
  color: var(--flag-text);
  font-family: 'JetBrains Mono', Menlo, Monaco, Consolas, monospace;
  font-size: 0.95em;
  line-height: 1.6;
  word-break: break-all;
  padding: 6px 16px 10px;
}
.article-entry blockquote[data-flag='yes'] p {
  margin: 6px 0;
  letter-spacing: 0;
  user-select: all;
}
.article-entry blockquote[data-flag='yes']:before {
  content: 'FLAG';
  display: block;
  font-family: 'Mulish', 'Noto Sans TC', -apple-system, 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--flag-label);
  user-select: none;
  margin-top: 8px;
}
#header {
  min-height: 320px;
}
@media screen and (max-width: 767px) {
  #header {
    min-height: 240px;
  }
}
.widget .tagcloud a {
  line-height: 2.1;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--red-1);
  outline-offset: 3px;
}
