:root {
  --black: #000000;
  --text: #c9c5bd;
  --text-dim: #4a4742;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: Georgia, 'Times New Roman', serif;
  min-height: 100vh;
}

a { color: inherit; }

.home-label {
  position: fixed;
  top: 28px;
  left: 32px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.shelf {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px;
}

.diaries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 220px));
  gap: 40px;
  justify-content: center;
}

.diary-card {
  display: block;
  width: 220px;
  height: 300px;
  background: linear-gradient(180deg, #0a0a0a, #030303);
  border: 1px solid #1b1917;
  padding: 22px 20px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  opacity: 0.82;
  transition: opacity 0.6s ease, border-color 0.6s ease;
}

.diary-card:hover {
  opacity: 1;
  border-color: #332c28;
}

.diary-card .snippet {
  font-size: 0.8rem;
  line-height: 1.9;
  color: var(--text-dim);
  white-space: pre-line;
}

.diary-card .fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 90px;
  background: linear-gradient(180deg, rgba(3,3,3,0) 0%, #030303 90%);
}

.diary-card .title {
  position: absolute;
  left: 20px;
  bottom: 18px;
  font-size: 0.85rem;
  color: var(--text);
  letter-spacing: 0.03em;
}


.diary-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 90px 24px;
}

.diary-page .entry {
  max-width: 480px;
}

.diary-page p {
  font-size: 1.05rem;
  line-height: 1.9;
  margin: 0 0 18px;
}

.home-btn {
  position: fixed;
  top: 28px;
  left: 32px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-decoration: none;
}
.home-btn:hover { color: var(--text); }
