/* =========================================================
   kazumi漫画 · 云上书屋
   雾白、主紫、樱粉、薄荷、杏黄；轻柔、圆润、留白充足
   ========================================================= */

:root {
  --fog: #faf8ff;
  --paper: #ffffff;
  --violet: #615bff;
  --violet-soft: #8d88ff;
  --violet-deep: #4a43d6;
  --lilac: #ede9ff;
  --pink: #ff9db7;
  --pink-deep: #e45c86;
  --pink-soft: #ffe3ea;
  --mint: #b9f2e2;
  --mint-soft: #e2f9f2;
  --apricot: #ffd37d;
  --apricot-soft: #fff0d4;
  --ink: #2b2551;
  --ink-2: #5c5587;
  --ink-3: #6f6896;
  --line: rgba(43, 37, 81, 0.1);
  --shadow-lg: 0 44px 90px -54px rgba(52, 40, 140, 0.6);
  --shadow-md: 0 26px 54px -38px rgba(52, 40, 140, 0.62);
  --shadow-sm: 0 14px 30px -22px rgba(52, 40, 140, 0.7);
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif;
}

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--fog);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 4px;
  border-radius: 14px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 200;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  transform: translate(-50%, -160%);
  transition: transform 0.25s ease;
}

.skip-link:focus-visible {
  transform: translate(-50%, 0);
  outline-color: var(--mint);
}

/* ---------- layout helpers ---------- */

.container {
  width: min(1140px, 92vw);
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(64px, 9vw, 118px);
}

.section-head {
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
}

.section-head--start {
  margin-inline: 0;
  text-align: left;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  color: var(--violet);
}

.kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--pink);
}

.section h2 {
  margin-top: 14px;
  font-size: clamp(1.75rem, 3.7vw, 2.62rem);
  letter-spacing: -0.02em;
}

.section-lede {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: clamp(0.96rem, 1.2vw, 1.04rem);
  line-height: 1.9;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  transition: transform 0.28s ease, box-shadow 0.28s ease,
    background-color 0.28s ease;
}

.btn-primary {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 20px 34px -18px rgba(97, 91, 255, 0.95);
}

.btn-primary:hover {
  background: var(--violet-deep);
  transform: translateY(-2px);
  box-shadow: 0 26px 42px -18px rgba(74, 67, 214, 0.9);
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px -22px rgba(52, 40, 140, 0.75);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  padding: 14px clamp(12px, 4vw, 30px) 0;
}

.header-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(1140px, 100%);
  margin-inline: auto;
  padding: 9px 11px 9px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  box-shadow: 0 20px 44px -32px rgba(52, 40, 140, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.03rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-mark {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(150deg, #7d78ff, var(--violet) 58%, var(--violet-deep));
  box-shadow: 0 10px 18px -10px rgba(97, 91, 255, 0.95);
  overflow: hidden;
}

.brand-mark::before {
  content: "";
  position: absolute;
  left: 5px;
  bottom: 7px;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 9px -5px 0 -2px #fff;
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: 5px;
  top: 6px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--apricot);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-list a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 700;
  transition: background-color 0.24s ease, color 0.24s ease;
}

.nav-list a:hover {
  background: rgba(97, 91, 255, 0.09);
  color: var(--ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--violet);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 14px 24px -16px rgba(97, 91, 255, 1);
  transition: background-color 0.24s ease, transform 0.24s ease;
}

.nav-cta:hover {
  background: var(--violet-deep);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(97, 91, 255, 0.1);
  cursor: pointer;
}

.menu-bar {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.26s ease, opacity 0.2s ease;
}

.menu-toggle.is-open .menu-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-open .menu-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open .menu-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: clamp(26px, 4vw, 46px) 0 0;
  overflow: clip;
  isolation: isolate;
}

.hero-sky {
  position: absolute;
  inset: -6% 0 0;
  z-index: -1;
  background:
    radial-gradient(38% 32% at 13% 22%, rgba(255, 157, 183, 0.36), rgba(255, 157, 183, 0) 72%),
    radial-gradient(34% 30% at 87% 14%, rgba(185, 242, 226, 0.9), rgba(185, 242, 226, 0) 70%),
    radial-gradient(50% 42% at 50% 0%, rgba(97, 91, 255, 0.17), rgba(97, 91, 255, 0) 72%),
    radial-gradient(26% 24% at 79% 63%, rgba(255, 211, 125, 0.5), rgba(255, 211, 125, 0) 70%);
  filter: blur(6px);
  pointer-events: none;
}

.spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(97, 91, 255, 0.34);
  box-shadow: 0 0 0 5px rgba(97, 91, 255, 0.07);
  opacity: 0.85;
}

.spark--a {
  top: 18%;
  left: 8%;
}

.spark--b {
  top: 30%;
  right: 9%;
  width: 8px;
  height: 8px;
  background: rgba(255, 157, 183, 0.6);
  box-shadow: 0 0 0 6px rgba(255, 157, 183, 0.12);
}

.spark--c {
  top: 8%;
  left: 32%;
  width: 4px;
  height: 4px;
  background: rgba(255, 211, 125, 0.9);
  box-shadow: 0 0 0 4px rgba(255, 211, 125, 0.16);
}

.spark--d {
  top: 12%;
  right: 30%;
  width: 5px;
  height: 5px;
  background: rgba(185, 242, 226, 0.95);
  box-shadow: 0 0 0 5px rgba(185, 242, 226, 0.22);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: clamp(10px, 2.6vw, 26px);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 17px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  box-shadow: var(--shadow-sm);
}

.hero-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(185, 242, 226, 0.35);
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.hero-brand {
  font-size: clamp(0.92rem, 1.5vw, 1.06rem);
  font-weight: 900;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  color: var(--violet);
}

.hero-ask {
  font-size: clamp(2.2rem, 6.6vw, 4.6rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero-accent {
  color: var(--pink-deep);
  font-style: normal;
}

.hero-lede {
  max-width: 33em;
  margin-top: 18px;
  color: var(--ink-2);
  font-size: clamp(0.97rem, 1.3vw, 1.06rem);
  line-height: 1.92;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.hero-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: clamp(26px, 4.6vw, 46px);
  padding: 8px 0 clamp(96px, 12vw, 158px);
}

.hero-stage::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: min(600px, 88vw);
  aspect-ratio: 1 / 0.82;
  border-radius: 999px;
  background: radial-gradient(
    circle at 50% 46%,
    rgba(97, 91, 255, 0.18),
    rgba(97, 91, 255, 0) 66%
  );
  filter: blur(12px);
}

.phone {
  position: relative;
  z-index: 3;
  width: min(304px, 58vw);
  padding: 10px;
  border-radius: 46px;
  background: #fff;
  box-shadow: 0 56px 90px -52px rgba(46, 34, 120, 0.72),
    0 12px 28px -20px rgba(46, 34, 120, 0.4);
  transform: rotate(-1.4deg);
}

.phone::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 50%;
  z-index: 2;
  width: 32%;
  height: 8px;
  border-radius: 999px;
  background: rgba(43, 37, 81, 0.16);
  transform: translateX(-50%);
}

.phone-screen {
  overflow: hidden;
  border-radius: 37px;
  background: var(--lilac);
  aspect-ratio: 9 / 16;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.float-cover {
  position: absolute;
  z-index: 2;
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 34px 54px -32px rgba(46, 34, 120, 0.72);
}

.float-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.float-cover--left {
  left: 0;
  top: 15%;
  width: clamp(92px, 15vw, 178px);
  animation: drift-left 13s ease-in-out infinite;
}

.float-cover--right {
  right: 0;
  top: 25%;
  width: clamp(82px, 13vw, 156px);
  animation: drift-right 15s ease-in-out infinite;
}

.float-cover--right {
  right: 0;
  top: 25%;
  width: clamp(82px, 13vw, 156px);
  animation: drift-right 15s ease-in-out infinite;
}

@keyframes drift-left {
  0%,
  100% {
    transform: rotate(-9deg) translateY(0);
  }
  50% {
    transform: rotate(-9deg) translateY(-11px);
  }
}

@keyframes drift-right {
  0%,
  100% {
    transform: rotate(8deg) translateY(0);
  }
  50% {
    transform: rotate(8deg) translateY(-14px);
  }
}

.cloud-band {
  position: absolute;
  z-index: 0;
  left: -2%;
  right: -2%;
  bottom: -2px;
  height: clamp(74px, 11vw, 138px);
  pointer-events: none;
}

.cloud-band::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 48%;
  background: #fff;
}

