* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 17px;
}

body {
  background-color: #f7f7f2;
  color: #1a1a1a;
  font-family: 'Courier New', Courier, monospace;
  line-height: 2;
  min-height: 100vh;
  letter-spacing: 0.01em;
}

::selection {
  background: rgba(0, 0, 0, 0.08);
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 20vh 2rem 15vh;
}

.content-section {
  margin-bottom: 20vh;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 2s ease-out, transform 2s ease-out;
}

.content-section.visible {
  opacity: 1;
  transform: translateY(0);
}

h2 {
  font-weight: normal;
  font-size: 0.9rem;
  margin-bottom: 3rem;
  text-transform: lowercase;
  letter-spacing: 0.12em;
  opacity: 0.5;
}

#bible-content,
#poem-content {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

#bible-content p {
  margin-bottom: 1.8em;
  text-indent: 2.5em;
}

#bible-content p:first-child {
  text-indent: 0;
}

#poem-content {
  white-space: pre-wrap;
  line-height: 2.2;
}

#poem-content p {
  text-indent: 0;
  margin-bottom: 0;
}

#poem-note {
  margin-top: 4rem;
  font-size: 0.8rem;
  opacity: 0.4;
  letter-spacing: 0.05em;
}

#comments-list {
  margin-bottom: 4rem;
  min-height: 2rem;
}

.comment {
  margin-bottom: 2rem;
  text-align: justify;
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.comment-author {
  font-style: italic;
  opacity: 0.5;
}

.comment-author::after {
  content: ' — ';
  opacity: 0.3;
}

.comment-text {
  display: inline;
}

#comment-form {
  margin-top: 3rem;
}

#comment-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-family: inherit;
  font-size: 1rem;
  line-height: 2;
  padding: 0.75rem 0;
  outline: none;
  transition: border-color 0.6s ease;
}

#comment-input:focus {
  border-bottom-color: rgba(0, 0, 0, 0.25);
}

#comment-input::placeholder {
  color: rgba(0, 0, 0, 0.2);
  font-style: italic;
}

#comment-input:disabled {
  opacity: 1;
}

#comment-input:disabled::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

@media (max-width: 600px) {
  html {
    font-size: 16px;
  }
  
  main {
    padding: 12vh 1.5rem 10vh;
  }
  
  .content-section {
    margin-bottom: 15vh;
  }
  
  h2 {
    margin-bottom: 2rem;
  }
}

.loading {
  opacity: 0.2;
  font-style: italic;
}

.error {
  opacity: 0.4;
  font-style: italic;
}

.separator {
  width: 100%;
  height: 1px;
  background: transparent;
  margin: 0;
}

.symbol {
  text-align: center;
  font-family: 'Times New Roman', serif;
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.15);
  user-select: none;
}

.symbol-top {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.symbol-bottom {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.timeline {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  padding: 0 2rem;
  opacity: 0;
  transition: opacity 1s ease-out;
}

.timeline.visible {
  opacity: 1;
}

.timeline-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  cursor: default;
  transition: background 0.3s ease, transform 0.3s ease;
}

.timeline-dot.has-content {
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.timeline-dot.has-content:hover {
  background: rgba(0, 0, 0, 0.4);
  transform: scale(1.4);
}

.timeline-dot.current {
  background: rgba(0, 0, 0, 0.5);
  transform: scale(1.3);
}

.timeline-dot.current:hover {
  transform: scale(1.4);
}

#comment-form.hidden {
  display: none;
}
