@charset "UTF-8";
/* =========================================================================
   fox技术分享 — 全站样式
   纯手写 CSS，无框架、无外部字体、无第三方资源。
   目录：
     1. 设计变量与重置
     2. 通用布局与工具类
     3. 顶部导航
     4. 首页 Hero 与文章卡片
     5. 文章页排版（prose）
     6. 代码块、表格、提示块
     7. 文章目录、上一篇/下一篇
     8. 关于页 / 隐私页
     9. 页脚
    10. 响应式与可访问性
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. 设计变量与重置
   ------------------------------------------------------------------------- */
:root {
  --bg: #fbfbf9;
  --surface: #ffffff;
  --surface-soft: #f5f6f8;
  --text: #191d23;
  --text-soft: #3d4653;
  --muted: #626d7c;
  --line: #e5e8ee;
  --line-strong: #d5dae2;
  --accent: #d75f18;
  --accent-dark: #b34c10;
  --accent-soft: #fdf2e9;
  --code-bg: #15181f;
  --code-text: #e8ebf0;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 10px 28px -14px rgba(16, 24, 40, 0.22);
  --maxw: 1100px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC",
    "Source Han Sans SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p,
ul,
ol,
dl,
figure {
  margin: 0;
}

ul,
ol {
  padding-left: 1.35em;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: #f8d9c3;
  color: #4a2407;
}

/* -------------------------------------------------------------------------
   2. 通用布局与工具类
   ------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -60px;
  transform: translateX(-50%);
  z-index: 100;
  padding: 10px 18px;
  background: var(--text);
  color: #fff;
  border-radius: 0 0 10px 10px;
  font-size: 14px;
  transition: top 0.18s ease;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 4px 12px;
  border: 1px solid #f0cdb6;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.section {
  padding: 8px 0 72px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.section-head h2 {
  font-size: 24px;
}

.section-head p {
  color: var(--muted);
  font-size: 14px;
}

.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
  white-space: nowrap;
}

.tag-accent {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  transition: background-color 0.16s ease, color 0.16s ease,
    border-color 0.16s ease, transform 0.16s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--text-soft);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  transform: translateY(-1px);
}

/* -------------------------------------------------------------------------
   3. 顶部导航
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 251, 249, 0.9);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: var(--maxw);
  min-height: 64px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  display: inline-block;
  padding: 7px 13px;
  border-radius: 8px;
  color: var(--text-soft);
  font-size: 14.5px;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.site-nav a:hover {
  background: var(--surface-soft);
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text-soft);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* -------------------------------------------------------------------------
   4. 首页 Hero 与文章卡片
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 64px;
  background: radial-gradient(900px 380px at 15% -10%, #fdf0e4 0%, rgba(253, 240, 228, 0) 65%),
    radial-gradient(760px 360px at 95% 0%, #f2f5f9 0%, rgba(242, 245, 249, 0) 62%);
}

.hero h1 {
  max-width: 17em;
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -0.025em;
}

.hero-lede {
  max-width: 40em;
  margin-top: 20px;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.85;
}

.hero-note {
  max-width: 42em;
  margin-top: 14px;
  padding-left: 14px;
  border-left: 3px solid #f0cdb6;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  margin: 44px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.hero-facts li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--muted);
  font-size: 13.5px;
}

.hero-facts strong {
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.post-card:hover {
  border-color: #ecc3a8;
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.post-card-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
}

.post-card h3 {
  font-size: 20px;
  line-height: 1.5;
}

.post-card h3 a {
  color: var(--text);
}

.post-card h3 a:hover {
  color: var(--accent-dark);
}

.post-card p {
  flex: 1;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.8;
}

.post-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 600;
}

.read-more .arrow {
  transition: transform 0.16s ease;
}

.read-more:hover .arrow {
  transform: translateX(3px);
}

.topics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.topic {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #fcfcfb 100%);
}

.topic h3 {
  margin-bottom: 8px;
  font-size: 16.5px;
}

.topic p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

/* -------------------------------------------------------------------------
   5. 文章页排版（prose）
   ------------------------------------------------------------------------- */
.article-header {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fffdfb 0%, rgba(255, 253, 251, 0) 100%);
}

.article-header .container {
  max-width: 920px;
}

.breadcrumb {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13.5px;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--accent-dark);
}

.breadcrumb span {
  margin: 0 8px;
  color: var(--line-strong);
}