.cloud {
  position: absolute;
  bottom: 30%;
  display: block;
  height: 92%;
  border-radius: 999px;
  background: #fff;
}

.cloud:nth-child(1) {
  left: -6%;
  width: 34%;
}

.cloud:nth-child(2) {
  left: 17%;
  width: 30%;
  height: 74%;
}

.cloud:nth-child(3) {
  left: 38%;
  width: 32%;
  height: 104%;
}

.cloud:nth-child(4) {
  left: 65%;
  width: 28%;
  height: 82%;
}

.cloud:nth-child(5) {
  left: 84%;
  width: 24%;
  height: 62%;
}

/* ---------- moods ---------- */

.moods {
  background: var(--paper);
  padding-top: clamp(40px, 6vw, 74px);
}

.mood-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 32px) clamp(14px, 2.2vw, 24px);
  margin-top: clamp(30px, 4.6vw, 56px);
  align-items: start;
}

.mood {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mood-shape {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 32px 24px;
  overflow: hidden;
  color: var(--ink);
  text-align: center;
  transition: transform 0.32s ease, box-shadow 0.32s ease;
}

.mood:hover .mood-shape {
  transform: translateY(-7px);
  box-shadow: var(--shadow-md);
}

.mood-shape::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -36px;
  right: -28px;
  width: 116px;
  height: 116px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.mood-name {
  font-size: clamp(1.32rem, 2.5vw, 1.62rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-indent: 0.1em;
}

.mood-line {
  padding-inline: 4px;
  color: var(--ink-2);
  font-size: 0.86rem;
  line-height: 1.72;
}

.mood-tag {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  color: rgba(43, 37, 81, 0.66);
}

.mood--drift .mood-shape {
  min-height: 206px;
  border-radius: 55% 45% 52% 48% / 58% 46% 54% 42%;
  background: linear-gradient(150deg, #ccf7ec, var(--mint) 60%, #a6e9d5);
}

.mood--pulse .mood-shape {
  min-height: 236px;
  border-radius: 999px;
  background: linear-gradient(155deg, #ffc3d2, var(--pink) 66%, #ff8fac);
}

.mood--pulse .mood-shape::after {
  top: auto;
  right: auto;
  bottom: 18px;
  left: 50%;
  width: 84px;
  height: 84px;
  background: rgba(255, 255, 255, 0.32);
  transform: translateX(-50%);
}

.mood--quest .mood-shape {
  min-height: 226px;
  border-radius: 50% 50% 28px 28px / 40% 40% 28px 28px;
  background: linear-gradient(160deg, #ffe4ae, var(--apricot) 64%, #ffc253);
}

.mood--heal .mood-shape {
  min-height: 204px;
  border-radius: 46px;
  background: linear-gradient(150deg, #f7f3ff, var(--lilac) 56%, #e1dbff);
}

.mood--heal .mood-shape::after {
  top: auto;
  right: -42px;
  bottom: -48px;
  width: 148px;
  height: 148px;
  background: rgba(97, 91, 255, 0.1);
}

@media (min-width: 720px) {
  .mood-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .mood--drift {
    margin-top: 18px;
  }

  .mood--pulse {
    margin-top: 58px;
  }

  .mood--quest {
    margin-top: 4px;
  }

  .mood--heal {
    margin-top: 74px;
  }
}

@media (max-width: 719px) {
  .moods {
    padding-top: clamp(34px, 7vw, 54px);
  }

  .mood-shape {
    padding: 26px 18px;
  }

  .mood--drift .mood-shape {
    min-height: 178px;
    border-radius: 46% 54% 44% 56% / 54% 44% 56% 46%;
  }

  .mood--pulse .mood-shape {
    min-height: 206px;
  }

  .mood--quest .mood-shape {
    min-height: 198px;
  }

  .mood--heal .mood-shape {
    min-height: 180px;
    border-radius: 36px;
  }

  .mood--pulse .mood-shape::after {
    width: 66px;
    height: 66px;
    bottom: 14px;
  }

  .mood--heal .mood-shape::after {
    width: 108px;
    height: 108px;
    right: -34px;
    bottom: -38px;
  }

  .mood-line {
    font-size: 0.82rem;
  }
}
/* ---------- reading ---------- */

.reading {
  background: var(--fog);
}

.reading .section-head {
  margin-bottom: clamp(30px, 5vw, 58px);
}

.reading-row {
  display: grid;
  gap: clamp(34px, 5vw, 46px);
}

.shot {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
}

.shot-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(230px, 34vw, 342px);
  padding: 18px;
  border-radius: 34px;
}

.shot-stage--phone {
  padding: 0;
  background: transparent;
}

.phone-stack {
  position: relative;
  width: min(238px, 82%);
}

.mini-phone {
  position: relative;
  width: 100%;
  padding: 8px;
  border-radius: 36px;
  background: #fff;
  box-shadow: 0 40px 70px -44px rgba(46, 34, 120, 0.72);
}

.mini-phone img {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 29px;
  object-fit: cover;
  background: var(--lilac);
}

.readout {
  position: absolute;
  top: 20px;
  left: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transform: translateX(-50%);
}

.readout-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--violet);
}

.progress-track {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 2;
  width: calc(100% - 44px);
  height: 6px;
  border-radius: 999px;
  background: rgba(43, 37, 81, 0.12);
  transform: translateX(-50%);
}

.progress-fill {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--violet), var(--pink));
}

.shot-stage--night {
  background: transparent;
}

.night-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 13px;
  width: 100%;
  max-width: 330px;
  aspect-ratio: 1 / 1.04;
  padding: 20px;
  overflow: hidden;
  border-radius: 34px;
  background: radial-gradient(120% 80% at 76% 8%, rgba(141, 136, 255, 0.36), rgba(141, 136, 255, 0) 58%),
    linear-gradient(158deg, #2c2657, #1d193c 62%, #241f4b);
  box-shadow: 0 44px 74px -44px rgba(26, 20, 62, 0.9);
  color: rgba(255, 255, 255, 0.7);
}

.night-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.55);
}

