/* The coffee note shown after scrolling in chapters after a visitor's first. Colours come from the page's own tokens. */
html.ps-gated{overflow:hidden}
.ps-gate{position:fixed;inset:auto 0 0 0;width:100%;max-width:none;max-height:100dvh;margin:0;padding:0;border:0;background:transparent;color:var(--ink,#2a2520);overflow:visible}
.ps-gate::backdrop{background:transparent}
.ps-gate::before{content:"";display:block;height:26vh;background:linear-gradient(to bottom,transparent,var(--bg,#f8f3e8) 92%)}
.ps-gate-band{position:relative;background:var(--bg,#f8f3e8);border-top:1px solid var(--line,#e3d9c6);padding:clamp(28px,5vh,52px) 24px clamp(28px,6vh,60px);max-height:74dvh;overflow:auto;overscroll-behavior:contain}
.ps-gate-in{width:min(60ch,100%);margin:0 auto;font-family:"Iowan Old Style","Palatino Linotype",Palatino,"Newsreader",Georgia,serif}
.ps-gate h2{margin:0 44px .45em 0;font-size:clamp(28px,4.4vw,40px);line-height:1.1;letter-spacing:-.015em;font-weight:700;text-wrap:balance}
.ps-gate p{margin:0 0 1em;font-size:clamp(18px,2.2vw,20px);line-height:1.55;text-wrap:pretty}
.ps-gate-acts{display:flex;flex-wrap:wrap;gap:12px;margin:22px 0 0}
.ps-gate-acts a,.ps-gate-acts button{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:0 24px;border-radius:9px;font:700 18px/1 system-ui,-apple-system,"Segoe UI",sans-serif;text-decoration:none;cursor:pointer;transition:background .15s,color .15s,transform .18s cubic-bezier(.16,1,.3,1)}
.ps-gate-coffee{background:var(--red,#8c2f1f);color:var(--on-accent,#fff);border:1.5px solid var(--red,#8c2f1f)}
.ps-gate-coffee:hover{transform:translateY(-2px)}
.ps-gate-keep{background:transparent;color:var(--ink,#2a2520);border:1.5px solid var(--ink,#2a2520)}
.ps-gate-keep:hover{background:var(--soft,#f1e8d4)}
.ps-gate .ps-gate-kid{margin:18px 0 0;font-size:16px;color:var(--muted,#6b6358)}
.ps-gate-x{position:absolute;top:14px;right:max(14px,calc(50% - 30ch - 22px));width:44px;height:44px;display:grid;place-items:center;padding:0;border:0;border-radius:9px;background:transparent;color:var(--ink,#2a2520);cursor:pointer}
.ps-gate-x:hover{background:var(--soft,#f1e8d4)}
.ps-gate :focus-visible{outline:3px solid var(--gold,#a97c1f);outline-offset:2px}
@media (prefers-reduced-motion:no-preference){.ps-gate[open]{animation:ps-rise .45s cubic-bezier(.16,1,.3,1)}@keyframes ps-rise{from{transform:translateY(24px);opacity:0}}}
@media (max-width:520px){.ps-gate-acts a,.ps-gate-acts button{flex:1 1 100%}}
@media print{.ps-gate{display:none}}
