:root {
  --paper: #f6f1e8;
  --ink: #3a322c;
  --mute: #8a7d72;
  --line: #cfc4b6;
  --accent: #6b5848;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: "Georgia", "Songti SC", "Noto Serif SC", serif;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* rain */
.rain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.drop {
  position: absolute;
  top: -10vh;
  width: 1px;
  height: 18px;
  background: rgba(90, 80, 70, 0.18);
  animation: fall linear infinite;
}
@keyframes fall {
  to { transform: translateY(120vh); }
}

.wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 64px;
}

/* landing */
.mug {
  width: min(340px, 72vw);
  height: auto;
  display: block;
  animation: float 5s ease-in-out infinite;
}
.steam {
  position: absolute;
  left: 50%;
  top: 18%;
  width: 80px;
  height: 90px;
  transform: translateX(-70%);
  pointer-events: none;
}
.steam i {
  position: absolute;
  bottom: 0;
  width: 10px;
  height: 40px;
  border: 1.5px solid rgba(90,80,70,.28);
  border-color: transparent transparent transparent rgba(90,80,70,.28);
  border-radius: 50%;
  animation: steam 3.6s ease-in-out infinite;
}
.steam i:nth-child(1) { left: 18px; animation-delay: 0s; }
.steam i:nth-child(2) { left: 36px; height: 52px; animation-delay: .6s; }
.steam i:nth-child(3) { left: 52px; animation-delay: 1.2s; }
@keyframes steam {
  0% { opacity: 0; transform: translateY(10px) scaleX(.8); }
  30% { opacity: .7; }
  100% { opacity: 0; transform: translateY(-50px) scaleX(1.1); }
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.title {
  margin: 28px 0 0;
  font-size: 22px;
  letter-spacing: .12em;
  font-weight: 400;
}
.hint {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--mute);
  letter-spacing: .16em;
}

.landing { cursor: pointer; }

/* inner pages */
nav {
  width: min(880px, 100%);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 4px 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
  font-size: 14px;
}
nav .brand { letter-spacing: .14em; }
nav ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; color: var(--mute); }
nav a { color: var(--mute); }
nav a.active, nav a:hover { color: var(--ink); text-decoration: none; }

.page {
  width: min(880px, 100%);
  padding-bottom: 80px;
}

.hero {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px 32px;
  align-items: start;
}
@media (max-width: 640px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  nav { flex-direction: column; gap: 12px; }
}

.cat {
  width: 132px;
  height: auto;
  justify-self: center;
}

.now-line {
  font-size: 18px;
  line-height: 1.6;
}
.now-line em { font-style: normal; color: var(--mute); font-size: 14px; }

.list { list-style: none; padding: 0; margin: 0; }
.list li {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.list .when { font-size: 12px; color: var(--mute); letter-spacing: .08em; margin-bottom: 6px; }

.music-art {
  width: min(280px, 70vw);
  display: block;
  margin: 10px auto 24px;
  animation: float 6s ease-in-out infinite;
}

.note { color: var(--mute); font-size: 14px; line-height: 1.7; }

.about {
  font-size: 17px;
  line-height: 1.85;
  max-width: 36em;
}
.about p { margin: 0 0 1em; }
.sign { letter-spacing: .08em; margin-top: 1.6em; }

.player {
  width: min(420px, 100%);
  margin: 8px auto 18px;
  aspect-ratio: 16 / 9;
  border: 0;
}
.qq-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--mute);
  letter-spacing: .06em;
}
.play-btn {
  display: inline-block;
  padding: 10px 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  letter-spacing: .08em;
  font-size: 14px;
  text-decoration: none;
}
.play-btn:hover {
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.book-drop {
  position: absolute;
  top: -8vh;
  width: 11px;
  height: 15px;
  background: #c4a574;
  border: 1px solid rgba(58,50,44,.25);
  border-radius: 1px 2px 2px 1px;
  animation: fall linear infinite;
  opacity: .55;
}
.book-drop:nth-child(3n) { background: #d9c4a8; width: 9px; height: 13px; }
.book-drop:nth-child(4n) { background: #8b6b4a; }

.shelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 28px 22px;
}
.book-card { text-align: center; }
.cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #e8d9c4;
  border: 1px solid var(--line);
  display: block;
  margin-bottom: 10px;
}
.cover.blank {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #6b5848;
}
.book-title {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  background: none;
  border: 0;
  font: inherit;
  padding: 0;
}
.book-title:hover { color: var(--accent); }
.book-author { display: block; margin-top: 4px; font-size: 12px; color: var(--mute); }

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(246,241,232,.72);
  z-index: 5;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.overlay.on { display: flex; }
.notes {
  width: min(420px, 100%);
  background: #fff6c8;
  box-shadow: 4px 6px 0 rgba(58,50,44,.08), 0 18px 40px rgba(58,50,44,.12);
  transform: rotate(-1.2deg);
  padding: 22px 22px 18px;
  position: relative;
}
.notes:before {
  content: "";
  position: absolute;
  top: -10px;
  left: 28px;
  width: 46px;
  height: 18px;
  background: rgba(230, 80, 80, .35);
  transform: rotate(-8deg);
}
.notes h3 { margin: 8px 0 4px; font-size: 18px; font-weight: 400; }
.notes .close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--mute);
}
.sticky {
  background: #fffdf0;
  margin: 12px 0;
  padding: 10px 12px;
  transform: rotate(.4deg);
  font-size: 14px;
  line-height: 1.75;
}
.sticky .quote { margin: 0; }
.sticky .thought {
  margin: 12px 0 0;
  color: var(--mute);
  font-size: 13px;
}
