/* 佩特库奈的小站
   和官网同一套色板，但换成手账/信纸的调子：
   更暖的米色、横格纸、拍立得似的卡、手写体的日期。 */

:root {
  --cream: #FFFBF3;
  --paper: #FFFDF8;
  --ink: #3E2A20;
  --ink-2: #7A5B47;
  --ink-3: #A08A79;
  --rose: #D9678A;
  --rose-deep: #B84A6C;
  --rose-bg: #FFEDF1;
  --mint-deep: #3F6B56;
  --mint-bg: #EDF9F3;
  --ginger: #B0703C;
  --ginger-bg: #FFF3E2;
  --line: rgba(74, 47, 36, .16);
  --rule: rgba(74, 47, 36, .07);
  --serif: "Songti SC", "STSong", "SimSun", Georgia, serif;
  --kai: "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  --shadow: 4px 4px 0 rgba(74, 47, 36, .10);
  --shadow-sm: 2px 2px 0 rgba(74, 47, 36, .10);
  --r: 20px;
  --pad: 24px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0 var(--pad) 64px;
  background: var(--cream);
  color: var(--ink);
  font: 16px/1.95 var(--sans);
  -webkit-font-smoothing: antialiased;
}

/* 纸纹：很淡的噪点，让它不像纯色块 */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E");
}

.wrap { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }

a { color: var(--rose-deep); text-decoration: none; border-bottom: 1px solid rgba(184, 74, 108, .3); }
a:hover { border-bottom-color: currentColor; }

/* ── 顶栏 ── */
.top {
  display: flex; align-items: center; gap: 12px;
  padding: 26px 0 22px;
  border-bottom: 1.5px dashed var(--line);
  margin-bottom: 40px;
}
/* 头像：bust.webp 是 360×297 的横幅构图，脸在下方。
   直接塞进 40px 圆里只看得见帽子，所以用背景图放大 2 倍并对准脸部 */
.top .ava {
  width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto;
  border: 1.5px solid var(--line);
  background: var(--rose-bg) url("../assets/mascot/bust.webp") no-repeat;
  background-size: 200%;
  background-position: 50% 82%;
}
.top b { font-family: var(--serif); font-size: 17px; font-weight: 600; letter-spacing: -.3px; }
.top nav { margin-left: auto; display: flex; gap: 18px; font-size: 14px; }
.top nav a { color: var(--ink-2); border: 0; }
.top nav a:hover { color: var(--rose-deep); }

/* ── 首页：她是谁 ── */
.me { display: flex; gap: 22px; align-items: flex-start; margin-bottom: 52px; }
.me-photo {
  flex: 0 0 148px; background: var(--paper); border: 1.6px solid var(--line);
  border-radius: 16px; padding: 8px 8px 30px; box-shadow: var(--shadow);
  transform: rotate(-1.6deg);
}
.me-photo img { width: 100%; display: block; border-radius: 10px; background: var(--rose-bg); }
.me h1 {
  font-family: var(--serif); font-size: 30px; line-height: 1.4; font-weight: 600;
  letter-spacing: -.6px; margin: 0 0 12px;
}
.me p { margin: 0 0 10px; color: var(--ink-2); font-size: 15.5px; line-height: 1.95; }
.me .sign { font-family: var(--kai); font-style: italic; color: var(--ink-3); font-size: 15px; }

/* ── 日记列表 ── */
.sec-title {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--serif); font-size: 19px; font-weight: 600; margin: 0 0 22px;
}
.sec-title::after { content: ""; flex: 1; border-top: 1.5px dashed var(--line); }

.entry {
  display: block; position: relative;
  background: var(--paper); border: 1.6px solid var(--line); border-radius: var(--r);
  padding: 24px 26px 22px; margin-bottom: 18px;
  box-shadow: var(--shadow); color: inherit; border-bottom-width: 1.6px;
  transition: transform .25s cubic-bezier(.34, 1.3, .64, 1), box-shadow .25s ease;
}
.entry:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 rgba(74, 47, 36, .12); }
.entry time { font-family: var(--kai); font-style: italic; font-size: 14px; color: var(--ink-3); }
.entry h2 {
  font-family: var(--serif); font-size: 20.5px; line-height: 1.5; font-weight: 600;
  margin: 6px 0 10px; letter-spacing: -.2px;
}
.entry p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.9; }
.entry .more { display: inline-block; margin-top: 12px; font-size: 13.5px; color: var(--rose-deep); }
/* 便签胶带：只做装饰，不影响布局 */
.entry::before {
  content: ""; position: absolute; top: -9px; left: 26px;
  width: 58px; height: 18px; border-radius: 2px;
  background: rgba(244, 200, 120, .5);
  transform: rotate(-2.5deg);
}

