@import url('https://fonts.googleapis.com/css2?family=Literata:ital,opsz,wght@0,7..72,460;0,7..72,640;1,7..72,460&family=Source+Sans+3:wght@420;560&display=swap');

:root {
  --bg: #f4f1ea;
  --bg-2: #ebe6db;
  --ink: #2a2824;
  --muted: #6d675e;
  --line: #ddd6c8;
  --card: rgba(255, 252, 247, 0.78);
  --accent: #6e7f62;
  --accent-2: #c4a484;
  --shadow: 0 18px 40px rgba(70, 58, 40, 0.06);
  --serif: "Literata", "Songti SC", "Noto Serif SC", serif;
  --sans: "Source Sans 3", "PingFang SC", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 10% -10%, #fffaf3 0%, transparent 60%),
    radial-gradient(700px 380px at 100% 0%, #e7efe4 0%, transparent 55%),
    var(--bg);
  font-family: var(--sans);
  line-height: 1.7;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
.glow {
  position: fixed; inset: auto -80px -120px auto;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(196,164,132,.35), transparent 70%);
  pointer-events: none; filter: blur(8px);
  animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(-40px, -30px) scale(1.08); } }

.site-header, .site-main, .site-footer {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
}
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 0 8px;
  animation: rise .7s ease both;
}
.brand { display: flex; gap: 10px; align-items: center; font-family: var(--serif); font-weight: 640; letter-spacing: .02em; }
.mark {
  width: 12px; height: 12px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 4px rgba(110,127,98,.12);
}
.nav { display: flex; gap: 18px; color: var(--muted); font-size: 15px; }
.nav a { position: relative; }
.nav a.active, .nav a:hover { color: var(--ink); }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 0;
  background: var(--accent); transition: width .35s ease;
}
.nav a:hover::after, .nav a.active::after { width: 100%; }

.hero { padding: 48px 0 12px; animation: rise .8s .05s ease both; }
.eyebrow {
  margin: 0 0 8px; letter-spacing: .22em; text-transform: lowercase;
  color: var(--accent); font-size: 12px;
}
.hero h1, .page-head h1, .post-head h1 {
  font-family: var(--serif); font-weight: 640; letter-spacing: -0.02em;
  margin: 0 0 10px; font-size: clamp(34px, 6vw, 52px); line-height: 1.15;
}
.lede { color: var(--muted); max-width: 36em; margin: 0; font-size: 18px; }

.list { display: grid; gap: 16px; padding: 28px 0 10px; }
.card, .post, .page-head {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: var(--shadow);
  border-radius: 22px;
  backdrop-filter: blur(8px);
}
.card { padding: 22px 24px 18px; transition: transform .45s ease, box-shadow .45s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 48px rgba(70,58,40,.09); }
.card time, .post-head time, .timeline time { color: var(--muted); font-size: 13px; letter-spacing: .08em; }
.card h2 { font-family: var(--serif); font-size: 24px; margin: 6px 0 8px; font-weight: 640; }
.card h2 a { background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 92%; transition: background-size .4s ease; }
.card h2 a:hover { background-size: 100% 1px; }
.card p { margin: 0; color: #4a463f; }
.meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.chip {
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px;
  color: var(--muted); font-size: 13px; background: rgba(255,255,255,.45);
  transition: border-color .3s, color .3s, transform .3s;
}
.chip:hover { color: var(--ink); border-color: var(--accent); transform: translateY(-1px); }
.chip em { font-style: normal; margin-left: 6px; color: var(--accent); }

.pager, .post-nav { display: flex; justify-content: space-between; gap: 12px; padding: 8px 2px 20px; color: var(--muted); }
.pager a, .post-nav a { color: var(--ink); }

.post { padding: 36px 34px 28px; margin: 28px 0 8px; }
.post-head h1 { font-size: clamp(30px, 5vw, 44px); }
.prose { font-family: var(--serif); font-size: 18.5px; line-height: 1.9; }
.prose p { margin: 0 0 1.1em; }
.prose h2, .prose h3 { font-weight: 640; margin: 1.6em 0 .6em; }
.prose a { color: #3f5340; border-bottom: 1px solid rgba(110,127,98,.45); }
.prose blockquote {
  margin: 1.2em 0; padding: .2em 0 .2em 1em;
  border-left: 2px solid var(--accent-2); color: #514c45;
}
.prose img { max-width: 100%; border-radius: 14px; }
.prose ul { padding-left: 1.2em; }

.post-nav { padding: 18px 4px 28px; }
.post-nav a { display: flex; flex-direction: column; max-width: 46%; }
.post-nav a.next { text-align: right; margin-left: auto; }
.post-nav span { font-size: 12px; letter-spacing: .14em; color: var(--muted); }
.post-nav strong { font-family: var(--serif); font-weight: 640; }

.page-head { padding: 28px 28px 8px; margin-top: 28px; background: transparent; box-shadow: none; border: 0; }
.timeline { list-style: none; padding: 8px 8px 24px; margin: 0; }
.timeline li { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 12px 8px; border-bottom: 1px solid var(--line); }
.timeline .year {
  display: block; grid-template-columns: 1fr;
  font-family: var(--serif); font-size: 28px; border: 0; padding-top: 22px;
}
.timeline a:hover { color: #3f5340; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; padding: 8px 4px 40px; }
.chip.big { padding: 8px 14px; font-size: 16px; }

.site-footer { padding: 10px 0 48px; color: var(--muted); font-size: 14px; }
.site-footer p { margin: 0; }
.dim { opacity: .8; }

.reveal { animation: rise .7s ease both; }
.list .reveal:nth-child(2) { animation-delay: .06s; }
.list .reveal:nth-child(3) { animation-delay: .12s; }
.list .reveal:nth-child(4) { animation-delay: .18s; }
.list .reveal:nth-child(5) { animation-delay: .24s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .post { padding: 24px 18px; }
  .card { padding: 18px; }
}
