:root {
  --bg: #f7f3ea;
  --paper: #fffdf7;
  --ink: #1e2520;
  --muted: #6f746d;
  --line: rgba(30, 37, 32, .13);
  --accent: #1f7a5c;
  --accent-soft: rgba(31, 122, 92, .12);
  --shadow: 0 24px 80px rgba(31, 44, 36, .08);
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  --font-mono: "SFMono-Regular", "SF Mono", Consolas, "Liberation Mono", Menlo, Monaco, "Courier New", monospace;
  --font-body: var(--font-sans);
  --font-ui: var(--font-sans);
  --font-title: var(--font-sans);
  --code-bg: #1f2430;
  --code-ink: #d8dee9;
  --code-muted: #7f8ea3;
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(31, 122, 92, .12), transparent 28rem),
    linear-gradient(180deg, #faf7ef 0%, var(--bg) 44rem);
  font-size: 16px;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.78;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
  text-decoration-color: transparent;
  text-decoration-thickness: .08em;
  text-underline-offset: .2em;
  transition: color .18s ease, text-decoration-color .18s ease, transform .18s ease;
}

a:hover,
a:focus-visible {
  color: var(--accent);
  text-decoration-line: underline;
  text-decoration-color: var(--accent);
}

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

code,
kbd,
pre,
samp {
  font-family: var(--font-mono);
}

code {
  padding: .12rem .34rem;
  border-radius: 4px;
  background: rgba(31, 36, 48, .08);
  color: #9b3d2e;
  font-size: .9em;
}

pre code {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
}

pre {
  position: relative;
  overflow: auto;
  max-height: 420px;
  margin: 1.7rem 0;
  padding: 3rem 1.1rem 1.15rem;
  border: 0;
  border-radius: 8px;
  background: var(--code-bg);
  color: var(--code-ink);
  box-shadow: inset 0 1px rgba(255, 255, 255, .06);
}

pre::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .04);
}

pre::after {
  content: "";
  position: absolute;
  top: .72rem;
  left: .85rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: 23px 0 #ffbd2e, 46px 0 #28c840;
}

blockquote {
  margin: 2rem 0;
  padding: .25rem 0 .25rem 1.25rem;
  border-left: 3px solid var(--accent);
  color: #3f473f;
  font-size: 1.08rem;
}

.site-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 20;
  padding: .55rem .8rem;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 243, 234, .86);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  min-width: 0;
  max-width: calc(100% - 60px);
  align-items: center;
  gap: .8rem;
  font-family: var(--font-ui);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: auto;
  max-width: min(220px, 52vw);
  max-height: 44px;
  height: 44px;
  aspect-ratio: 220 / 48;
  object-fit: contain;
  object-position: left center;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background:
    linear-gradient(135deg, transparent 48%, var(--accent) 49% 54%, transparent 55%),
    radial-gradient(circle at 32% 28%, var(--accent) 0 4px, transparent 5px),
    var(--paper);
  box-shadow: var(--shadow);
}

.brand strong {
  display: block;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-family: var(--font-ui);
  font-size: .92rem;
}