.night-moon {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--apricot);
  box-shadow: 0 0 22px rgba(255, 211, 125, 0.55);
}

.night-moon::after {
  content: "";
  position: absolute;
  top: -4px;
  left: -6px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #221d47;
}

.night-pages {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.night-cell {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.night-cell--wide {
  grid-column: 1 / -1;
}

.night-cell--tall {
  grid-row: span 2;
}

.night-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.56);
}

.night-switch {
  position: relative;
  width: 34px;
  height: 19px;
  border-radius: 999px;
  background: rgba(185, 242, 226, 0.85);
}

.night-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: #fff;
}

.shot-stage--cache {
  padding: 0;
  background: transparent;
}

.cache-panel {
  width: 100%;
  max-width: 320px;
  padding: 14px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-md);
}

.cache-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 6px 10px;
  color: var(--ink-2);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.cache-chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--mint-soft);
  color: #2b7f6b;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
}

.cache-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 6px;
  border-top: 1px dashed rgba(43, 37, 81, 0.14);
}

.cache-list li:first-child {
  border-top: 0;
}

.cache-list img {
  flex: none;
  width: 38px;
  height: 50px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--lilac);
}

.cache-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.cache-meta b {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.cache-meta i {
  color: var(--ink-3);
  font-size: 0.68rem;
  font-style: normal;
}

.cache-check {
  position: relative;
  flex: none;
  margin-left: auto;
  width: 17px;
  height: 17px;
  border-radius: 999px;
  background: var(--mint);
}

.cache-check::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 4px;
  width: 7px;
  height: 3px;
  border-left: 2px solid #216555;
  border-bottom: 2px solid #216555;
  transform: rotate(-45deg);
}
.shot-caption {
  padding-inline: 4px;
}

.shot-tag {
  display: inline-block;
  margin-bottom: 9px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(97, 91, 255, 0.1);
  color: var(--violet-deep);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.shot h3 {
  font-size: clamp(1.06rem, 1.7vw, 1.2rem);
  font-weight: 900;
}

.shot-caption p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.85;
}

/* ---------- library ---------- */

.library {
  background: var(--paper);
}