/* ── 关于：三个档案 ── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.card {
  background: var(--paper); border: 1.6px solid var(--line); border-radius: 18px;
  padding: 18px 16px 16px; box-shadow: var(--shadow-sm);
}
.card img { width: 64px; height: 64px; object-fit: contain; display: block; margin-bottom: 10px; }
.card h3 { font-size: 15.5px; margin: 0 0 4px; font-family: var(--serif); font-weight: 600; }
.card .tag {
  display: inline-block; font-size: 11px; font-weight: 600; border-radius: 6px;
  padding: 1px 7px; margin-bottom: 8px;
}
.tag.rose { color: var(--rose-deep); background: var(--rose-bg); }
.tag.mint { color: var(--mint-deep); background: var(--mint-bg); }
.tag.ginger { color: var(--ginger); background: var(--ginger-bg); }
.card p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.8; }

.note {
  background: var(--ginger-bg); border: 1.6px dashed rgba(176, 112, 60, .32);
  border-radius: 16px; padding: 16px 18px; font-size: 14px; color: var(--ink-2); line-height: 1.9;
}
.note b { color: var(--ink); }

/* ── 单篇 ── */
.post {
  background: var(--paper); border: 1.6px solid var(--line); border-radius: var(--r);
  padding: 40px 44px 46px; box-shadow: var(--shadow); position: relative;
  /* 横格纸：34px 一行，正好对上 1.95 的行高 */
  background-image: repeating-linear-gradient(
    to bottom, transparent 0, transparent 33px, var(--rule) 33px, var(--rule) 34px
  );
  background-position: 0 40px;
}
.post h1 {
  font-family: var(--serif); font-size: 27px; line-height: 1.5; font-weight: 600;
  letter-spacing: -.5px; margin: 0 0 8px;
}
.post .meta { font-family: var(--kai); font-style: italic; color: var(--ink-3); font-size: 14px; margin-bottom: 26px; }
.post p { margin: 0 0 18px; font-size: 16.5px; line-height: 1.95; }
.post p:last-child { margin-bottom: 0; }
.post .punch {
  font-family: var(--kai); font-size: 18.5px; color: var(--rose-deep);
  border-left: 3px solid rgba(217, 103, 138, .4); padding-left: 14px; margin: 24px 0;
}

.pager { display: flex; gap: 12px; margin-top: 22px; }
.pager a {
  flex: 1; background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px;
  padding: 14px 16px; font-size: 14px; color: var(--ink-2); box-shadow: var(--shadow-sm);
}
.pager a b { display: block; color: var(--ink); font-weight: 600; margin-top: 3px; }
.pager a:hover { color: var(--rose-deep); }
.pager .next { text-align: right; }
.pager .empty { flex: 1; }

/* ── 页脚 ── */
.foot {
  margin-top: 56px; padding-top: 22px; border-top: 1.5px dashed var(--line);
  font-size: 12.5px; color: var(--ink-3); line-height: 2; text-align: center;
}
.foot a { color: var(--ink-3); border-bottom: 1px dotted rgba(160, 138, 121, .5); }
.foot a:hover { color: var(--rose-deep); }

@media (max-width: 640px) {
  :root { --pad: 16px; }
  body { padding-bottom: 48px; }
  .me { flex-direction: column; gap: 18px; }
  .me-photo { flex: 0 0 auto; width: 132px; }
  .me h1 { font-size: 25px; }
  .cards { grid-template-columns: 1fr; }
  .post { padding: 28px 20px 32px; background-position: 0 28px; }
  .post h1 { font-size: 22px; }
  .post p { font-size: 16px; }
  .entry { padding: 20px 18px 18px; }
  .entry h2 { font-size: 18.5px; }
  .pager { flex-direction: column; }
  .pager .next { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