.site-nav a {
  padding: .45rem .7rem;
  border-radius: 6px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav .current {
  background: var(--accent-soft);
  color: var(--accent);
}

.search-form {
  position: relative;
  margin-left: .5rem;
}

.search-form label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.search-form input {
  width: 150px;
  min-height: 36px;
  padding: .35rem .7rem;
  border-radius: 999px;
  font-size: .86rem;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
}

.nav-toggle span {
  width: 18px;
  height: 1px;
  background: currentColor;
}

.nav-toggle b {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.archive-head,
.not-found {
  padding: clamp(1.6rem, 4vw, 3rem) 0 clamp(1.2rem, 3vw, 2rem);
}

.eyebrow {
  margin: 0 0 .65rem;
  color: var(--accent);
  font-family: var(--font-ui);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.archive-head h1,
.not-found h1 {
  margin: 0;
  max-width: 16ch;
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 5.4vw, 4.6rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.04;
}

.not-found p {
  max-width: 640px;
  margin: 0;
  color: #444c44;
  font-size: clamp(.96rem, 1.25vw, 1.04rem);
}

.content-layout {
  display: grid;
  gap: clamp(1.6rem, 4vw, 3rem);
  padding: clamp(1.5rem, 3vw, 2.6rem) 0 3.6rem;
}

.content-layout.has-sidebar {
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
}

.content-layout.no-sidebar {
  grid-template-columns: minmax(0, 1fr);
}

.layout-main {
  min-width: 0;
}

.post-list {
  display: grid;
  gap: 0;
  padding-bottom: 1.5rem;
  border-top: 1px solid var(--line);
}

.empty-state,
.comments-area,
.single-post {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, .78);
  box-shadow: var(--shadow);
}

.post-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: clamp(1rem, 2.4vw, 1.6rem);
  align-items: center;
  min-height: 126px;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.post-kicker,
.post-meta {
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: .83rem;
  line-height: 1.5;
}

.post-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .45rem;
  margin-bottom: .35rem;
}

.post-kicker a,
.post-meta a {
  text-decoration: none;
}

.post-card h2 {
  margin: 0 0 .45rem;
  font-family: var(--font-title);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
}

.post-card h2 a {
  display: -webkit-box;
  overflow: hidden;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.post-excerpt {
  color: #444c44;
  display: -webkit-box;
  overflow: hidden;
  max-width: 68ch;
  font-size: .98rem;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cover-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ede7db;
  text-decoration: none;
}

.post-cover,
.single-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-excerpt p,
.post-excerpt figure,
.post-excerpt img,
.post-excerpt table,
.post-excerpt blockquote,
.post-excerpt pre {
  display: none;
}

.post-excerpt p:first-child {
  display: block;
  margin: 0;
}

.read-more,
.submit {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: .45rem .8rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 253, 247, .45);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: .86rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.read-more:hover,
.submit:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
  transform: translateY(-1px);
}

.submit {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.page-navigator {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .45rem;
  margin: 0;
  padding: 1.5rem 0 4rem;
  font-family: var(--font-ui);
  list-style: none;
}

.page-navigator a,
.page-navigator span {
  display: inline-flex;
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: .35rem .65rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 253, 247, .6);
  text-decoration: none;
}

.page-navigator .current a,
.page-navigator .current span {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.single-wrap {
  padding: 0;
}

.single-post {
  --single-pad-x: clamp(1rem, 3vw, 2.4rem);
  --single-cover-gap: 1rem;
  --single-cover-bleed: calc(var(--single-pad-x) - var(--single-cover-gap));
  padding: 1rem var(--single-pad-x) clamp(1.8rem, 4vw, 3rem);
}

.single-head {
  padding-bottom: clamp(1.25rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
}

.single-cover + .post-meta {
  margin-top: 1rem;
}

.single-head .post-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem .75rem;
  align-items: center;
  font-size: .82rem;
  line-height: 1.45;
  text-align: center;
}

.single-head .meta-item {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  min-height: 1.35rem;
  color: var(--muted);
  white-space: nowrap;
}

.single-head .meta-item svg {
  width: .95rem;
  height: .95rem;
  flex: 0 0 auto;
  fill: currentColor;
  opacity: .82;
}

.single-head .meta-edit {
  padding: .12rem .42rem;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: 999px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}

.single-head .meta-edit:hover,
.single-head .meta-edit:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 56%, var(--line));
  background: color-mix(in srgb, var(--accent) 11%, transparent);
}

.single-head h1 {
  max-width: 960px;
  margin: .65rem auto 0;
  font-size: clamp(1.8rem, 2.6vw, 2.35rem);
  line-height: 1.18;
  text-align: center;
}

.single-cover {
  width: calc(100% + var(--single-cover-bleed) + var(--single-cover-bleed));
  max-width: none;
  aspect-ratio: 16 / 8;
  height: auto;
  margin: clamp(1.5rem, 4vw, 2.6rem) calc(var(--single-cover-bleed) * -1) 0;
  border-radius: 8px;
  background: #ede7db;
}

.single-head .single-cover:first-child {
  margin-top: 0;
}

.entry-content {
  max-width: 960px;
  margin: clamp(1.35rem, 3vw, 2.3rem) auto 0;
  color: #263028;
  font-size: clamp(1.02rem, 1.2vw, 1.08rem);
  line-height: 1.82;
}

.entry-content .hljs-comment,
.entry-content .hljs-quote,
.entry-content .token.comment {
  color: #7f8ea3;
}

.entry-content .hljs-keyword,
.entry-content .hljs-selector-tag,
.entry-content .hljs-subst,
.entry-content .token.keyword {
  color: #c792ea;
}

