/* ─── Guestbook ─── */

.guestbook {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 40px 120px;
}

.guestbook-title {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 12px;
}

.guestbook-subtitle {
  font-size: 24px;
  margin-bottom: 48px;
}

/* ─── Form ─── */

.guestbook-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 64px;
}

.guestbook-form input,
.guestbook-form textarea {
  padding: 8px 16px;
  border: 2px solid #000;
  border-bottom: none;
  border-radius: 0;
  background: none;
  color: #000;
  font-family: inherit;
  font-size: 24px;
  outline: none;
  resize: none;
}

.guestbook-form input:first-of-type {
  border-radius: 8px 8px 0 0;
}

.guestbook-form input::placeholder,
.guestbook-form textarea::placeholder {
  color: #000;
}

.guestbook-form textarea {
  min-height: 120px;
}

.guestbook-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
  tab-index: -1;
}

.guestbook-submit {
  padding: 8px 20px;
  border: 2px solid #000;
  border-radius: 0 0 8px 8px;
  background: none;
  color: #000;
  font-family: inherit;
  font-size: 24px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.guestbook-submit:hover {
  background: #000;
  color: #fff;
}

.guestbook-submit:disabled {
  opacity: 0.5;
  cursor: default;
}

.guestbook-status {
  font-size: 24px;
  margin-top: 16px;
  min-height: 1.5em;
}

/* ─── Entries ─── */

.guestbook-entries {
  display: flex;
  flex-direction: column;
}

.guestbook-entry {
  padding: 24px 0;
  border-top: 2px solid #000;
}

.guestbook-entry:last-child {
  border-bottom: 2px solid #000;
}

.guestbook-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  gap: 16px;
}

.guestbook-entry-name {
  font-size: 24px;
}

.guestbook-entry-time {
  font-size: 24px;
  color: #000;
  white-space: nowrap;
}

.guestbook-entry-message {
  font-size: 24px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}

.guestbook-empty {
  font-size: 24px;
  color: #000;
  padding: 24px 0;
}

/* ─── Responsive ─── */

@media (max-width: 860px) {
  .guestbook {
    padding: 24px 32px 80px;
  }

  .guestbook-title,
  .guestbook-subtitle,
  .guestbook-entry-name,
  .guestbook-entry-message,
  .guestbook-entry-time,
  .guestbook-status {
    font-size: 20px;
  }

  .guestbook-form input,
  .guestbook-form textarea,
  .guestbook-submit {
    font-size: 20px;
  }

  .guestbook-empty {
    font-size: 20px;
  }
}
