@charset "UTF-8";
/*
 * @package Planet Walk
 * @author Codex
 * @version 1.0.0
 * @link https://sizheng.org/
 */

:root {
  --paper: #fbf7ef;
  --paper-deep: #efe4d2;
  --ink: #251f1a;
  --muted: #74695d;
  --line: #ded0bc;
  --accent: #b4432d;
  --accent-dark: #7b2d22;
  --green: #516b4b;
  --gold: #bd8a2f;
  --white: #fffdf8;
  --shadow: 0 22px 60px rgba(50, 33, 18, .13);
  --serif: "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  --sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(189, 138, 47, .16), transparent 34rem),
    linear-gradient(90deg, rgba(37, 31, 26, .025) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 42px 42px, auto;
  font-family: var(--sans);
  line-height: 1.78;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
textarea {
  font: inherit;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 20;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--white);
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 247, 239, .88);
  border-bottom: 1px solid rgba(222, 208, 188, .78);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 78px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: var(--accent);
  border: 1px solid var(--accent-dark);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1.25rem;
  box-shadow: 0 8px 24px rgba(180, 67, 45, .24);
}

.brand-name {
  display: block;
  overflow: hidden;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.brand-description {
  display: block;
  overflow: hidden;
  max-width: 28ch;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.4;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.site-nav {
  justify-self: end;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  color: var(--muted);
  border-radius: 999px;
  font-size: .9rem;
}

.site-nav a:hover,
.site-nav .current a {
  color: var(--accent-dark);
  background: rgba(180, 67, 45, .08);
}

.search-form {
  position: relative;
  width: 180px;
}

.search-form input {
  width: 100%;
  height: 40px;
  padding: 0 38px 0 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
}

.search-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(180, 67, 45, .11);
}

.search-form button {
  position: absolute;
  top: 3px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 36px;
  align-items: end;
  padding: 72px 0 48px;
}

.hero-copy {
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--accent-dark);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 42px;
  height: 1px;
  background: currentColor;
  content: "";
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 7vw, 2.2rem);
  font-weight: 800;
  line-height: .94;
}

.hero p {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-panel {
  position: relative;
  min-height: 360px;
  padding: 22px;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(160deg, rgba(37, 31, 26, .12), rgba(37, 31, 26, .68)),
    var(--accent-dark);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel.has-image {
  background-size: cover;
  background-position: center;
}

.hero-panel::after {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 253, 248, .45);
  pointer-events: none;
  content: "";
}

.hero-panel-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 316px;
}

.hero-panel .post-meta {
  color: rgba(255, 253, 248, .82);
}

.hero-panel h2 {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.16;
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.section-title h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.75rem;
}

.section-title a {
  color: var(--accent-dark);
  font-size: .9rem;
  font-weight: 700;
}

.main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 44px;
  align-items: start;
  padding-bottom: 64px;
}

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

.post-list {
  display: grid;
  gap: 22px;
}

.post-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 253, 248, .72);
  border: 1px solid rgba(222, 208, 188, .85);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(50, 33, 18, .06);
}

.post-card:hover .post-cover img {
  transform: scale(1.035);
}

.post-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--paper-deep), #d9c2a1);
}

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

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

.post-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--accent-dark);
  font-size: .78rem;
  font-weight: 700;
}

.post-cats a {
  border-bottom: 1px solid rgba(180, 67, 45, .28);
}

.post-card h2,
.post-card h3 {
  margin: 0;
  font-family: var(--serif);
  line-height: 1.28;
}

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

.post-card h3 {
  font-size: 1.24rem;
}

.post-excerpt {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: .95rem;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 14px;
  color: var(--muted);
  font-size: .82rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--accent-dark);
  font-weight: 800;
}

.read-more::after {
  content: "→";
}

.archive-header {
  max-width: 760px;
  padding: 56px 0 34px;
}

.archive-header h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 6vw, 2.8rem);
  line-height: 1;
}

.archive-header p {
  color: var(--muted);
}

.article {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 0 70px;
}

.article-header {
  margin-bottom: 34px;
}

