/*
Theme Name: Chuyi Notes
Theme URI: https://chuyiv.770704.xyz
Author: Codex
Description: A quiet WordPress theme inspired by astro-whono and Smartisan Notes.
Version: 1.0.0
Text Domain: chuyi-notes
*/
:root {
  --paper: #f7f3eb;
  --paper-soft: #fbf8f1;
  --ink: #282522;
  --muted: #79716a;
  --line: #dfd7ca;
  --accent: #a94328;
  --accent-dark: #743322;
  --shadow: rgba(72, 52, 36, .08);
  --content: 720px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.75;
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
.site-shell {
  width: min(1040px, calc(100vw - 44px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 44px;
  padding: 72px 0 64px;
}
.site-aside { position: sticky; top: 48px; align-self: start; }
.site-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-size: 22px;
  font-weight: 700;
  background: var(--paper-soft);
}
.site-title { margin: 0 0 12px; font-size: 30px; line-height: 1.2; font-weight: 700; }
.site-description { margin: 0 0 28px; color: var(--muted); font-size: 14px; }
.site-nav { display: flex; flex-direction: column; gap: 10px; margin-bottom: 30px; }
.site-nav a { width: fit-content; color: var(--muted); font-size: 15px; }
.site-nav a:hover, .site-nav .current-menu-item a { color: var(--accent); }
.search-form { display: flex; align-items: center; border-bottom: 1px solid var(--line); max-width: 190px; }
.search-field {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 9px 0;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}
.search-submit {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 6px 0 6px 10px;
  font-size: 16px;
}
.main-panel {
  max-width: 680px;
  min-width: 0;
  align-self: start;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 45px var(--shadow);
  padding: 38px 42px 42px;
}
.section-title { margin: 0 0 26px; font-size: 22px; line-height: 1.35; }
.post-list { display: grid; gap: 28px; }
.post-item { padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.post-item:last-child { border-bottom: 0; padding-bottom: 0; }
.post-title { margin: 0 0 8px; font-size: 21px; line-height: 1.45; font-weight: 650; }
.post-meta { color: var(--muted); font-size: 13px; }
.post-excerpt { margin: 12px 0 0; color: #4e4842; font-size: 15px; }
.entry-header { margin-bottom: 28px; }
.entry-title { margin: 0 0 12px; font-size: 30px; line-height: 1.35; }
.entry-content { font-size: 17px; }
.entry-content p { margin: 0 0 1.2em; }
.entry-content h2, .entry-content h3 { line-height: 1.35; margin: 2em 0 .8em; }
.entry-content img { max-width: 100%; height: auto; border-radius: 6px; }
.entry-content blockquote { margin: 1.5em 0; padding-left: 18px; border-left: 3px solid var(--accent); color: #514941; }

.archive-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 26px;
}
.archive-head .section-title {
  margin-bottom: 0;
}
.archive-count {
  color: var(--muted);
  font-size: 14px;
}
.archive-group { margin: 0 0 30px; }
.archive-year { margin: 0 0 14px; font-size: 20px; }
.archive-line { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 16px; padding: 9px 0; border-bottom: 1px solid rgba(223, 215, 202, .7); }
.archive-date { color: var(--muted); font-size: 13px; }
.nav-links, .post-navigation { margin-top: 32px; color: var(--muted); font-size: 14px; }
.not-found { color: var(--muted); }
@media (max-width: 820px) {
  .site-shell { width: min(100% - 28px, 720px); display: block; padding: 28px 0 36px; }
  .site-aside { position: static; margin-bottom: 26px; }
  .site-mark { width: 46px; height: 46px; margin-bottom: 16px; font-size: 19px; }
  .site-title { font-size: 27px; }
  .site-description { margin-bottom: 18px; }
  .site-nav { flex-direction: row; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; }
  .search-form { max-width: none; }
  .main-panel { padding: 28px 22px 34px; }
  .entry-title { font-size: 25px; }
  .entry-content { font-size: 16px; }
  .archive-line { grid-template-columns: 64px minmax(0, 1fr); }
}
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


.home .main-panel,
.blog .main-panel {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  max-width: 760px;
}
.index-title {
  margin: 0 0 28px;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 650;
}
.index-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  margin-top: 16px;
  background: var(--line);
}
.home .post-list,
.blog .post-list {
  gap: 22px;
}
.post-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.post-card-link:hover {
  color: inherit;
}
.home .post-item,
.blog .post-item {
  border: 0;
  border-radius: 16px;
  background: #fbf8f1;
  border: 1px solid #ded5c6;
  box-shadow: 0 18px 42px rgba(72, 52, 36, .06);
  padding: 28px 30px 24px;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.home .post-title,
.blog .post-title {
  margin-bottom: 14px;
  color: #27231f;
  font-size: 24px;
  font-family: Georgia, "Times New Roman", "Songti SC", SimSun, serif;
  font-weight: 500;
}
.home .post-excerpt,
.blog .post-excerpt {
  margin-top: 0;
  color: #4d4944;
  font-size: 17px;
  line-height: 1.85;
}

.home .post-card-link:hover .post-item,
.blog .post-card-link:hover .post-item {
  background: #fffaf0;
  border-color: #d4c7b5;
  box-shadow: 0 20px 46px rgba(72, 52, 36, .09);
  transform: translateY(-1px);
}
.home .post-card-link:hover .post-title,
.blog .post-card-link:hover .post-title {
  color: #8d3f29;
}
.home .post-meta,
.blog .post-meta {
  margin-top: 18px;
  color: #817970;
  font-size: 14px;
}
@media (max-width: 820px) {
  .home .main-panel,
  .blog .main-panel {
    padding: 0;
  }
  .index-title {
    font-size: 26px;
    margin-bottom: 22px;
  }
  .home .post-item,
  .blog .post-item {
    border-radius: 12px;
    padding: 22px 20px 20px;
  }
  .home .post-title,
  .blog .post-title {
    font-size: 22px;
  }
  .home .post-excerpt,
  .blog .post-excerpt {
    font-size: 16px;
  }
}