.shelf-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.shelf-note {
  max-width: 24rem;
  color: var(--ink-3);
  font-size: 0.9rem;
  line-height: 1.8;
}

.shelf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 34px) clamp(14px, 2vw, 26px);
  margin-top: clamp(30px, 4.6vw, 56px);
}

.book-cover {
  position: relative;
  display: block;
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  background: var(--lilac);
  box-shadow: var(--shadow-md);
  aspect-ratio: 3 / 4;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-top: 13px;
}

.book-title {
  font-size: clamp(0.98rem, 1.6vw, 1.08rem);
  font-weight: 900;
}

.book-type {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(97, 91, 255, 0.09);
  color: var(--violet-deep);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.book-line {
  margin-top: 5px;
  color: var(--ink-3);
  font-size: 0.86rem;
  line-height: 1.7;
}

@media (max-width: 420px) {
  .book-type {
    display: none;
  }
}

/* ---------- light habits ---------- */

.light {
  background: #f4f1ff;
}

.light-grid {
  display: grid;
  gap: clamp(30px, 4.6vw, 64px);
}

.light-intro h2 {
  margin-top: 14px;
  font-size: clamp(1.75rem, 3.7vw, 2.62rem);
}

.light-quote {
  margin-top: 24px;
  font-family: var(--font-serif);
  font-size: clamp(1.24rem, 2.3vw, 1.66rem);
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.light-quote::before {
  content: "「";
  color: var(--violet);
}

.light-quote::after {
  content: "」";
  color: var(--violet);
}

.light-note {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 0.92rem;
  line-height: 1.85;
  max-width: 26rem;
}

.habit-list {
  display: grid;
  align-content: start;
}

.habit {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: clamp(14px, 2vw, 22px);
  padding: clamp(20px, 2.6vw, 28px) 0;
  border-top: 1px dashed rgba(43, 37, 81, 0.18);
}

.habit:last-child {
  border-bottom: 1px dashed rgba(43, 37, 81, 0.18);
}

.habit-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
}

.habit-icon--shelf {
  background: var(--apricot-soft);
}

.habit-icon--shelf::before {
  content: "";
  width: 9px;
  height: 20px;
  border-radius: 3px;
  background: #b8862f;
  box-shadow: 13px 0 0 -2px #d9a541, -13px 0 0 -4px #e8c37e;
}

.habit-icon--progress {
  background: var(--lilac);
}

.habit-icon--progress::before {
  content: "";
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: conic-gradient(var(--violet) 0 68%, rgba(97, 91, 255, 0.18) 68% 100%);
}

.habit-icon--progress::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: var(--lilac);
}

.habit-icon--offline {
  background: var(--mint-soft);
}

.habit-icon--offline::before {
  content: "";
  width: 3px;
  height: 17px;
  border-radius: 2px;
  background: #2f8f79;
  transform: translateY(-3px);
}

.habit-icon--offline::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 11px;
  border-right: 3px solid #2f8f79;
  border-bottom: 3px solid #2f8f79;
  transform: translateY(3px) rotate(45deg);
}

.habit h3 {
  font-size: 1.06rem;
  font-weight: 900;
}

.habit p {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.85;
}

/* ---------- download ---------- */

.download {
  background: var(--fog);
  padding-top: clamp(20px, 3vw, 34px);
}

.download-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 5.4vw, 68px) clamp(22px, 4.4vw, 58px);
  border-radius: clamp(34px, 4.6vw, 56px);
  background: linear-gradient(148deg, #f1edff 0%, #fbf8ff 46%, #eff9f4 100%);
  box-shadow: 0 44px 90px -64px rgba(52, 40, 140, 0.7);
}

.download-panel::before,
.download-panel::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.download-panel::before {
  top: -140px;
  right: -90px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(185, 242, 226, 0.75), rgba(185, 242, 226, 0) 68%);
  filter: blur(10px);
}

.download-panel::after {
  bottom: -160px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 157, 183, 0.55), rgba(255, 157, 183, 0) 68%);
  filter: blur(10px);
}

.download-head {
  position: relative;
  z-index: 1;
  max-width: 34rem;
  margin: 0 auto clamp(24px, 3.4vw, 38px);
  text-align: center;
}

.download-head h2 {
  margin-top: 12px;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  letter-spacing: -0.02em;
}

