* { box-sizing: border-box; }
html { scroll-padding-top: 2rem; background: var(--cp-bg); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cp-bg);
  color: var(--cp-text);
  font-family: "Segoe UI", Aptos, Calibri, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
::selection { background: var(--cp-highlight); }
a { color: var(--cp-text); text-decoration-color: var(--cp-text-muted); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--cp-accent); }
a:focus-visible { outline: 3px solid var(--cp-accent); outline-offset: 5px; }
.wrapper { width: min(100% - 3rem, 952px); margin-inline: auto; }
.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.header-inner { padding-top: 3.5rem; }
.site-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cp-text);
  font-family: Consolas, "Courier New", Courier, monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.site-title::before {
  content: "";
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  border: 2px solid var(--cp-accent);
  background: linear-gradient(90deg, var(--cp-bg) 3px, var(--cp-accent) 3px, var(--cp-accent) 5px, var(--cp-bg) 5px);
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-family: Consolas, "Courier New", Courier, monospace;
  font-size: 12px;
}
nav a { color: var(--cp-text-muted); text-decoration: none; }
nav a:hover { color: var(--cp-text); }
.page-content { flex: 1; padding-block: 3.5rem; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
h1 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 10px; }
h2 { font-size: 23px; margin: 2.75rem 0 1rem; }
p { margin: 0 0 1.5rem; }
.intro { padding-bottom: 2.5rem; margin-bottom: 3rem; border-bottom: 1px solid var(--cp-border); }
.intro h1 { max-width: 620px; }
.post-list-heading {
  color: var(--cp-text-muted);
  font-family: Consolas, "Courier New", Courier, monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
}
.intro .description { color: var(--cp-text-muted); font-size: 15px; max-width: 560px; margin-bottom: 0; }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list > li { padding: 1.5rem 0; border-bottom: 1px solid var(--cp-border); }
.post-list > li:first-child { padding-top: 0; }
.post-card-with-image { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 1.75rem; align-items: start; }
.post-thumbnail { display: block; }
.post-thumbnail img { display: block; width: 100%; border: 1px solid var(--cp-border-strong); border-radius: 2px; }
.post-list h3 { font-size: clamp(21px, 2.5vw, 26px); margin: 0.75rem 0; }
.post-link { color: var(--cp-text); text-decoration: none; }
.post-link:hover { color: var(--cp-accent); }
.post-list p { max-width: 720px; color: var(--cp-text-muted); margin-bottom: 0; }
.post-meta { color: var(--cp-text-muted); font-family: Consolas, "Courier New", Courier, monospace; font-size: 12px; }
.rss-subscribe { color: var(--cp-text-muted); margin-top: 1.5rem; font-family: Consolas, "Courier New", Courier, monospace; font-size: 12px; }
.post { max-width: 740px; margin-inline: auto; font-size: 17px; line-height: 1.8; }
.post-header { margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--cp-border); }
.post-title { max-width: 720px; font-size: clamp(26px, 4vw, 36px); margin-bottom: 1rem; }
.post-header .post-meta { margin: 0; }
.post-content h2 { scroll-margin-top: 2rem; }
.post-content ul, .post-content ol { margin: 0 0 1.5rem; padding-left: 1.5rem; }
.post-content li + li { margin-top: 0.75rem; }
.post-cover, .article-figure { margin: 0 0 2.5rem; }
.article-figure { margin-top: 2rem; }
.post-cover img, .article-figure img { display: block; width: 100%; height: auto; border-radius: 2px; }
.post-cover figcaption, .article-figure figcaption { margin-top: 0.75rem; color: var(--cp-text-muted); font-size: 13px; line-height: 1.6; text-align: center; }
.post-source { margin: 2.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--cp-border); color: var(--cp-text-muted); font-size: 13px; }
code, pre { font-family: Consolas, "Courier New", Courier, monospace; }
code {
  padding: 0.12rem 0.3rem;
  border-radius: 2px;
  background: var(--cp-surface);
  font-size: 0.88em;
}
pre {
  padding: 1.25rem;
  overflow-x: auto;
  border: 1px solid var(--cp-border);
  border-radius: 2px;
  background: var(--cp-surface);
  line-height: 1.6;
}
pre code { padding: 0; }
.protocol { margin: 2rem 0; text-align: center; }
.method-note {
  margin: 2rem 0;
  padding: 2px 0 2px 18px;
  border-left: 2px solid var(--cp-accent);
  color: var(--cp-text-muted);
  font-size: 0.9rem;
}
.method-note p:last-child { margin-bottom: 0; }
blockquote { margin: 2rem 0; padding-left: 1.5rem; border-left: 3px solid var(--cp-accent); }
img { max-width: 100%; height: auto; }
table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
td, th { padding: 0.5rem 0.75rem; border: 1px solid var(--cp-border); text-align: left; }
.site-footer { color: var(--cp-text-muted); font-family: Consolas, "Courier New", Courier, monospace; font-size: 12px; }
.footer-inner { padding-block: 1.25rem 2.5rem; border-top: 1px solid var(--cp-border); }
.site-footer p { margin: 0; }
.skip-link {
  position: absolute;
  top: -6rem;
  left: 1rem;
  padding: 0.5rem 1rem;
  z-index: 1;
  background: var(--cp-surface);
}
.skip-link:focus { top: 1rem; }
@media (max-width: 720px) {
  .wrapper { width: calc(100% - 36px); }
  .header-inner { padding-top: 2rem; }
  .header-inner, .footer-inner { align-items: flex-start; flex-direction: column; gap: 0.75rem; }
  nav { gap: 1.25rem; }
  .page-content { padding-block: 2.25rem; }
  .intro { padding-bottom: 2rem; margin-bottom: 2rem; }
  .post-list > li { padding-block: 1.5rem; }
  .post-card-with-image { grid-template-columns: 1fr; gap: 1.25rem; }
  .post { font-size: 16px; }
  .protocol { text-align: left; }
}
@media print {
  .site-header, .site-footer, .skip-link { display: none; }
  .page-content { padding: 0; }
  .wrapper, .post { width: 100%; max-width: none; }
}
