/* A linen board and a collection of little paper keepsakes. */
.guestbook-section{background:linear-gradient(180deg,#ffffff18,#edf1f14d,#ffffff18);border-top:1px solid #dce3e380}
.guestbook-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:36px;align-items:start}
.board-column{min-width:0}.pinboard{position:relative;isolation:isolate;border:12px solid #a99d8b;border-image:linear-gradient(100deg,#a79d8e,#c2b7a7 20%,#a39685 70%,#b8ad9b) 1;padding:38px 28px 22px;background-color:#dedfd7;background-image:repeating-linear-gradient(0deg,#ffffff1c 0 1px,transparent 1px 3px),repeating-linear-gradient(90deg,#787e6d12 0 1px,transparent 1px 3px);box-shadow:inset 0 0 18px #5c64532e,0 18px 36px -22px #58636b66}
.pinboard::after{content:'';position:absolute;inset:0;z-index:-1;opacity:.1;pointer-events:none;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%2354594f' d='M0 0h160v160H0z' filter='url(%23n)'/%3E%3C/svg%3E")}
.board-label{position:relative;width:max-content;max-width:100%;margin:0 auto 34px;padding:6px 13px;background:#f9faf5;letter-spacing:.11em;color:#677168;transform:rotate(-1deg);box-shadow:1px 2px 3px #424f4720;font-size:8px}.board-label span{margin:0 6px}
.board-sprig{position:absolute;width:96px;height:166px;stroke:#62776a;stroke-width:1.2;pointer-events:none;z-index:2;filter:drop-shadow(4px 4px 2px #3e50452a)}.board-sprig path+path{fill:#829181;stroke:#6b7e6f;opacity:.8}.sprig-top{top:-16px;left:-28px;transform:rotate(23deg)}.sprig-bottom{bottom:0;right:-26px;transform:rotate(195deg);width:78px;height:130px}
.guest-notes{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 24px;align-items:stretch;min-height:430px}.guest-note{position:relative;min-width:0;display:flex;flex-direction:column;align-items:stretch;text-align:left;padding:27px 20px 18px;border:0;background:#fffefa;color:#465249;transform:rotate(var(--tilt,-2deg));box-shadow:2px 5px 7px #44524329;min-height:208px;transition:box-shadow .2s,translate .2s}.guest-note:hover{translate:0 -3px;box-shadow:2px 9px 12px #44524330}.guest-note::before{content:'';position:absolute;top:-10px;left:calc(50% - 23px);width:46px;height:22px;background:#aebfb3b8;transform:rotate(5deg);clip-path:polygon(3% 0,99% 3%,97% 100%,0 95%)}.guest-note:nth-child(3n+2){background:#edf3f6}.guest-note:nth-child(3n+2)::before{width:9px;height:9px;border-radius:50%;clip-path:none;background:radial-gradient(circle at 33% 25%,#f0d9d1,#a77472 75%);box-shadow:1px 2px 2px #4e514f60;left:calc(50% - 4px);top:9px}.guest-note:nth-child(3n){background:#f4edf0}.guest-note:nth-child(3n)::before{background:#c4b9c5a6;transform:rotate(-5deg)}.guest-note:nth-child(4n){background:#f4f5ed}
.guest-note-text{font:400 24px/1.35 var(--script);white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5;overflow:hidden;margin-bottom:12px}.guest-note-name{font:400 23px/1.3 var(--script);text-align:right;margin-top:auto;overflow-wrap:anywhere;word-break:normal}.note-read{display:block;text-align:left;font:9px/1.3 var(--sans);letter-spacing:.06em;color:#68736c;margin-top:13px}.board-bottom{text-align:center;font-size:22px;color:#677368;padding-top:28px}.board-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:16px}.board-actions{display:flex;gap:12px}.board-actions button{padding:8px 0;border:0;border-bottom:1px solid #c0ccd0;background:transparent;font:11px/1.5 var(--sans);min-height:40px}.board-actions button:disabled{opacity:.45}.board-actions span[aria-hidden]{font-size:20px;vertical-align:middle}.board-toolbar .tiny{color:var(--muted);letter-spacing:.04em}.board-actions button:hover{color:var(--rose)}
.guest-form{position:relative;margin-top:16px;background:#fffffff0;box-shadow:0 8px 25px #4d596614;border:1px solid #d9e0e2;padding:32px 24px 24px;transform:rotate(.7deg)}.form-clip{position:absolute;top:-14px;left:calc(50% - 11px);width:22px;height:33px;border:2px solid #84928b;border-radius:11px 11px 5px 5px;transform:rotate(8deg)}.form-clip::after{content:'';position:absolute;inset:4px 4px -3px;border:1px solid #84928b;border-radius:9px 9px 4px 4px}.guest-form>.tiny{font-size:8px;color:var(--muted)}.guest-form h3{font-size:34px;line-height:1.5;color:var(--rose);margin:12px 0 22px}.guest-form label{display:block;font:11px/1.5 var(--sans);letter-spacing:.03em;margin:18px 0 8px}.guest-form input,.guest-form textarea{width:100%;border:0;border-bottom:1px solid #ccd6d8;background:transparent;padding:8px 2px;color:var(--ink);border-radius:0;font:400 23px/1.6 var(--script);word-break:normal;resize:vertical}.guest-form textarea{min-height:170px;background:repeating-linear-gradient(transparent 0 35.8px,#d9e1e280 35.8px 36.8px);line-height:36.8px;padding-top:0}.guest-form input::placeholder,.guest-form textarea::placeholder{color:#85908e;font-size:21px;opacity:1}.guest-form input:focus-visible,.guest-form textarea:focus-visible{outline:2px solid #a8bac4;outline-offset:5px}.guest-counter{font:10px/1.5 var(--sans);text-align:right;color:var(--muted);margin-top:8px}.guest-public{font:11px/1.7 var(--sans);color:var(--muted);margin:16px 0 20px}.pin-submit{width:100%;justify-content:space-between;font-size:12px;min-height:46px}.pin-submit:disabled{opacity:.6}.guest-status{font:12px/1.7 var(--sans);color:var(--rose);margin-top:12px;overflow-wrap:anywhere}.guest-status:empty{margin:0}.guest-note-empty{grid-column:1/-1;align-self:center;justify-self:center;width:80%;max-width:290px;min-height:235px;cursor:default;padding:38px 26px;transform:rotate(-3deg);z-index:1}.guest-note-empty:hover{translate:none}.guest-note-empty .guest-note-text{font-size:31px;display:block;overflow:visible;text-align:center}.guest-note-empty .tiny{text-align:center;color:#778079;letter-spacing:.02em;font-size:11px;margin-top:20px}.empty-stationery{position:absolute;inset:40px 14% 50px;background:#eef2f3;transform:rotate(7deg);box-shadow:2px 3px 6px #45514b20;pointer-events:none}.empty-stationery::before{content:'';position:absolute;inset:-8px 10px 5px -10px;background:#f2eded;transform:rotate(-10deg);box-shadow:1px 3px 4px #45514b19}.guest-note-dialog{width:min(520px,calc(100% - 36px));max-height:85dvh;overflow:auto;background:#fffefa;border:1px solid #d3d9d1;padding:46px 36px 32px;box-shadow:0 20px 70px #35443d40;color:var(--ink)}.guest-note-dialog::backdrop{background:#38463c70;backdrop-filter:blur(3px)}.note-close{position:absolute;top:7px;right:10px;border:0;background:transparent;font:28px var(--sans);width:40px;height:40px}.guest-note-dialog>.tiny{font-size:9px;color:var(--muted)}#note-dialog-message{white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;font-family:var(--script);font-size:29px;line-height:1.6;margin:28px 0}#note-dialog-name{font-family:var(--script);font-size:28px;text-align:right;overflow-wrap:anywhere}
@keyframes pin-note-in{from{opacity:0;translate:0 7px}to{opacity:1;translate:0 0}}.notes-enter .guest-note{animation:pin-note-in .55s ease both;animation-delay:var(--delay,0ms)}
@media all{.guestbook-layout{grid-template-columns:1fr}.guest-form{max-width:460px;width:100%;justify-self:center;margin-top:10px;transform:none}.pinboard{padding:32px 24px 20px}.guest-notes{min-height:370px}.guest-note{min-height:200px}.board-toolbar{flex-wrap:wrap;justify-content:center}.board-toolbar>p{width:100%;text-align:center}.board-actions{gap:24px}.guestbook-section .section-subtitle{max-width:340px;margin-left:auto;margin-right:auto}}
@media all{.guestbook-section .wrap{width:calc(100% - 32px)}.pinboard{border-width:8px;padding:28px 20px 20px}.guest-notes{gap:24px;grid-template-columns:1fr;min-height:300px}.guest-note{min-height:180px;padding:28px 24px 20px}.guest-note-text{font-size:25px;-webkit-line-clamp:4}.guest-note-name{font-size:25px}.guest-note-empty{width:88%;min-height:220px;padding:32px 20px}.guest-note-empty .guest-note-text{font-size:29px}.board-label{font-size:7px;padding:6px 9px;letter-spacing:.07em;margin-bottom:28px}.sprig-top{width:75px;left:-24px;top:-27px}.sprig-bottom{right:-24px;width:66px;bottom:-8px}.guest-form{padding:30px 24px 22px}.board-bottom{font-size:23px}.guest-note-dialog{padding:46px 25px 26px}.guestbook-section .section-heading h2{font-size:32px}}
@media(prefers-reduced-motion:reduce){.notes-enter .guest-note{animation:none}.guest-note{transition:none}}
.guest-notes{align-content:start}.guest-notes:has(.empty-stationery){align-content:center}.empty-stationery{inset:auto;top:50%;left:50%;width:64%;max-width:310px;height:240px;transform:translate(-50%,-50%) rotate(7deg)}
.guestbook-section{overflow-x:clip}
/* Board + writing card on one screen: the "+" pin opens the note over the board. */
.board-add{position:absolute;top:12px;right:12px;z-index:6;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:#984216;color:#F5EFE6;font:300 30px/1 var(--sans);box-shadow:1px 4px 8px #3a2a1a40;cursor:pointer;transition:transform .2s,background .2s}
.board-add span{display:block;margin-top:-3px;transition:transform .25s}
.board-add:hover{transform:scale(1.06);background:#262C35}.board-add:focus-visible{outline:2px solid #262C35;outline-offset:3px}
.board-add[aria-expanded="true"]{opacity:0;pointer-events:none}
.pinboard .guest-form{position:absolute;inset:18px 14px;justify-self:stretch;align-self:start;bottom:auto;max-height:calc(100% - 32px);z-index:5;max-width:none;width:auto;margin:0;overflow:auto;overscroll-behavior:contain;padding:30px 22px 20px;transform:rotate(-.6deg);animation:guest-form-in .3s ease both}
.pinboard .guest-form[hidden]{display:none}
.pinboard.is-writing{min-height:640px}
.pinboard.is-writing>.guest-notes,.pinboard.is-writing>.board-label,.pinboard.is-writing>.board-bottom{opacity:.35;filter:blur(1.5px);pointer-events:none;transition:opacity .25s,filter .25s}
.pinboard .form-clip{top:-2px}
.form-close{position:absolute;top:6px;right:8px;width:40px;height:40px;border:0;background:transparent;color:var(--muted);font:28px/1 var(--sans);cursor:pointer}.form-close:hover{color:var(--rose)}
.pinboard .guest-form h3{margin:8px 0 10px;font-size:30px}
.pinboard .guest-form label{margin:12px 0 4px}
.pinboard .guest-form textarea{min-height:148px}
.pinboard .guest-public{margin:10px 0 14px}
@keyframes guest-form-in{from{opacity:0;translate:0 14px}to{opacity:1;translate:0 0}}
@media(max-width:520px){.board-add{top:8px;right:8px;width:40px;height:40px;font-size:28px}.pinboard .guest-form{inset:10px 6px auto;max-height:calc(100% - 20px);padding:28px 18px 18px}.pinboard.is-writing{min-height:600px}}
@media(prefers-reduced-motion:reduce){.pinboard .guest-form{animation:none}}
/* Compact board: six notes (2×3) and the whole section within one phone screen. */
.guestbook-section.section-space{padding-top:40px;padding-bottom:36px}
.guestbook-section .section-heading{margin-bottom:18px}.guestbook-section .section-heading>.tiny{margin-bottom:8px}
.pinboard{padding:56px 14px 16px}
.guest-notes{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,124px);gap:16px 14px;min-height:0;height:404px}
.guest-note{min-height:0;height:100%;overflow:hidden;padding:17px 12px 9px;transform:rotate(calc(var(--tilt,-2deg) * .6))}
.guest-note::before{top:-8px;width:38px;height:17px;left:calc(50% - 19px)}
.guest-note:nth-child(3n+2)::before{width:8px;height:8px;left:calc(50% - 4px);top:6px}
.guest-note-text{font-size:19px;line-height:1.28;-webkit-line-clamp:3;margin-bottom:4px}
.guest-note-name{font-size:18px;line-height:1.25}
.guest-note-empty,.empty-stationery+.guest-note-empty{grid-row:1/-1;grid-column:1/-1;height:auto;min-height:200px;width:76%}
.sprig-top{width:62px;height:108px;left:-20px;top:-20px}.sprig-bottom{width:54px;height:92px;right:-20px;bottom:-12px}
.board-add{top:8px;right:8px;width:40px;height:40px;font-size:28px}
.board-toolbar{flex-wrap:nowrap;justify-content:space-between;padding-top:8px}.board-toolbar>p{width:auto;text-align:left;white-space:nowrap}.board-actions{gap:14px}.board-actions button{white-space:nowrap;min-height:36px}
.pinboard.is-writing{min-height:0}
.pinboard .guest-form{inset:8px 8px auto;max-height:calc(100% - 16px);padding:24px 18px 16px}
.pinboard .guest-form h3{font-size:28px;line-height:1.3;margin:0 0 6px}
.pinboard .guest-form label{margin:8px 0 2px}
.pinboard .guest-form input{padding:4px 2px}
.pinboard .guest-form textarea{min-height:111px;height:111px}
.pinboard .guest-counter{margin-top:4px}.pinboard .guest-public{margin:6px 0 10px;line-height:1.5}
.pinboard .form-clip{top:-8px}

/* Quieter stationery typography for the guestbook notes. */
.guestbook-section .section-heading h2{font-size:27px;letter-spacing:.02em}
.guest-note{padding:20px 15px 12px}
.guest-note-text{font:400 13.5px/1.72 var(--serif);letter-spacing:-.01em;color:#3E4640;-webkit-line-clamp:4;margin-bottom:6px;text-wrap:pretty}
html:lang(en) .guest-note-text{font-size:14px;line-height:1.62;letter-spacing:0}
.guest-note-name{font:400 11px/1.4 var(--serif);letter-spacing:.14em;color:#8A7F72}
.guest-note-empty .guest-note-text{font-size:17px;line-height:1.6}
.board-toolbar .tiny{font-size:11px;letter-spacing:.08em}
.board-actions button{font-size:12px;letter-spacing:.04em}
.board-actions span[aria-hidden]{font-size:15px}
