@import url("/themes/theme-ikuyu/assets/fonts/kuaikanshijieti/result.css?v=1.0.3");

:root {
  --primary: hsl(220 90% 71%);
  --secondary: hsl(208 80% 65%);
  --page: #fafafa;
  --card: #fff;
  --text: #262626;
  --muted: #737373;
  --line: #e5e5e5;
  --shadow: 0 4px 14px rgb(15 23 42 / 10%);
  color-scheme: light;
  font-family: Geist, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

html[data-theme="dark"] {
  --primary: hsl(209 90% 50%);
  --secondary: hsl(200 80% 50%);
  --page: #0d0c0c;
  --card: #171717;
  --text: #e5e5e5;
  --muted: #a3a3a3;
  --line: #2b2b2b;
  --shadow: 0 4px 16px rgb(0 0 0 / 35%);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--text);
  line-height: 1.5;
}

body.drawer-open {
  overflow: hidden;
}

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

button,
input {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

img,
video {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  pointer-events: none;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  height: 46px;
  margin: 9px auto 0;
  padding: 4px 8px;
  border: 1px solid rgb(229 229 229 / 60%);
  border-radius: 24px;
  background: rgb(245 245 245 / 70%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  pointer-events: auto;
}

html[data-theme="dark"] .nav-pill {
  border-color: rgb(64 64 64 / 55%);
  background: rgb(38 38 38 / 76%);
}

.icon-button,
.nav-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 5px;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.icon-button:hover,
.nav-avatar:hover {
  background: rgb(163 163 163 / 18%);
  color: var(--primary);
  transform: translateY(-1px);
}

.icon-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.nav-avatar {
  overflow: hidden;
  padding: 3px;
  background: #111827;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.nav-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.drawer-backdrop {
  position: fixed;
  z-index: 90;
  inset: 0;
  background: rgb(0 0 0 / 45%);
  backdrop-filter: blur(4px);
}

.site-drawer {
  position: fixed;
  z-index: 100;
  top: 0;
  width: min(370px, calc(100vw - 24px));
  height: 100dvh;
  padding: 20px;
  overflow-y: auto;
  background: var(--card);
  box-shadow: 0 0 36px rgb(0 0 0 / 20%);
}

.site-drawer--left {
  left: 0;
  animation: drawer-left .25s ease-out;
}

.site-drawer--right {
  right: 0;
  animation: drawer-right .25s ease-out;
}

.drawer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  margin-bottom: 20px;
}

.drawer-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.drawer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: contain;
}

.drawer-menu {
  display: grid;
  gap: 8px;
}

.drawer-menu a {
  padding: 10px 12px;
  border-radius: 12px;
  transition: background .2s ease, color .2s ease;
}