.article-title {
  font-size: clamp(28px, 4.2vw, 40px);
  letter-spacing: -0.022em;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 13.5px;
}

.article-meta time {
  font-family: var(--font-mono);
}

.article-meta .sep {
  width: 1px;
  height: 12px;
  background: var(--line-strong);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 218px;
  gap: 56px;
  align-items: start;
  padding: 48px 0 64px;
}

.prose {
  min-width: 0;
  color: var(--text-soft);
  font-size: 16.5px;
  line-height: 1.95;
}

.prose > * + * {
  margin-top: 1.15em;
}

.prose h2 {
  margin-top: 2.2em;
  padding-bottom: 0.45em;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 23px;
  letter-spacing: -0.015em;
}

.prose h3 {
  margin-top: 1.9em;
  color: var(--text);
  font-size: 18.5px;
}

.prose h2:first-child,
.prose h3:first-child {
  margin-top: 0;
}

.prose p {
  margin-top: 1.1em;
}

.prose ul,
.prose ol {
  margin-top: 1.1em;
  padding-left: 1.4em;
}

.prose li {
  margin-top: 0.45em;
}

.prose li::marker {
  color: var(--accent);
}

.prose strong {
  color: var(--text);
  font-weight: 700;
}

.prose a {
  border-bottom: 1px solid #f0cdb6;
  color: var(--accent-dark);
  transition: border-color 0.16s ease, color 0.16s ease;
}

.prose a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.prose blockquote {
  margin: 1.6em 0;
  padding: 4px 20px;
  border-left: 3px solid var(--accent);
  background: #fdf8f4;
  border-radius: 0 10px 10px 0;
  color: var(--text-soft);
}

.prose blockquote p {
  margin: 0.6em 0;
}

.prose hr {
  margin: 2.4em 0;
  border: 0;
  border-top: 1px solid var(--line);
}

/* -------------------------------------------------------------------------
   6. 代码块、表格、提示块
   ------------------------------------------------------------------------- */
.prose :not(pre) > code {
  padding: 0.16em 0.42em;
  border: 1px solid #eceff3;
  border-radius: 5px;
  background: #f5f6f8;
  color: #a8440c;
  font-family: var(--font-mono);
  font-size: 0.88em;
  word-break: break-word;
}

.code-block {
  position: relative;
  margin: 1.5em 0;
  border-radius: 12px;
  background: var(--code-bg);
  box-shadow: 0 1px 1px rgba(16, 24, 40, 0.06), 0 14px 30px -20px rgba(16, 24, 40, 0.5);
}

.code-block pre {
  margin: 0;
  padding: 46px 22px 20px;
  overflow-x: auto;
  border-radius: 12px;
  color: var(--code-text);
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.75;
  tab-size: 2;
  -webkit-overflow-scrolling: touch;
}

.code-block code {
  font-family: inherit;
  white-space: pre;
}

.code-block .code-lang {
  position: absolute;
  top: 10px;
  right: 12px;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #a9b1bf;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  pointer-events: none;
}

.copy-btn {
  position: absolute;
  top: 9px;
  left: 10px;
  padding: 3px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #c8cedb;
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.6;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.code-block:hover .copy-btn,
.copy-btn:focus-visible {
  opacity: 1;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.copy-btn.is-done {
  border-color: rgba(120, 200, 140, 0.5);
  color: #9fe0b2;
}

.prose .table-wrap {
  margin: 1.5em 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  -webkit-overflow-scrolling: touch;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.7;
}

.prose th,
.prose td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--surface-soft);
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.prose tbody tr:last-child td {
  border-bottom: 0;
}

.prose tbody tr:hover td {
  background: #fcfcfb;
}

.note {
  margin: 1.6em 0;
  padding: 15px 18px;
  border: 1px solid #f3ddcb;
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: #fdf8f4;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.85;
}

.note strong {
  color: var(--accent-dark);
}

/* -------------------------------------------------------------------------
   7. 文章目录、上一篇/下一篇
   ------------------------------------------------------------------------- */
.toc {
  position: sticky;
  top: 88px;
  padding: 18px 18px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-size: 13.5px;
}

.toc h2 {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--line);
}

.toc li {
  margin: 0;
}

