.guestbook {
  position: relative;
  display: grid;
  min-height: 83svh;
  padding-block: clamp(34px, 6.3svh, 86px) clamp(40px, 6svh, 78px);
  scroll-margin-top: calc(var(--site-nav-height) + var(--site-nav-inset) + env(safe-area-inset-top, 0px) + 16px);
  overflow: hidden;
  border-top: 1px solid #f4f1ea18;
}
.guestbook > .guestbook-inner {
  width: min(100%, 1370px); margin-block: 0; padding-block: 0;
  align-self: start; display: flex; flex-direction: column;
}
.guestbook-head { display: flex; justify-content: space-between; align-items: start; gap: 26px; }
.guestbook-heading { position: relative; display: inline-flex; align-items: baseline; }
.guestbook-heading h2 {

  --guest-ink-width: clamp(114px, 14vw, 220px);
  margin: 0; font-size: clamp(42px, 6vw, 88px); font-weight: 850;
  line-height: 1.09; letter-spacing: -.055em; position: relative; z-index: 3;
  text-shadow: 0 .035em .07em #000, 0 .075em .17em #000e;
}
#guestbook-title::before, #guestbook-title > .signature-ink {
  inset-inline-start: calc(100% - var(--guest-ink-width) / 3);
  inset-block-start: 52%;
  width: var(--guest-ink-width);
  aspect-ratio: 3.26;
}
.guestbook .guestbook-footprints {
  color: #e8e1d5bb; margin: 18px 0 0; font: 400 clamp(14px,1.15vw,18px)/1.5 var(--subtitle-font);
}
.guestbook-actions { display: flex; align-items: center; gap: clamp(9px, 2vw, 22px); }
.guestbook-actions button, .guest-form-foot button {
  border: 1px solid #eeeae075; color: #f4f1ea; background: #131313b8;
  border-radius: 100px; white-space: nowrap; cursor: pointer;
  min-height: 42px; padding: 0 16px; font: 650 13px/1 var(--subtitle-font);
  transition: background 180ms ease, border-color 180ms ease;
}
.guestbook-actions button:last-child { background: transparent; border-color: transparent; }
.guestbook-actions button:hover, .guest-form-foot button:hover { background: #f4f1ea20; border-color: #f4f1ea9a; }
.guestbook-actions button span { display: inline-block; width: 5px; height: 5px; background: #ff0000; margin-left: 8px; vertical-align: .15em; }
.guestbook-field { position: relative; flex: 1; min-height: clamp(245px, 34svh, 440px); margin-top: 18px; }
.guestbook-float {
  position: absolute; margin: 0;
  inset-inline-start: calc(var(--lane) * (100% / var(--lanes)) + var(--x-offset));
  inset-block-start: var(--y-offset);
  width: calc(100% / var(--lanes) - 8%);
}
.guestbook-float blockquote, .guestbook-still blockquote, .guestbook-list-item blockquote {
  margin: 0; white-space: pre-wrap; overflow-wrap: anywhere;
  color: #f4f1ea; font: 400 clamp(15px,1.8vw,27px)/1.6 var(--subtitle-font);
}
.guestbook-float blockquote, .guestbook-still blockquote {
  overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4;
  text-shadow: 0 3px 15px #000;
}
.guestbook-float blockquote::before { content: ''; display: inline-block; width: 5px; height: 5px; margin-right: 9px; vertical-align: .3em; background: #ff0000; }
.guestbook figure figcaption, .guestbook-list-item figcaption {
  margin-top: 7px; color: #e5dfd3aa; font: 400 13px/1.4 var(--subtitle-font);
}
.guestbook-empty {
  position: absolute; inset-inline: var(--edge); top: 57%; margin: 0; text-align: center;
  color: #d1c8bf9c; font: 400 15px/1.6 var(--subtitle-font);
}
.guestbook-still { display: inline-block; width: 30%; margin: 24px 1%; vertical-align: top; }
.guestbook-dialog {
  color: #f4f1ea; background: #131313; border: 1px solid #f4f1ea32; border-radius: 22px;
  padding: clamp(18px, 4vw, 32px); width: min(560px, calc(100vw - 30px)); max-height: 88svh;
}
.guestbook-dialog::backdrop {
  background: #050505c9; backdrop-filter: blur(5px); opacity: 1; transition: opacity 240ms ease;
}
.guestbook-dialog[data-closing]::backdrop { opacity: 0; }
.guestbook-dialog[data-closing] { pointer-events: none; }
@starting-style { .guestbook-dialog[open]::backdrop { opacity: 0; } }
.guest-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.guest-dialog-head h2 { margin: 0; font-size: 28px; }
.guest-close {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  background: #fff1; color: inherit; border: 1px solid #fff2; font-size: 18px;
}
.guestbook-dialog form { display: grid; gap: 15px; }
.guestbook-dialog label { display: grid; gap: 6px; font: 550 13px/1.5 var(--subtitle-font); }
.guestbook-dialog label small { color: #d1c8bdad; font: 400 12px/1.5 var(--subtitle-font); }
.guestbook-dialog :is(input, textarea) {
  width: 100%; padding: 10px 12px; color: #f4f1ea; background: #080808;
  border: 1px solid #fff3; border-radius: 10px; font: 400 16px/1.55 var(--subtitle-font);
}
.guestbook-dialog textarea { resize: vertical; }
.guest-form-foot { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.guest-form-foot p { margin: 0; flex: 1; color: #e4dcd1; font: 400 13px/1.45 var(--subtitle-font); }
.guestbook-list { display: grid; gap: 0; }
.guestbook-list-item { margin: 0; padding-block: 18px; border-bottom: 1px solid #fff2; }
.guestbook-list-item blockquote { font-size: 17px; }
.circular-dialog .viewer-footer { display: grid; place-items: center; justify-content: center; gap: 8px; }
.circular-dialog .viewer-footer #count { position: static; translate: none; transform: none; margin: 0; }
.circular-dialog .viewer-pill {
  display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 100px;
  background: #111111eb; color: #f4f1ea; border: 1px solid #fff3;
  box-shadow: 0 8px 26px #0008; pointer-events: auto;
}
.circular-dialog .viewer-pill button {
  position: static; transform: none; margin: 0; padding: 0; display: grid; place-items: center;
  width: 42px; height: 42px; min-width: 42px; border-radius: 50%;
  background: transparent; color: inherit; border: 0; font-size: 19px; cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}
.circular-dialog .viewer-pill button:disabled { opacity: .42; cursor: default; }
.circular-dialog .viewer-pill button:hover { background: #fff2; }
.circular-dialog .viewer-pill .viewer-heart[aria-pressed="true"] { background: #ff000023; color: #ff2222; }
.viewer-heart[aria-pressed="true"] svg path { fill: currentColor; }
.circular-dialog .viewer-pill .close { box-shadow: none; }
.community-sr {
  position: absolute; inline-size: 1px; block-size: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.catalog-empty { padding: 24px; text-align: center; color: #d1c8bf; }
@media (max-width: 620px) {
  .guestbook-head { flex-direction: column; gap: 15px; }
  .guestbook-heading h2 { --guest-ink-width: 118px; }
  .guestbook-field { min-height: 270px; }
  .guestbook-still { width: 46%; }
  .guestbook-still:nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .viewer-pill button, .guestbook-actions button, .guestbook-dialog::backdrop { transition: none; }
}

.land-grid a[data-unpublished] { display: none; }
