@charset "UTF-8";
pre.highlight {
  background-color: #f6f8fa;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  padding: 16px;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.45;
}
pre.highlight code {
  background: none;
  border: none;
  padding: 0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.hl-keyword {
  color: #d73a49;
}

.hl-string {
  color: #032f62;
}

.hl-string-special {
  color: #032f62;
  font-style: italic;
}

.hl-comment {
  color: #6a737d;
  font-style: italic;
}

.hl-function {
  color: #6f42c1;
}

.hl-function-builtin {
  color: #6f42c1;
}

.hl-function-macro {
  color: #6f42c1;
  font-weight: 600;
}

.hl-type {
  color: #005cc5;
}

.hl-type-builtin {
  color: #005cc5;
}

.hl-constant {
  color: #005cc5;
}

.hl-constant-builtin {
  color: #005cc5;
}

.hl-number {
  color: #005cc5;
}

.hl-constructor {
  color: #e36209;
}

.hl-variable {
  color: #24292e;
}

.hl-variable-builtin {
  color: #e36209;
}

.hl-variable-parameter {
  color: #e36209;
}

.hl-property {
  color: #005cc5;
}

.hl-label {
  color: #e36209;
}

.hl-attribute {
  color: #6a737d;
}

.hl-operator {
  color: #d73a49;
}

.hl-punctuation {
  color: #24292e;
}

.hl-punctuation-bracket {
  color: #24292e;
}

.hl-punctuation-delimiter {
  color: #24292e;
}

.hl-tag {
  color: #22863a;
}

pre:not(.highlight) {
  background-color: #f6f8fa;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  padding: 16px;
  overflow-x: auto;
}
pre:not(.highlight) code {
  background: none;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.875rem;
}

[data-theme=dark] pre.highlight {
  background-color: #1e1e2e;
  border: 1px solid #313244;
  border-radius: 6px;
  padding: 16px;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.45;
}
[data-theme=dark] pre.highlight code {
  background: none;
  border: none;
  padding: 0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}
[data-theme=dark] .hl-keyword {
  color: #cba6f7;
}
[data-theme=dark] .hl-string {
  color: #a6e3a1;
}
[data-theme=dark] .hl-string-special {
  color: #a6e3a1;
  font-style: italic;
}
[data-theme=dark] .hl-comment {
  color: #6c7086;
  font-style: italic;
}
[data-theme=dark] .hl-function {
  color: #89b4fa;
}
[data-theme=dark] .hl-function-builtin {
  color: #89b4fa;
}
[data-theme=dark] .hl-function-macro {
  color: #89b4fa;
  font-weight: 600;
}
[data-theme=dark] .hl-type {
  color: #f9e2af;
}
[data-theme=dark] .hl-type-builtin {
  color: #f9e2af;
}
[data-theme=dark] .hl-constant {
  color: #fab387;
}
[data-theme=dark] .hl-constant-builtin {
  color: #fab387;
}
[data-theme=dark] .hl-number {
  color: #fab387;
}
[data-theme=dark] .hl-constructor {
  color: #f38ba8;
}
[data-theme=dark] .hl-variable {
  color: #cdd6f4;
}
[data-theme=dark] .hl-variable-builtin {
  color: #f38ba8;
}
[data-theme=dark] .hl-variable-parameter {
  color: #eba0ac;
}
[data-theme=dark] .hl-property {
  color: #89dceb;
}
[data-theme=dark] .hl-label {
  color: #f38ba8;
}
[data-theme=dark] .hl-attribute {
  color: #6c7086;
}
[data-theme=dark] .hl-operator {
  color: #89dceb;
}
[data-theme=dark] .hl-punctuation {
  color: #9399b2;
}
[data-theme=dark] .hl-punctuation-bracket {
  color: #9399b2;
}
[data-theme=dark] .hl-punctuation-delimiter {
  color: #9399b2;
}
[data-theme=dark] .hl-tag {
  color: #a6e3a1;
}
[data-theme=dark] pre:not(.highlight) {
  background-color: #1e1e2e;
  border: 1px solid #313244;
  border-radius: 6px;
  padding: 16px;
  overflow-x: auto;
}
[data-theme=dark] pre:not(.highlight) code {
  background: none;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.875rem;
}

:root,
[data-theme=light] {
  --color-text: #333;
  --color-text-light: #666;
  --color-text-lighter: #999;
  --color-link: #2a7ae2;
  --color-link-hover: #1a5fb4;
  --color-bg: #fff;
  --color-bg-soft: #fafafa;
  --color-border: #e2e2e2;
  --color-border-light: #f0f0f0;
  --color-accent: #2a7ae2;
  --color-accent-subtle: #eef4fc;
  --font-body: "Georgia", "Times New Roman", serif;
  --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --max-width: 720px;
}

[data-theme=dark] {
  --color-text: #d4d4d4;
  --color-text-light: #a0a0a0;
  --color-text-lighter: #777;
  --color-link: #6ba3f7;
  --color-link-hover: #8dbaFF;
  --color-bg: #1a1a1a;
  --color-bg-soft: #242424;
  --color-border: #3a3a3a;
  --color-border-light: #2e2e2e;
  --color-accent: #6ba3f7;
  --color-accent-subtle: #1e2a3a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-body);
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--color-link);
  text-decoration: none;
}
a:hover {
  color: var(--color-link-hover);
  text-decoration: underline;
}