.article-header h1 {
  margin: 0;
  font-weight: bold;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 6vw, 2rem);
  line-height: 1.08;
}

.article-cover {
  margin: 30px 0 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.article-content {
  color: #332a22;
  font-family: var(--serif);
  font-size: 1.08rem;
}

.article-content p {
  margin: 1.15em 0;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin: 2em 0 .7em;
  font-family: var(--serif);
  line-height: 1.25;
}

.article-content h2 {
  font-size: 1.85rem;
}

.article-content h3 {
  font-size: 1.45rem;
}

.article-content blockquote {
  margin: 1.8em 0;
  padding: 4px 0 4px 24px;
  color: var(--muted);
  border-left: 3px solid var(--accent);
}

.article-content pre {
  overflow: auto;
  padding: 18px;
  color: #f6efe4;
  background: #28211b;
  border-radius: 8px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: .92rem;
}

.article-content code {
  font-family: "SFMono-Regular", Consolas, monospace;
}

.article-content :not(pre) > code {
  padding: 2px 5px;
  background: rgba(189, 138, 47, .16);
  border-radius: 4px;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
}

.article-content th,
.article-content td {
  padding: 10px;
  border: 1px solid var(--line);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.post-tags a {
  display: inline-flex;
  padding: 5px 10px;
  color: var(--accent-dark);
  background: rgba(180, 67, 45, .08);
  border-radius: 999px;
  font-size: .84rem;
}

.post-neighbor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.post-neighbor a {
  padding: 14px;
  background: rgba(255, 253, 248, .7);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.widget {
  margin-bottom: 28px;
  padding: 22px;
  background: rgba(255, 253, 248, .72);
  border: 1px solid rgba(222, 208, 188, .86);
  border-radius: 8px;
}

.widget h3 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 1.15rem;
}

.author-avatar {
  width: 76px;
  height: 76px;
  margin-bottom: 14px;
  overflow: hidden;
  background: var(--accent);
  border-radius: 50%;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.widget p,
.widget li {
  color: var(--muted);
  font-size: .92rem;
}

.widget ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.widget li + li {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(222, 208, 188, .72);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud a {
  padding: 4px 9px;
  color: var(--green);
  background: rgba(81, 107, 75, .09);
  border-radius: 999px;
  font-size: .84rem;
}

.page-navigator {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.page-navigator a,
.page-navigator span {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
}

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

.comments {
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

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

.comment-body {
  margin-top: 18px;
  padding: 18px;
  background: rgba(255, 253, 248, .75);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.comment-author {
  font-weight: 800;
}

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

.respond {
  margin-top: 30px;
}

.comment-form {
  display: grid;
  gap: 12px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.comment-form textarea {
  min-height: 150px;
  resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(180, 67, 45, .11);
}

.submit {
  justify-self: start;
  padding: 10px 18px;
  color: var(--white);
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.site-footer {
  padding: 36px 0 44px;
  color: var(--muted);
  background: rgba(37, 31, 26, .04);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: .9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.empty {
  padding: 50px 24px;
  text-align: center;
  background: rgba(255, 253, 248, .72);
  border: 1px solid var(--line);
  border-radius: 8px;
}

@media (max-width: 940px) {
  .header-inner,
  .hero,
  .main-layout {
    grid-template-columns: 1fr;
  }

  .header-inner {
    gap: 12px;
    min-height: 68px;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
    justify-self: end;
    grid-column: 3;
    grid-row: 1;
  }

  .site-nav,
  .search-form {
    display: none;
  }

  .site-nav.is-open,
  .search-form.is-open {
    display: block;
    width: 100%;
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .site-nav ul {
    justify-content: flex-start;
  }

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

  .sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 22px, 1180px);
  }

  .brand-description {
    max-width: 20ch;
  }

  .hero {
    padding-top: 42px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-panel {
    min-height: 290px;
  }

  .hero-panel-content {
    min-height: 246px;
  }

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

  .article {
    padding-top: 36px;
  }
}

.sidebar {
    padding-top: 38px;
}
