/* Small-window policy: preserve the full desktop canvas and allow horizontal
   scrolling instead of rearranging or compressing the original blog art.
   Historical narrow-screen rules below remain inactive on purpose. */
main.guestbook-main{height:calc(100dvh - 60px);min-height:620px;padding:38px clamp(20px,3.4vw,46px) 26px;background:#fff2e7 url('/assets/blog/patterns/home-brush-letters.jpg') center/430px 430px repeat}
.guestbook-page{height:100%;max-width:1040px;margin:auto;display:flex;flex-direction:column;gap:20px;min-height:0;color:#765b47;font:16px/1.5 Basiic,RainyHearts,"Courier New",sans-serif}
.guestbook-intro{display:grid;grid-template-columns:minmax(0,1fr) 96px;align-items:center;gap:22px;flex:none}
.guestbook-intro h1{margin:0 0 8px;font:inherit;font-size:28px;line-height:1.1;color:#86583e}
.guestbook-intro p{margin:0;font-size:15px;line-height:1.5;max-width:850px}
.guestbook-intro img{display:block;width:96px;height:86px;object-fit:contain}
.guestbook-layout{display:grid;grid-template-columns:minmax(265px,.85fr) minmax(0,1.5fr);gap:24px;flex:1;min-height:0}
.guestbook-paper{min-height:0;background:#fffaf1;border:2px solid #d8b291;border-radius:20px 24px 18px 21px;box-shadow:0 4px 0 #bf92642b;padding:20px 22px}
.guestbook-paper h2{font:inherit;font-size:20px;line-height:1.25;color:#926347;margin:0}
.guestbook-form-paper{display:flex;flex-direction:column;gap:16px;background:#fff7ef}
#guestbookForm{display:flex;flex-direction:column;gap:12px;flex:1;min-height:0}
.guestbook-field{display:flex;flex-direction:column;gap:5px;font-size:14px;color:#9b7157}
.guestbook-field input,.guestbook-field textarea{width:100%;min-width:0;box-sizing:border-box;border:1.5px solid #ddbea4;background:#fffdf6;border-radius:10px 12px 9px 11px;padding:9px 11px;color:#76533e;font:16px/1.4 Basiic,RainyHearts,sans-serif}
.guestbook-field input:focus-visible,.guestbook-field textarea:focus-visible{outline:2px dashed #c39387;outline-offset:3px}
.guestbook-message-field{flex:1;min-height:100px}
.guestbook-field textarea{flex:1;min-height:150px;resize:vertical}
.guestbook-contact-option{display:flex;gap:7px;align-items:flex-start;font-size:13px;line-height:1.35;color:#9a7c68}
.guestbook-contact-option input{margin:2px 0 0;accent-color:#be9279;flex:none}
.guestbook-contact-note{font-size:12px;line-height:1.45;color:#a48672;margin:0}
.guestbook-contact-note a{color:#a16d61;text-underline-offset:3px;overflow-wrap:anywhere}
.guestbook-send{align-self:center;display:inline-flex;align-items:center;justify-content:center;width:90px;height:90px;min-height:90px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;cursor:pointer;touch-action:manipulation}
.guestbook-send img{display:block;width:90px;height:90px;max-width:100%;object-fit:contain;transition:transform .18s ease}
.guestbook-send:hover img{transform:translateY(-2px) scale(1.06)}
.guestbook-send:focus-visible{outline:2px dashed #c39387;outline-offset:4px}
.guestbook-send:disabled{opacity:.6;cursor:wait}
.guestbook-send:disabled img{transform:none}
@media(prefers-reduced-motion:reduce){.guestbook-send img{transition:none}.guestbook-send:hover img{transform:none}}
.guestbook-form-status{min-height:18px;margin:0;font-size:13px;line-height:1.35;color:#a26b62}
.guestbook-notes-paper{display:flex;flex-direction:column;gap:14px;padding-right:14px}
.guestbook-notes-heading{padding-right:8px;flex:none}
.guestbook-notes-heading p{font-size:13px;color:#aa8970;margin:4px 0 0}
.guestbook-messages{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 10px 4px 0;scrollbar-width:thin;scrollbar-color:#d4af94 transparent}
.guestbook-load-status{margin:0;color:#aa8870;font-size:14px}
.guestbook-message{display:grid;grid-template-columns:38px minmax(0,1fr);gap:11px;margin:0 0 18px;padding:0 0 18px;border-bottom:1px dashed #e7d1ba}
.guestbook-message:last-child{border-bottom:0;margin-bottom:0;padding-bottom:0}
.guestbook-avatar{width:38px;height:38px;object-fit:contain;margin-top:2px}
.guestbook-message-name{font-size:17px;font-weight:400;color:#916144;overflow-wrap:anywhere}
.guestbook-message-date{display:block;font-size:11px;line-height:1.5;color:#b29883;margin:2px 0 5px}
.guestbook-message-contact{display:block;font-size:12px;color:#ac8977;margin:2px 0 6px;overflow-wrap:anywhere}
a.guestbook-message-contact{text-decoration:none}
.guestbook-message-body{margin:0;font-size:15px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;color:#7b6653}
.guest-owner-reply{margin-top:10px;padding:9px 12px;border-left:2px solid #d8ac99;border-radius:0 11px 12px 0;background:#f9ebe2;font-size:14px;line-height:1.5;color:#9b7065;white-space:pre-wrap;overflow-wrap:anywhere}
.guest-owner-reply-label{display:block;font-size:12px;color:#b38777;margin-bottom:5px}
@media (max-width: 0px){main.guestbook-main{padding:34px 24px 24px}.guestbook-page{gap:16px}.guestbook-intro p{font-size:14px}.guestbook-layout{gap:16px;grid-template-columns:minmax(250px,.9fr) minmax(0,1.3fr)}.guestbook-paper{padding:17px 16px}}
@media (max-width: 0px){main.guestbook-main{height:auto;min-height:calc(100dvh - 60px);padding:32px 18px}.guestbook-page{height:auto}.guestbook-intro{grid-template-columns:1fr 76px;gap:12px}.guestbook-intro img{width:76px;height:76px}.guestbook-layout{display:flex;flex-direction:column;gap:20px}.guestbook-field textarea{min-height:140px}.guestbook-messages{max-height:65dvh;min-height:250px}.guestbook-contact-note{font-size:13px}.guestbook-intro h1{font-size:25px}}

/* The message textarea must remain within its own grid row.
   Flex shrinking the old label below its textarea minimum allowed the email
   line to overlap the field in Sugarplum Computer's scaled iframe. */
.guestbook-form-paper {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #d5b59f transparent;
}
#guestbookForm {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto minmax(175px, 1fr) auto 90px minmax(18px, auto);
  align-items: stretch;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 0;
}
#guestbookForm > * { min-width: 0; }
#guestbookForm .guestbook-message-field {
  min-height: 0;
  height: 100%;
}
#guestbookForm .guestbook-message-field textarea {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
}
/* A shorter embedded desktop gets compact spacing but never overlapping text.
   The Hello Kitty sticker remains a real form-submit button. */
@media (min-width: 761px) and (max-height: 800px) {
  main.guestbook-main { padding-top: 20px; padding-bottom: 16px; }
  .guestbook-page { gap: 11px; }
  .guestbook-intro { gap: 12px; }
  .guestbook-intro p { font-size: 13px; line-height: 1.35; }
  .guestbook-layout { gap: 14px; }
  .guestbook-form-paper { gap: 8px; padding: 13px 16px; }
  #guestbookForm {
    grid-template-rows: auto auto auto minmax(125px, 1fr) auto 68px minmax(14px, auto);
    gap: 7px;
  }
  .guestbook-send { width: 68px; height: 68px; min-height: 68px; }
  .guestbook-send img { width: 68px; height: 68px; }
  .guestbook-contact-note { font-size: 11px; }
}

/* Center the submit sticker in the form's grid column, not just its row. */
#guestbookForm > .guestbook-send { justify-self: center; align-self: center; }

/* A compact guestbook nook, surrounded by quiet wallpaper like Neighbors. */
@media(min-width:681px){
 main.guestbook-main{min-height:0;padding:90px 24px 30px}
 .guestbook-page{width:100%;max-width:780px;height:min(590px,calc(100dvh - 175px));gap:14px;font-size:14px}
 .guestbook-intro{grid-template-columns:minmax(0,1fr) 64px;gap:14px}
 .guestbook-intro h1{font-size:23px;margin-bottom:6px}
 .guestbook-intro p{font-size:12px;line-height:1.45}
 .guestbook-intro img{width:64px;height:64px}
 .guestbook-layout{grid-template-columns:minmax(250px,.9fr) minmax(0,1.4fr);gap:16px}
 .guestbook-paper{padding:14px 16px;border-width:1.5px;border-radius:16px 19px 16px 17px}
 .guestbook-paper h2{font-size:17px}
 .guestbook-form-paper{gap:10px}
 #guestbookForm{grid-template-rows:auto auto auto minmax(90px,1fr) auto 52px minmax(14px,auto);gap:6px}
 .guestbook-field{gap:4px;font-size:12px}
 .guestbook-field input,.guestbook-field textarea{font-size:14px;line-height:1.35;padding:7px 9px;border-radius:8px 10px 8px 9px}
 .guestbook-contact-option{font-size:11px;gap:5px}
 .guestbook-contact-note{font-size:10px;line-height:1.4}
 .guestbook-send,.guestbook-send img{width:52px;height:52px;min-height:52px}
 .guestbook-form-status{min-height:14px;font-size:11px}
 .guestbook-notes-paper{gap:11px;padding-right:11px}
 .guestbook-notes-heading p{font-size:11px}
 .guestbook-message{grid-template-columns:29px minmax(0,1fr);gap:8px;margin-bottom:13px;padding-bottom:13px}
 .guestbook-avatar{width:29px;height:29px}
 .guestbook-message-name{font-size:15px}
 .guestbook-message-date{font-size:10px}
 .guestbook-message-contact{font-size:11px}
 .guestbook-message-body{font-size:13px;line-height:1.5}
 .guest-owner-reply{font-size:12px;line-height:1.45;margin-top:8px;padding:7px 9px}
 .guest-owner-reply-label{font-size:10px;margin-bottom:4px}
}

/* The submit sticker presses in on click; disabled buttons never bounce. */
.guestbook-send:not(:disabled):active img{transform:translateY(1px) scale(.93)}
@media(prefers-reduced-motion:reduce){.guestbook-send:not(:disabled):active img{transform:none}}


/* One cream-peach paper palette connects this room to the blog sidebar. */
main.guestbook-main{background-blend-mode:multiply}