header {
  width: 100%;
  padding: 2rem 0 0;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.theme-toggle {
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.35rem 0.6rem;
  color: var(--color-text-light);
  transition: border-color 0.2s, color 0.2s;
  margin-top: 0.2rem;
}
.theme-toggle:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

header h1 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}
header h1 a {
  color: var(--color-text);
}
header h1 a:hover {
  text-decoration: none;
  color: var(--color-link);
}

header h2 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--color-text-light);
  margin-top: 0.35rem;
}

.search-container {
  width: 200px;
}

.site-search {
  position: relative;
}
.site-search .search-input {
  width: 100%;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  padding: 0.55rem 0.85rem 0.55rem 2.2rem;
  border: none;
  border-radius: 6px;
  background: var(--color-bg-soft);
  color: var(--color-text);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  transition: box-shadow 0.2s, background 0.2s;
}
.site-search .search-input::placeholder {
  color: var(--color-text-lighter);
}
.site-search .search-input:focus {
  box-shadow: 0 0 0 2px var(--color-accent);
  background: var(--color-bg);
}
.site-search::before {
  content: "⌕";
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  color: var(--color-text-lighter);
  pointer-events: none;
  z-index: 1;
}
.site-search .search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: auto;
  min-width: 280px;
  width: max-content;
  max-width: 400px;
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 10;
}
.site-search .search-results:empty {
  display: none;
}
.site-search .search-results li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--color-border-light);
}
.site-search .search-results li:last-child {
  border-bottom: none;
}
.site-search .search-results li a {
  display: block;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-text);
  text-decoration: none;
  transition: background 0.15s;
}
.site-search .search-results li a:hover {
  background: var(--color-accent-subtle);
  color: var(--color-link);
  text-decoration: none;
}

main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 1.5rem;
}

.page-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.page-list li {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border-light);
}
.page-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.page-list-item a {
  display: block;
  color: inherit;
  text-decoration: none;
}
.page-list-item a:hover {
  text-decoration: none;
}
.page-list-item a:hover h2 {
  color: var(--color-link);
}
.page-list-item h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text);
  margin: 0 0 0.35rem;
  transition: color 0.15s ease;
}
.page-list-item .meta {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--color-text-lighter);
  margin-bottom: 0.5rem;
}
.page-list-item .meta .meta-separator {
  margin: 0 0.4rem;
}
.page-list-item .summary {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.55;
  margin: 0;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
}
.pagination a {
  color: var(--color-link);
}
.pagination a:hover {
  color: var(--color-link-hover);
}
.pagination .page-info {
  color: var(--color-text-light);
}
.pagination .pagination-disabled {
  color: var(--color-text-lighter);
  opacity: 0.5;
}

.section-header {
  margin-bottom: 2rem;
}
.section-header h1 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
  margin: 0 0 0.5rem;
}

.section-description {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin: 0;
}

.section-content {
  margin-bottom: 2rem;
  line-height: 1.8;
}

.section-nav {
  margin-top: 2rem;
}

.taxonomy-nav {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
}
.taxonomy-nav a {
  color: var(--color-text-light);
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  transition: all 0.15s ease;
}
.taxonomy-nav a:hover {
  color: var(--color-link);
  border-color: var(--color-link);
  text-decoration: none;
}
.taxonomy-nav a.active {
  color: var(--color-link);
  border-color: var(--color-link);
  background: var(--color-accent-subtle);
}