.download-head p {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 0.96rem;
  line-height: 1.85;
}

.download-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 300px));
  justify-content: center;
  gap: 16px;
}

.download-card {
  border-radius: 28px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 46px -34px rgba(52, 40, 140, 0.6);
  color: var(--ink);
  transition: transform 0.28s ease, box-shadow 0.28s ease,
    background-color 0.28s ease;
}

.download-card:hover {
  transform: translateY(-4px);
  background: #fff;
  box-shadow: 0 32px 54px -34px rgba(52, 40, 140, 0.68);
}

.download-inner {
  display: flex;
  align-items: center;
  gap: 15px;
}

.download-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: 17px;
}

.download-icon--netdisk {
  background: var(--mint-soft);
}

.download-icon--netdisk::before {
  content: "";
  width: 17px;
  height: 17px;
  border-radius: 999px;
  background: #2f8f79;
  box-shadow: 10px -4px 0 -2px #2f8f79, 17px 4px 0 -5px #2f8f79;
  transform: translate(-4px, 2px);
}

.download-icon--android {
  background: var(--lilac);
}

.download-icon--android::before {
  content: "";
  width: 16px;
  height: 22px;
  border: 2.5px solid var(--violet-deep);
  border-radius: 5px;
}

.download-icon--android::after {
  content: "";
  position: absolute;
  bottom: 13px;
  width: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--violet-deep);
}

.download-icon--ios {
  background: var(--pink-soft);
}

.download-icon--ios::before {
  content: "";
  width: 22px;
  height: 4px;
  border-radius: 2px;
  background: var(--pink-deep);
}

.download-icon--ios::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 22px;
  border-radius: 2px;
  background: var(--pink-deep);
}

.download-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.download-name {
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.download-note {
  color: var(--ink-3);
  font-size: 0.8rem;
  line-height: 1.5;
}

.download-arrow {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  margin-left: auto;
  border-radius: 999px;
  background: rgba(97, 91, 255, 0.09);
}

.download-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-top: 2px solid var(--violet-deep);
  border-right: 2px solid var(--violet-deep);
  transform: translate(-65%, -50%) rotate(45deg);
}

.download-card:hover .download-arrow {
  background: rgba(97, 91, 255, 0.16);
}

/* ---------- footer ---------- */

.site-footer {
  position: relative;
  overflow: clip;
  background: #221d45;
  color: rgba(255, 255, 255, 0.66);
  padding: clamp(44px, 6vw, 74px) 0 34px;
}

.footer-grid {
  display: grid;
  gap: 30px;
}

.footer-brand .brand {
  color: #fff;
}

.footer-brand p {
  margin-top: 14px;
  max-width: 22rem;
  font-size: 0.9rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.58);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 0.24s ease;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-title {
  display: block;
  margin-bottom: 14px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.38);
}

.footer-domain {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
}

.footer-domain::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--mint);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: clamp(30px, 4vw, 48px);
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.58);
}

/* ---------- 404 ---------- */

.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--fog);
}

.error-header {
  padding: 22px clamp(14px, 4vw, 30px) 0;
}

.error-header .brand {
  display: inline-flex;
}

.error-main {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  overflow: clip;
  padding: clamp(30px, 6vw, 70px) 0;
  text-align: center;
}

.error-main::before {
  content: "";
  position: absolute;
  top: 6%;
  left: 50%;
  width: min(560px, 92vw);
  aspect-ratio: 1 / 0.86;
  border-radius: 999px;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(97, 91, 255, 0.16),
    rgba(97, 91, 255, 0) 68%
  );
  transform: translateX(-50%);
  filter: blur(10px);
}

.error-inner {
  position: relative;
  z-index: 1;
  width: min(640px, 92vw);
  margin-inline: auto;
}

.error-clouds {
  position: relative;
  width: 200px;
  height: 100px;
  margin: 0 auto 18px;
}

.error-clouds span {
  position: absolute;
  bottom: 0;
  display: block;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 18px 40px -26px rgba(52, 40, 140, 0.6);
}

.error-clouds span:nth-child(1) {
  left: 0;
  width: 92px;
  height: 62px;
}

.error-clouds span:nth-child(2) {
  left: 46px;
  bottom: 22px;
  width: 108px;
  height: 78px;
}

