:root {
  color-scheme: light;
  --ink: #1c2430;
  --muted: #5d6874;
  --line: rgba(70, 90, 80, 0.14);
  --paper: #f4f0e8;
  --card: rgba(255, 252, 247, 0.86);
  --accent: #1f7a55;
  --accent-2: #d9773a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Songti SC", "Noto Serif SC", serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 46vw;
  height: 46vw;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.55;
  pointer-events: none;
}

body::before {
  top: -12vw;
  right: -8vw;
  background: radial-gradient(circle, #ffe1b5 0%, rgba(255, 225, 181, 0) 70%);
  animation: drift 16s ease-in-out infinite;
}

body::after {
  bottom: -16vw;
  left: -10vw;
  background: radial-gradient(circle, #b7e7cf 0%, rgba(183, 231, 207, 0) 70%);
  animation: drift 20s ease-in-out infinite reverse;
}

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(4vw, 2vw, 0) scale(1.08); }
}

a { color: inherit; text-decoration: none; }

header, main, footer {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
}

header { padding: 42px 0 8px; position: relative; }

.hero {
  position: relative;
  padding: 28px 28px 24px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 250, 242, 0.4));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 20px 50px rgba(70, 60, 40, 0.08);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -40px;
  top: -50px;
  border-radius: 50%;
  background: conic-gradient(from 80deg, #f3c98b, #8ed0b0, #f7e2bf, #f3c98b);
  opacity: 0.85;
  animation: spin 18s linear infinite;
}

@keyframes spin { to { transform: rotate(1turn); } }

.mark {
  position: relative;
  z-index: 1;
  font-family: "Segoe UI", sans-serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent);
}

h1 {
  position: relative;
  z-index: 1;
  font-size: 40px;
  line-height: 1.2;
  margin: 8px 0 0;
  font-weight: 650;
}

header p, .lede {
  position: relative;
  z-index: 1;
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 36em;
}

nav {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  margin-top: 18px;
  font-family: "Segoe UI", sans-serif;
  font-size: 14px;
}

nav a {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  transition: transform 0.2s ease, background 0.2s ease;
}

nav a:hover { transform: translateY(-2px); background: #fff; }

main { padding: 22px 0 36px; }

.list { display: grid; gap: 14px; }

.post, article {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: 0 10px 30px rgba(60, 50, 30, 0.04);
  backdrop-filter: blur(6px);
  animation: rise 0.7s ease both;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.list .post:nth-child(2) { animation-delay: 0.05s; }
.list .post:nth-child(3) { animation-delay: 0.1s; }
.list .post:nth-child(4) { animation-delay: 0.15s; }
.list .post:nth-child(5) { animation-delay: 0.2s; }
.list .post:nth-child(6) { animation-delay: 0.25s; }
.list .post:nth-child(7) { animation-delay: 0.3s; }
.list .post:nth-child(8) { animation-delay: 0.35s; }
.list .post:nth-child(9) { animation-delay: 0.4s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.post:hover, article:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(60, 50, 30, 0.1);
}

.post h2, article h2 { margin: 0 0 8px; font-size: 22px; }
.post .meta, article .meta, .meta {
  color: var(--muted);
  font-family: "Segoe UI", sans-serif;
  font-size: 13px;
  margin-bottom: 8px;
}

.post p:last-child, article p:last-child { margin-bottom: 0; }

footer {
  color: var(--muted);
  font-size: 13px;
  padding: 0 0 40px;
  font-family: "Segoe UI", sans-serif;
}

@media (max-width: 640px) {
  h1 { font-size: 32px; }
  .hero, .post, article { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
