/* Guestbook page-specific styles */

.guestbook-shell {
  width: min(1000px, calc(100% - 30px));
  margin: 32px auto;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(55, 44, 34, 0.18);
}

.guestbook-shell .site-header,
.guestbook-shell .guestbook-main,
.guestbook-shell footer {
  width: 100%;
  margin: 0;
}

.guestbook-header {
  border-radius: 16px 16px 0 0;
  border-bottom-width: 7px;
  box-shadow: none;
}

.guestbook-main {
  padding: clamp(24px, 4vw, 40px);
  background:
    linear-gradient(rgba(255, 251, 240, 0.94), rgba(255, 251, 240, 0.94)),
    url("background.jpg");
  background-repeat: repeat;
  background-position: top left;
  border-left: 2px solid var(--line);
  border-right: 2px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.guestbook-entry {
  padding: 0;
}

.guestbook-entry h2 {
  margin: 0 0 14px;
  color: var(--red-dark);
  font-family: "Fredoka", sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
}

.guestbook-notice {
  margin: 22px 0;
  padding: 12px 16px;
  color: #fffaf2;
  background: #8da3aa;
  border: 3px solid #667d85;
  border-radius: 6px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.18);
  font-family: "Silkscreen", monospace;
  font-size: 0.6rem;
  line-height: 1.65;
  letter-spacing: 0.04em;
  text-align: center;
}

.guestbook-frame {
  width: 100%;
  padding: 12px;
  background: var(--red);
  border: 3px solid var(--red-dark);
  border-radius: 8px;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.15),
    4px 5px 0 rgba(126, 46, 50, 0.12);
}

.guestbook-frame iframe {
  display: block;
  width: 100%;
  min-height: 760px;
  background: var(--paper);
  border: 5px solid #4d5552;
  border-radius: 6px;
}

.guestbook-navigation {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}

.guestbook-navigation a {
  display: inline-block;
  padding: 10px 15px;
  color: var(--paper);
  background: var(--red);
  border: 2px solid var(--red-dark);
  border-radius: 5px;
  box-shadow: 0 3px 0 var(--red-dark);
  font-family: "Fredoka", sans-serif;
  font-weight: 500;
  text-decoration: none;
  transition:
    color 0.1s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.guestbook-navigation a:hover,
.guestbook-navigation a:focus-visible {
  color: white;
  background: var(--blue);
  border-color: #356b87;
  box-shadow: 0 5px 0 #356b87;
  transform: translateY(-2px);
}

.guestbook-navigation a:active {
  box-shadow: 0 1px 0 #356b87;
  transform: translateY(1px);
}

.guestbook-save-message {
  margin-top: 28px;
}

.guestbook-footer {
  padding: 18px 22px;
  color: white;
  background: var(--red);
  border: 2px solid var(--red-dark);
  border-top-width: 7px;
  border-radius: 0 0 16px 16px;
  box-shadow: none;
  text-align: center;
}

.guestbook-footer p {
  margin: 3px 0;
}

.guestbook-footer .credit {
  font-size: 0.72rem;
  opacity: 0.82;
}

@media (max-width: 600px) {
  .guestbook-shell {
    width: min(100% - 18px, 1000px);
    margin: 12px auto;
  }

  .guestbook-header {
    padding: 22px 18px;
  }

  .guestbook-main {
    padding: 22px 16px;
  }

  .guestbook-frame {
    padding: 8px;
  }

  .guestbook-frame iframe {
    min-height: 850px;
  }

  .guestbook-navigation {
    flex-direction: column;
  }

  .guestbook-navigation a {
    width: 100%;
    text-align: center;
  }
}