:root {
  --bg: #f3efe6;
  --ink: #1c1914;
  --muted: #6b6458;
  --line: rgba(28, 25, 20, 0.12);
  --accent: #0e6b5c;
  --accent-soft: rgba(14, 107, 92, 0.1);
  --card: rgba(255, 252, 246, 0.72);
  --shadow: 0 18px 40px rgba(28, 25, 20, 0.06);
  --radius: 18px;
  --max: 720px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "IBM Plex Sans", "Noto Sans SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(14, 107, 92, 0.14), transparent 55%),
    radial-gradient(700px 380px at 100% 0%, rgba(176, 102, 48, 0.12), transparent 50%),
    linear-gradient(180deg, #f6f2ea 0%, #efe8db 55%, #e7dfd0 100%);
}
.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: multiply;
}
.blob {
  position: fixed;
  width: 48vmin;
  height: 48vmin;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 107, 92, 0.16), transparent 68%);
  filter: blur(18px);
  top: 12vh;
  right: -8vmin;
  z-index: -1;
  animation: drift 16s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-10vmin, 8vh) scale(1.08); }
}

.shell {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 3.5rem;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0 1.5rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 7px;
}
.nav {
  display: flex;
  gap: 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.nav a {
  position: relative;
  transition: color 0.2s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after,
.nav a.active::after { width: 100%; }
.nav a.active { color: var(--ink); }

.hero {
  padding: 2.2rem 0 2.4rem;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.hero-kicker i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}
.hero h1 {
  font-family: "Fraunces", "Noto Sans SC", serif;
  font-size: clamp(2.4rem, 8vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
  font-weight: 700;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}
.hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 34rem;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.4rem 0 1.4rem;
}
.chip {
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.55);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.38rem 0.9rem;
  font-size: 0.86rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.chip:hover,
.chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #f7faf8;
}

.posts {
  display: grid;
  gap: 0.9rem;
}
.post {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.post:hover {
  transform: translateY(-3px);
  border-color: rgba(14, 107, 92, 0.28);
  box-shadow: 0 22px 44px rgba(28, 25, 20, 0.09);
}
.post-cover {
  width: 132px;
  height: 96px;
  border-radius: 12px;
  overflow: hidden;
  background: #ddd6c8;
}
.post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-body { min-width: 0; padding-right: 0.4rem; }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 0.45rem;
}
.tag {
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0.12rem 0.55rem;
  font-weight: 500;
}
.post h2 {
  font-family: "Fraunces", "Noto Sans SC", serif;
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  line-height: 1.35;
  font-weight: 700;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}
.post p {
  color: var(--muted);
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post.hidden { display: none; }

.about {
  margin-top: 2.6rem;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
}
.about h2 {
  font-family: "Fraunces", "Noto Sans SC", serif;
  font-size: 1.45rem;
  margin-bottom: 0.7rem;
}
.about p {
  color: var(--muted);
  margin-bottom: 0.85rem;
}
.about a {
  color: var(--accent);
  border-bottom: 1px solid rgba(14, 107, 92, 0.35);
}

footer {
  margin-top: 2.8rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}
footer .beian {
  color: var(--muted);
  transition: color 0.2s ease;
}
footer .beian:hover { color: var(--accent); }

/* article page */
.back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1.4rem;
  transition: color 0.2s ease;
}
.back:hover { color: var(--accent); }
.article-head {
  margin-bottom: 1.4rem;
}
.article-head h1 {
  font-family: "Fraunces", "Noto Sans SC", serif;
  font-size: clamp(1.8rem, 5.5vw, 2.55rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0.7rem 0 0.9rem;
}
.article-cover {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin: 0 0 1.6rem;
  background: #ddd6c8;
  box-shadow: var(--shadow);
}
.article-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.article-cover figcaption,
.article-figure figcaption {
  color: var(--muted);
  font-size: 0.82rem;
  padding: 0.65rem 0.2rem 0;
  text-align: center;
}
.article-content {
  font-size: 1.05rem;
  color: #2a2620;
}
.article-content p { margin-bottom: 1.15rem; }
.article-content h2 {
  font-family: "Fraunces", "Noto Sans SC", serif;
  font-size: 1.35rem;
  margin: 1.8rem 0 0.8rem;
}
.article-content ul,
.article-content ol {
  margin: 0 0 1.15rem 1.2rem;
  color: #2a2620;
}
.article-content li { margin-bottom: 0.4rem; }
.article-content blockquote {
  margin: 1.4rem 0;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--accent);
  background: rgba(255, 252, 246, 0.7);
  border-radius: 0 12px 12px 0;
  color: var(--muted);
}
.article-figure {
  margin: 1.5rem 0 1.7rem;
}
.article-figure img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.article-nav a {
  color: var(--accent);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(14, 107, 92, 0.25);
}

@media (max-width: 640px) {
  .shell { width: min(100% - 1.4rem, var(--max)); }
  .post {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .post-cover {
    width: 100%;
    height: 160px;
  }
  .hero { padding-top: 1.4rem; }
}
