:root {
  --bg: #ffffff;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --accent: #d98ca6;
  --line: rgba(100, 116, 139, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.body-background {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: -999;
  pointer-events: none;
}

.body-background::before,
.body-background::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  background-image: url("https://kazamata.uk/wp-content/themes/lolimeow-shiroki/assets/images/background.svg");
  background-repeat: no-repeat;
  background-position: 7% 100px;
  background-size: contain;
}

.body-background::after {
  transform: scaleX(-1);
}

@media (max-width: 1200px) {
  .body-background {
    display: none;
  }
}

.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--accent);
}

.head-sep {
  color: var(--muted);
  font-size: 12px;
}

.head-crumb {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.head-back {
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}

.head-back:hover {
  color: var(--accent);
}

.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 52px 24px 26px;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: 0.08em;
  animation: neri-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  animation: neri-rise 0.7s 0.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

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

.feed {
  max-width: 1180px;
  margin: 0 auto;
  padding: 4px 24px 56px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-auto-rows: 1px;
  gap: 0;
  align-items: start;
}

.entry {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  border: 0;
  box-shadow: none;
  align-self: start;
  transition: background 0.25s ease;
}

.entry.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    background 0.25s ease;
}

.entry.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.entry.is-visible:hover {
  background: rgba(217, 140, 166, 0.05);
}

.entry-figure {
  background: #f0eef1;
  line-height: 0;
  overflow: hidden;
}

.entry-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.entry.is-visible:hover .entry-figure img {
  transform: scale(1.015);
}

.entry-body {
  padding: 14px 14px 12px;
}

.entry-caption {
  font-size: 13.5px;
  line-height: 1.65;
  color: #45434c;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.entry-caption p {
  margin: 0 0 8px;
}

.entry-caption p:last-child {
  margin-bottom: 0;
}

.entry-caption a {
  color: var(--accent);
}

.entry-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.entry-meta time {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.entry-dl {
  flex: none;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.entry-dl:hover {
  color: var(--accent);
  border-color: rgba(217, 140, 166, 0.5);
  background: rgba(217, 140, 166, 0.08);
}

.empty {
  grid-column: 1 / -1;
  padding: 46px 8px;
  text-align: center;
  color: var(--muted);
}

.empty p {
  margin: 0 0 6px;
  font-size: 15px;
}

.empty-sub {
  font-size: 13px !important;
  opacity: 0.8;
}

.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 0 0 46px;
  font-size: 14px;
  color: var(--muted);
}

.pager a {
  color: var(--accent);
  text-decoration: none;
}

.pager a:hover {
  text-decoration: underline;
}

.site-foot {
  margin-top: 48px;
  font-size: 12.8px;
  color: var(--muted);
  text-align: center;
}

.foot-hr {
  height: 0;
  margin: 0;
  border: 0;
  border-top: 1px solid rgba(100, 116, 139, 0.25);
}

.foot-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 40px 24px 30px;
}

.foot-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.foot-nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-nav a {
  font-size: 11.2px;
  color: var(--ink);
}

.foot-social {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.foot-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--muted);
  background: rgba(100, 116, 139, 0.08);
  transition: color 0.22s ease, background 0.22s ease;
}

.foot-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.foot-btn:hover {
  color: var(--accent);
  background: rgba(217, 140, 166, 0.14);
}

.foot-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 24px;
  font-size: 12.8px;
  line-height: 1.6;
  color: var(--ink);
}

.foot-copy a {
  color: inherit;
}

.site-foot a {
  text-decoration: none;
}

.site-foot a:hover {
  color: var(--accent);
}

@media (max-width: 700px) {
  .foot-row {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 16px;
  }

  .foot-spacer {
    display: none;
  }

  .foot-social {
    justify-content: center;
  }

  .foot-inner {
    padding: 32px 16px 26px;
  }
}

.brand,
.head-back,
.site-foot a {
  transition: color 0.22s ease;
}

.head-back {
  position: relative;
}

.head-back::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.26s ease;
}

.head-back:hover::after {
  transform: scaleX(1);
}

.pager a {
  display: inline-block;
  transition: transform 0.22s ease, color 0.22s ease;
}

.pager a:first-child:hover {
  transform: translateX(-3px);
}

.pager a:last-child:hover {
  transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
  .hero h1,
  .hero p {
    animation: none;
  }

  .entry,
  .entry.reveal,
  .entry.reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: box-shadow 0.2s ease;
  }

  .entry.is-visible:hover {
    transform: none;
  }

  .entry-figure img,
  .entry.is-visible:hover .entry-figure img {
    transform: none;
    transition: none;
  }

  .head-back::after {
    display: none;
  }
}

@media (max-width: 600px) {
  .site-head {
    padding: 12px 16px;
  }

  .hero {
    padding: 38px 16px 20px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .feed {
    padding: 2px 16px 42px;
    gap: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .entry-caption {
    font-size: 13.5px;
    -webkit-line-clamp: 3;
  }

  .entry-body {
    padding: 10px 10px 9px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e0e;
    --card: #17171a;
    --ink: #ffffff;
    --muted: rgba(255, 255, 255, 0.65);
    --line: rgba(255, 255, 255, 0.1);
  }

  body {
    background: var(--bg);
  }

  .site-head {
    background: rgba(14, 14, 14, 0.86);
  }

  .entry {
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: none;
  }

  .entry-figure {
    background: #1b1a20;
  }

  .entry-caption {
    color: #e5e5e5;
  }

  .foot-hr {
    border-top-color: rgba(255, 255, 255, 0.18);
  }

  .foot-btn {
    background: rgba(255, 255, 255, 0.08);
  }
}