.entry-content .hljs-string,
.entry-content .hljs-attr,
.entry-content .hljs-symbol,
.entry-content .hljs-bullet,
.entry-content .hljs-addition,
.entry-content .token.string {
  color: #c3e88d;
}

.entry-content .hljs-number,
.entry-content .hljs-literal,
.entry-content .hljs-variable,
.entry-content .hljs-template-variable,
.entry-content .hljs-tag .hljs-attr,
.entry-content .token.number {
  color: #f78c6c;
}

.entry-content .hljs-title,
.entry-content .hljs-section,
.entry-content .hljs-name,
.entry-content .token.function {
  color: #82aaff;
}

.entry-content .hljs-built_in,
.entry-content .hljs-type,
.entry-content .hljs-class .hljs-title {
  color: #ffcb6b;
}

.entry-content .hljs-meta,
.entry-content .hljs-deletion {
  color: #ff5370;
}

.entry-content figure.highlight {
  overflow: hidden;
  margin: 1.7rem 0;
  border-radius: 8px;
  background: var(--code-bg);
}

.entry-content figure.highlight table,
.entry-content figure.highlight pre {
  margin: 0;
}

.entry-content figure.highlight table {
  display: block;
  overflow: auto;
  border: 0;
}

.entry-content figure.highlight td,
.entry-content figure.highlight th {
  border: 0;
}

.entry-content figure.highlight .gutter {
  user-select: none;
  color: rgba(216, 222, 233, .38);
}

.entry-content figure.highlight .code {
  color: var(--code-ink);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin: 1.05em 0 .85em;
  color: var(--ink);
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 1.35;
}

.entry-content h2 {
  font-size: clamp(1.55rem, 2.3vw, 2.1rem);
  margin-top: 1.15em;
}

.entry-content h3 {
  font-size: clamp(1.32rem, 1.8vw, 1.65rem);
  margin-top: 1.05em;
}

.entry-content h4 {
  font-size: 1.12rem;
  margin-top: 1em;
}

.entry-content > h2:first-child,
.entry-content > h3:first-child,
.entry-content > h4:first-child {
  margin-top: 0;
}

.entry-content h2 + p,
.entry-content h3 + p,
.entry-content h4 + p,
.entry-content h2 + ul,
.entry-content h3 + ul,
.entry-content h4 + ul,
.entry-content h2 + ol,
.entry-content h3 + ol,
.entry-content h4 + ol {
  margin-top: 0;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
  margin: 0 0 1.15em;
}

.entry-content p {
  text-align: justify;
  text-justify: inter-ideograph;
}

.entry-content p:first-child {
  margin-top: 0;
}

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

.entry-content li + li {
  margin-top: .35em;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-family: var(--font-ui);
  font-size: .92rem;
}

.entry-content th,
.entry-content td {
  padding: .7rem;
  border: 1px solid var(--line);
  text-align: left;
}

.entry-content form.protected {
  display: grid;
  gap: 1rem;
  max-width: 560px;
  margin: 2rem auto 0;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, .62);
}

.entry-content form.protected p {
  margin: 0;
  text-align: left;
}

.entry-content form.protected .word {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
}

.entry-content form.protected p:last-child {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: center;
}

.entry-content form.protected input[type="password"] {
  min-height: 44px;
}

.entry-content form.protected input[type="submit"] {
  width: auto;
  min-width: 96px;
  min-height: 44px;
  padding-inline: 1.1rem;
}

.single-foot {
  max-width: 760px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: .88rem;
}

.tag-row a {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: .25rem .65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 247, .62);
  color: #4d574f;
  line-height: 1.2;
}

.tag-row a::before {
  content: "#";
  margin-right: .12rem;
  color: var(--accent);
}

.tag-row a:hover,
.tag-row a:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}

.post-neighbor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
  font-family: var(--font-ui);
  font-size: .92rem;
}

.post-neighbor span {
  display: flex;
  min-width: 0;
  min-height: 64px;
  align-items: center;
  gap: .65rem;
  overflow: hidden;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 253, 247, .5);
}

.post-neighbor a,
.post-neighbor em {
  min-width: 0;
  font-style: normal;
}

.post-neighbor em {
  display: block;
  flex: 1 1 auto;
  overflow: hidden;
}

