/* Patsy's bound guest ledger. All ornaments are decorative and local. */
@font-face {
 font-family:"Caveat Guestbook"; src:url("guestbook-caveat-latin-500.woff2") format("woff2");
 font-weight:500; font-style:normal; font-display:swap;
}
.pw-gb,.pw-gb-invite,.pw-gb-corner { --gb-wine:#642b25; --gb-gold:#ac864d; --gb-ink:#362619; }
html[data-edition] .page-template-page-guestbook #inhalt {
 margin-inline:calc(-1 * var(--cover-paper-inset)); padding:0;
}
:root[data-edition=bernstein] body.page.page-template-page-guestbook:not(.home) #inhalt::before { content:none; }
html[data-edition] .page-template-page-guestbook .site-footer {
 margin:0 calc(-1 * var(--cover-paper-inset)); padding-inline:var(--cover-paper-inset);
}
.pw-gb { position:relative; margin:0; color:var(--gb-ink); }
.pw-gb-cover {
 position:absolute; top:0; inset-inline:0; z-index:21; transform:translateY(-50%);
 display:grid; justify-items:center; pointer-events:none; text-align:center;
}
/* The rule sits above the header background and behind the overhanging logo. */
.page-template-page-guestbook .site-header::after {
 content:""; position:absolute; inset-inline:0; bottom:-2px; height:4px; z-index:-1; pointer-events:none;
 background:linear-gradient(to bottom,#593719 0 1px,#f1d4a0 1px 2px,#835b2c 2px 4px);
}
.pw-gb-framed { position:relative; isolation:isolate; box-sizing:border-box; }
.pw-gb-framed::before {
 content:""; position:absolute; inset:0; z-index:-1; pointer-events:none; border:1px solid transparent;
 border-image:url("guestbook-invite-frame-v2.webp") 112 130 fill / var(--gb-frame-height) var(--gb-frame-width) stretch;
}
.pw-gb-title-frame {
 display:grid; place-items:center; box-sizing:border-box; width:clamp(262.5px,22.5vw,312.5px); max-width:94%;
 min-height:clamp(55px,5.125vw,72.5px); padding:12.5px 37.5px; color:#572a16;
 background:url("bernstein-issue-plaque-v1-q80.webp") center / 100% 100% no-repeat;
}
html[data-edition=bernstein] .pw-gb-title-frame { background-image:var(--gb-issue-art); }
html[data-edition] .pw-gb-title-frame h1 {
 margin:0; padding:0; border:0; background:none; color:inherit;
 font:700 clamp(18.75px,1.625vw,22.5px)/1.1 Georgia,serif; text-align:center;
}
.pw-gb-lettering { display:block; width:100%; height:auto; margin:auto; }
.pw-gb-paper { position:relative; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); margin:0;
 border-bottom:1px solid #8c6b42; box-shadow:inset 0 0 0 3px #f6e6c6;
 background:linear-gradient(90deg,#fff6e2aa 0%,#fff8e5ae 45%,#bc9c6648 49.7%,#95734655 50%,#fff8e3aa 53%,#fff5deaa 100%),#f4e4bf url("pergament-textur-opt-q80.webp") center/700px; }
.pw-gb-leaf { min-width:0; position:relative; padding:clamp(20px,3.3vw,46px); scroll-margin-top:6rem; }
.pw-gb-leaf::before,.pw-gb-leaf::after { content:""; pointer-events:none; position:absolute; width:17px;height:17px; border:solid #ac8752; }
.pw-gb-leaf::before { left:10px;top:10px;border-width:2px 0 0 2px;border-radius:5px 0 0; }
.pw-gb-leaf::after { right:10px;bottom:10px;border-width:0 2px 2px 0;border-radius:0 0 5px; }
html[data-edition] .pw-gb-leaf h2 { margin:0 auto 16px; max-width:330px; padding:0; text-align:center; line-height:0; }
.pw-gb-leaf > p,.pw-gb-empty p,.pw-gb-note p { font:normal 17px/1.52 Georgia,serif; color:var(--gb-ink); margin:0 0 1em; }
.pw-gb-empty { max-width:28em; margin:clamp(32px,6vw,82px) auto; text-align:center; }
.pw-gb-empty img { width:70px;height:auto;margin:0 auto 12px; }
.pw-gb-empty p { font-style:italic; }
.pw-gb-note { margin:12px 0 0; padding:4px 0 6px; border:0; background:none; box-shadow:none; }
.pw-gb-note + .pw-gb-note { margin-top:8px; }
.pw-gb-note header { display:grid; grid-template-columns:38px minmax(0,1fr) auto; align-items:center; gap:8px; }
.pw-gb-note .pw-gb-icon { width:38px; height:auto; display:block; }
html[data-edition] .pw-gb-note h3 { margin:0; color:#642f29; overflow-wrap:anywhere; font:bold italic 20px/1.25 Georgia,serif; }
.pw-gb-note header time { white-space:nowrap; }
.pw-gb-note time,.pw-gb-turn { font:13px/1.5 var(--sans); color:#674a2a; }
.pw-gb-note p {
 white-space:pre-wrap; overflow-wrap:anywhere; margin:4px 0 0; text-align:center;
 font:500 clamp(23px,2vw,26px)/1.25 "Caveat Guestbook","Segoe Print","Bradley Hand",cursive;
}
.pw-gb-note-end {
 display:flex; align-items:center; justify-content:center; gap:5px; width:min(130px,55%); margin:10px auto 0;
 color:#9a743a; font:8px/1 Georgia,serif;
}
.pw-gb-note-end::before,.pw-gb-note-end::after {
 content:""; flex:1; height:1px; background:linear-gradient(to right,transparent,#a98a50);
}
.pw-gb-note-end::after { transform:scaleX(-1); }
.pw-gb-turn { display:flex; flex-wrap:wrap; justify-content:center; gap:6px 12px; margin-top:16px; }
.pw-gb-turn a,.pw-gb-privacy a,.pw-gb-mobile-link,.pw-gb-invite a { color:#672e25; text-decoration:underline; text-underline-offset:.17em; }
.pw-gb-write { text-align:center; }
.pw-gb-write form { display:grid; gap:6px; }
.pw-gb-write input[type="text"],.pw-gb-write textarea { text-align:center; }
.pw-gb-write label { display:block; color:#422c1f; font:600 14px/1.35 var(--sans); }
.pw-gb-write #gb-remaining { display:block; margin:-9px 0 5px; color:#654629; font:13px/1.4 var(--sans); font-variant-numeric:tabular-nums; }
.pw-gb-write input[type="text"],.pw-gb-write textarea { box-sizing:border-box; width:100%; min-width:0; border:1px solid #a98859; border-radius:3px; color:#302116; background:#fffaf0; padding:9px 11px; margin:0 0 8px; font:16px/1.45 Georgia,serif; }
.pw-gb-write textarea { resize:vertical; min-height:92px; }
.pw-gb-write label.pw-gb-consent { display:flex;align-items:baseline;justify-content:center;gap:8px;font-weight:400; }
.pw-gb-consent input { flex:none; margin:2px 0 0; width:16px;height:16px;accent-color:#2b503e; }
.pw-gb .pw-gb-button,.pw-gb-corner .pw-gb-button {
 display:grid; place-items:center; width:min(100%,250px); min-height:44px; margin:4px auto; justify-self:center; align-self:start;
 --gb-frame-height:19px; --gb-frame-width:22px;
 border:0; padding:10px 22px; box-shadow:none; background:transparent; color:#552c1c; cursor:pointer;
 font:700 16px/1.25 Georgia,serif; text-align:center; text-decoration:none;
}
.pw-gb-corner .pw-gb-button {
 display:flex; align-items:center; justify-content:center; width:min(100%,286px); padding:8px 14px;
}
@media(min-width:701px) and (max-width:900px) {
 .pw-gb-corner .pw-gb-button { padding-inline:8px; font-size:clamp(13px,1.8vw,16px); }
}
.pw-gb .pw-gb-button:hover,.pw-gb-corner .pw-gb-button:hover { color:#703a25; text-decoration:underline; text-underline-offset:.14em; }
.pw-gb :focus-visible,.pw-gb-invite a:focus-visible,.pw-gb-corner a:focus-visible { outline:3px solid #856531; outline-offset:3px; }
.pw-gb-privacy { margin:9px 0 0; font:13px/1.5 var(--sans); color:#5a422b; }
.pw-gb-privacy summary { cursor:pointer; text-decoration:underline; text-underline-offset:2px; }
.pw-gb-privacy p { margin:.5rem 0 0; }
.pw-gb-leaf .pw-gb-feedback { padding:9px 12px; background:#f5ecd4; border-left:3px solid #667851; font:15px/1.5 var(--sans); }
.pw-gb-leaf .pw-gb-feedback[role="alert"] { border-color:#8a4133; }
.pw-gb-mobile-link { display:none; }
.pw-gb-invite {
 box-sizing:border-box; width:min(100%,530px); margin:16px auto 4px; padding:14px clamp(22px,5vw,48px);
 text-align:center; background:transparent url("guestbook-invite-frame-v2.webp") center/100% 100% no-repeat;
}
.pw-gb-invite .pw-gb-icon { display:block; width:47px;height:auto;margin:0 auto 3px; }
.pw-gb-invite p { margin:0 0 3px; color:#4c3623; font:italic 17px/1.35 Georgia,serif; }
.pw-gb-invite a { display:inline-block; padding:4px 5px; font:600 14px/1.4 var(--sans); }
.full-story>.pw-gb-invite+.pw-related { border-top:0; margin-top:0; padding-top:16px; }
.pw-fun-card.pw-gb-corner .pw-gb-art { width:100%; aspect-ratio:2.7;object-fit:cover;object-position:center 56%; }
.pw-gb-corner p:not(.pw-fun-label) { margin:.7em 0 .3em; }
.pw-news-layout>.pw-fun-column:has(.pw-gb-corner) { padding-bottom:8px; }
html[data-edition=taverne] .home .pw-news-layout>.pw-fun-column:has(.pw-gb-corner) { padding-bottom:calc(8px + var(--pw-wood-rule-height)); }
.pw-news-layout>.pw-fun-column:has(.pw-gb-corner)>.pw-fun-more { line-height:1.2; }
.pw-news-layout>.pw-fun-column:has(.pw-gb-corner) .pw-fun-fineprint { margin-block:4px; line-height:1.35; }
@media(max-width:700px) {
 .pw-news-layout>.pw-fun-column:has(.pw-gb-corner)>.pw-fun-more { margin-top:-12px; }
}
@media(min-width:701px) {
 .pw-news-layout>.pw-fun-column:has(.pw-gb-corner) { grid-template-columns:repeat(3,minmax(0,1fr)); row-gap:0; }
 .pw-news-layout>.pw-fun-column:has(.pw-gb-corner)>h2 { margin-bottom:16px; }
 .pw-news-layout>.pw-fun-column:has(.pw-gb-corner)>.pw-fun-more { margin-top:6px; }
 .pw-news-layout>.pw-fun-column:has(.pw-gb-corner)>.pw-fun-card {
  display:grid; grid-template-rows:subgrid; grid-row:2 / span 6; row-gap:0; align-self:stretch;
 }
 .pw-news-layout>.pw-fun-column:has(.pw-gb-corner)>.pw-fun-card:nth-of-type(1) { grid-column:1; }
 .pw-news-layout>.pw-fun-column:has(.pw-gb-corner)>.pw-fun-card:nth-of-type(2) { grid-column:2; }
 .pw-news-layout>.pw-fun-column:has(.pw-gb-corner)>.pw-fun-card:nth-of-type(3) { grid-column:3; border-top:0; border-left:1px solid var(--rule); padding-top:0; }
 .pw-news-layout>.pw-fun-column:has(.pw-gb-corner) .pw-fun-current { display:contents; }
 html[data-edition] .pw-news-layout>.pw-fun-column:has(.pw-gb-corner) .pw-fun-card img:not(.pw-gb-lettering) {
  display:block; box-sizing:border-box; width:100%; height:clamp(100px,13vw,170px); max-height:none; float:none; margin:6px 0 12px; object-fit:cover;
 }
 .pw-news-layout>.pw-fun-column:has(.pw-gb-corner) .pw-fun-card h3 { align-self:start; }
}
@media(max-width:720px) {
 .pw-gb-paper { grid-template-columns:1fr; background:linear-gradient(#fff5ddae,#fff5ddae),#f4e4bf url("pergament-textur-opt-q80.webp") center/600px; }
 .pw-gb-leaf + .pw-gb-leaf { border-top:1px solid #b39a6a; }
 .pw-gb-empty { margin:20px auto; }
 .pw-gb-empty img {width:48px;}
 .pw-gb-read { padding-top:32px; }
 .pw-gb-mobile-link { display:table; color:#672e25; padding:6px; margin:-5px auto 6px; font:600 14px/1.4 var(--sans); }
 .pw-gb-read { max-height:none; }
}
@media print { .pw-gb-write,.pw-gb-mobile-link,.pw-gb-invite,.pw-gb-turn { display:none; } .pw-gb-paper { display:block; } }