.toc a {
  display: block;
  padding: 6px 0 6px 12px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--muted);
  line-height: 1.6;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.toc a:hover {
  border-left-color: var(--accent);
  color: var(--accent-dark);
}

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.post-nav a,
.post-nav .post-nav-disabled {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.post-nav a:hover {
  border-color: #ecc3a8;
  transform: translateY(-2px);
}

.post-nav .nav-label {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.post-nav .nav-title {
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.6;
}

.post-nav .next {
  text-align: right;
  align-items: flex-end;
}

.post-nav-disabled {
  opacity: 0.55;
}

.back-home {
  margin-top: 32px;
  font-size: 14.5px;
}

/* -------------------------------------------------------------------------
   8. 关于页 / 隐私页
   ------------------------------------------------------------------------- */
.page-simple {
  padding: 56px 0 72px;
}

.page-simple .container {
  max-width: 820px;
}

.page-simple h1 {
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.02em;
}

.page-simple .page-lede {
  margin-top: 16px;
  color: var(--muted);
  font-size: 16.5px;
}

.page-simple .prose {
  margin-top: 40px;
}

.info-list {
  display: grid;
  gap: 0;
  margin: 1.8em 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  list-style: none;
}

.info-list li {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  margin: 0;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.info-list li:last-child {
  border-bottom: 0;
}

.info-list .k {
  color: var(--muted);
}

.info-list .v {
  color: var(--text);
  word-break: break-word;
}

.privacy-updated {
  display: inline-block;
  margin-top: 26px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
}

/* -------------------------------------------------------------------------
   9. 页脚
   ------------------------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  padding: 38px 0 44px;
  border-top: 1px solid var(--line);
  background: #f7f7f5;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.footer-inner p {
  margin: 0;
}

.icp-line a {
  color: var(--muted);
  border-bottom: 1px dotted var(--line-strong);
}

.icp-line a:hover {
  color: var(--accent-dark);
  border-bottom-color: var(--accent);
}

.copyright {
  color: #8a94a3;
  font-size: 13px;
}

/* 公安联网备案号容器：为空时不可见 */
.gongan-beian:empty { display: none; }
.gongan-beian img { width: 16px; height: 16px; vertical-align: middle; margin-right: 4px; }

.gongan-beian {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
}

.gongan-beian a {
  color: var(--muted);
}

.gongan-beian a:hover {
  color: var(--accent-dark);
}

/* -------------------------------------------------------------------------
   10. 响应式与可访问性
   ------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .toc {
    position: static;
    order: -1;
  }

  .toc ol {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 0;
    border-left: 0;
  }

  .toc a {
    padding: 4px 12px;
    border-left: 0;
    border-bottom: 2px solid transparent;
  }

  .toc a:hover {
    border-bottom-color: var(--accent);
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15.5px;
  }

  .container,
  .header-inner,
  .footer-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    padding: 52px 0 46px;
  }

  .hero-lede {
    font-size: 16.5px;
  }

  .hero-facts {
    gap: 14px 26px;
  }

  .section {
    padding-bottom: 56px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .post-card {
    padding: 22px 20px;
  }

  .article-header {
    padding: 38px 0 26px;
  }

  .article-layout {
    padding: 32px 0 48px;
  }

  .prose {
    font-size: 16px;
    line-height: 1.9;
  }

  .prose h2 {
    font-size: 20.5px;
  }

  .prose h3 {
    font-size: 17.5px;
  }

  .code-block pre {
    padding: 44px 16px 18px;
    font-size: 12.8px;
  }

  .post-nav {
    grid-template-columns: 1fr;
  }

  .post-nav .next {
    text-align: left;
    align-items: flex-start;
  }

  .info-list li {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 12px 16px;
  }

  .copy-btn {
    opacity: 1;
  }

  /* 移动端折叠导航：仅在 JS 可用时折叠，保证无脚本仍可访问 */
  html.js-ready .nav-toggle {
    display: inline-flex;
  }

  html.js-ready .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 14px 16px;
    border-bottom: 1px solid var(--line);
    background: rgba(251, 251, 249, 0.98);
    box-shadow: 0 18px 26px -22px rgba(16, 24, 40, 0.45);
  }

  html.js-ready .site-nav a {
    padding: 11px 12px;
    border-radius: 8px;
    font-size: 15px;
  }

  html.js-ready .site-header.nav-open .site-nav {
    display: flex;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 30px;
  }

  .post-card-foot {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .toc,
  .post-nav,
  .copy-btn,
  .hero-actions {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .article-layout {
    display: block;
    padding: 0;
  }

  .prose {
    font-size: 12pt;
  }

  .code-block {
    background: #f4f4f4;
    box-shadow: none;
  }

  .code-block pre {
    color: #111;
  }
}