.post-neighbor a {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
  white-space: normal;
}

.post-neighbor b {
  display: inline-flex;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.05rem;
  line-height: 1;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.post-neighbor span:hover b {
  background: var(--accent);
  color: white;
}

.post-neighbor .neighbor-prev:hover b {
  transform: translateX(-2px);
}

.post-neighbor .neighbor-next {
  justify-content: flex-end;
  text-align: right;
}

.post-neighbor .neighbor-next:hover b {
  transform: translateX(2px);
}

.comments-area {
  margin-top: 1.2rem;
  padding: clamp(1.2rem, 4vw, 2rem);
}

.comments-area h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
}

.comment-list,
.comment-list ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comment-list li {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, .62);
}

.comment-author {
  font-family: var(--font-ui);
  font-weight: 700;
}

.comment-meta {
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: .82rem;
}

.respond {
  margin-top: 1.8rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
}

label {
  display: grid;
  gap: .35rem;
  margin-bottom: .8rem;
  color: #3c443d;
  font-family: var(--font-ui);
  font-size: .9rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

input {
  min-height: 42px;
  padding: .55rem .7rem;
}

textarea {
  padding: .75rem;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.empty-state,
.not-found {
  text-align: center;
}

.empty-state {
  padding: 3rem 1.4rem;
}

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

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: .88rem;
}

.footer-inner p {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
  margin: 0;
}

.typecho-powered {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.typecho-powered img {
  display: block;
  width: auto;
  height: 24px;
}

.site-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 1rem;
}

.widget {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, .66);
}

.widget-title {
  margin: 0 0 .7rem;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: .95rem;
  line-height: 1.3;
}

.widget-list {
  display: grid;
  gap: .55rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: .86rem;
  line-height: 1.55;
}

.widget-list a {
  text-decoration: none;
}

.author-card {
  text-align: center;
}

.author-avatar {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto .75rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(31, 44, 36, .08);
}

.author-name {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 1.05rem;
  line-height: 1.3;
}

.author-bio {
  margin: .55rem 0 0;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: .86rem;
  line-height: 1.65;
}

.author-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .55rem;
  margin-top: .85rem;
}

.author-socials a {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 253, 247, .76);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.author-socials a:hover,
.author-socials a:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
  transform: translateY(-1px);
}

.author-socials img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.post-toc {
  max-height: calc(100vh - 120px);
  overflow: auto;
}

.toc-list {
  display: grid;
  gap: .3rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-ui);
  font-size: .86rem;
  line-height: 1.45;
}

.toc-item {
  min-width: 0;
}

.toc-h3 {
  padding-left: .8rem;
}

.toc-h4 {
  padding-left: 1.6rem;
}

.toc-link {
  display: block;
  overflow: hidden;
  padding: .25rem .45rem;
  border-left: 2px solid transparent;
  border-radius: 0 5px 5px 0;
  color: var(--muted);
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toc-link:hover,
.toc-link.is-active {
  border-left-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 28px, 1080px);
  }

  .header-inner {
    min-height: 66px;
    gap: .75rem;
  }

  .brand-logo {
    max-width: min(240px, calc(100vw - 112px));
    max-height: 48px;
    height: clamp(40px, 11vw, 48px);
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: 66px;
    right: 14px;
    left: 14px;
    display: none;
    padding: .6rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: .75rem;
  }

  .search-form {
    margin: .35rem 0 0;
  }

  .search-form input {
    width: 100%;
  }

  .content-layout.has-sidebar {
    grid-template-columns: 1fr;
  }

  .site-sidebar {
    position: static;
  }

  .post-toc {
    display: none;
  }

  .post-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: .85rem;
    min-height: 0;
  }

  .post-card h2 {
    font-size: 1.12rem;
  }

  .post-excerpt {
    font-size: .9rem;
    -webkit-line-clamp: 1;
  }

  .form-grid,
  .post-neighbor {
    grid-template-columns: 1fr;
  }

  .post-neighbor span:last-child {
    text-align: left;
  }

  .footer-inner {
    display: grid;
  }

  .entry-content form.protected p:last-child {
    grid-template-columns: 1fr;
  }

  .entry-content form.protected input[type="submit"] {
    width: 100%;
  }

  .single-cover {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
    aspect-ratio: 16 / 10;
  }

  .footer-inner {
    gap: .35rem;
  }
}