.error-clouds span:nth-child(3) {
  left: 126px;
  width: 74px;
  height: 52px;
}

.error-code {
  display: inline-block;
  padding: 4px 20px;
  border-radius: 999px;
  background: rgba(97, 91, 255, 0.1);
  color: var(--violet-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
}

.error-inner h1 {
  margin-top: 18px;
  font-size: clamp(2rem, 5.6vw, 3.4rem);
  letter-spacing: -0.02em;
}

.error-lede {
  max-width: 26rem;
  margin: 16px auto 0;
  color: var(--ink-2);
  font-size: 0.98rem;
  line-height: 1.9;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.error-foot {
  padding: 18px 0 30px;
  text-align: center;
  color: var(--ink-3);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

/* ---------- responsive ---------- */

@media (min-width: 720px) {
  .shelf-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .book:nth-child(3n + 2) {
    margin-top: 46px;
  }

  .light-grid {
    grid-template-columns: 0.92fr 1.08fr;
    align-items: start;
  }

  .light-intro {
    position: sticky;
    top: 118px;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    align-items: start;
  }
}

@media (min-width: 900px) {
  .float-cover--left {
    left: 14%;
    top: 13%;
  }

  .float-cover--right {
    right: 12%;
    top: 27%;
  }

  .reading-row {
    grid-template-columns: 1fr 1.16fr 1fr;
    align-items: start;
  }

  .shot:nth-child(2) {
    margin-top: 54px;
  }

  .shot:nth-child(3) {
    margin-top: 18px;
  }

  .reading .section-head {
    text-align: left;
    margin-inline: 0;
    max-width: 36rem;
  }
}

@media (max-width: 899px) {
  .reading .section-head {
    margin-bottom: clamp(24px, 5vw, 40px);
  }

  .shot {
    width: min(420px, 100%);
    margin-inline: auto;
  }

  .shot:nth-child(2) {
    width: min(380px, 100%);
    margin-left: auto;
    margin-right: 0;
  }

  .shot:nth-child(3) {
    width: min(390px, 100%);
    margin-left: 0;
    margin-right: auto;
  }
}

@media (max-width: 859px) {
  .header-shell {
    padding: 8px 9px 8px 15px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin-left: 0;
    padding: 14px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 34px 60px -34px rgba(52, 40, 140, 0.62);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.24s ease, transform 0.24s ease,
      visibility 0.24s ease;
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-list a {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.95rem;
  }

  .nav-cta {
    padding: 13px 18px;
    margin-top: 4px;
  }
}

@media (max-width: 719px) {
  .moods {
    padding-top: clamp(34px, 7vw, 54px);
  }

  .mood {
    padding: 20px 18px;
  }

  .mood--drift {
    min-height: 196px;
    border-radius: 42% 58% 38% 62% / 50% 42% 58% 50%;
  }

  .mood--pulse {
    min-height: 238px;
  }

  .mood--quest {
    min-height: 222px;
    border-radius: 50% 50% 28px 28px / 30% 30% 28px 28px;
  }

  .mood--heal {
    min-height: 204px;
    border-radius: 36px;
  }

  .mood::after {
    width: 88px;
    height: 88px;
    top: -28px;
    right: -26px;
  }

  .mood--pulse::after {
    width: 76px;
    height: 76px;
    bottom: 22%;
  }

  .mood--heal::after {
    width: 118px;
    height: 118px;
    right: -34px;
    bottom: -38px;
  }

  .shelf-intro {
    align-items: flex-start;
  }

  .shelf-note {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 519px) {
  .hero-actions .btn {
    padding: 14px 24px;
    font-size: 0.94rem;
  }

  .hero-lede {
    max-width: 22em;
  }

  .float-cover {
    border-radius: 15px;
  }

  .float-cover--left {
    width: 82px;
    top: 12%;
  }

  .float-cover--right {
    width: 74px;
    top: 28%;
  }

  .shot-stage {
    border-radius: 28px;
  }

  .night-panel {
    border-radius: 28px;
  }

  .download-card {
    padding: 18px;
    border-radius: 24px;
  }

  .download-icon {
    width: 46px;
    height: 46px;
    border-radius: 15px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .float-cover {
    animation: none;
  }
}