:root {
  color-scheme: dark;
  --ink: #f8f0e8;
  --ink-soft: #d8c8d5;
  --muted: #aa96a7;
  --bg: #0f0912;
  --bg-deep: #08050a;
  --surface: #1a101e;
  --surface-strong: #24142a;
  --surface-soft: #161019;
  --line: rgb(248 240 232 / 13%);
  --line-strong: rgb(248 240 232 / 24%);
  --silver: #e8e5e7;
  --pink: #ff7caf;
  --pink-soft: #f1a8c5;
  --wine: #73284f;
  --green: #86c7a6;
  --red: #e66c75;
  --shadow: 0 1.5rem 5rem rgb(0 0 0 / 34%);
  --radius-sm: 0.7rem;
  --radius-md: 1.25rem;
  --radius-lg: 2rem;
  --content: 82rem;
  --reading: 47rem;
  --header-height: 4.9rem;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --motion-fast: 160ms;
  --motion-normal: 280ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  background: var(--bg-deep);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 16%, rgb(115 40 79 / 28%), transparent 30rem),
    radial-gradient(circle at 88% 6%, rgb(255 124 175 / 9%), transparent 24rem),
    linear-gradient(135deg, #0b070d 0%, var(--bg) 50%, #120914 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.18;
  pointer-events: none;
  background-image:
    linear-gradient(rgb(255 255 255 / 2%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 1.5%) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

body::after {
  position: fixed;
  right: -8rem;
  bottom: -14rem;
  z-index: -1;
  width: 32rem;
  height: 32rem;
  content: "";
  border: 1px solid rgb(255 124 175 / 14%);
  border-radius: 44% 56% 48% 52%;
  box-shadow: inset 0 0 8rem rgb(115 40 79 / 14%);
  pointer-events: none;
  transform: rotate(-16deg);
}

@media (prefers-reduced-motion: no-preference) {
  body::after {
    animation: breathe 10s ease-in-out infinite alternate;
  }
}

@keyframes breathe {
  to {
    border-radius: 54% 46% 58% 42%;
    transform: rotate(-9deg) scale(1.04);
  }
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-color: rgb(255 124 175 / 55%);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: var(--pink);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 4px;
}

::selection {
  color: var(--bg-deep);
  background: var(--pink-soft);
}

.skip-link {
  position: fixed;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  color: var(--bg-deep);
  background: var(--ink);
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--space-5);
  align-items: center;
  min-height: var(--header-height);
  padding: var(--space-3) max(var(--space-5), calc((100vw - var(--content)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgb(10 6 12 / 82%);
  backdrop-filter: blur(18px) saturate(130%);
}

.brand {
  display: inline-flex;
  gap: var(--space-3);
  align-items: center;
  min-width: max-content;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: inline-grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  color: var(--pink-soft);
  border: 1px solid var(--line-strong);
  border-radius: 50% 50% 46% 46%;
  background: linear-gradient(145deg, rgb(255 255 255 / 9%), rgb(115 40 79 / 32%));
  box-shadow: inset 0 0 1rem rgb(255 124 175 / 9%);
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  top: -0.27rem;
  width: 0.78rem;
  height: 0.78rem;
  content: "";
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  background: var(--surface-strong);
  transform: rotate(45deg);
}

.brand-mark::before {
  left: 0.27rem;
}

.brand-mark::after {
  right: 0.27rem;
}

.brand-mark span {
  position: relative;
  z-index: 1;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.brand-mark img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-text strong {
  font-family: "STKaiti", "KaiTi", "FangSong", serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-signature {
  width: 8.1rem;
  height: auto;
  filter: drop-shadow(0 0.2rem 0.55rem rgb(117 219 233 / 14%));
}

.brand-text small {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 0.12rem;
  align-items: center;
  justify-content: center;
}

.nav-links a {
  padding: 0.45rem 0.62rem;
  color: var(--ink-soft);
  border-radius: 999px;
  font-size: 0.8rem;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--motion-fast), background var(--motion-fast);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: rgb(255 255 255 / 7%);
}

.nav-links a[aria-current="page"]::before {
  margin-right: 0.35rem;
  color: var(--pink);
  content: "•";
}

.nav-toggle {
  display: inline-grid;
  width: 2.55rem;
  height: 2.55rem;
  padding: 0;
  place-items: center;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgb(255 255 255 / 4%);
  cursor: pointer;
}

.nav-toggle:hover {
  border-color: var(--line-strong);
  background: rgb(255 255 255 / 8%);
}

.nav-toggle {
  display: none;
  font-size: 1.1rem;
}

.site-main {
  width: min(var(--content), calc(100% - 2.5rem));
  margin-inline: auto;
  padding-block: var(--space-12) var(--space-16);
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17rem;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.page-flow > * + * {
  margin-top: var(--space-16);
}

.eyebrow {
  display: inline-flex;
  gap: var(--space-2);
  align-items: center;
  margin: 0 0 var(--space-4);
  color: var(--pink-soft);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 1.6rem;
  height: 1px;
  content: "";
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(17rem, 0.82fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
  min-height: min(36rem, calc(100vh - var(--header-height) - 6rem));
  padding: clamp(2rem, 4.5vw, 3.75rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 83% 23%, rgb(255 124 175 / 12%), transparent 20rem),
    linear-gradient(145deg, rgb(255 255 255 / 4%), rgb(115 40 79 / 10%));
  box-shadow: var(--shadow);
}

.hero::before {
  position: absolute;
  top: -5rem;
  right: -3rem;
  width: 21rem;
  height: 21rem;
  content: "";
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 43% 57% 63% 37%;
  transform: rotate(12deg);
}

.hero-copy,
.hero-object {
  position: relative;
  z-index: 1;
}

.home-title {
  position: relative;
  max-width: 10ch;
  margin: 0;
  font-family: ui-serif, "Songti SC", "STSong", serif;
  font-size: clamp(2.25rem, 3.4vw, 3.4rem);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.hero-lede {
  max-width: 35rem;
  margin: var(--space-6) 0 0;
  color: var(--ink-soft);
  font-family: ui-serif, "Songti SC", "STSong", serif;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.8;
  text-wrap: balance;
}

.keeper-note {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  width: fit-content;
  max-width: 35rem;
  margin: var(--space-5) 0 0;
  padding: 0.6rem 0.9rem;
  color: var(--muted);
  border-left: 2px solid var(--pink);
  background: linear-gradient(90deg, rgb(115 40 79 / 16%), transparent);
  font-family: ui-serif, "Songti SC", "STSong", serif;
  font-size: 0.84rem;
  font-style: italic;
}

.keeper-note span {
  color: var(--pink-soft);
  font-style: normal;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.button {
  display: inline-flex;
  min-height: 2.9rem;
  padding: 0.7rem 1.1rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--motion-fast), background var(--motion-fast), border-color var(--motion-fast);
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #160b13;
  border-color: var(--pink-soft);
  background: var(--pink-soft);
}

.button.secondary {
  background: rgb(255 255 255 / 4%);
}

.hero-object {
  display: grid;
  min-height: 25rem;
  place-items: center;
}

.cat-nook {
  position: relative;
  width: min(100%, 22rem);
  aspect-ratio: 0.88;
  overflow: hidden;
  border: 1px solid rgb(248 240 232 / 16%);
  border-radius: 48% 48% 2.2rem 2.2rem;
  background:
    linear-gradient(90deg, transparent 49.7%, rgb(248 240 232 / 7%) 50%, transparent 50.3%),
    linear-gradient(180deg, transparent 63%, rgb(248 240 232 / 6%) 63.3%, transparent 63.6%),
    radial-gradient(circle at 66% 27%, rgb(241 168 197 / 25%), transparent 9rem),
    linear-gradient(180deg, #261626 0%, #180f1c 68%, #100a13 100%);
  box-shadow:
    inset 0 0 5rem rgb(255 124 175 / 7%),
    0 2rem 5rem rgb(0 0 0 / 34%);
}

.cat-nook::before {
  position: absolute;
  inset: 1rem;
  content: "";
  border: 1px solid rgb(248 240 232 / 7%);
  border-radius: 46% 46% 1.55rem 1.55rem;
  pointer-events: none;
}

.nook-light {
  position: absolute;
  top: 2.4rem;
  right: 2.2rem;
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 50%;
  background: #f1a8c5;
  box-shadow:
    0 0 2.4rem rgb(241 168 197 / 34%),
    0 0 6rem rgb(255 124 175 / 18%);
  opacity: 0.82;
}

.sleeping-cat {
  position: absolute;
  right: 1.2rem;
  bottom: 3.8rem;
  width: 18rem;
  height: 13rem;
}

.cat-body {
  position: absolute;
  right: 0.2rem;
  bottom: 0.2rem;
  width: 14.2rem;
  height: 9.6rem;
  border-radius: 52% 48% 44% 56%;
  background:
    radial-gradient(circle at 63% 30%, rgb(255 255 255 / 5%), transparent 5rem),
    #0e0911;
  box-shadow: inset -1rem -1rem 2.5rem rgb(0 0 0 / 24%);
}

.cat-head {
  position: absolute;
  bottom: 1.05rem;
  left: 0.5rem;
  z-index: 2;
  width: 7.2rem;
  height: 6.1rem;
  border-radius: 48% 48% 45% 45%;
  background: #0e0911;
  transform: rotate(-8deg);
}

.cat-head::before,
.cat-head::after {
  position: absolute;
  top: -1.45rem;
  width: 2.8rem;
  height: 3.1rem;
  content: "";
  background: #0e0911;
  clip-path: polygon(50% 0, 100% 100%, 0 84%);
}

.cat-head::before {
  left: 0.2rem;
  transform: rotate(-8deg);
}

.cat-head::after {
  right: 0.15rem;
  transform: rotate(11deg) scaleX(-1);
}

.cat-head i {
  position: absolute;
  top: 2.7rem;
  width: 1.05rem;
  height: 0.13rem;
  border-radius: 50%;
  background: var(--pink-soft);
  box-shadow: 0 0 0.8rem rgb(255 124 175 / 35%);
  transform: rotate(7deg);
}

.cat-head i:first-child {
  left: 1.65rem;
}

.cat-head i:last-child {
  right: 1.55rem;
  transform: rotate(-7deg);
}

.cat-head > i:last-child::after {
  position: absolute;
  top: 0.8rem;
  right: 1.55rem;
  width: 0.38rem;
  height: 0.28rem;
  content: "";
  border-radius: 45% 45% 60% 60%;
  background: rgb(241 168 197 / 70%);
}

.cat-tail {
  position: absolute;
  right: -0.1rem;
  bottom: 0.2rem;
  z-index: 1;
  width: 10.5rem;
  height: 8.2rem;
  border: 1.25rem solid #0e0911;
  border-top-color: transparent;
  border-left-color: transparent;
  border-radius: 50%;
  transform: rotate(10deg);
}

.nook-caption {
  position: absolute;
  bottom: 1.35rem;
  left: 1.5rem;
  z-index: 3;
  margin: 0;
  color: rgb(216 200 213 / 72%);
  font-family: ui-serif, "Songti SC", "STSong", serif;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.nook-caption span {
  margin-right: 0.65rem;
  color: var(--pink-soft);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.section-heading {
  display: flex;
  gap: var(--space-8);
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.section-heading h2,
.page-hero h1 {
  margin: 0;
  font-family: ui-serif, "Songti SC", "STSong", serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.section-heading h2 {
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.section-heading p {
  max-width: 31rem;
  margin: 0;
  color: var(--muted);
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.room-card {
  position: relative;
  min-height: 13.5rem;
  padding: var(--space-6);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgb(255 255 255 / 5%), rgb(255 255 255 / 2%));
  text-decoration: none;
  transition: transform var(--motion-normal), border-color var(--motion-normal), background var(--motion-normal);
}

.room-card:hover {
  border-color: rgb(255 124 175 / 36%);
  background: linear-gradient(145deg, rgb(255 255 255 / 8%), rgb(115 40 79 / 13%));
  transform: translateY(-2px);
}

.room-card::after {
  content: none;
}

.room-no {
  color: var(--pink-soft);
  font-family: ui-monospace, monospace;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
}

.room-card h3 {
  max-width: 11ch;
  margin: 2rem 0 var(--space-3);
  font-family: ui-serif, "Songti SC", serif;
  font-size: clamp(1.35rem, 1.7vw, 1.7rem);
  line-height: 1.1;
}

.room-card p {
  position: relative;
  z-index: 1;
  max-width: 25rem;
  margin: 0;
  color: var(--muted);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.content-card,
.empty-state {
  min-height: 12rem;
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgb(255 255 255 / 3%);
}

.content-card h3 {
  margin: var(--space-3) 0;
  font-family: ui-serif, "Songti SC", serif;
  font-size: 1.45rem;
}

.content-card p {
  margin: 0;
  color: var(--muted);
}

.content-card .card-source {
  margin-top: var(--space-4);
  font-size: 0.76rem;
}

.card-meta {
  color: var(--pink-soft) !important;
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.empty-state {
  grid-column: 1 / -1;
  display: grid;
  min-height: 11rem;
  place-content: center;
  text-align: center;
}

.empty-state .empty-mark {
  display: block;
  margin-bottom: var(--space-3);
  color: var(--pink);
  font-family: ui-serif, serif;
  font-size: 1.65rem;
}

.empty-state strong {
  font-family: ui-serif, "Songti SC", serif;
  font-size: 1.35rem;
}

.empty-state p {
  max-width: 30rem;
  margin: var(--space-3) auto 0;
  color: var(--muted);
}

.profile-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-2);
  margin-top: var(--space-8);
}

.profile-strip span {
  display: grid;
  min-height: 6rem;
  padding: var(--space-3);
  place-items: end start;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 3%);
  font-family: ui-serif, "Songti SC", serif;
  font-size: 0.94rem;
}

.profile-strip span:nth-child(2),
.profile-strip span:nth-child(5) {
  background: rgb(115 40 79 / 15%);
}

.profile-strip span:nth-child(4) {
  color: var(--green);
}

.gripe-rail {
  position: sticky;
  top: calc(var(--header-height) + var(--space-8));
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgb(255 255 255 / 5%), rgb(115 40 79 / 10%));
  box-shadow: 0 1rem 3rem rgb(0 0 0 / 20%);
}

.gripe-head {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
}

.gripe-head h2 {
  margin: 0;
  font-family: ui-serif, "Songti SC", serif;
  font-size: 1.08rem;
}

.gripe-head a {
  color: var(--pink-soft);
  font-size: 0.74rem;
}

.gripe-list {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.gripe-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 var(--space-3);
  padding-bottom: var(--space-4);
  border-bottom: 1px dashed var(--line);
}

.gripe-item p {
  margin: 0;
  font-size: 0.86rem;
}

.gripe-item time {
  grid-column: 2;
  margin-top: var(--space-2);
  color: var(--muted);
  font-size: 0.68rem;
}

.gripe-empty {
  padding: var(--space-6) 0;
  color: var(--muted);
  text-align: center;
}

.gripe-empty span {
  display: block;
  color: var(--pink-soft);
  font-family: ui-monospace, monospace;
}

.gripe-empty p {
  margin: var(--space-2) 0 0;
  font-size: 0.82rem;
}

.page-hero {
  position: relative;
  padding: clamp(1.75rem, 3.5vw, 3rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-left-color: rgb(241 168 197 / 44%);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 87% 20%, rgb(255 124 175 / 13%), transparent 10rem),
    linear-gradient(140deg, rgb(255 255 255 / 4%), rgb(115 40 79 / 10%));
  box-shadow:
    inset 0 1px rgb(255 255 255 / 4%),
    0 1.2rem 3rem rgb(0 0 0 / 13%);
}

.page-hero::after {
  position: absolute;
  top: -8rem;
  right: -4rem;
  width: 19rem;
  height: 19rem;
  content: "";
  border: 1px solid rgb(248 240 232 / 7%);
  border-radius: 44% 56% 48% 52%;
  pointer-events: none;
  transform: rotate(12deg);
}

.page-title-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  width: 100%;
  max-width: 100%;
}

.page-hero h1 {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: 18ch;
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  line-height: 1.18;
}

.page-hero h1::after {
  display: block;
  width: 3.2rem;
  height: 1px;
  margin-top: var(--space-4);
  content: "";
  background: linear-gradient(90deg, var(--pink-soft), transparent);
}

.title-cat {
  --cat-fur: #140b15;
  --cat-shadow: #2b1828;
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 10.25rem;
  height: 7.6rem;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgb(248 240 232 / 14%);
  border-radius: 50% 50% 1.15rem 1.15rem;
  background:
    linear-gradient(90deg, transparent 49.6%, rgb(248 240 232 / 5%) 50%, transparent 50.4%),
    linear-gradient(180deg, transparent 63%, rgb(248 240 232 / 5%) 63.5%, transparent 64%),
    radial-gradient(circle at 70% 24%, rgb(241 168 197 / 27%), transparent 3.5rem),
    linear-gradient(180deg, #2b192c, #1a101d 68%, #100a13);
  box-shadow:
    inset 0 0 2.8rem rgb(255 124 175 / 7%),
    0 1rem 2.4rem rgb(0 0 0 / 25%);
}

.title-cat::before {
  position: absolute;
  bottom: 10%;
  left: 12%;
  z-index: 3;
  width: 36%;
  height: 42%;
  content: "";
  border-radius: 48% 48% 44% 44%;
  background:
    radial-gradient(ellipse at 35% 56%, var(--pink-soft) 0 0.08rem, transparent 0.11rem),
    radial-gradient(ellipse at 65% 56%, var(--pink-soft) 0 0.08rem, transparent 0.11rem),
    radial-gradient(circle at 50% 70%, #b85984 0 0.1rem, transparent 0.13rem),
    linear-gradient(145deg, var(--cat-fur), var(--cat-shadow));
  box-shadow: inset -0.7rem -0.5rem 1.2rem rgb(0 0 0 / 22%);
}

.title-cat::after {
  position: absolute;
  right: 8%;
  bottom: 6%;
  z-index: 1;
  width: 61%;
  height: 56%;
  content: "";
  border-radius: 52% 48% 43% 57%;
  background: linear-gradient(145deg, var(--cat-fur), var(--cat-shadow));
  box-shadow: inset -1rem -0.75rem 1.8rem rgb(0 0 0 / 25%);
}

.title-cat-ears {
  position: absolute;
  inset: 0.5rem;
  z-index: 4;
  border: 1px solid rgb(248 240 232 / 6%);
  border-radius: 49% 49% 0.72rem 0.72rem;
  pointer-events: none;
}

.title-cat-ears::before,
.title-cat-ears::after {
  position: absolute;
  top: 28%;
  z-index: 2;
  width: 16%;
  height: 21%;
  content: "";
  background: var(--cat-fur);
  clip-path: polygon(50% 0, 100% 100%, 0 84%);
}

.title-cat-ears::before {
  left: 7%;
  transform: rotate(-8deg);
}

.title-cat-ears::after {
  left: 27%;
  transform: rotate(8deg) scaleX(-1);
}

.title-cat-prop,
.title-cat-prop::before,
.title-cat-prop::after {
  position: absolute;
  z-index: 4;
  display: block;
  content: "";
}

.title-cat--thoughts .title-cat-prop {
  top: 9%;
  right: 7%;
  width: 24%;
  height: 18%;
  color: var(--pink-soft);
  border: 1px solid rgb(241 168 197 / 45%);
  border-radius: 50%;
  background: rgb(22 16 25 / 82%);
}

.title-cat--thoughts .title-cat-prop::before {
  bottom: -0.35rem;
  left: 0.2rem;
  width: 0.28rem;
  height: 0.28rem;
  border: 1px solid rgb(241 168 197 / 38%);
  border-radius: 50%;
  background: var(--surface-soft);
}

.title-cat--thoughts .title-cat-prop::after {
  inset: 0;
  content: "···";
  color: currentColor;
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  line-height: 0.75rem;
  text-align: center;
}

.title-cat--life .title-cat-prop {
  right: 14%;
  bottom: 13%;
  width: 22%;
  height: 19%;
  border: 1px solid rgb(42 23 36 / 38%);
  border-radius: 0.22rem;
  background: linear-gradient(145deg, var(--silver), #a9a2a7);
}

.title-cat--life .title-cat-prop::before {
  top: -0.26rem;
  left: 0.28rem;
  width: 0.55rem;
  height: 0.28rem;
  border-radius: 0.12rem 0.12rem 0 0;
  background: #bab3b8;
}

.title-cat--life .title-cat-prop::after {
  top: 0.2rem;
  left: 0.48rem;
  width: 0.48rem;
  height: 0.48rem;
  border: 0.12rem solid var(--wine);
  border-radius: 50%;
}

.title-cat--drinks .title-cat-prop {
  right: 4%;
  bottom: 5%;
  width: 18%;
  height: 34%;
}

.title-cat--drinks .title-cat-prop::before {
  top: 0;
  left: 8%;
  width: 84%;
  height: 55%;
  border: 1px solid rgb(232 229 231 / 75%);
  border-radius: 0.22rem 0.22rem 48% 48%;
  background: linear-gradient(to top, rgb(115 40 79 / 90%) 0 48%, transparent 51%);
  clip-path: polygon(6% 0, 94% 0, 75% 100%, 25% 100%);
  box-shadow: 0 0 0.8rem rgb(241 168 197 / 10%);
}

.title-cat--drinks .title-cat-prop::after {
  top: 53%;
  left: 50%;
  width: 78%;
  height: 43%;
  border-bottom: 1px solid rgb(232 229 231 / 75%);
  border-radius: 0 0 50% 50%;
  background: linear-gradient(90deg, transparent 48%, rgb(232 229 231 / 75%) 48% 52%, transparent 52%);
  transform: translateX(-50%);
}

.title-cat--bedroom .title-cat-prop {
  right: 3%;
  bottom: 2%;
  width: 62%;
  height: 31%;
  overflow: hidden;
  border: 1px solid rgb(241 168 197 / 16%);
  border-radius: 58% 42% 20% 32% / 74% 64% 28% 34%;
  background:
    radial-gradient(ellipse at 24% 18%, rgb(255 255 255 / 13%), transparent 42%),
    linear-gradient(155deg, #8b3b63 0%, #6a294d 48%, #461d38 100%);
  box-shadow:
    inset 0 1px rgb(255 255 255 / 10%),
    0 0.5rem 1rem rgb(0 0 0 / 18%);
  transform: rotate(-2deg);
}

.title-cat--bedroom .title-cat-prop::before {
  top: 18%;
  left: 8%;
  width: 82%;
  height: 58%;
  border-top: 1px solid rgb(241 168 197 / 22%);
  border-radius: 50%;
  transform: rotate(8deg);
}

.title-cat--bedroom .title-cat-prop::after {
  top: 28%;
  right: 22%;
  width: 24%;
  height: 62%;
  border-left: 1px solid rgb(241 168 197 / 18%);
  border-radius: 50%;
  transform: rotate(-14deg);
}

.title-cat--gripes .title-cat-prop {
  top: 7%;
  right: 10%;
  color: var(--pink);
  font-family: ui-monospace, monospace;
}

.title-cat--gripes .title-cat-prop::before {
  position: static;
  content: "!";
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
}

.title-cat--gripes .title-cat-prop::after {
  top: 1.2rem;
  right: -0.15rem;
  width: 0.8rem;
  height: 0.3rem;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(-18deg);
}

.title-cat--friends .title-cat-prop {
  right: 5%;
  bottom: 9%;
  width: 32%;
  height: 35%;
  border-radius: 48% 48% 44% 44%;
  background:
    radial-gradient(ellipse at 35% 58%, var(--pink-soft) 0 0.07rem, transparent 0.1rem),
    radial-gradient(ellipse at 65% 58%, var(--pink-soft) 0 0.07rem, transparent 0.1rem),
    linear-gradient(145deg, #26152a, #130b16);
}

.title-cat--friends .title-cat-prop::before,
.title-cat--friends .title-cat-prop::after {
  top: -0.65rem;
  width: 0.85rem;
  height: 0.9rem;
  background: #26152a;
  clip-path: polygon(50% 0, 100% 100%, 0 84%);
}

.title-cat--friends .title-cat-prop::before {
  left: 0.05rem;
}

.title-cat--friends .title-cat-prop::after {
  right: 0.05rem;
  transform: scaleX(-1);
}

.page-title-line--friends {
  grid-template-columns: minmax(0, 1fr) 15rem;
}

.title-friends-figures {
  position: relative;
  z-index: 1;
  width: 15rem;
  height: 7.6rem;
}

.title-friends-figures .title-cat {
  position: absolute;
  inset: 0 auto 0 0;
}

.title-watchdog {
  --dog-ear: #4f2943;
  --dog-fur: #170c18;
  --dog-fur-light: #352033;
  position: absolute;
  right: -0.1rem;
  bottom: 0.2rem;
  z-index: 7;
  width: 5.3rem;
  height: 5.9rem;
  color: var(--ink);
  border-radius: 48% 48% 42% 42%;
  text-decoration: none;
  filter: drop-shadow(0 0.65rem 0.85rem rgb(0 0 0 / 30%));
  transform: scale(0.92);
  transform-origin: right bottom;
  transition: filter var(--motion-fast), transform var(--motion-fast);
}

.title-watchdog::after {
  position: absolute;
  right: 0.48rem;
  bottom: 0.12rem;
  left: 0.7rem;
  z-index: -1;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgb(241 168 197 / 16%), transparent);
}

.title-watchdog:hover {
  filter: brightness(1.16) drop-shadow(0 0.7rem 0.95rem rgb(0 0 0 / 32%));
  transform: translateY(-0.1rem) scale(0.95);
}

.watchdog-body,
.watchdog-head,
.watchdog-tail,
.watchdog-tag,
.watchdog-face {
  position: absolute;
  display: block;
}

.watchdog-body {
  right: 0.65rem;
  bottom: 0.38rem;
  width: 3.75rem;
  height: 2.65rem;
  border: 1px solid rgb(241 168 197 / 13%);
  border-radius: 48% 52% 42% 45%;
  background: linear-gradient(145deg, var(--dog-fur-light), var(--dog-fur) 70%, #291326);
  box-shadow: inset -0.45rem -0.55rem 0.9rem rgb(0 0 0 / 24%);
}

.watchdog-body::before {
  position: absolute;
  right: 0.55rem;
  bottom: -0.2rem;
  width: 0.82rem;
  height: 0.9rem;
  content: "";
  border-radius: 46% 46% 35% 35%;
  background: #281628;
  box-shadow: -1.95rem 0 #281628;
}

.watchdog-tail {
  right: 0.05rem;
  bottom: 1.5rem;
  width: 1.5rem;
  height: 2.2rem;
  border-top: 0.34rem solid #503047;
  border-right: 0.34rem solid #503047;
  border-radius: 0 80% 15% 0;
  transform: rotate(25deg);
  transform-origin: left bottom;
}

.watchdog-head {
  top: 0.72rem;
  left: 1rem;
  z-index: 3;
  width: 3.85rem;
  height: 3.65rem;
  border: 1px solid rgb(241 168 197 / 15%);
  border-radius: 48% 48% 45% 45% / 42% 42% 54% 54%;
  background:
    radial-gradient(circle at 35% 43%, var(--pink-soft) 0 0.08rem, transparent 0.11rem),
    radial-gradient(circle at 65% 43%, var(--pink-soft) 0 0.08rem, transparent 0.11rem),
    linear-gradient(145deg, var(--dog-fur-light), var(--dog-fur) 74%, #241121);
  box-shadow: inset -0.42rem -0.38rem 0.75rem rgb(0 0 0 / 24%);
}

.watchdog-head::before,
.watchdog-head::after {
  position: absolute;
  top: 0.22rem;
  z-index: -1;
  width: 1.25rem;
  height: 2.15rem;
  content: "";
  border: 1px solid rgb(241 168 197 / 10%);
  background: linear-gradient(165deg, #653751, var(--dog-ear));
}

.watchdog-head::before {
  left: -0.65rem;
  border-radius: 72% 28% 62% 38%;
  transform: rotate(18deg);
}

.watchdog-head::after {
  right: -0.65rem;
  border-radius: 28% 72% 38% 62%;
  transform: rotate(-18deg);
}

.watchdog-face {
  left: 50%;
  bottom: 0.42rem;
  width: 1.72rem;
  height: 1.28rem;
  border-radius: 52% 52% 47% 47%;
  border: 1px solid rgb(241 168 197 / 9%);
  background: rgb(241 168 197 / 9%);
  transform: translateX(-50%);
}

.watchdog-face::before {
  position: absolute;
  top: 0.08rem;
  left: 50%;
  width: 0.48rem;
  height: 0.34rem;
  content: "";
  border-radius: 48% 48% 58% 58%;
  background: #a86484;
  transform: translateX(-50%);
}

.watchdog-face::after {
  position: absolute;
  bottom: 0.14rem;
  left: 50%;
  width: 0.64rem;
  height: 0.3rem;
  content: "";
  border-bottom: 1px solid rgb(241 168 197 / 42%);
  border-radius: 0 0 55% 55%;
  transform: translateX(-50%);
}

.watchdog-tag {
  top: 3.82rem;
  left: 2.52rem;
  z-index: 5;
  display: grid;
  width: 0.82rem;
  height: 0.82rem;
  place-items: center;
  color: var(--ink);
  border: 1px solid rgb(241 168 197 / 24%);
  border-radius: 50%;
  background: var(--wine);
  box-shadow: 0 0.18rem 0.38rem rgb(0 0 0 / 24%);
  font-family: ui-serif, "Songti SC", serif;
  font-size: 0.5rem;
  font-weight: 800;
  line-height: 1;
}

.title-cat--about .title-cat-prop {
  bottom: 16%;
  left: 20%;
  width: 21%;
  height: 0.17rem;
  border-radius: 999px;
  background: var(--pink);
  transform: rotate(-7deg);
}

.title-cat--about .title-cat-prop::after {
  top: 0.1rem;
  left: 0.6rem;
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 50%;
  background: var(--silver);
}

.title-cat--lost .title-cat-prop {
  right: 3%;
  bottom: 3%;
  width: 35%;
  height: 73%;
  border: 1px solid rgb(248 240 232 / 12%);
  border-radius: 0.3rem 0.3rem 0.12rem 0.12rem;
  background: linear-gradient(90deg, #28192b, #1d1320);
}

.title-cat--lost .title-cat-prop::after {
  top: 1.55rem;
  left: 0.35rem;
  width: 0.18rem;
  height: 0.18rem;
  border-radius: 50%;
  background: var(--pink-soft);
}

.page-hero .page-lede {
  position: relative;
  z-index: 1;
  max-width: 43rem;
  margin: var(--space-3) 0 0;
  color: var(--ink-soft);
  font-family: ui-serif, "Songti SC", serif;
  font-size: clamp(0.98rem, 1.35vw, 1.12rem);
  line-height: 1.8;
}

.section-block {
  margin-top: var(--space-10);
}

.section-block > h2 {
  margin: 0 0 var(--space-5);
  font-family: ui-serif, "Songti SC", serif;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.photo-placeholder-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: var(--space-4);
}

.photo-placeholder {
  position: relative;
  display: grid;
  min-height: 22rem;
  padding: var(--space-6);
  overflow: hidden;
  place-items: end start;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 74% 24%, rgb(255 124 175 / 14%), transparent 11rem),
    linear-gradient(145deg, #1d1320, #100a12);
}

.photo-placeholder:nth-child(2) {
  background:
    radial-gradient(circle at 30% 70%, rgb(134 199 166 / 12%), transparent 9rem),
    linear-gradient(145deg, #17101a, #0e0a10);
}

.photo-placeholder::before {
  position: absolute;
  inset: 16% 13%;
  content: "";
  border: 1px dashed rgb(255 255 255 / 12%);
  border-radius: 45% 55% 40% 60%;
  transform: rotate(-8deg);
}

.photo-placeholder strong,
.photo-placeholder p {
  position: relative;
  z-index: 1;
}

.photo-placeholder strong {
  display: block;
  font-family: ui-serif, "Songti SC", serif;
  font-size: 1.25rem;
}

.photo-placeholder p {
  max-width: 24rem;
  margin: var(--space-2) 0 0;
  color: var(--muted);
}

.adult-notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-5);
  align-items: start;
  margin-top: var(--space-6);
  padding: var(--space-5);
  border: 1px solid rgb(255 124 175 / 28%);
  border-radius: var(--radius-md);
  background: rgb(115 40 79 / 12%);
}

.adult-notice strong {
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  place-items: center;
  color: var(--bg-deep);
  border-radius: 50%;
  background: var(--pink-soft);
}

.adult-notice p {
  margin: 0;
  color: var(--ink-soft);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--space-4);
}

.about-card {
  padding: var(--space-8);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgb(255 255 255 / 3%);
}

.about-card h2 {
  margin-top: 0;
  font-family: ui-serif, "Songti SC", serif;
  font-size: 1.4rem;
}

.about-card p:last-child {
  margin-bottom: 0;
}

.entry-signature {
  margin: var(--space-8) 0 0;
  text-align: right;
}

.entry-signature img {
  display: inline-block;
  width: min(9rem, 45vw);
  height: auto;
  opacity: 0.9;
  clip-path: inset(0 0 1px);
  filter: invert(88%) sepia(22%) saturate(460%) hue-rotate(286deg) brightness(106%) contrast(90%);
}

.keeper-letter {
  position: relative;
  padding: clamp(1.35rem, 3vw, 2rem);
  overflow: hidden;
  color: var(--ink-soft);
  border: 1px solid rgb(241 168 197 / 22%);
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgb(115 40 79 / 12%), transparent 62%),
    rgb(255 255 255 / 2%);
  font-family: ui-serif, "Songti SC", "STSong", serif;
}

.keeper-letter::after {
  content: none;
}

.keeper-letter p:not(.eyebrow) {
  position: relative;
  z-index: 1;
  max-width: 43rem;
  margin: 0;
  font-size: clamp(0.98rem, 1.35vw, 1.08rem);
}

.keeper-letter > span {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: var(--space-5);
  color: var(--pink-soft);
  font-family: "STKaiti", "KaiTi", "FangSong", serif;
  text-align: right;
}

.facts-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.facts-list div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line);
}

.facts-list div:last-child {
  border-bottom: 0;
}

.facts-list dt {
  color: var(--muted);
}

.facts-list dd {
  margin: 0;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-6);
  width: min(var(--content), calc(100% - 2.5rem));
  margin-inline: auto;
  padding: var(--space-8) 0 var(--space-10);
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
}

.site-footer p {
  margin: 0;
}

.footer-whisper {
  display: inline-block;
  margin-left: 0.45rem;
  color: rgb(241 168 197 / 72%);
  font-family: ui-serif, "Songti SC", serif;
  font-style: italic;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

@media (max-width: 72rem) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .nav-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-2);
    padding-top: var(--space-2);
    border-top: 1px solid var(--line);
  }

  .nav-links a {
    padding: var(--space-3);
    text-align: center;
  }
}

@media (max-width: 62rem) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .gripe-rail {
    position: static;
  }

  .profile-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 48rem) {
  :root {
    --header-height: 4.25rem;
  }

  .site-header {
    gap: var(--space-2);
    padding-inline: var(--space-4);
  }

  .brand-text small {
    display: none;
  }

  .nav-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-main {
    width: min(100% - 1.5rem, var(--content));
    padding-block: var(--space-6) var(--space-12);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: var(--space-8) var(--space-5);
  }

  .home-title {
    max-width: 9ch;
    font-size: clamp(2.1rem, 8.5vw, 2.8rem);
  }

  .hero-object {
    min-height: 22rem;
  }

  .cat-nook {
    width: min(100%, 19rem);
  }

  .sleeping-cat {
    right: 0.35rem;
    transform: scale(0.9);
    transform-origin: right bottom;
  }

  .room-grid,
  .content-grid,
  .photo-placeholder-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .room-card {
    min-height: 12rem;
  }

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: var(--space-4);
  }

  .page-hero {
    padding: var(--space-6) var(--space-5);
  }

  .page-title-line {
    grid-template-columns: minmax(0, 1fr) 8.2rem;
    gap: var(--space-4);
  }

  .page-title-line--friends {
    grid-template-columns: minmax(0, 1fr) 11.2rem;
  }

  .title-friends-figures {
    width: 11.2rem;
    height: 6.05rem;
  }

  .title-friends-figures .title-cat {
    margin-left: 0;
  }

  .title-watchdog {
    right: -0.2rem;
    bottom: -0.18rem;
    transform: scale(0.78);
    transform-origin: right bottom;
  }

  .title-watchdog:hover {
    transform: translateY(-0.08rem) scale(0.81);
  }

  .page-hero h1 {
    font-size: clamp(1.75rem, 7.4vw, 2.2rem);
  }

  .title-cat {
    margin-left: auto;
    width: 8.2rem;
    height: 6.05rem;
  }

  .photo-placeholder {
    min-height: 18rem;
  }

  .profile-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .adult-notice {
    grid-template-columns: 1fr;
  }

  .facts-list div {
    grid-template-columns: 1fr;
    gap: var(--space-1);
  }

  .site-footer {
    grid-template-columns: 1fr;
    width: calc(100% - 2rem);
  }
}

@media (max-width: 30rem) {
  .brand-mark {
    width: 2rem;
    height: 2rem;
  }

  .brand-text strong {
    font-size: 0.9rem;
  }

  .brand-signature {
    width: 6.4rem;
  }

  .nav-toggle {
    width: 2.25rem;
    height: 2.25rem;
  }

  .page-title-line {
    grid-template-columns: minmax(0, 1fr) 6.8rem;
    gap: var(--space-2);
  }

  .page-title-line--friends {
    grid-template-columns: minmax(0, 1fr) 9.6rem;
  }

  .title-friends-figures {
    width: 9.6rem;
    height: 5.05rem;
  }

  .title-watchdog {
    right: -0.45rem;
    bottom: -0.48rem;
    transform: scale(0.64);
  }

  .title-watchdog:hover {
    transform: translateY(-0.07rem) scale(0.67);
  }

  .title-cat {
    width: 6.8rem;
    height: 5.05rem;
  }

  .hero-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
