:root {
  --ink: #3e342c;
  --muted: #7a6e62;
  --paper: #f6f1e7;
  --card: #fffdf8;
  --blush: #f4dfd2;
  --rose: #b86a58;
  --sage: #6d8f78;
  --butter: #f3e6c2;
  --line: #e6d8c8;
  --sketch: #3e342c;
  --shadow: 3px 4px 0 #eadfce;
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", "Songti SC", "Noto Serif SC", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(232, 196, 176, .42), transparent 26%),
    radial-gradient(circle at 96% 6%, rgba(186, 210, 186, .38), transparent 24%),
    radial-gradient(circle at 70% 100%, rgba(236, 214, 168, .28), transparent 22%),
    var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
}
::selection { background: #f0dcc4; color: var(--ink); }
a, a:hover, a:focus, a:visited, a:active { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px dashed var(--sage); outline-offset: 3px; }
img { max-width: 100%; height: auto; }
.wrap { width: min(1100px, calc(100% - 36px)); margin: 0 auto; }
.bloom {
  pointer-events: none;
  position: fixed;
  z-index: 0;
  right: -48px;
  top: 140px;
  width: 180px;
  height: 150px;
  border: 2px dashed rgba(62, 52, 44, .22);
  border-radius: 58% 42% 63% 37%;
  transform: rotate(12deg);
}
.bloom::after {
  content: "";
  position: absolute;
  left: -220px;
  top: 320px;
  width: 120px;
  height: 96px;
  border: 2px dashed rgba(109, 143, 120, .35);
  border-radius: 40% 60% 48% 52%;
  transform: rotate(-18deg);
}
.topbar, .hero, .block, .page-head, .layout-list, .article-layout, .friends, .foot, .ad-slot { position: relative; z-index: 1; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 241, 231, .92);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--sketch);
}
.top-inner { display: flex; align-items: center; gap: 14px 18px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.seal {
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 2px solid var(--sketch);
  border-radius: 46% 54% 40% 60%;
  background: var(--blush);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 700;
  box-shadow: 2px 2px 0 #eadfce;
  transform: rotate(-6deg);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--serif); font-size: 22px; letter-spacing: .04em; }