.drawer-menu a:hover {
  background: linear-gradient(90deg, hsl(220 90% 71% / 12%), hsl(208 80% 65% / 12%));
  color: var(--primary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.stats-grid div {
  display: grid;
  min-height: 82px;
  place-content: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: center;
}

.stats-grid strong {
  color: var(--primary);
  font-size: 22px;
}

.stats-grid span {
  color: var(--muted);
  font-size: 12px;
}

.drawer-subtitle {
  margin: 28px 0 10px;
  font-size: 18px;
}

.drawer-posts {
  display: grid;
}

.drawer-posts a {
  display: grid;
  gap: 3px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.drawer-posts small {
  color: var(--muted);
}

@keyframes drawer-left {
  from { transform: translateX(-100%); }
}

@keyframes drawer-right {
  from { transform: translateX(100%); }
}

.home-hero {
  position: relative;
  width: 100%;
  height: 640px;
  overflow: hidden;
}

.home-hero::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(to bottom, transparent 56%, var(--page) 100%);
  content: "";
  pointer-events: none;
}

.home-hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero__copy {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 100%;
  padding: 0 16px;
  transform: translate(-50%, -50%);
  color: #0a0a0a;
  text-align: center;
  text-shadow: 0 1px 2px rgb(255 255 255 / 22%);
}

.home-hero__copy h1,
.home-hero__copy p,
.page-hero h1,
.post-heading h1 {
  font-family: "快看世界体", "Arial Black", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 700;
}

.home-hero__copy h1 {
  margin: 0;
  font-size: 56px;
  letter-spacing: .08em;
}

.home-hero__copy p {
  margin: 8px 0 0;
  font-size: 28px;
  letter-spacing: .05em;
}

.home-content {
  display: grid;
  gap: 24px;
  width: min(1376px, calc(100% - 160px));
  margin: 0 auto;
  padding-bottom: 32px;
}

.contribution-section {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 16px;
  min-height: 169px;
}

.contribution-calendar {
  min-width: 0;
  color: #6f8fcf;
  font-size: 12px;
}

.contribution-months {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  height: 24px;
  padding-left: 34px;
  font-weight: 600;
}

.contribution-body {
  display: flex;
}

.contribution-days {
  display: grid;
  grid-template-rows: repeat(7, 12px);
  gap: 3px;
  width: 34px;
}

.contribution-days span:nth-child(1) { grid-row: 2; }
.contribution-days span:nth-child(2) { grid-row: 4; }
.contribution-days span:nth-child(3) { grid-row: 6; }

.contribution-grid {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(7, 12px);
  grid-auto-columns: 12px;
  gap: 3px;
  min-width: max-content;
}

.contribution-grid i,
.contribution-legend i {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 1px;
  background: #e8e8e8;
}

.contribution-grid i[data-level="1"],
.contribution-legend i:nth-of-type(2) { background: #d9e4fb; }
.contribution-grid i[data-level="2"],
.contribution-legend i:nth-of-type(3) { background: #b9cff8; }
.contribution-grid i[data-level="3"],
.contribution-legend i:nth-of-type(4) { background: #96b6f5; }
.contribution-grid i[data-level="4"],
.contribution-legend i:nth-of-type(5) { background: var(--primary); }

.contribution-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  color: var(--text);
}

.contribution-legend > span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.activity-list {
  max-height: 169px;
  overflow: auto;
  scrollbar-width: none;
}

.activity-list a {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 8px 42px 8px 8px;
  border-bottom: 1px solid var(--line);
}

.activity-list small {
  display: flex;
  gap: 14px;
  color: var(--muted);
}

.activity-list > a > span {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-list em {
  position: absolute;
  right: 8px;
  bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.home-section {
  display: grid;
  gap: 12px;
}

.section-heading {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

.section-heading b {
  color: var(--text);
  font-size: 18px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.post-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  transition: transform .25s ease, box-shadow .25s ease;
}

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

.post-card__cover {
  position: relative;
  display: block;
  height: auto;
  aspect-ratio: 9 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, hsl(220 90% 71% / 40%), hsl(208 80% 65% / 25%));
}

.post-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.post-card:hover .post-card__cover img {
  transform: scale(1.025);
}

.post-card__cover > span {
  position: absolute;
  top: 7px;
  left: 7px;
  padding: 3px 7px;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 6px;
  background: rgb(15 23 42 / 72%);
  color: #fff;
  font-size: 12px;
}

.post-card__body {
  padding: 10px;
}

.post-card__title {
  display: block;
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-card__excerpt {
  display: -webkit-box;
  min-height: 48px;
  margin: 10px 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--muted);
  font-size: 13px;
  font-weight: 300;
  line-height: 24px;
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.post-card__meta b {
  font-weight: 400;
}

.post-card__owner {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-right: auto;
  color: var(--text);
  font-size: 13px;
}

.post-card__owner img {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  object-fit: cover;
}

.category-showcase {
  display: grid;
  gap: 24px;
}

.category-feature {
  position: relative;
  min-height: 180px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line), transparent 30%);
  border-radius: 16px;
  background: var(--card);
}

.category-feature__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.category-feature__heading > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.category-feature__heading > div > span {
  color: var(--primary);
}

.category-feature__heading h2 {
  margin: 0;
  color: var(--primary);
  font-size: 23px;
}

.category-feature__heading > strong {
  position: absolute;
  z-index: 0;
  top: 6px;
  right: 44px;
  color: hsl(220 90% 71% / 8%);
  font-size: clamp(48px, 6vw, 76px);
  font-style: italic;
  letter-spacing: .06em;
  pointer-events: none;
}

.category-feature__heading a {
  z-index: 1;
  padding: 8px 12px;
  border: 1px solid hsl(220 90% 71% / 45%);
  border-radius: 999px;
  color: var(--primary);
  font-size: 13px;
}

.category-feature > p {
  margin: 14px 0;
  color: var(--muted);
  font-size: 12px;
}

.category-feature__posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.category-feature__posts a {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.category-feature__posts img {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
}

.category-feature__posts span {
  display: grid;
  min-width: 0;
}

.category-feature__posts b,
.category-feature__posts small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-feature__posts b {
  font-size: 14px;
  font-weight: 500;
}

.category-feature__posts small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.tag-cloud {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}

.tag-cloud a {
  position: relative;
  display: grid;
  min-height: 84px;
  padding: 13px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.tag-cloud small {
  color: var(--muted);
}

.tag-cloud span {
  position: absolute;
  right: -2px;
  bottom: -9px;
  color: hsl(220 90% 71% / 18%);
  font-size: 42px;
}

.comments-preview {
  min-height: 190px;
  align-items: start;
}

.comments-preview .section-heading {
  height: 36px;
}

.site-footer {
  width: 100%;
}

.footer-main {
  min-height: 196px;
  padding: 24px 80px;
  background: linear-gradient(90deg, hsl(220 90% 71% / 10%), hsl(208 80% 65% / 10%));
}

.footer-about {
  width: min(630px, 100%);
}

.footer-logo {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
}

.footer-logo img {
  max-width: 160px;
  height: 56px;
  object-fit: contain;
}

.footer-about p {
  max-height: 84px;
  margin: 4px 0 0;
  overflow: auto;
  color: var(--muted);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: .08em;
  line-height: 28px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 65px;
  padding: 14px 80px;
  font-size: 13px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.post-hero {
  position: relative;
  height: 384px;
  background-position: center;
  background-size: cover;
}

.post-hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgb(0 0 0 / 5%), rgb(13 12 12 / 46%));
  content: "";
}

.post-stats {
  position: absolute;
  z-index: 2;
  bottom: 20px;
  left: 50%;
  display: grid;
  grid-template-columns: repeat(4, auto);
  align-items: stretch;
  overflow: hidden;
  border-radius: 8px;
  background: rgb(23 23 23 / 24%);
  color: #fff;
  backdrop-filter: blur(8px);
  transform: translateX(-50%);
}

.post-stats > div,
.post-stats > a {
  display: grid;
  min-width: 90px;
  place-items: center;
  gap: 3px;
  padding: 7px 11px;
  border-right: 1px solid rgb(255 255 255 / 12%);
  font-size: 13px;
  white-space: nowrap;
}

.post-stats small {
  opacity: .9;
}

.post-shell {
  position: relative;
  z-index: 3;
  min-height: 50vh;
  margin-top: -20px;
  padding: 76px 16px 64px;
  border-radius: 24px 24px 0 0;
  background: var(--page);
}

.post-inner,
.content-inner {
  width: min(920px, 100%);
  margin: 0 auto;
}

.post-heading h1 {
  margin: 0 0 26px;
  font-size: 30px;
  line-height: 1.35;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding-bottom: 14px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  white-space: nowrap;
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.post-content,
.page-content {
  font-size: 16px;
  letter-spacing: .07em;
  line-height: 2.5rem;
  overflow-wrap: anywhere;
}

.post-content h2,
.post-content h3,
.post-content h4,
.page-content h2,
.page-content h3,
.page-content h4 {
  position: relative;
  margin: 42px 0 18px;
  scroll-margin-top: 78px;
  line-height: 1.45;
  letter-spacing: normal;
}

.post-content h2::before,
.page-content h2::before {
  margin-right: 5px;
  content: "♙";
  color: var(--primary);
}

.post-content p,
.page-content p {
  margin: 16px 0;
}

.post-content a,
.page-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.post-content img,
.page-content img {
  height: auto;
  margin: 20px auto;
  border-radius: 10px;
}

.post-content pre,
.page-content pre {
  padding: 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  line-height: 1.65;
}

.post-content code,
.page-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .9em;
}

.post-content table,
.page-content table {
  display: block;
  width: 100%;
  margin: 24px 0;
  overflow-x: auto;
  border-collapse: collapse;
  letter-spacing: normal;
  line-height: 1.6;
}

.post-content th,
.post-content td,
.page-content th,
.page-content td {
  min-width: 110px;
  padding: 10px 12px;
  border: 1px solid var(--line);
}

.post-content blockquote,
.page-content blockquote {
  margin: 20px 0;
  padding: 4px 18px;
  border-left: 4px solid var(--primary);
  background: hsl(220 90% 71% / 8%);
  color: var(--muted);
}

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

.post-nav a {
  display: grid;
  gap: 4px;
  min-height: 78px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.post-nav a:last-child {
  text-align: right;
}

.post-nav small {
  color: var(--muted);
}

.author-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: center;
  gap: 18px;
  margin: 24px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}

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

.author-card h2 {
  margin: 0;
  font-size: 18px;
}

.author-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.copyright-note {
  margin: 24px 0;
  padding: 16px 18px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.comment-wrap {
  margin-top: 42px;
}

.post-toolbar {
  position: fixed;
  z-index: 25;
  top: 50%;
  right: max(16px, calc((100vw - 1376px) / 2 - 32px));
  display: grid;
  width: 40px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow);
  transform: translateY(-50%);
}

.post-toolbar button,
.post-toolbar a {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  background: transparent;
  cursor: pointer;
}

.post-toolbar button:hover,
.post-toolbar a:hover {
  color: var(--primary);
}

.post-toolbar [data-upvote].is-active {
  color: #ef4444;
}

.post-toolbar [data-upvote]:disabled {
  cursor: default;
}

.toc-panel {
  position: fixed;
  z-index: 24;
  top: 74px;
  right: 20px;
  width: min(330px, calc(100vw - 40px));
  max-height: calc(100vh - 96px);
  padding: 18px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.toc-panel h2 {
  margin: 0 0 12px;
  font-size: 17px;
}

.toc-panel nav {
  display: grid;
  gap: 7px;
}

.toc-panel a {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toc-panel a[data-level="3"] {
  padding-left: 16px;
}

.toc-panel a:hover {
  color: var(--primary);
}

.page-hero {
  position: relative;
  display: grid;
  min-height: 352px;
  place-items: center;
  padding: 80px 16px 36px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, hsl(220 90% 71% / 42%), transparent 45%),
    radial-gradient(circle at 75% 35%, hsl(208 80% 65% / 32%), transparent 42%),
    linear-gradient(135deg, #e9eefb, #fbfbfb);
}

html[data-theme="dark"] .page-hero {
  background:
    radial-gradient(circle at 30% 20%, hsl(209 90% 50% / 30%), transparent 45%),
    radial-gradient(circle at 75% 35%, hsl(200 80% 50% / 25%), transparent 42%),
    #111;
}

.page-hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, var(--page));
  content: "";
}

.page-hero--grid {
  background-color: var(--page);
  background-image:
    linear-gradient(hsl(220 90% 71% / 8%) 1px, transparent 1px),
    linear-gradient(90deg, hsl(220 90% 71% / 8%) 1px, transparent 1px);
  background-size: 28px 28px;
}

.page-hero > div {
  z-index: 1;
  text-align: center;
}

.page-hero h1 {
  margin: 0;
  font-size: 44px;
}

.page-hero p {
  margin: 9px 0 0;
  color: var(--muted);
}

.archive-shell {
  width: min(1120px, calc(100% - 32px));
  min-height: 45vh;
  margin: 0 auto;
  padding: 40px 0 72px;
}

.archive-shell > .post-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.archive-list {
  display: grid;
  gap: 30px;
}

.archive-year h2 {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 34px;
}

.archive-month {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  margin-bottom: 18px;
}

.archive-month > strong {
  color: var(--muted);
}

.archive-month ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.archive-month a {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.archive-month time {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.taxonomy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.taxonomy-card {
  position: relative;
  display: grid;
  min-height: 144px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}

.taxonomy-card h2 {
  z-index: 1;
  margin: 0;
  color: var(--primary);
}

.taxonomy-card p {
  z-index: 1;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.taxonomy-card span {
  z-index: 1;
  align-self: end;
  color: var(--muted);
  font-size: 12px;
}

.taxonomy-card::after {
  position: absolute;
  right: -14px;
  bottom: -30px;
  color: hsl(220 90% 71% / 10%);
  content: "◇";
  font-size: 110px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 36px;
}

.pagination a,
.pagination span {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 13px;
}

.empty-state {
  display: grid;
  min-height: 240px;
  place-content: center;
  color: var(--muted);
  text-align: center;
}

.selected-comments {
  columns: 3;
  column-gap: 18px;
}

.selected-comment {
  display: inline-block;
  width: 100%;
  margin-bottom: 18px;
  padding: 16px;
  break-inside: avoid;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 3px 10px rgb(15 23 42 / 5%);
}

.selected-comment header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}

.selected-comment header > div {
  display: grid;
}

.selected-comment time,
.selected-comment small {
  color: var(--muted);
  font-size: 12px;
}

.selected-comment img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.selected-comment > div {
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.9;
}

.error-page {
  display: grid;
  min-height: calc(100vh - 261px);
  place-content: center;
  padding: 96px 20px;
  text-align: center;
}

.error-page strong {
  color: var(--primary);
  font-size: clamp(72px, 15vw, 180px);
  line-height: 1;
}

.error-page a {
  display: inline-block;
  margin-top: 20px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
}

@media (max-width: 1023px) {
  .home-content {
    width: calc(100% - 24px);
  }

  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tag-cloud {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-main,
  .footer-bottom {
    padding-right: 20px;
    padding-left: 20px;
  }

  .post-toolbar {
    right: 10px;
  }

  .selected-comments {
    columns: 2;
  }
}

@media (max-width: 767px) {
  .contribution-section {
    grid-template-columns: 1fr;
  }

  .activity-list {
    display: none;
  }

  .contribution-calendar {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .category-feature__posts {
    grid-template-columns: 1fr;
  }

  .category-feature__posts a {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .category-feature__posts img {
    width: 48px;
    height: 48px;
  }

  .taxonomy-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 639px) {
  .nav-pill [data-theme-toggle],
  .nav-avatar {
    display: none;
  }

  .home-hero {
    height: 320px;
  }

  .home-hero__copy {
    top: 52%;
  }

  .home-hero__copy h1 {
    font-size: 40px;
  }

  .home-hero__copy p {
    font-size: 20px;
    letter-spacing: .02em;
  }

  .post-grid,
  .archive-shell > .post-grid {
    grid-template-columns: 1fr;
  }

  .post-card__cover {
    height: auto;
    aspect-ratio: 12 / 5;
  }

  .category-feature {
    padding: 18px;
  }

  .category-feature__heading {
    align-items: start;
  }

  .category-feature__heading > strong {
    right: 6px;
    font-size: 46px;
  }

  .category-feature__heading a {
    white-space: nowrap;
  }

  .tag-cloud {
    grid-template-columns: repeat(6, 170px);
    grid-template-rows: repeat(2, 84px);
    grid-auto-flow: column;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .tag-cloud::-webkit-scrollbar {
    display: none;
  }

  .footer-main {
    padding: 30px 12px;
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-about p {
    max-height: none;
    font-size: 14px;
    line-height: 28px;
  }

  .footer-bottom {
    align-items: start;
    flex-direction: column;
    padding: 16px 12px 24px;
  }

  .footer-links {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }

  .post-stats {
    bottom: 18px;
    width: calc(100% - 28px);
    grid-template-columns: repeat(4, 1fr);
  }

  .post-stats > div,
  .post-stats > a {
    min-width: 0;
    padding: 7px 3px;
    font-size: 12px;
  }

  .post-shell {
    padding: 76px 12px 56px;
  }

  .post-heading h1 {
    font-size: 30px;
  }

  .post-content,
  .page-content {
    font-size: 14px;
    line-height: 2.5rem;
  }

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

  .post-nav a:last-child {
    text-align: left;
  }

  .author-card {
    grid-template-columns: 58px 1fr;
  }

  .author-card img {
    width: 58px;
    height: 58px;
  }

  .page-hero {
    min-height: 260px;
  }

  .page-hero h1 {
    font-size: 34px;
  }

  .archive-shell {
    width: calc(100% - 24px);
    padding-top: 24px;
  }

  .archive-month {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .taxonomy-grid {
    grid-template-columns: 1fr;
  }

  .selected-comments {
    columns: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