article {
  line-height: 1.8;
}
article h1, article h2, article h3, article h4, article h5, article h6 {
  font-family: var(--font-heading);
  line-height: 1.3;
  color: var(--color-text);
  margin-top: 2.5em;
  margin-bottom: 1em;
}
article h1:first-child, article h2:first-child, article h3:first-child, article h4:first-child, article h5:first-child, article h6:first-child {
  margin-top: 0;
}
article h1 {
  font-size: 1.75rem;
  font-weight: 700;
}
article h2 {
  font-size: 1.45rem;
  font-weight: 700;
}
article h3 {
  font-size: 1.2rem;
  font-weight: 600;
}
article h4 {
  font-size: 1.05rem;
  font-weight: 600;
}

.article-header {
  margin-bottom: 2rem;
}
.article-header h1 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
  margin: 0 0 0.75rem;
}

.article-meta {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--color-text-lighter);
}
.article-meta a {
  color: var(--color-text-light);
}
.article-meta a:hover {
  color: var(--color-link);
}
.article-meta .meta-separator {
  margin: 0 0.5rem;
}

.article-hero {
  margin: 0 0 2rem;
}
.article-hero img {
  width: 100%;
  border-radius: 6px;
}
.article-hero figcaption {
  margin-top: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--color-text-lighter);
  text-align: center;
}

.article-content {
  line-height: 1.8;
  margin-bottom: 2rem;
}
.article-content h1, .article-content h2, .article-content h3, .article-content h4, .article-content h5, .article-content h6 {
  font-family: var(--font-heading);
  line-height: 1.3;
  color: var(--color-text);
  margin-top: 2.5em;
  margin-bottom: 1em;
}
.article-content h1 {
  font-size: 1.75rem;
  font-weight: 700;
}
.article-content h2 {
  font-size: 1.45rem;
  font-weight: 700;
}
.article-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
}
.article-content h4 {
  font-size: 1.05rem;
  font-weight: 600;
}
.article-content p {
  margin-bottom: 1.25em;
}
.article-content ul, .article-content ol {
  margin-bottom: 1.25em;
  padding-left: 1.5em;
}
.article-content li {
  margin-bottom: 0.5em;
}
.article-content blockquote {
  border-left: 3px solid var(--color-accent);
  margin: 1.5em 0;
  padding: 0.5em 1em;
  color: var(--color-text-light);
  background: var(--color-accent-subtle);
  border-radius: 0 4px 4px 0;
}
.article-content blockquote p:last-child {
  margin-bottom: 0;
}
.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}
.article-content hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2em 0;
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.2em;
}
.article-content table th, .article-content table td {
  border: 1px solid var(--color-border);
  padding: 0.5em 0.75em;
  text-align: left;
}
.article-content table th {
  background: var(--color-bg-soft);
  font-family: var(--font-heading);
  font-weight: 600;
}
.article-content code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--color-bg-soft);
  padding: 0.15em 0.35em;
  border-radius: 3px;
}

.article-footer {
  margin-bottom: 1.5rem;
}

.article-nav {
  margin-top: 2rem;
}

.back-link {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--color-link);
}
.back-link:hover {
  color: var(--color-link-hover);
}

.comments {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border-light);
}

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

footer {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem;
  border-top: 1px solid var(--color-border-light);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--color-text-lighter);
}
footer p {
  margin-bottom: 0;
}
footer a {
  color: var(--color-text-light);
}
footer a:hover {
  color: var(--color-link);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border-light);
}
.post-tags a {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  color: var(--color-text-light);
  text-decoration: none;
  transition: all 0.15s ease;
}
.post-tags a:hover {
  color: var(--color-link);
  border-color: var(--color-link);
  background: var(--color-accent-subtle);
}

.error-page {
  text-align: center;
  padding: 4rem 0;
}
.error-page h1 {
  font-family: var(--font-heading);
  font-size: 5rem;
  margin: 0;
  color: var(--color-border);
}
.error-page h2 {
  font-family: var(--font-heading);
  margin: 0 0 1rem;
}
.error-page a {
  color: var(--color-link);
}

@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
  main,
footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .header-row {
    padding: 0 1rem;
  }
}
@media (max-width: 480px) {
  main,
footer {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .header-row {
    padding: 0 0.75rem;
  }
}