.brand-text small { color: var(--muted); letter-spacing: .14em; }
.nav { display: flex; gap: 4px 8px; flex: 1; flex-wrap: wrap; align-items: center; min-width: 0; }
.nav a { font-size: 15px; padding: 4px 10px; border-radius: 999px 999px 999px 6px; }
.nav a:hover { background: var(--blush); }
.menu-btn {
  display: none;
  border: 2px solid var(--sketch);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  font: inherit;
  box-shadow: var(--shadow);
}
.search {
  display: flex;
  margin-left: auto;
  border: 2px solid var(--sketch);
  border-radius: 999px;
  overflow: hidden;
  background: var(--card);
  flex: 0 0 auto;
}
.search input { border: 0; padding: 8px 14px; width: 168px; font: inherit; background: transparent; color: var(--ink); outline: none; }
.search button { border: 0; border-left: 2px solid var(--sketch); background: var(--ink); color: #fffdf8; padding: 0 16px; font: inherit; cursor: pointer; }
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center; padding: 42px 0 12px; }
.eyebrow { letter-spacing: .2em; color: var(--rose); font-size: 12px; margin: 0 0 8px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.4; letter-spacing: .01em; }
.hero h1 { font-size: clamp(36px, 5vw, 58px); margin: 0 0 14px; }
.lede { color: var(--muted); font-size: 17px; max-width: 38em; }
.hero-card, .card, .widget, .friends, .empty, .article-main {
  background: var(--card);
  border: 2px solid var(--sketch);
  box-shadow: var(--shadow);
}
.hero-card, .card, .friends, .empty { border-radius: 26px 18px 30px 16px; }
.hero-card { padding: 22px 24px; }
.hero-card h2, .card h2 {
  margin: 8px 0 10px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-card h2 { font-size: 26px; -webkit-line-clamp: 3; }
.hero-card > p {
  color: var(--muted);
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  line-height: 1.7;
}
.scribble {
  display: inline-block;
  background: var(--butter);
  border: 2px dashed var(--sketch);
  border-radius: 999px 999px 999px 4px;
  padding: 2px 12px;
  font-size: 13px;
  transform: rotate(-2deg);
}
.cat-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  border: 2px dashed var(--sketch);
  border-radius: 999px;
  padding: 4px 12px;
  background: rgba(255, 253, 248, .7);
}
.chip:nth-child(4n+2) { background: #f7ebe3; }
.chip:nth-child(4n+3) { background: #e8f2ea; }
.chip:nth-child(4n) { background: #f8f0d8; }
.chip:hover { background: var(--blush); }
.block { padding: 28px 0 48px; }
.block-head, .foot-inner { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.block-head h2, .friends h2, .widget h3 { margin: 0; }
.block-head a {
  border: 2px solid var(--sketch);
  border-radius: 999px;
  padding: 6px 14px;
  background: var(--card);
}
.block-head a:hover { background: var(--blush); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.card { padding: 18px 18px 16px; display: flex; flex-direction: column; min-width: 0; }
.card h2 { font-size: 20px; -webkit-line-clamp: 2; min-height: 2.8em; }
.card h2 a:hover, .plain-list a:hover, .side-list a:hover, .crumbs a:hover { color: var(--rose); }
.kicker { margin: 0; color: var(--sage); font-size: 13px; letter-spacing: .08em; }
.excerpt {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  min-height: 4.4em;
}
.meta, .muted { color: var(--muted); font-size: 13px; }
.meta { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 0; }
.plain-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 8px 10px 8px 26px;
  display: flex;
  flex-direction: column;
  gap: 0;
  background:
    linear-gradient(90deg, transparent 16px, rgba(184, 106, 88, .55) 16px, rgba(184, 106, 88, .55) 18px, transparent 18px),
    var(--card);
  border: 2px solid var(--sketch);
  border-radius: 26px 18px 32px 16px;
  box-shadow: var(--shadow);
}
.plain-list li {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 14px 22px;
  text-align: center;
  background: transparent;
  border-radius: 12px;
}
.plain-list li + li { box-shadow: inset 0 1px 0 rgba(62, 52, 44, .12); }
.plain-list li:hover { background: rgba(248, 240, 216, .72); }
.plain-list time {
  flex: 0 0 auto;
  min-width: 58px;
  text-align: center;
  font-family: var(--serif);
  color: var(--ink);
  background: var(--butter);
  border: 2px solid var(--sketch);
  border-radius: 10px 14px 8px 12px;
  padding: 4px 8px;
  font-size: 13px;
  line-height: 1.3;
  transform: rotate(-4deg);
}
.plain-list li:nth-child(3n+2) time { background: #e5f0e6; transform: rotate(3deg); }
.plain-list li:nth-child(3n) time { background: var(--blush); transform: rotate(-2deg); }
.plain-list a {
  min-width: 0;
  max-width: 42em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-align: center;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.5;
}
.plain-list li:hover a { color: var(--rose); }
.text-link, .btn {
  display: inline-block;
  margin-top: 14px;
  border: 2px solid var(--sketch);
  border-radius: 999px;
  padding: 6px 16px;
  background: var(--blush);
  color: var(--ink);
  box-shadow: 2px 2px 0 #eadfce;
}
.text-link:hover, .btn:hover { background: #edd0c0; color: var(--ink); }
.layout-list, .article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; padding-bottom: 56px; align-items: start; }
.article-layout { padding-top: 48px; }
.article-main {
  border-radius: 28px 18px 32px 20px;
  padding: 32px 40px 48px;
}
.page-head { padding-top: 40px; }
.page-head h1, .page-head .lede { max-width: 40em; }
.card-line { margin-bottom: 14px; }
.side { display: flex; flex-direction: column; gap: 18px; }
.article-layout .side { position: sticky; top: 98px; }
.widget { padding: 0 0 8px; overflow: hidden; border-radius: 22px 26px 18px 24px; }
.widget h3 {
  margin: 0 0 4px;
  padding: 14px 16px 12px;
  font-size: 20px;
  background: #f6e4d8;
  border-bottom: 2px dashed var(--sketch);
}
.side .widget:nth-child(3n+2) h3 { background: #e5f0e6; }
.side .widget:nth-child(3n) h3 { background: #f8f0d8; }
.side-list { list-style: none; padding: 6px 16px 10px; margin: 0; }
.side-list li { position: relative; padding: 11px 0 11px 16px; border-bottom: 0; }
.side-list li + li { border-top: 1px dashed var(--line); }
.side-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 7px;
  height: 7px;
  border: 2px solid var(--sketch);
  border-radius: 50%;
  background: #f6e4d8;
}
.side .widget:nth-child(3n+2) .side-list li::before { background: #e5f0e6; }
.side .widget:nth-child(3n) .side-list li::before { background: #f8f0d8; }
.side-list a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.55;
}
.side-list li:last-child { border-bottom: 0; }
.cat-stack { margin: 0; padding: 8px 14px 14px; }
.crumbs { display: flex; gap: 6px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin: 0 0 20px; }
.crumbs a { color: var(--rose); }
.article-head { margin: 0 0 6px; padding-bottom: 18px; border-bottom: 2px dashed var(--line); }
.article-head h1 { font-size: clamp(28px, 3.4vw, 38px); margin: 8px 0 16px; line-height: 1.45; }
.article-head .meta time, .article-head .meta span {
  background: #f7efe4;
  border: 1px dashed var(--line);
  border-radius: 999px;
  padding: 3px 10px;
}
.prose {
  font-size: 18px;
  line-height: 2;
  margin-top: 22px;
  color: var(--ink);
}
.prose p { margin: 0 0 1.15em; }
.prose h2, .prose h3 {
  margin: 1.45em 0 .5em;
  line-height: 1.4;
  padding-left: 12px;
  border-left: 3px solid var(--sage);
}
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose a { color: var(--rose); }
.like-bar { margin-top: 32px; padding-top: 22px; border-top: 2px dashed var(--line); text-align: center; }
.like-btn {
  border: 2px solid var(--sketch);
  background: var(--blush);
  color: var(--ink);
  font: inherit;
  font-family: var(--serif);
  font-size: 18px;
  border-radius: 999px;
  padding: 10px 28px;
  cursor: pointer;
  box-shadow: 3px 3px 0 #eadfce;
}
.like-btn:hover { background: #edd0c0; }
.like-btn.is-on, .like-btn:disabled { background: #e5f0e6; cursor: default; }
.like-note { margin: 10px 0 0; color: var(--muted); }
.prose img { display: block; margin: 1em auto; border-radius: 16px 12px 18px 14px; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.pager a, .pager span {
  min-width: 36px;
  text-align: center;
  border: 2px solid var(--sketch);
  border-radius: 12px 14px 10px 16px;
  padding: 4px 8px;
  background: var(--card);
}
.pager .on, .pager a:hover { background: var(--blush); color: var(--ink); }
.friends { padding: 18px 20px; margin: 10px 0 40px; }
.friends ul { display: flex; flex-wrap: wrap; gap: 10px 14px; padding: 0; margin: 12px 0 0; list-style: none; }
.friends a { background: #f8f0d8; border: 2px dashed var(--sketch); border-radius: 999px; padding: 4px 12px; }
.friends a:hover { background: var(--blush); }
.ad-slot { min-height: 0; margin: 10px 0 18px; }
.foot { padding: 18px 0 32px; border-top: 2px solid var(--sketch); }
.foot a { margin-right: 8px; padding: 4px 10px; border-radius: 999px; }
.foot a:hover { background: var(--card); color: var(--rose); }
.empty { padding: 24px; }
@media (max-width: 980px) {
  .hero, .layout-list, .article-layout { grid-template-columns: 1fr; }
  .article-layout { padding-top: 28px; }
  .article-main { padding: 22px 18px 32px; }
  .article-layout .side { position: static; }
  .grid { grid-template-columns: 1fr 1fr; }
  .nav { order: 3; flex: 1 0 100%; }
  .search input { width: 130px; }
  .prose { font-size: 17px; }
}
@media (max-width: 720px) {
  .menu-btn { display: inline-flex; margin-left: auto; }
  .nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    order: 0;
    flex: none;
    background: var(--card);
    border: 2px solid var(--sketch);
    border-radius: 18px 22px 16px 20px;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
  }
  body.nav-open .nav { display: flex; }
  .top-inner { flex-wrap: wrap; padding: 10px 0; }
  .search { width: 100%; margin-left: 0; }
  .search input { flex: 1; width: auto; }
  .grid { grid-template-columns: 1fr; }
  .bloom { display: none; }
  .hero { padding-top: 24px; }
  .card h2 { min-height: 0; }
  .article-head h1 { font-size: 26px; }
  .plain-list { padding-left: 18px; }
  .plain-list li { flex-direction: column; gap: 8px; padding: 14px 16px; }
}
