/* ../../../../AppData/Local/Temp/ssg-dev/44502b46-5823-4fd4-9bda-d3993b8ef7b1/assets/css/style.css */
:root {
  --color-primary: #3b82f6;
  --color-secondary: #64748b;
  --color-accent: #10b981;
  --color-text: #1f2937;
  --color-text-muted: #6b7280;
  --color-bg: #ffffff;
  --color-bg-alt: #f9fafb;
  --color-border: #e5e7eb;
  --font-heading:
    system-ui,
    -apple-system,
    sans-serif;
  --font-body:
    system-ui,
    -apple-system,
    sans-serif;
  --font-mono:
    ui-monospace,
    SFMono-Regular,
    monospace;
  --max-width: 768px;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  line-height: 1.6;
}
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
}
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
header {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
}
main {
  padding: 2rem 0;
  min-height: calc(100vh - 200px);
}
footer {
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.875rem;
  text-align: center;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}
.footer-links a {
  color: var(--color-text-muted);
}
.footer-links a:hover {
  color: var(--color-text);
}
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
header nav a {
  color: var(--color-text);
  font-weight: 500;
}
header nav a:hover {
  color: var(--color-primary);
  text-decoration: none;
}
.site-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}
.site-title:hover {
  text-decoration: none;
  color: var(--color-primary);
}
.nav-github {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-github svg {
  display: block;
}
.nav-github:hover {
  text-decoration: none;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 1rem;
}
h1 {
  font-size: 2.25rem;
}
h2 {
  font-size: 1.75rem;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.25rem;
}
p {
  margin-bottom: 1.5rem;
}
a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
article {
  max-width: 100%;
}
article .content {
  line-height: 1.8;
}
article .content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}
article .content pre {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  margin: 1.5rem 0;
}
article .content code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--color-bg-alt);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
}
article .content pre code {
  background: none;
  padding: 0;
}
article .content blockquote {
  border-left: 4px solid var(--color-primary);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: var(--color-text-muted);
  font-style: italic;
}
article .content ul,
article .content ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}
article .content li {
  margin-bottom: 0.5rem;
}
article .content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
article .content th,
article .content td {
  border: 1px solid var(--color-border);
  padding: 0.75rem;
  text-align: left;
}
article .content th {
  background: var(--color-bg-alt);
  font-weight: 600;
}
article header {
  border: none;
  padding: 0;
  margin-bottom: 1.5rem;
}
time {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}
.author,
.reading-time {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin-left: 0.5rem;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}
.tag {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}
.tag:hover {
  text-decoration: none;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.description {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}
.post-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}
.page-info {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}
.page-home > .page-title {
  text-align: center;
  font-size: 2.5rem;
  letter-spacing: -0.02em;
  max-width: 20ch;
  margin: 1rem auto 2rem;
}
.page-home .pt-lede {
  text-align: center;
  max-width: 60ch;
  margin-inline: auto;
}
.page-home .pt-cta {
  justify-content: center;
}
@media (max-width: 640px) {
  .page-home > .page-title {
    font-size: 2rem;
  }
}
.post-list-section {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}
.post-list-head {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  margin-bottom: 0.5rem;
}
.post-list-head h2 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--color-text-muted);
  margin: 0;
}
.post-list-all {
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--color-text-muted);
}
.post-list-all span {
  transition: padding-left 0.15s ease;
}
.post-list-all:hover {
  text-decoration: none;
  color: var(--color-primary);
}
.post-list-all:hover span {
  padding-left: 0.2rem;
}
.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.post-list > li {
  border-bottom: 1px solid var(--color-border);
}
.post-list > li:last-child {
  border-bottom: none;
}
.post-list > li > a {
  display: block;
  padding: 0.9rem 0;
  color: var(--color-text);
}
.post-list > li > a:hover {
  text-decoration: none;
}
.post-list-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.35;
  transition: color 0.15s ease;
}
.post-list > li > a:hover .post-list-title {
  color: var(--color-primary);
}
.post-list > li > a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
}
.post-list-arrow {
  flex: none;
  color: var(--color-primary);
  opacity: 0;
  transform: translateX(-0.35rem);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.post-list > li > a:hover .post-list-arrow {
  opacity: 1;
  transform: translateX(0);
}
.post-list-full > li > a {
  display: block;
  padding: 1.4rem 0;
}
.post-list-full .post-list-title {
  display: block;
  font-size: 1.35rem;
}
.post-list-full time {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
}
.post-list-excerpt {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}
.post-list-full > li {
  padding-bottom: 0.4rem;
}
.post-list-full .tags {
  margin: 0 0 1rem;
}
.pt-lede {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 2rem;
}
.pt-lede em {
  font-style: italic;
}
.pt-demo {
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  background: var(--color-bg-alt);
  padding: 1.25rem;
  margin: 2rem 0;
}
.pt-demo-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1rem;
}
.pt-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: 1rem;
  padding: 0.15rem 0.6rem;
}
.pt-demo-title {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.pt-record {
  font-size: 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-bg);
  overflow: hidden;
  margin-bottom: 1rem;
}
.pt-record-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0.85rem;
  border-bottom: 1px solid var(--color-border);
}
.pt-record-row:last-child {
  border-bottom: none;
}
.pt-record-row > span {
  color: var(--color-text-muted);
}
.pt-record-row code,
.pt-hex,
.pt-mono {
  font-family: var(--font-mono);
  font-size: 0.8em;
  background: none;
  padding: 0;
  color: var(--color-text);
}
.pt-hex {
  letter-spacing: 0.02em;
}
.pt-hex mark {
  background: #ef4444;
  color: #fff;
  padding: 0 0.15rem;
  border-radius: 0.15rem;
}
.pt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.pt-btn {
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  display: inline-block;
}
.pt-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  text-decoration: none;
}
.pt-btn-primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.pt-btn-primary:hover {
  color: #fff;
  opacity: 0.92;
}
.pt-status {
  border-radius: 0.5rem;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
}
.pt-status[data-state=ok] {
  border-color: var(--color-accent);
}
.pt-status[data-state=fail] {
  border-color: #ef4444;
}
.pt-status[data-state=busy] {
  color: var(--color-text-muted);
}
.pt-status ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}
.pt-status li {
  margin-bottom: 0.2rem;
}
.pt-status strong {
  font-size: 1rem;
}
.pt-status[data-state=ok] strong {
  color: var(--color-accent);
}
.pt-status[data-state=fail] strong {
  color: #ef4444;
}
.pt-note {
  color: var(--color-text-muted);
  font-size: 0.82rem;
  margin: 0.6rem 0 0;
}
.pt-fineprint {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin: 1rem 0 0;
  line-height: 1.5;
}
.pt-fineprint code {
  font-size: 0.9em;
}
.pt-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0 3rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --color-text: #f3f4f6;
    --color-text-muted: #9ca3af;
    --color-bg: #111827;
    --color-bg-alt: #1f2937;
    --color-border: #374151;
  }
}
