:root {
  color-scheme: light;
  --mist: 247 249 247;
  --moss: 26 47 28;
  --sprout: 137 164 126;
  --bark: 141 119 95;
  --line: rgba(26, 47, 28, 0.12);
  --line-strong: rgba(26, 47, 28, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: rgb(var(--moss));
  background:
    radial-gradient(circle at 12% 15%, rgba(137, 164, 126, 0.14), transparent 0, transparent 29%),
    radial-gradient(circle at 86% 12%, rgba(141, 119, 95, 0.12), transparent 0, transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(247, 249, 247, 0.96));
}

.bg-mist {
  background-color: rgb(var(--mist));
}

.text-moss {
  color: rgb(var(--moss));
}

.text-bark {
  color: rgb(var(--bark));
}

.text-sprout {
  color: rgb(var(--sprout));
}

.border-forest-line {
  border-color: var(--line);
}

.max-w-prose {
  max-width: 700px;
}

.max-w-shell {
  max-width: 1180px;
}

.font-display {
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
}

.font-body {
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif;
}

.tracking-logo {
  letter-spacing: 0.32em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(26, 47, 28, 0.03) 0.5px, transparent 0.5px),
    linear-gradient(90deg, rgba(26, 47, 28, 0.03) 0.5px, transparent 0.5px);
  background-size: 160px 160px;
  opacity: 0.3;
}

::selection {
  background: rgba(137, 164, 126, 0.22);
}

.forest-haze {
  pointer-events: none;
  position: fixed;
  z-index: 0;
  aspect-ratio: 1;
  width: min(32vw, 360px);
  border-radius: 9999px;
  filter: blur(62px);
  opacity: 0.38;
}

.forest-haze-left {
  top: 5rem;
  left: -7rem;
  background: radial-gradient(circle, rgba(137, 164, 126, 0.24), transparent 70%);
}

.forest-haze-right {
  top: 18rem;
  right: -8rem;
  background: radial-gradient(circle, rgba(141, 119, 95, 0.22), transparent 68%);
}

.surface-panel {
  position: relative;
  border: 0.5px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(12px);
}

.surface-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), transparent 60%);
  opacity: 0.6;
}

.post-card {
  position: relative;
  overflow: hidden;
}

.post-card::before {
  content: "";
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  top: 0;
  height: 1px;
  transform: scaleY(0.5);
  transform-origin: center top;
  background: linear-gradient(90deg, var(--card-accent, rgba(137, 164, 126, 0.32)), transparent 78%);
}

.archive-row {
  position: relative;
}

.archive-row::before {
  content: "";
  position: absolute;
  left: 1.25rem;
  top: 1.35rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 9999px;
  background: var(--card-accent, rgba(137, 164, 126, 0.68));
  opacity: 0.9;
}

.fade-rise {
  animation: fadeRise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes fadeRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  body::before {
    background-size: 120px 120px;
  }

  .archive-row::before {
    top: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fade-rise {
    animation: none;
  }
}
