/* ==========================================================================
   楚忆 / NOTES — a small personal blog
   Typeface: Sarasa UI SC + Sarasa Mono SC (from the owner-provided TTC)
   ========================================================================== */

@font-face {
  font-family: "Sarasa UI SC Web";
  src: url("../fonts/sarasa-ui-sc-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sarasa UI SC Web";
  src: url("../fonts/sarasa-ui-sc-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sarasa Mono SC Web";
  src: url("../fonts/sarasa-mono-sc-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f5f1e8;
  --paper-deep: #ebe5d9;
  --ink: #1a1a17;
  --ink-soft: #2e2e28;
  --muted: #6b665c;
  --line: rgba(26, 26, 23, 0.14);
  --line-strong: rgba(26, 26, 23, 0.3);
  --accent: #b6421f;
  --glow: rgba(255, 255, 255, 0.6);
  --code-bg: #1a1a17;
  --code-text: #eee9dd;
  --inline-code-bg: rgba(26, 26, 23, 0.06);
  --font-sans: "Sarasa UI SC Web", "Sarasa UI SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "Sarasa Mono SC Web", "Sarasa Mono SC", "SFMono-Regular", Consolas, monospace;
  --gutter: clamp(20px, 4.4vw, 64px);
  --max: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

[data-theme="dark"] {
  --paper: #141410;
  --paper-deep: #1d1d18;
  --ink: #ece7db;
  --ink-soft: #d6d0c4;
  --muted: #a29b8e;
  --line: rgba(236, 231, 219, 0.16);
  --line-strong: rgba(236, 231, 219, 0.32);
  --accent: #e06a3c;
  --glow: rgba(224, 106, 60, 0.075);
  --code-bg: #0c0c0a;
  --code-text: #e9e3d6;
  --inline-code-bg: rgba(236, 231, 219, 0.09);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --paper: #141410;
    --paper-deep: #1d1d18;
    --ink: #ece7db;
    --ink-soft: #d6d0c4;
    --muted: #a29b8e;
    --line: rgba(236, 231, 219, 0.16);
    --line-strong: rgba(236, 231, 219, 0.32);
    --accent: #e06a3c;
    --glow: rgba(224, 106, 60, 0.075);
    --code-bg: #0c0c0a;
    --code-text: #e9e3d6;
    --inline-code-bg: rgba(236, 231, 219, 0.09);
    color-scheme: dark;
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background-color: var(--paper);
  background-image: radial-gradient(900px 430px at 84% -6%, var(--glow), transparent 72%);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition:
    background-color 0.25s var(--ease),
    color 0.25s var(--ease);
}

main {
  flex: 1;
}

h1,
h2,
h3,
p,
figure,
blockquote,
dl,
dd,
pre {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.045em;
}

::selection {
  background: var(--accent);
  color: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

img,
svg {
  display: block;
}

svg {
  overflow: visible;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.container {
  width: min(calc(100% - (var(--gutter) * 2)), var(--max));
  margin-inline: auto;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 15px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  transform: translateY(-180%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  padding-top: clamp(22px, 3.6vw, 40px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  background: var(--ink);
  color: var(--accent);
}

.brand-mark .icon {
  width: 14px;
  height: 14px;
  transition: transform 0.5s var(--ease);
}

.brand:hover .brand-mark .icon {
  transform: rotate(90deg);
}

.brand-word {
  display: grid;
  gap: 3px;
  line-height: 1.1;
}

.brand-word strong {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-word small {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.13em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 20px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 30px);
}

.site-nav a {
  position: relative;
  padding: 10px 0;
  font-size: 13px;
  line-height: 1.3;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.35s var(--ease);
}

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.theme-toggle {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition:
    color 0.25s,
    border-color 0.25s,
    background-color 0.25s;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.theme-toggle .icon {
  width: 15px;
  height: 15px;
}

.theme-icon--sun {
  display: none;
}

[data-theme="dark"] .theme-icon--sun {
  display: block;
}

[data-theme="dark"] .theme-icon--moon {
  display: none;
}

/* ==========================================================================
   Home
   ========================================================================== */

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
  gap: clamp(48px, 7vw, 100px);
  align-items: start;
  padding-top: clamp(54px, 8vw, 98px);
}

.intro-inner {
  position: sticky;
  top: 36px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.star-icon {
  width: 10px;
  height: 10px;
  color: var(--accent);
}

.intro h1 {
  margin-top: clamp(24px, 3vw, 34px);
  font-size: clamp(2.6rem, 3.7vw, 3.3rem);
  line-height: 1.16;
  letter-spacing: -0.055em;
}

.intro-copy {
  max-width: 22em;
  margin-top: 26px;
  color: var(--muted);
  font-size: 15px;
  line-height: 2;
}

.intro-note {
  margin-top: 22px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

.intro-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 19px;
  margin-top: 30px;
}

.intro-links a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 3px 0 4px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 12px;
  line-height: 1.5;
  transition:
    color 0.25s,
    border-color 0.25s;
}

.intro-links a span {
  color: var(--muted);
  margin-left: 1px;
}

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

.intro-links a:hover span {
  color: var(--accent);
}

.location {
  margin-top: 38px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.writing {
  min-width: 0;
}

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

.section-head h2 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.section-count {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.post-item {
  border-bottom: 1px solid var(--line);
}

.post-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px;
  column-gap: 20px;
  padding: clamp(22px, 3vw, 30px) 0;
  color: var(--ink);
}

.post-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 9px;
  margin-bottom: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

.post-meta time {
  font-variant-numeric: tabular-nums;
}

.meta-slash {
  color: var(--line-strong);
}

.post-reading {
  margin-left: auto;
}

.post-body h3 {
  font-size: clamp(1.5rem, 2.1vw, 1.85rem);
  line-height: 1.35;
  letter-spacing: -0.045em;
  transition: color 0.25s var(--ease);
}

.post-body p {
  max-width: 34em;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.85;
}

.post-arrow {
  align-self: center;
  justify-self: end;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  transition:
    color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.post-link:hover .post-body h3 {
  color: var(--accent);
}

.post-link:hover .post-arrow {
  color: var(--accent);
  transform: translate(3px, -3px);
}

.writing-foot {
  margin-top: 23px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   About
   ========================================================================== */

.about {
  margin-top: clamp(88px, 12vw, 148px);
  padding: clamp(36px, 5vw, 54px) 0 clamp(64px, 8vw, 92px);
  border-top: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 140px minmax(0, 1.35fr) minmax(210px, 0.65fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.about-label h2 {
  margin-top: 16px;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  line-height: 1.3;
}

.about-copy p {
  max-width: 36em;
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.95;
}

.about-copy p:first-child {
  color: var(--ink);
  font-size: 16.5px;
  line-height: 1.9;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-copy a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.about-copy a:hover {
  color: var(--ink);
}

.small-label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.1em;
}

.about-now dl {
  margin-top: 15px;
  border-top: 1px solid var(--line);
}

.about-now dl > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.about-now dt {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.about-now dd {
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.65;
  text-align: right;
}

.now-link {
  display: inline-flex;
  max-width: 100%;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  color: var(--ink);
}

.now-track {
  max-width: 100%;
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.6;
  text-align: right;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
  transition:
    color 0.25s,
    text-decoration-color 0.25s;
}

.now-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.now-arrow {
  color: var(--muted);
  transition:
    color 0.25s,
    transform 0.25s var(--ease);
}

.now-dot {
  display: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.now-listening.is-playing .now-dot {
  display: inline-block;
}

.now-link:hover .now-track {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.now-link:hover .now-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.empty-state {
  padding: clamp(34px, 5vw, 52px) 0;
  border-bottom: 1px solid var(--line);
}

.empty-kicker {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.1em;
}

.empty-title {
  margin-top: 13px;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.04em;
}

.empty-copy {
  max-width: 32em;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.9;
}

/* ==========================================================================
   Article pages
   ========================================================================== */

.article-container {
  width: min(calc(100% - (var(--gutter) * 2)), 760px);
  margin-inline: auto;
  padding: clamp(36px, 5.5vw, 62px) 0 clamp(67px, 9vw, 108px);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  transition: color 0.25s;
}

.back-link:hover {
  color: var(--accent);
}

.article {
  margin-top: clamp(30px, 5vw, 52px);
}

.article-header {
  padding-bottom: clamp(30px, 4.5vw, 44px);
  border-bottom: 1px solid var(--line);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 9px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.05em;
}

.article-meta time {
  font-variant-numeric: tabular-nums;
}

.article-reading {
  margin-left: auto;
}

.article-header h1 {
  margin-top: 18px;
  font-size: clamp(2.5rem, 5.5vw, 4.3rem);
  line-height: 1.16;
  letter-spacing: -0.06em;
}

.article-dek {
  max-width: 32em;
  margin-top: 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.prose {
  padding-top: clamp(34px, 5vw, 50px);
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 2.05;
}

.prose > p {
  margin-bottom: 1.55em;
}

.prose h2 {
  margin: 2.15em 0 0.8em;
  color: var(--ink);
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  line-height: 1.45;
  letter-spacing: -0.03em;
}

.prose h3 {
  margin: 1.9em 0 0.7em;
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.5;
  letter-spacing: -0.02em;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

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

.prose blockquote {
  margin: 2.1em 0;
  padding-left: 22px;
  border-left: 2px solid var(--accent);
  color: var(--ink);
}

.prose blockquote p {
  margin: 0;
  font-size: clamp(1.05rem, 1.4vw, 1.15rem);
  line-height: 1.95;
  letter-spacing: -0.015em;
}

.prose ul,
.prose ol {
  margin: 0 0 1.55em;
  padding-left: 1.35em;
}

.prose li {
  margin-bottom: 0.45em;
  padding-left: 0.15em;
}

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

.prose code {
  padding: 0.16em 0.32em;
  background: var(--inline-code-bg);
  font-family: var(--font-mono);
  font-size: 0.82em;
}

.prose pre {
  margin: 2.1em 0;
  padding: 20px 22px;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--code-bg);
  color: var(--code-text);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.85;
}

.prose pre code {
  padding: 0;
  background: none;
  color: inherit;
  font-size: inherit;
}

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

.article-end {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 44px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: 0.08em;
}

.article-end .icon {
  width: 11px;
  height: 11px;
  color: var(--accent);
}

.article-footer {
  margin-top: 31px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.article-note {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.9;
}

.article-note a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

.post-pager {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  margin-top: 38px;
}

.pager-link {
  display: flex;
  max-width: 46%;
  flex-direction: column;
  gap: 5px;
  color: var(--ink);
}

.pager-newer {
  margin-right: auto;
  text-align: left;
}

.pager-older {
  margin-left: auto;
  text-align: right;
}

.pager-label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.05em;
}

.pager-link strong {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.65;
  letter-spacing: -0.015em;
  transition: color 0.25s;
}

.pager-link:hover strong {
  color: var(--accent);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding: 20px 0 30px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: 0.05em;
}

.footer-inner a {
  color: var(--ink);
  transition: color 0.25s;
}

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

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .home-grid {
    grid-template-columns: 1fr;
    gap: clamp(48px, 7vw, 72px);
  }

  .intro-inner {
    position: static;
  }

  .intro h1 {
    font-size: clamp(2.6rem, 7vw, 4.4rem);
  }

  .intro-copy {
    max-width: 34em;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .about-label {
    display: flex;
    align-items: baseline;
    gap: 15px;
  }

  .about-label h2 {
    margin-top: 0;
    font-size: 1.5rem;
  }

  .about-copy p {
    max-width: 42em;
  }

  .about-now {
    max-width: 420px;
    margin-top: 10px;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding-top: 20px;
  }

  .header-inner {
    gap: 14px;
    padding-bottom: 14px;
  }

  .header-actions {
    gap: 8px;
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
  }

  .brand-mark {
    width: 27px;
    height: 27px;
  }

  .brand-word strong {
    font-size: 15px;
  }

  .brand-word small {
    font-size: 7px;
  }

  .site-nav {
    gap: 15px;
  }

  .site-nav a {
    padding: 14px 0;
    font-size: 12.5px;
  }

  .home-grid {
    gap: 47px;
    padding-top: 44px;
  }

  .intro-copy {
    font-size: 14px;
  }

  .intro-note {
    margin-top: 18px;
  }

  .intro-links {
    margin-top: 25px;
  }

  .location {
    margin-top: 29px;
  }

  .section-head {
    padding-bottom: 11px;
  }

  .post-link {
    grid-template-columns: minmax(0, 1fr) 20px;
    column-gap: 12px;
    padding: 20px 0 22px;
  }

  .post-meta {
    margin-bottom: 9px;
    font-size: 9.5px;
  }

  .post-reading {
    margin-left: 0;
  }

  .post-body h3 {
    font-size: clamp(1.35rem, 5.8vw, 1.6rem);
  }

  .post-body p {
    font-size: 13.5px;
    line-height: 1.8;
  }

  .post-arrow {
    font-size: 15px;
  }

  .empty-state {
    padding: 30px 0 32px;
  }

  .empty-title {
    margin-top: 10px;
    font-size: 1.35rem;
  }

  .empty-copy {
    font-size: 13px;
  }

  .about {
    margin-top: 74px;
    padding-top: 32px;
    padding-bottom: 60px;
  }

  .about-grid {
    gap: 22px;
  }

  .about-label {
    gap: 12px;
  }

  .about-label h2 {
    font-size: 1.35rem;
  }

  .about-copy p {
    font-size: 13.5px;
  }

  .about-copy p:first-child {
    font-size: 15.5px;
  }

  .about-now {
    margin-top: 12px;
  }

  .article-container {
    padding-top: 34px;
    padding-bottom: 66px;
  }

  .article {
    margin-top: 27px;
  }

  .article-header {
    padding-bottom: 27px;
  }

  .article-header h1 {
    margin-top: 15px;
    font-size: clamp(2.15rem, 8.8vw, 3rem);
    line-height: 1.18;
  }

  .article-dek {
    margin-top: 15px;
    font-size: 14px;
  }

  .prose {
    padding-top: 31px;
    font-size: 16px;
    line-height: 1.98;
  }

  .prose h2 {
    margin-top: 1.9em;
  }

  .prose blockquote {
    padding-left: 17px;
  }

  .prose blockquote p {
    font-size: 1rem;
  }

  .prose pre {
    margin: 1.8em 0;
    padding: 17px 16px;
    font-size: 11.5px;
  }

  .article-end {
    margin-top: 37px;
  }

  .article-footer {
    margin-top: 27px;
  }

  .post-pager {
    flex-direction: column;
    gap: 19px;
    margin-top: 31px;
  }

  .pager-link {
    max-width: 100%;
  }

  .pager-older {
    margin-left: 0;
    text-align: left;
  }

  .footer-inner {
    gap: 6px 20px;
    font-size: 7.5px;
  }

  .footer-note {
    order: 3;
    flex-basis: 100%;
  }
}

@media (max-width: 360px) {
  .header-actions {
    gap: 6px;
  }

  .site-nav {
    gap: 10px;
  }

  .theme-toggle {
    width: 38px;
    height: 38px;
  }

  .intro h1 {
    font-size: 2.5rem;
  }

  .post-meta {
    font-size: 9px;
  }

  .post-body h3 {
    font-size: 1.3rem;
  }

  .article-header h1 {
    font-size: 2.1rem;
  }

  .prose {
    font-size: 15.5px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
    display: block;
  }

  .site-header,
  .site-footer,
  .back-link,
  .article-footer,
  .intro,
  .about {
    display: none !important;
  }

  .article-container,
  .container {
    width: 100%;
    max-width: none;
  }

  .article-container {
    padding: 0;
  }

  .article-header h1 {
    color: #000;
  }

  .prose a {
    color: #000;
  }
}
