/* Snug components: the styles for everything Snug's own templates and helpers put on a page:
   posts and their lists, galleries, the carousel and lightbox, reply context, mentions, comments,
   pinned labels, social links, the archive, tags, search and About pages.
   Any theme can load this file and then its own stylesheet. The default theme does (see site.css for its
   shell: colours, type, header and footer). The audio player and the reply card have files of their own
   (player.css, quote.css) that are loaded when a page needs them, and so has what a post's text can hold
   (content.css, linked by Theme::head() on every page).

   Everything here is driven by these variables. A theme sets the ones it wants; the rest fall back to
   values taken from the page's own text colour, so the components suit any background.
     --ink, --ink-2      text, and quieter text
     --accent            links and highlights (site.js takes the theme's link colour when this is not set)
     --on-accent         text on the accent
     --paper, --paper-2  the page background, and a slightly different one for insets
     --surface           raised surfaces
     --rule              hairlines
     --radius, --ease, --font-mono */
:where(:root){
  --ink:currentColor;
  --ink-2:color-mix(in srgb,currentColor 64%,transparent);
  --accent:LinkText;
  --on-accent:Canvas;
  --paper:Canvas;
  --paper-2:color-mix(in srgb,currentColor 6%,transparent);
  --surface:color-mix(in srgb,currentColor 4%,transparent);
  --rule:color-mix(in srgb,currentColor 14%,transparent);
  --radius:14px;
  --ease:cubic-bezier(.2,.7,.2,1);
  --font-mono:ui-monospace,"SFMono-Regular",Menlo,Consolas,monospace;
}
[hidden]{display:none!important}
.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

.page-title{font-size:clamp(1.7rem,3.2vw,2.3rem);line-height:1.15;letter-spacing:-.02em;margin:0 0 1.2em}
.empty{color:var(--ink-2);text-align:center;padding:48px 0}
.notice{background:color-mix(in srgb,var(--accent) 12%,var(--paper));padding:11px 15px;border-radius:12px;font-size:.92rem}
.btn{display:inline-flex;align-items:center;gap:.4em;padding:.55em 1.1em;border-radius:999px;border:1px solid var(--accent);background:var(--accent);color:var(--on-accent);font:inherit;font-size:.9rem;font-weight:600;text-decoration:none;cursor:pointer;transition:transform .2s var(--ease),background-color .2s,color .2s}
.btn:hover{transform:translateY(-1px);text-decoration:none}

.day{margin:0 0 clamp(28px,5vw,44px)}
.entry{margin:0 0 clamp(28px,5vw,44px)}
.day > .entry:last-child{margin-bottom:0}
.day + .day{border-top:1px solid var(--rule);padding-top:clamp(28px,5vw,44px)}
.day > .entry + .entry{border-top:1px dashed var(--rule);padding-top:clamp(24px,4vw,36px)}

/* Status day: the date is the title, each status keeps its own time stamp */
.day-title{font-size:clamp(1.25rem,2.2vw,1.5rem);line-height:1.25;letter-spacing:-.015em;margin:0 0 .9em}
.day-title a{color:var(--ink);text-decoration:none}
.day-title a:hover{color:var(--accent)}
.status{position:relative;padding-left:20px;border-left:2px solid var(--rail,var(--rule))}
.status + .status{margin-top:24px}
.status-more{margin:.8em 0 0}
.status::before{content:"";position:absolute;left:-6px;top:.6em;width:10px;height:10px;border-radius:50%;background:var(--paper);border:2px solid var(--rail-dot,var(--accent))}
.single .status-meta,.status-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;font-size:.84rem;color:var(--ink-2);margin:.6em 0 0}
.stamp{font-variant-numeric:tabular-nums;color:var(--ink-2);text-decoration:none;font-weight:600}
.stamp:hover{color:var(--accent)}
.tag{color:var(--ink-2);text-decoration:none}
.tag:hover{color:var(--accent)}
.syndication a{color:var(--ink-2)}
.edit-link{display:inline-flex;align-items:center;justify-content:center;margin-left:auto;min-width:32px;min-height:32px;border-radius:6px;color:var(--ink-2);text-decoration:none}
.edit-link:hover{color:var(--accent);background:color-mix(in srgb,var(--ink) 7%,transparent)}
.edit-link svg{display:block}

/* Article card: title with the date beside it */
.article-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px;margin-bottom:.6em}
.article-title{font-size:clamp(1.35rem,2.6vw,1.75rem);line-height:1.2;letter-spacing:-.02em;margin:0;flex:1 1 18rem}
.article-title a{color:var(--ink);text-decoration:none}
.article-title a:hover{color:var(--accent)}
.article-date{flex:none;color:var(--ink-2);font-size:.86rem;text-decoration:none;white-space:nowrap}
a.article-date:hover{color:var(--accent)}
.article-cover{display:block;margin:.4em 0 .8em;border-radius:var(--radius);overflow:hidden}
.article-cover img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}
/* On the blogroll the cover is a small thumbnail beside the excerpt */
.article-card{display:flow-root}
.article-card .article-cover{float:right;width:min(36%,200px);margin:.15em 0 .6em 1.1em;border-radius:12px}
.article-card .article-cover img{aspect-ratio:4/3}
.p-summary > :first-child{margin-top:0}
.article-foot{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin-top:1em;font-size:.88rem}

/* Single */
.single-head{margin-bottom:1.2em}
.single .article-title{font-size:clamp(1.8rem,4vw,2.6rem);flex:none}
.single .article-date{margin:.5em 0 0}
.single-foot{margin-top:1.8em;padding-top:1em;border-top:1px solid var(--rule)}
.context{font-size:.9rem;color:var(--ink-2);margin:0 0 .6em}

/* What is inside a post's text (headings, lists, tables, quotations, code, footnotes, formulas, embeds)
   is styled by content.css, which Theme::head() links on every page. */
.hashtag{text-decoration:none}

/* ---------- Media: grid & carousel ---------- */
.media{margin:1em 0 0}
.e-content .media{margin:1em 0}
.e-content > .media:last-child{margin-bottom:0}
.media figure{margin:0}
figcaption{font-size:.82rem;color:var(--ink-2);margin-top:6px}
.gallery{display:grid;gap:6px;border-radius:var(--radius);overflow:hidden}
.gallery img,.gallery video{display:block;width:100%;height:100%;object-fit:cover;border-radius:0}
.gallery-1 .gallery-item img{height:auto;max-height:80vh;object-fit:contain;background:var(--paper-2)}
.gallery-1{border-radius:var(--radius)}
.gallery-2{grid-template-columns:1fr 1fr}
.gallery-2 .gallery-item,.gallery-4 .gallery-item,.gallery-many .gallery-item{aspect-ratio:1}
.gallery-3{grid-template-columns:2fr 1fr;grid-template-rows:1fr 1fr;aspect-ratio:3/2}
.gallery-3 .gallery-item:first-child{grid-row:span 2}
.gallery-4{grid-template-columns:1fr 1fr}
.gallery-many{grid-template-columns:repeat(3,1fr)}
.gallery figcaption{display:none}
.gallery .lightbox{display:block;height:100%;cursor:zoom-in}

/* A stack (Theme::mediaGroup, two pictures or more): each picture in a frame of its own, one after the next, as wide
   as the text. Its shape is its own (--ar, from its size) held between 4:5 and 1.91:1; past those the picture is
   cropped to the limit about its middle. No frame is taller than about 85% of the screen: a tall one is narrowed in
   its own shape and centred, its caption under it. Where its size is not known the frame keeps the picture's own
   shape within the same limits, measured from the stack's width (cqw, where the browser has it). The space between
   two is part of a line of the text (lh), so each theme's rhythm sets it. Everything a page's own CSS may say of
   figures, links and pictures at large (a matched site's, the owner's) is said here, so the frames keep their shape;
   the corners stay the theme's (img). */
.media .stack{display:flex;flex-direction:column;gap:1.1em;gap:.66lh;container-type:inline-size}
.media .stack-item{display:block;box-sizing:border-box;width:100%;width:min(100%,calc(85vh * var(--ar)));width:min(100%,calc(85svh * var(--ar)));min-width:0;margin:0 auto;padding:0;border:0}
.media .stack-item > a.lightbox{display:block;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;text-decoration:none;line-height:0;cursor:zoom-in}
.media .stack-item > a.lightbox:hover{background:none;box-shadow:none}
.media .stack-item img,.media .stack-item video{display:block;box-sizing:border-box;width:100%;min-width:0;max-width:none;height:auto;min-height:0;max-height:85vh;max-height:85svh;margin:0;padding:0;border:0;box-shadow:none;outline-offset:3px;
  aspect-ratio:var(--ar,auto);object-fit:cover;object-position:50% 50%;background:var(--paper-2,color-mix(in srgb,currentColor 6%,transparent))}
.media .stack-item video{object-fit:contain;background:#000}
@supports (width:1cqw){.media .stack-item img,.media .stack-item video{min-height:min(52.36cqw,85svh);max-height:min(125cqw,85svh)}}
.media .stack-item figcaption{margin:.55em 0 0}
.media .stack-item > a.lightbox:focus-visible{outline:none}
.media .stack-item > a.lightbox:focus-visible img{outline:2px solid var(--accent);outline-offset:3px}
/* in a list of posts: a pile of prints. The first on top, at the size of one small picture (--ar0, --cap); the next
   two under it, each a little smaller and lower, so their edges show; the rest only in the lightbox. Under the
   pointer the pile fans out a little. The prints keep the corners of the list's small pictures. */
.media.compact .stack{position:relative;display:grid;gap:0;width:100%;max-width:calc(var(--cap) * var(--ar0,1.3333));margin-bottom:calc(var(--sheets,0) * 10px);container-type:normal}
.media.compact .stack-item{grid-area:1/1;width:auto;margin:0;transform-origin:50% 100%;transition:transform .35s var(--ease,ease)}
.media.compact .stack-item:nth-child(1){position:relative;z-index:3}
.media.compact .stack-item:nth-child(2){z-index:2;transform:translateY(7px) scale(.92)}
.media.compact .stack-item:nth-child(3){z-index:1;transform:translateY(14px) scale(.84)}
.media.compact .stack-item:nth-child(n+4){display:none}
.media.compact .stack-item:not(:first-child){pointer-events:none}
.media.compact .stack-item img,.media.compact .stack-item video{min-height:0;max-height:none;aspect-ratio:var(--ar0,4/3);object-fit:cover;border-radius:12px}
.media.compact .stack-item:nth-child(1):not(:last-child) img{box-shadow:0 1px 2px rgba(0,0,0,.18),0 3px 8px -3px rgba(0,0,0,.22)}
.media.compact .stack-item:not(:first-child) img,.media.compact .stack-item:not(:first-child) video{filter:brightness(.8) saturate(.85)}
@media (hover:hover){
  .media.compact .stack:hover .stack-item:nth-child(2){transform:translateY(10px) scale(.92)}
  .media.compact .stack:hover .stack-item:nth-child(3){transform:translateY(20px) scale(.84)}
}

/* Blogroll: small previews so more posts fit (a click opens the full image); a post's own page shows media full size */
.media.compact{--cap:240px;--thumb:128px;margin-top:.7em}
.media.compact .gallery-1 .gallery-item{width:100%;max-width:calc(var(--cap) * var(--ar,1.3333));aspect-ratio:var(--ar,4/3);border-radius:12px;overflow:hidden;background:var(--paper-2)}
.media.compact .gallery-1 .gallery-item img,.media.compact .gallery-1 .gallery-item video{height:100%;max-height:none;object-fit:cover;background:none}
.media.compact .gallery:not(.gallery-1){display:flex;flex-wrap:wrap;gap:6px;aspect-ratio:auto;border-radius:0;overflow:visible}
.media.compact .gallery:not(.gallery-1) .gallery-item{width:var(--thumb);aspect-ratio:1;border-radius:10px;overflow:hidden}
.media.compact .carousel{max-width:calc(var(--cap) * 1.6)}
.media.compact .carousel-slide{min-height:0}
.media.compact .carousel-slide img,.media.compact .carousel-slide video{max-height:var(--cap)}
@media (max-width:520px){.media.compact{--cap:200px;--thumb:calc((100% - 12px) / 3)}}
.carousel{position:relative;border-radius:var(--radius);overflow:hidden;background:var(--paper-2)}
.carousel-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.carousel-track::-webkit-scrollbar{display:none}
.carousel.is-dragging .carousel-track{scroll-snap-type:none;scroll-behavior:auto;cursor:grabbing;-webkit-user-select:none;user-select:none}
.carousel-slide{flex:0 0 100%;scroll-snap-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:200px}
.carousel-slide img,.carousel-slide video{display:block;max-height:75vh;width:auto;max-width:100%;object-fit:contain;border-radius:0}
.carousel-slide > a.lightbox{display:flex;justify-content:center;min-width:0;max-width:100%;margin:0;padding:0;border:0;background:none;box-shadow:none;cursor:zoom-in}
.carousel-slide figcaption{padding:6px 12px 30px}
.carousel-btn{position:absolute;top:50%;transform:translateY(-50%);width:40px;height:40px;border-radius:50%;border:0;background:color-mix(in srgb,var(--paper) 80%,transparent);color:var(--ink);font-size:24px;line-height:1;cursor:pointer;box-shadow:0 4px 14px -6px rgba(0,0,0,.4);opacity:.9}
.carousel-btn:hover{opacity:1}
.carousel-btn.prev{left:10px}
.carousel-btn.next{right:10px}
.carousel-btn[disabled]{opacity:0;pointer-events:none}
.carousel-dots{position:absolute;bottom:10px;left:0;right:0;display:flex;justify-content:center;gap:6px;pointer-events:none}
.carousel-dots span{width:7px;height:7px;border-radius:50%;background:color-mix(in srgb,var(--ink) 30%,transparent);transition:background .2s,transform .2s}
.carousel-dots span.on{background:var(--accent);transform:scale(1.25)}
@media (hover:none){.carousel-btn{display:none}}
.attachment{font-size:.9rem}
.audio audio{width:100%}

/* ---------- Lightbox (site.js, Theme::lightbox): a post's pictures and videos, one at a time, whole ----------
   A dark room over the page, the same whatever the theme or its light or dark: the picture in the middle, no bigger
   than it is, and around it the room's black. The pictures lie side by side in a track that scrolls sideways and
   snaps to each one, so a swipe follows the finger, settles on the next and gives a little at the ends. Over them, the
   controls are round panes of the blog's glass (glass.css works its tokens out again here, from the room's own black
   and white: clear and dark): the close button, the arrows at the edges (for a pointer: a touch screen swipes), and
   where it is among them ("3 / 7") on a capsule of it. Each picture's box is its own shape, fitted to the room (cq
   units), so the large copy can take the small one's place without a jump. Every property a page's CSS may set on a
   dialog, a button, a picture or a video at large is said here, so the room keeps its shape under a matched site's
   styles or the owner's own. The room is black through: nothing of the page shows in it, and it has no title of its
   own (its name is for a screen reader). */
.lightbox-overlay{--paper:#000;--paper-2:#0c0c0d;--surface:#161618;--ink:#fff;--ink-2:rgba(255,255,255,.74);--rule:rgba(255,255,255,.16);--lb-plate:color-mix(in srgb,var(--lg-ground,#161618) 58%,transparent);
  position:fixed;inset:0;z-index:60;box-sizing:border-box;display:block;width:100%;height:100%;min-width:0;min-height:0;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;
  background:#000;color:#fff;color-scheme:dark;overflow:hidden;overscroll-behavior:contain;cursor:zoom-out;font:500 15px/1.3 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;letter-spacing:normal;text-align:left;
  animation:lb-in .22s ease-out}
.lightbox-overlay[hidden],dialog.lightbox-overlay:not([open]){display:none}
dialog.lightbox-overlay::backdrop{background:transparent}
.lightbox-overlay:focus,.lightbox-overlay:focus-visible{outline:none;box-shadow:none}
@keyframes lb-in{from{opacity:0}}
.lb-track{position:absolute;inset:0;display:flex;margin:0;padding:0;overflow-x:auto;overflow-y:hidden;overscroll-behavior:contain;scroll-snap-type:x mandatory;scrollbar-width:none;direction:ltr;touch-action:pan-x pinch-zoom;outline:none}
.lb-track::-webkit-scrollbar{display:none}
.lb-slide{--below:calc(var(--plate,-12px) + 12px);flex:0 0 100%;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-width:0;height:100%;margin:0;container-type:size;scroll-snap-align:center;scroll-snap-stop:always;
  padding:max(16px,env(safe-area-inset-top,0px)) max(16px,env(safe-area-inset-right,0px)) max(16px,env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px))}
.lb-pic{flex:none;box-sizing:border-box;display:block;max-width:100%;margin:0;padding:0;line-height:0}
.lightbox-overlay .lb-media{display:block;box-sizing:border-box;width:auto;height:auto;min-width:0;min-height:0;max-width:calc(100vw - 32px);max-height:calc(100vh - 32px - var(--below));margin:0;padding:0;border:0;border-radius:0;outline:0;box-shadow:none;background:none;filter:none;
  object-fit:contain;-webkit-user-drag:none;user-select:none;-webkit-user-select:none}
@supports (width:1cqw){
  .lightbox-overlay .lb-media{max-width:100cqw;max-height:calc(100cqh - var(--below))}
  .lightbox-overlay .lb-media.is-sized{width:min(100cqw,(100cqh - var(--below)) * var(--r),var(--lw,100cqw));max-width:none;max-height:none;aspect-ratio:var(--r)}
}
/* a picture not asked for yet (a far one, or one passed on the way to the end) is not drawn: no broken picture shows */
.lightbox-overlay .lb-media:not([src]){visibility:hidden}
.lightbox-overlay video.lb-media{background:#000;cursor:auto}
/* the panes of glass: round, white glyphs on the room's dark plate, the rim catching the light; under the pointer
   the rim brightens, pressed the pane gives; the focus is light (site.css). Lensing what passes under them where the
   browser can (--lg-filter-sm), blurring it everywhere */
.lightbox-overlay .lb-btn,.lightbox-overlay .lb-close{appearance:none;-webkit-appearance:none;position:absolute;z-index:2;box-sizing:border-box;display:grid;place-items:center;width:48px;height:48px;min-width:0;min-height:0;max-width:none;max-height:none;margin:0;padding:0;
  border:2px solid transparent;border-radius:50%;color:#fff;font:400 28px/1 system-ui,-apple-system,sans-serif;letter-spacing:normal;text-transform:none;text-decoration:none;text-shadow:none;cursor:pointer;-webkit-tap-highlight-color:transparent;
  background:var(--lg-sheen,none,none,none),linear-gradient(var(--lb-plate),var(--lb-plate)),var(--lg-shell,rgba(22,22,24,.16));background-origin:border-box;background-clip:border-box,border-box,border-box,padding-box,border-box;
  -webkit-backdrop-filter:var(--lg-filter-sm,blur(12px) saturate(1.7) contrast(.86));backdrop-filter:var(--lg-filter-sm,blur(12px) saturate(1.7) contrast(.86));
  box-shadow:var(--lg-rim,inset 1px 1px 0 rgba(255,255,255,.32),inset 0 0 0 1px rgba(255,255,255,.12)),var(--lg-bevel,0 0 0 1px rgba(255,255,255,.1)),var(--lg-contact,0 1px 2px rgba(0,0,0,.5));
  --lg-own:var(--lg-rim,inset 1px 1px 0 rgba(255,255,255,.32)),var(--lg-bevel,0 0 0 1px rgba(255,255,255,.1)),var(--lg-contact,0 1px 2px rgba(0,0,0,.5));
  transition:transform .38s cubic-bezier(.3,1.65,.5,1),box-shadow .2s,opacity .2s}
.lightbox-overlay .lb-btn[hidden],.lightbox-overlay .lb-count[hidden]{display:none}
.lightbox-overlay .lb-btn svg,.lightbox-overlay .lb-close svg{display:block;flex:none;max-width:none;pointer-events:none}
.lightbox-overlay .lb-prev{top:50%;left:max(14px,env(safe-area-inset-left,0px));margin-top:-24px}
.lightbox-overlay .lb-next{top:50%;right:max(14px,env(safe-area-inset-right,0px));margin-top:-24px}
.lightbox-overlay .lb-prev svg{transform:translateX(-1px)}
.lightbox-overlay .lb-next svg{transform:translateX(1px)}
.lightbox-overlay .lb-close{top:max(12px,env(safe-area-inset-top,0px));right:max(14px,env(safe-area-inset-right,0px));width:44px;height:44px}
@media (hover:hover){.lightbox-overlay .lb-btn:hover,.lightbox-overlay .lb-close:hover{box-shadow:inset 0 0 0 1.5px var(--lg-hi,rgba(255,255,255,.4)),var(--lg-own)}}
.lightbox-overlay .lb-btn:focus-visible,.lightbox-overlay .lb-close:focus-visible{border-color:rgba(255,255,255,.62)} /* the rim's band catches the light too: one lit edge, not two lines */
.lightbox-overlay .lb-btn:active,.lightbox-overlay .lb-close:active{transform:scale(.93);transition-duration:.12s}
/* a touch screen swipes: the arrows stay for a screen reader and a keyboard, out of sight until one reaches them */
@media (hover:none) and (pointer:coarse){.lightbox-overlay .lb-btn:not(:focus-visible){opacity:0;pointer-events:none}}
/* where it is: a capsule of glass at the top, level with the close button; its words on the plate. A screen reader
   hears "3 of 7" (.lb-said) where the eye reads 3 / 7 */
.lightbox-overlay .lb-count{position:absolute;z-index:2;top:calc(max(12px,env(safe-area-inset-top,0px)) + 7px);left:50%;transform:translateX(-50%);box-sizing:border-box;display:flex;align-items:center;height:30px;margin:0;padding:0 12px;
  border:1.5px solid transparent;border-radius:999px;color:rgba(255,255,255,.9);font:600 13px/1 system-ui,-apple-system,"Segoe UI",sans-serif;font-variant-numeric:tabular-nums;letter-spacing:.03em;white-space:nowrap;pointer-events:none;
  background:var(--lg-sheen,none,none,none),linear-gradient(var(--lg-plate,rgba(22,22,24,.88)),var(--lg-plate,rgba(22,22,24,.88))),var(--lg-shell,rgba(22,22,24,.16));background-origin:border-box;background-clip:border-box,border-box,border-box,padding-box,border-box;
  -webkit-backdrop-filter:var(--lg-filter,blur(12px) saturate(1.7) contrast(.86));backdrop-filter:var(--lg-filter,blur(12px) saturate(1.7) contrast(.86));
  box-shadow:var(--lg-rim,inset 1px 1px 0 rgba(255,255,255,.32)),var(--lg-bevel,0 0 0 1px rgba(255,255,255,.1)),var(--lg-contact,0 1px 2px rgba(0,0,0,.5))}
.lightbox-overlay .lb-said{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
/* under a picture with words: its alt text (or, with none, its caption) on a quiet plate of glass, the room's white
   ink on the room's dark plate, in the room's own type whatever the theme. A few lines show; longer words fade out at
   the plate's foot, and a grip at its head says it can be pulled up. Raised, the sheet rises from where the plate lies,
   over the picture, and its words scroll; the plate's place (the sizer, never seen) stays as it was, so the picture
   never moves. The picture and its plate are centred together, the plate just under the picture (the picture leaves
   it its place: --plate, measured by site.js). A finger across it is still the track's (pan-x), up and down are the
   plate's (site.js) */
.lightbox-overlay .lb-alt{position:relative;z-index:1;flex:none;box-sizing:border-box;width:fit-content;max-width:min(100%,40rem);margin:0;padding:0;cursor:default;
  color:rgba(255,255,255,.92);font:400 15px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;letter-spacing:normal;text-align:left;text-transform:none}
.lightbox-overlay .lb-alt.is-long{cursor:pointer}
.lightbox-overlay .lb-sizer,.lightbox-overlay .lb-words{box-sizing:border-box;margin:0;padding:12px 18px 13px;max-height:calc(4.35em + 25px);overflow:hidden;
  font:inherit;color:inherit;letter-spacing:inherit;word-spacing:normal;text-align:inherit;text-indent:0;text-transform:none;white-space:normal;overflow-wrap:anywhere}
.lightbox-overlay .lb-sizer{visibility:hidden;border:1.5px solid transparent}
.lightbox-overlay .lb-sheet{position:absolute;left:0;right:0;bottom:0;box-sizing:border-box;max-height:100%;margin:0;padding:0;overflow:hidden;outline:0;
  border:1.5px solid transparent;border-radius:18px;
  background:var(--lg-sheen,none,none,none),linear-gradient(var(--lg-plate,rgba(22,22,24,.88)),var(--lg-plate,rgba(22,22,24,.88))),var(--lg-shell,rgba(22,22,24,.16));background-origin:border-box;background-clip:border-box,border-box,border-box,padding-box,border-box;
  -webkit-backdrop-filter:var(--lg-filter,blur(12px) saturate(1.7) contrast(.86));backdrop-filter:var(--lg-filter,blur(12px) saturate(1.7) contrast(.86));
  box-shadow:var(--lg-rim,inset 1px 1px 0 rgba(255,255,255,.32)),var(--lg-bevel,0 0 0 1px rgba(255,255,255,.1)),var(--lg-contact,0 1px 2px rgba(0,0,0,.5));
  transition:max-height .34s cubic-bezier(.2,.8,.2,1)}
.lightbox-overlay .lb-alt.is-long .lb-words{-webkit-mask-image:linear-gradient(#000 calc(100% - 13px - 2em),transparent calc(100% - 11px));mask-image:linear-gradient(#000 calc(100% - 13px - 2em),transparent calc(100% - 11px))}
.lightbox-overlay .lb-alt.is-long .lb-sheet::before{content:"";position:sticky;top:6px;z-index:1;display:block;width:34px;height:4px;margin:6px auto -10px;border-radius:2px;background:rgba(255,255,255,.34)}
.lightbox-overlay .lb-alt.is-up .lb-sheet{max-height:min(64vh,34rem);max-height:min(64dvh,34rem);overflow-y:auto;overscroll-behavior-y:contain;touch-action:pan-x pan-y;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.3) transparent;cursor:auto}
.lightbox-overlay .lb-alt.is-up .lb-words{max-height:none;padding-top:16px;-webkit-mask-image:none;mask-image:none}
@media (prefers-reduced-motion:reduce){.lightbox-overlay{animation:none}.lightbox-overlay .lb-btn,.lightbox-overlay .lb-close,.lightbox-overlay .lb-sheet{transition:none}}
@media (forced-colors:active){.lightbox-overlay .lb-btn,.lightbox-overlay .lb-close,.lightbox-overlay .lb-count,.lightbox-overlay .lb-sheet{border-color:ButtonText}}

/* ---------- Webmentions ---------- */
.mentions{margin-top:40px;padding-top:24px;border-top:1px solid var(--rule)}
.mentions h2{font-size:1.15rem;margin:0 0 16px}
.facepile h3{font-size:.85rem;font-weight:600;color:var(--ink-2);margin:0 0 8px}
.facepile .count{font-variant-numeric:tabular-nums}
.facepile ul{list-style:none;display:flex;flex-wrap:wrap;gap:6px;margin:0 0 18px;padding:0}
.facepile img,.facepile .initial,.reply-author img,.reply-author .initial{width:36px;height:36px;border-radius:50%;object-fit:cover;display:grid;place-items:center;background:var(--paper-2);color:var(--ink-2);font-weight:700;font-size:.85rem}
.replies{list-style:none;margin:0;padding:0;display:grid;gap:18px}
.reply{display:grid;gap:4px;padding:14px;border:1px solid var(--rule);border-radius:var(--radius);background:var(--surface)}
.reply-author{display:flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none;font-weight:600}
.reply-author img,.reply-author .initial{width:32px;height:32px}
.reply .p-content{font-size:.95rem}
.reply-date{font-size:.8rem;color:var(--ink-2);text-decoration:none}
.wm-form{margin-top:24px;font-size:.88rem;color:var(--ink-2)}
.wm-send .wm-form{margin-top:0}
.wm-row{display:flex;gap:8px;margin-top:6px}
input[type=url],input[type=search],input[type=text]{flex:1;min-width:0;font:inherit;font-size:1rem;color:var(--ink);background:var(--surface);border:1px solid var(--rule);border-radius:999px;padding:.55em 1em}
.wm-form.stacked{display:grid;gap:14px;max-width:32rem}
.wm-form.stacked label{display:grid;gap:4px}
.wm-form.stacked input{border-radius:10px}

/* ---------- Lists ---------- */
.pagination,.neighbours{display:flex;justify-content:space-between;gap:16px;margin-top:40px;font-size:.92rem}
.pagination a{font-weight:600;text-decoration:none}
.neighbours a{display:grid;gap:2px;text-decoration:none;max-width:48%;color:var(--ink)}
.neighbours a small{color:var(--ink-2)}
.neighbours a span{font-weight:600}
.neighbours .prev{text-align:right;margin-left:auto}
.tag-cloud{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:8px 10px}
.tag-cloud a{display:inline-block;padding:.3em .8em;border:1px solid var(--rule);border-radius:999px;text-decoration:none;font-size:calc(.9rem * var(--w,1))}
.tag-cloud small{color:var(--ink-2)}
.archive-year h2{font-size:1.1rem;margin:1.6em 0 .4em}
.archive-months{list-style:none;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(10rem,1fr));gap:4px 16px}
.archive-months small{color:var(--ink-2)}
.photo-wall{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px}
.photo-wall a{display:block;aspect-ratio:1;overflow:hidden;border-radius:8px;background:var(--paper-2)}
.photo-wall img{width:100%;height:100%;object-fit:cover;transition:transform .4s var(--ease)}
.photo-wall a:hover img{transform:scale(1.04)}
.search-form{display:flex;gap:8px;margin-bottom:32px}
.error-page{text-align:center;padding:40px 0}
.error-code{font-size:4rem;font-weight:800;color:var(--accent);margin:0;line-height:1}

/* Social links: a soft capsule holding round icon buttons or name chips */
/* One line. Links that do not fit are reached by scrolling sideways; the theme's script then turns the line into
   an endless strip (.is-loop). Without scripts it simply scrolls. */
.social-icons{display:inline-flex;flex-wrap:nowrap;align-items:center;justify-content:flex-start;gap:2px;max-width:100%;list-style:none;margin:0;padding:4px;
  overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch;
  --bar:color-mix(in srgb,var(--surface) 82%,var(--paper));background:var(--bar);border:1px solid var(--rule);border-radius:22px;
  box-shadow:0 1px 2px rgba(0,0,0,.04),0 10px 24px -14px rgba(0,0,0,.22)}
.social-icons::-webkit-scrollbar{display:none}
.social-icons li{display:flex;flex:none}
.social-icons.is-loop{cursor:grab}
/* the strip fades out at both ends of the bar, which shows there is more either way */
.social-icons.is-loop::before,.social-icons.is-loop::after{content:"";position:sticky;z-index:1;flex:none;width:26px;height:36px;pointer-events:none}
.social-icons.is-loop::before{left:0;margin:0 -28px 0 -4px;background:linear-gradient(90deg,var(--bar) 25%,transparent)}
.social-icons.is-loop::after{right:0;margin:0 -4px 0 -28px;background:linear-gradient(270deg,var(--bar) 25%,transparent)}
.social-icons.is-loop.is-dragging{cursor:grabbing;user-select:none;-webkit-user-select:none}
.social-icons.is-loop.is-dragging a{pointer-events:none}
/* a website's own favicon, redrawn as a glyph: it takes the link's colour like the icons beside it */
.social-glyph{display:block;flex:none;background:currentColor;-webkit-mask:var(--glyph) center/contain no-repeat;mask:var(--glyph) center/contain no-repeat}
.social-icons a{display:grid;place-items:center;width:36px;height:36px;border-radius:999px;color:var(--ink-2);text-decoration:none;
  transition:background-color .2s var(--ease),color .2s var(--ease),transform .15s var(--ease)}
.social-icons a:hover,.social-icons a:focus-visible{color:var(--accent);background:color-mix(in srgb,var(--accent) 13%,transparent)}
.social-icons a:active{transform:scale(.95)}
/* Icons alone: the service's name shows in a label by the icon (hover, keyboard focus, long press). The theme's
   script places the label; it floats above the page so that the scrolling bar does not cut it off. */
.social-icons.style-icons a{-webkit-touch-callout:none}
.tip{position:fixed;z-index:60;padding:.36em .72em;border-radius:8px;background:var(--ink);color:var(--paper);font-size:.76rem;font-weight:600;line-height:1.2;letter-spacing:.01em;white-space:nowrap;pointer-events:none;opacity:0;transform:translateY(-3px);transition:opacity .15s,transform .15s var(--ease)}
.tip.is-on{opacity:1;transform:none}
.social-icons.style-links a,.social-icons.style-both a{display:inline-flex;align-items:center;gap:7px;width:auto;padding:0 13px;font-size:.86rem;font-weight:500;letter-spacing:.005em}
.social-icons.style-both a{padding-left:11px}
.about-elsewhere .social-icons{justify-content:flex-start}
@media (max-width:520px){.social-icons.style-links a,.social-icons.style-both a{padding:0 11px}}
/* ---------- Pinned posts ---------- */
/* ---------- Filter: all posts, statuses, articles ---------- */
/* A three-way switch. The track is a flat tint; the thumb is a raised surface that slides to the chosen option
   (--at is 0, 1 or 2). The options are equal thirds, so the thumb is one third wide. */
.post-filter{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin:0 0 clamp(18px,3vw,26px)}
.page-title + .post-filter{margin-top:-.5em}
.type-filter{--pad:3px;--track:color-mix(in srgb,var(--ink) 8%,transparent);position:relative;display:inline-grid;grid-template-columns:repeat(3,minmax(0,1fr));max-width:100%;padding:var(--pad);border-radius:999px;background:var(--track);isolation:isolate}
/* the thumb is the page's own colour, so it reads as raised on a light page and as a clear window on a dark one */
.type-filter::before{content:"";position:absolute;z-index:-1;top:var(--pad);bottom:var(--pad);left:var(--pad);width:calc((100% - 2 * var(--pad)) / 3);border-radius:999px;background:var(--paper);box-shadow:0 1px 2px rgba(0,0,0,.14),0 3px 10px rgba(0,0,0,.06);transform:translateX(calc(var(--at,0) * 100%));transition:transform .32s var(--ease)}
.type-filter a{padding:.46em 1.15em;border-radius:999px;color:var(--ink-2);font-size:.86rem;font-weight:600;line-height:1.3;text-align:center;text-decoration:none;white-space:nowrap;transition:color .2s}
.type-filter a:hover{color:var(--ink);text-decoration:none}
.type-filter a[aria-current]{color:var(--ink)}
.type-filter a:focus-visible{outline:2px solid var(--ink-2);outline-offset:-2px}
@media (max-width:380px){.type-filter a{padding-inline:.8em;font-size:.82rem}}
@media (prefers-reduced-motion:reduce){.type-filter::before{transition:none}}
/* Only posts with pictures, videos, music or files: four toggles. One that is on is a solid fill. */
.with-filter{display:inline-flex;flex-wrap:wrap;gap:6px}
.with-filter a{display:inline-flex;align-items:center;gap:.42em;padding:.46em .95em .46em .8em;border-radius:999px;background:color-mix(in srgb,var(--ink) 8%,transparent);color:var(--ink-2);font-size:.86rem;font-weight:600;line-height:1.3;text-decoration:none;white-space:nowrap;transition:color .2s,background-color .2s}
.with-filter a:hover{color:var(--ink);text-decoration:none}
.with-filter a[aria-pressed]{background:var(--ink);color:var(--paper)}
.with-filter svg{flex:none}
/* Each pinned post sits in a container of its own, so it needs no rule beside it, under it or between it and the next. */
.pinned{display:grid;gap:12px;margin-bottom:clamp(28px,5vw,44px);padding:0;border:0}
.pinned > .entry,.day.pinned > .entry + .entry{margin:0;padding:clamp(14px,2.6vw,20px) clamp(16px,3vw,24px);border:0;border-radius:var(--radius);background:var(--paper-2)}
.pinned .status{padding-left:0;border-left:0}
.pinned .status::before{content:none}
.pinned + .day{border-top:0;padding-top:0}
.pin-label{display:inline-flex;align-items:center;gap:5px;margin:0 0 .5em;font-size:.76rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--accent)}
/* ---------- When a post was last changed ----------
   "Updated …" at the end of a post its author shows it on (Theme::updated), after its text: smaller and quieter than
   the text, a pencil before it, in the theme's quieter ink (light or dark). Every property a bare p, time or svg rule
   may set (the owner's Custom CSS, a matched site's styles) is said here, so this class decides, in every theme. */
.post-updated{display:flex;align-items:center;gap:.45em;box-sizing:border-box;width:auto;max-width:100%;min-height:0;margin:1.6em 0 0;padding:0;border:0;border-radius:0;
  background:none;box-shadow:none;color:var(--ink-2);font:inherit;font-size:.8rem;font-style:normal;font-weight:400;font-variant-numeric:tabular-nums;line-height:1.45;
  letter-spacing:normal;word-spacing:normal;text-align:start;text-indent:0;text-transform:none;text-decoration:none;text-shadow:none;opacity:1;float:none;clear:both;position:static}
.post-updated svg{display:block;flex:none;width:1.15em;height:1.15em;min-width:0;max-width:none;margin:0;padding:0;border:0;color:inherit;opacity:.9}
.post-updated time{display:inline;margin:0;padding:0;border:0;background:none;color:inherit;font:inherit;letter-spacing:inherit;text-transform:inherit;text-decoration:none}
/* under a status shown whole on a list: closer to its text, in the same size as on the post's page (a theme's own size too) */
.post-updated.is-compact{margin-top:.8em}
/* ---------- About page ---------- */
.about{display:grid;gap:22px}
.about-head{display:flex;gap:20px;align-items:center}
.about-photo{width:112px;height:112px;border-radius:50%;object-fit:cover;flex:none}
.about-name{font-size:clamp(1.7rem,3.2vw,2.3rem);line-height:1.15;letter-spacing:-.02em;margin:0}
.about-facts{list-style:none;padding:0;margin:.45em 0 0;display:flex;flex-wrap:wrap;gap:4px 16px;color:var(--ink-2);font-size:.92rem}
.about-facts a{color:inherit}
.about-lead{font-size:1.12rem;line-height:1.55}
.about-lead > :first-child{margin-top:0}
.about-lead > :last-child{margin-bottom:0}
.about-elsewhere h2{font-size:1rem;margin:0 0 .4em}
.about-elsewhere .rel-me{list-style:none;padding:0}
@media (max-width:520px){.about-head{gap:14px}.about-photo{width:76px;height:76px}}
.about-id{min-width:0}.about-name{overflow-wrap:anywhere}
.author{display:inline-flex;align-items:center;gap:6px}
.author .avatar{width:24px;height:24px;border-radius:50%}

/* Embed widget defaults (when this stylesheet is loaded alongside embed.js) */
.snug-embed{list-style:none;padding:0;margin:0;display:grid;gap:14px}
.snug-embed__item{display:flex;gap:12px}
.snug-embed__img img{width:64px;height:64px;object-fit:cover;border-radius:8px}
.snug-embed__body{display:grid}
.snug-embed__body time{font-size:.8em;opacity:.7}

/* The audio player's styles are in player.css, loaded by site.js on pages that have audio. */
.media figure.audio + figure.audio{margin-top:12px}
.e-content .ap{margin:1.4em 0}
/* ---------- Comments ---------- */
.comment-form{margin-top:clamp(28px,5vw,44px);padding-top:clamp(20px,4vw,32px);border-top:1px solid var(--rule)}
.comment-form h2{font-size:1.15rem;margin:0 0 .8em}
.comment-form form{display:grid;gap:12px}
.comment-form label{display:grid;gap:4px;font-size:.86rem;font-weight:600;color:var(--ink-2)}
.comment-form input,.comment-form textarea{font:inherit;font-weight:400;color:var(--ink);background:var(--surface);border:1px solid var(--rule);border-radius:10px;padding:10px 12px;width:100%}
.comment-form textarea{resize:vertical;min-height:6.5em}
.comment-form .cf-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.comment-form .hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.comment-form .btn{justify-self:start}
.cf-msg{margin:0;padding:10px 14px;border-radius:10px;font-size:.92rem;background:color-mix(in srgb,var(--accent) 12%,var(--paper))}
.cf-msg.err{background:color-mix(in srgb,#b42318 10%,var(--paper));border-color:color-mix(in srgb,#b42318 40%,transparent)}
.message-page{padding:clamp(20px,6vw,60px) 0}
/* (a locked post or page, and its key form: lock.css) */
/* a locked file in a page whose reader has no key for it (site.js puts this where it would show): it leads to the file's door.
   Like everything locked it is the same dark neon in every theme and mode (the colours of lock.css's first palette, written out here) */
.locked-stub{display:flex;align-items:center;justify-content:center;gap:.9em;box-sizing:border-box;width:100%;min-height:6.5em;max-height:22em;padding:1.1em;border:1px solid rgba(47,243,255,.42);border-radius:3px;background:linear-gradient(180deg,#0e1322,#080a12);box-shadow:inset 0 0 26px rgba(47,243,255,.08);color:#2ff3ff;font:700 12.8px/1.3 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.5em;text-transform:uppercase;text-decoration:none;text-shadow:0 0 12px rgba(47,243,255,.75);transition:border-color .2s,box-shadow .2s}
.locked-stub svg{flex:none;color:#ff4df4;filter:drop-shadow(0 0 6px rgba(255,77,244,.8))}
.locked-stub.is-line{justify-content:flex-start;min-height:0;max-width:35em;padding:.9em 1.1em}
a.locked-stub,a.locked-stub:hover,a.has-locked-stub,a.has-locked-stub:hover{text-decoration:none!important;border-bottom:0}
a.has-locked-stub{display:block}
:is(img,video).is-locked:not([src*="?t="]){visibility:hidden}
/* where a picture has a place of its own shape, the locked look fills it: a gallery's cell, a carousel's slide, a
   stack's frame (in the frame's own shape), the prints of a pile in a list */
.gallery:not(.gallery-1) .locked-stub,.media.compact .gallery-1 .locked-stub,.carousel-slide .locked-stub{height:100%;min-height:0;max-height:none;aspect-ratio:auto!important;letter-spacing:.3em}
.carousel-slide > a.has-locked-stub{display:flex;flex:1 1 auto;align-self:stretch}
.carousel-slide .locked-stub{min-height:12em}
.media .stack-item .locked-stub{max-height:85vh;max-height:85svh;aspect-ratio:var(--ar,1.6)!important}
.media.compact .stack-item .locked-stub{height:auto;min-height:0;max-height:none;aspect-ratio:var(--ar0,4/3)!important;letter-spacing:.3em}
.article-cover .locked-stub{min-height:0;max-height:none;aspect-ratio:16/9!important;letter-spacing:.3em}
.article-card .article-cover .locked-stub{aspect-ratio:4/3!important}
/* a small picture of a list: the lock alone (its word is still read) */
.media.compact .gallery:not(.gallery-1) .locked-stub > span,.article-card .article-cover .locked-stub > span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
a.locked-stub:hover,a:hover > .locked-stub{border-color:#2ff3ff;box-shadow:inset 0 0 26px rgba(47,243,255,.12),0 0 22px -4px rgba(47,243,255,.6)}
a.locked-stub:focus-visible{outline:2px solid #2ff3ff;outline-offset:3px}
a.has-locked-stub:focus-visible{outline:none}
a.has-locked-stub:focus-visible > .locked-stub{outline:2px solid #2ff3ff;outline-offset:-4px}
@media (max-width:520px){.comment-form .cf-row{grid-template-columns:1fr}}

/* under each post: the comment button and, when it differs, the licence */
.comment-link{display:inline-flex;align-items:center;gap:5px;min-height:32px;padding:0 4px;color:var(--ink-2);text-decoration:none;border-radius:6px;font-weight:600;font-variant-numeric:tabular-nums}
.comment-link:hover{color:var(--accent)}
.comment-link svg{display:block}
/* beside it, the Share button (shown by the theme's script, which opens the dialog below) */
.share-link{display:inline-flex;align-items:center;justify-content:center;min-width:26px;min-height:32px;margin:0;padding:0 4px;border:0;border-radius:6px;background:none;color:var(--ink-2);font:inherit;cursor:pointer;-webkit-appearance:none;appearance:none}
.share-link:hover{color:var(--accent)}
.share-link:focus-visible,.share-dialog :focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.share-link svg{display:block}
.layout-index .h-feed .share-link{display:none}
/* The Share dialog: a box in the middle of the page, a sheet from the bottom on phones. */
/* The Share dialog is one of Snug's own pieces: a panel of the blog's glass (glass.css), and its controls one family
   (glass.css, "One family"): Share with… the raised pane, the places and Copy and Share regular panes, the fields quiet
   panes that rise as they take the keyboard, Close and Change quiet ones. Nothing takes the accent's colour. */
.share-dialog{width:min(27rem,calc(100vw - 32px));max-width:none;max-height:min(42rem,calc(100vh - 32px));max-height:min(42rem,calc(100dvh - 32px));margin:auto;padding:0 20px 20px;border:var(--lg-band,3px) solid transparent;border-radius:var(--radius);color:var(--ink);font-size:.95rem;line-height:1.4;text-align:left;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;
  background:var(--lg-sheen,none),linear-gradient(var(--lg-plate,var(--paper)),var(--lg-plate,var(--paper))),var(--lg-shell,var(--paper));background-origin:border-box;background-clip:border-box,border-box,border-box,padding-box,border-box;
  -webkit-backdrop-filter:var(--lg-filter,none);backdrop-filter:var(--lg-filter,none);box-shadow:var(--lg-rim,0 0 0 0 transparent),var(--lg-bevel,0 0 0 1.5px var(--rule)),var(--lg-contact,0 0 0 0 transparent),0 24px 60px rgba(0,0,0,.28)}
.share-dialog[open]{animation:share-in .2s var(--ease)}
.share-dialog::backdrop{background:rgba(0,0,0,.45);animation:share-fade .2s ease-out}
.share-dialog.is-closing{animation:share-out .16s ease-in forwards}
.share-dialog.is-closing::backdrop{animation:share-fade-out .16s ease-in forwards}
@keyframes share-in{from{opacity:0;transform:translateY(10px)}}
@keyframes share-out{to{opacity:0;transform:translateY(10px)}}
@keyframes share-up{from{transform:translateY(100%)}}
@keyframes share-down{to{transform:translateY(100%)}}
@keyframes share-fade{from{opacity:0}}
@keyframes share-fade-out{to{opacity:0}}
@media (prefers-reduced-motion:reduce){.share-dialog[open],.share-dialog::backdrop{animation:none!important}}
.share-head{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 -20px;padding:12px 12px 8px 20px;background:linear-gradient(var(--lg-plate,var(--paper)),var(--lg-plate,var(--paper)))}
/* at rest the head is the panel's own glass, one pane with it; a plate of its own (and a hairline) comes only while
   the places scroll under it, where the browser can tell (elsewhere it keeps its plate) */
@supports (animation-timeline:scroll()){
  .share-head{background:transparent;animation:share-head-plate linear both;animation-timeline:scroll(nearest block);animation-range:0 16px}
  @keyframes share-head-plate{to{background-color:var(--lg-plate,var(--paper));box-shadow:0 .5px 0 var(--rule)}}
}
.share-head h2{margin:0;font-size:1.1rem;line-height:1.2;letter-spacing:-.01em}

.share-grip{display:none}
.share-close{display:inline-flex;align-items:center;justify-content:center;flex:none;width:40px;height:40px;padding:0;border:0;border-radius:50%;color:var(--ink);cursor:pointer;
  background-color:var(--lg-quiet);background-image:var(--lg-quiet-sheen);box-shadow:var(--lg-quiet-own);--lg-own:var(--lg-quiet-own)}
.share-close:hover{background-color:var(--lg-pane);box-shadow:var(--lg-pane-own)}
.share-what{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden;margin:0 0 14px;color:var(--ink-2);font-size:.9rem;overflow-wrap:anywhere}
.share-dialog .share-native{width:100%;justify-content:center;min-height:44px;margin:0 0 12px;border:0;border-radius:999px;color:var(--ink);
  background-color:var(--lg-raised);background-image:var(--lg-raised-sheen);box-shadow:var(--lg-raised-own);--lg-own:var(--lg-raised-own)}
.share-to{display:grid;grid-template-columns:repeat(auto-fill,minmax(7.4rem,1fr));gap:8px;margin:0;padding:0;list-style:none}
.share-to li{margin:0;padding:0}
.share-to a{display:flex;align-items:center;gap:8px;min-height:44px;padding:0 10px 0 12px;border:0;border-radius:999px;color:var(--ink);font-size:.88rem;font-weight:600;line-height:1.15;text-decoration:none;
  background-color:var(--lg-pane);background-image:var(--lg-sheen);box-shadow:var(--lg-pane-own);--lg-own:var(--lg-pane-own);transition:background-color .15s,box-shadow .2s}
.share-to a:hover{color:var(--ink);background-color:color-mix(in srgb,var(--ink) 9%,transparent)}
.share-to span{min-width:0;overflow:hidden;white-space:nowrap}
.share-to svg{flex:none}
.share-touch{display:none}
@media (pointer:coarse){.share-touch{display:block}}
.share-host,.share-links{display:grid;gap:10px;margin-top:14px;padding-top:14px;border-top:1px solid var(--rule)}
.share-host{gap:6px}
.share-dialog label{display:block;margin:0 0 4px;color:var(--ink-2);font-size:.78rem;font-weight:700}
.share-row{display:flex;align-items:center;gap:8px}
.share-row input{min-height:44px;text-overflow:ellipsis;border:0;border-radius:999px;background-color:var(--lg-quiet);background-image:var(--lg-quiet-sheen);box-shadow:var(--lg-quiet-own);transition:background-color .15s,box-shadow .2s}
.share-row input:focus{outline:2px solid transparent;background-color:var(--lg-raised);background-image:var(--lg-raised-sheen);box-shadow:var(--lg-focus),var(--lg-raised-own)}
.share-dialog .share-row .btn{flex:none;justify-content:center;min-height:44px;margin:0;border:0;border-radius:999px;color:var(--ink);
  background-color:var(--lg-pane);background-image:var(--lg-sheen);box-shadow:var(--lg-pane-own);--lg-own:var(--lg-pane-own)}
.share-dialog .share-row .btn:hover{transform:none;background-color:color-mix(in srgb,var(--ink) 9%,transparent)}
.share-copy-btn{min-width:5.8rem}
.share-hint,.share-host-now{margin:0;color:var(--ink-2);font-size:.8rem}
.share-host-now{margin-top:10px}
.share-host-change{min-height:32px;margin-left:4px;padding:0 12px;border:0;border-radius:999px;color:var(--ink);font:inherit;font-weight:600;cursor:pointer;
  background-color:var(--lg-quiet);background-image:var(--lg-quiet-sheen);box-shadow:var(--lg-quiet-own);--lg-own:var(--lg-quiet-own)}
@media (max-width:760px){
  .share-dialog{width:100%;max-height:calc(100% - 56px);margin:auto 0 0;padding:0 max(16px,env(safe-area-inset-right,0px)) max(20px,env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px));border-width:var(--lg-band,3px) 0 0;border-radius:var(--radius) var(--radius) 0 0}
  .share-dialog[open]{animation:share-up .24s var(--ease)}
  .share-dialog.is-closing{animation:share-down .18s ease-in forwards}
  .share-head{margin:0 -16px;padding:20px 8px 8px 16px}
  .share-grip{display:block;position:absolute;top:8px;left:50%;width:40px;height:4px;margin-left:-20px;border-radius:2px;background:color-mix(in srgb,var(--ink) 30%,var(--paper))}
  .share-to{grid-template-columns:repeat(2,minmax(0,1fr))}
}
.license{color:var(--ink-2);font-size:.8rem;text-decoration:none;border-bottom:1px dotted currentColor}
.license:hover{color:var(--ink)}

/* comments with a voice note or a picture */
.cf-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin:-2px 0 4px}
.cf-tool{position:relative;display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:0 14px;border:1.5px solid var(--rule);border-radius:999px;background:var(--surface,transparent);color:var(--ink);font:inherit;font-size:.9rem;font-weight:600;cursor:pointer}
.cf-tool:hover{border-color:var(--ink)}
.cf-tool:disabled{opacity:.45;cursor:not-allowed}
.cf-tool:focus-within{outline:2px solid transparent;outline-offset:2px;box-shadow:var(--lg-focus)} /* light, as every control's focus (site.css), not a ring in the accent */
.cf-hint{font-size:.8rem;color:var(--ink-2)}
.cf-rec{display:flex;align-items:center;gap:12px;padding:8px 12px 8px 8px;border:1.5px solid var(--rule);border-radius:999px}
.cf-stop{display:grid;place-items:center;width:40px;height:40px;flex:none;border:0;border-radius:50%;background:#c0392b;color:#fff;cursor:pointer}
.cf-stop span{width:12px;height:12px;border-radius:2px;background:currentColor}
.cf-meter{flex:1;height:6px;border-radius:3px;background:var(--rule);overflow:hidden}
.cf-meter i{display:block;height:100%;width:0;background:var(--accent);transition:width .2s linear}
.cf-time{font-variant-numeric:tabular-nums;font-size:.85rem;color:var(--ink-2);white-space:nowrap}
.cf-attached{display:grid;gap:10px}
.cf-item{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.cf-item audio{flex:1 1 220px;max-width:100%;height:40px}
.cf-item img{max-width:160px;max-height:120px;border-radius:8px;border:1.5px solid var(--rule);object-fit:cover}
/* Remove is a quieter one of the tools' own pills, as tall as they are, never bare words beside them */
.cf-remove{display:inline-flex;align-items:center;min-height:40px;padding:0 14px;border:1.5px solid color-mix(in srgb,var(--rule) 70%,transparent);border-radius:999px;background:none;color:var(--ink-2);font:inherit;font-size:.85rem;font-weight:600;cursor:pointer}
.cf-remove:hover{border-color:var(--ink);color:var(--ink)}
.cf-remove:focus-visible{outline:2px solid transparent;outline-offset:2px;box-shadow:var(--lg-focus)}
@media (prefers-reduced-motion:reduce){.cf-meter i{transition:none}}
.reply-pic{display:inline-block;margin-top:.5em;vertical-align:top;line-height:0;cursor:zoom-in}
.reply-pic img{display:block;width:auto;height:auto;max-width:min(100%,200px);max-height:150px;object-fit:cover;border-radius:8px;border:1px solid var(--rule)}
.reply-voice{margin-top:.5em;max-width:360px}
.reply-voice audio{width:100%;height:36px}
.reply-pic + .reply-voice{margin-top:.4em}
.reply-len{font-size:.8rem;color:var(--ink-2);font-variant-numeric:tabular-nums}
.comment-form label.cf-tool{display:inline-flex;flex-direction:row;align-items:center;gap:7px;margin:0;color:var(--ink);font-weight:600;font-size:.9rem} /* Picture in the ink of Record beside it (a form's labels are muted) */

/* who the comment will be from */
.cf-as{display:flex;align-items:center;gap:8px;margin:0;font-size:.86rem;color:var(--ink-2)}
.cf-as b{color:var(--ink)}
.cf-as img{width:28px;height:28px;border-radius:50%;object-fit:cover;flex:none}
.cf-note{margin:0;font-size:.82rem;color:var(--ink-2)}
/* a guest's fields; hidden while a Snug blogger comments as themselves */
.cf-guest{display:grid;gap:12px}
.cf-known{flex-wrap:wrap}
.cf-known .cf-site{overflow-wrap:anywhere}
.cf-switch{font:inherit;color:var(--accent);background:none;border:0;padding:0;cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.cf-note a{color:var(--ink-2)}
.cf-note a:hover{color:var(--accent)}

/* a WeChat link: WeChat lets no other site show its articles or videos, so the card only says what it is */
.wx-card{display:flex;align-items:center;gap:12px;max-width:440px;padding:12px 14px;border-radius:var(--radius,12px);background:color-mix(in srgb,var(--ink) 5%,transparent);color:var(--ink);text-decoration:none}
.wx-card:hover{background:color-mix(in srgb,var(--ink) 9%,transparent)}
.wx-mark{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:10px;background:#07C160;color:#fff}
.wx-text{display:grid;gap:2px;min-width:0}
.wx-text b{font-size:.95rem}
.wx-text small{color:var(--ink-2);font-size:.8rem;overflow-wrap:anywhere}
.wx-go{margin-left:auto;color:var(--ink-2)}
.embed-wechat.compact .wx-card{padding:10px 12px}

/* The order of the responses: the latest at the top (the usual way) or the first. A two-way control of glass
   (themes/default/partials/mentions.php; site.js makes it instant and remembers the reader's choice): a track sunk
   into the page, a hollow whose upper wall throws a little shade and whose lower lip catches the light, and in it the
   chosen way as a raised, clearer pane that glides from one to the other (--at: 0 or 1). No colour of its own: the
   words are the ink, the chosen one the darker. Its corners follow the theme's (--radius), so it is a capsule in a
   rounded theme and square in a square one. Every property a bare `a`, `span` or `svg` rule could set (a theme's, the
   owner's own CSS, a matched site's) is said here, so the control keeps its shape. */
.replies-head{box-sizing:border-box;display:flex;justify-content:flex-end;align-items:center;margin:-4px 0 14px;padding:0;border:0;background:none}
.mentions .rs{--rs-pad:3px;--rs-r:min(999px,calc(var(--radius,14px) * 3));--rs-ri:max(0px,calc(var(--rs-r) - var(--rs-pad)));--rs-h:30px;
  position:relative;isolation:isolate;box-sizing:border-box;display:inline-grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;width:auto;max-width:100%;margin:0;padding:var(--rs-pad);
  border:0;border-radius:var(--rs-r);background:color-mix(in srgb,var(--ink) 7%,transparent);
  box-shadow:inset 0 1px 2px rgba(20,10,24,.12),inset 0 0 0 .5px color-mix(in srgb,var(--ink) 9%,transparent),0 1px 0 var(--lg-hi-soft,transparent)}
.mentions .rs::before{content:"";position:absolute;z-index:-1;top:var(--rs-pad);bottom:var(--rs-pad);left:var(--rs-pad);width:calc((100% - 2 * var(--rs-pad)) / 2);border-radius:var(--rs-ri);
  background:var(--lg-glint),linear-gradient(180deg,color-mix(in srgb,var(--lg-hi) 84%,transparent),color-mix(in srgb,var(--lg-hi) 50%,transparent));
  box-shadow:var(--lg-rim),0 0 0 .5px rgba(20,10,24,.16),0 1px 1.5px rgba(20,10,24,.16),0 3px 8px -3px rgba(20,10,24,.3);
  transform:translateX(calc(var(--at,0) * 100%));transition:transform .42s cubic-bezier(.32,1.28,.52,1);pointer-events:none}
.mentions .rs .rs-o{-webkit-appearance:none;appearance:none;position:relative;box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:6px;
  width:auto;min-width:0;max-width:none;height:auto;min-height:var(--rs-h);max-height:none;margin:0;padding:0 14px 0 11px;border:0;border-radius:var(--rs-ri);
  background:transparent;box-shadow:none;color:var(--ink-2);font-family:inherit;font-size:.86rem;font-style:normal;font-weight:600;line-height:1;letter-spacing:normal;
  text-align:center;text-decoration:none;text-transform:none;text-shadow:none;white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:color .2s,background-color .2s}
.mentions .rs .rs-o[aria-current]{color:var(--ink)}
.mentions .rs .rs-o svg{display:block;flex:none;width:16px;height:16px;max-width:none;margin:0;fill:none;stroke:currentColor}
.mentions .rs .rs-o span{display:block;min-width:0;margin:0;padding:0;overflow:hidden;font:inherit;line-height:1.3;color:inherit;text-overflow:ellipsis;white-space:nowrap} /* a word too long for its half (a translation) rolls (roll.js) */
@media (hover:hover){.mentions .rs .rs-o:not([aria-current]):hover{color:var(--ink);text-decoration:none}}
.mentions .rs .rs-o:not([aria-current]):active{background:color-mix(in srgb,var(--ink) 6%,transparent)}
.mentions .rs .rs-o:focus-visible{outline:2px solid transparent;outline-offset:2px;box-shadow:var(--lg-focus)}
@media (pointer:coarse){.mentions .rs{--rs-h:36px}.mentions .rs .rs-o::after{content:"";position:absolute;inset:-6px 0}}
.mentions .rs.is-still::before{transition:none}
@media (prefers-reduced-motion:reduce){.mentions .rs::before{transition:none}}
@media (prefers-contrast:more){.mentions .rs{background:transparent;box-shadow:inset 0 0 0 1px var(--ink-2)}.mentions .rs::before{background:var(--paper);box-shadow:inset 0 0 0 1.5px var(--ink)}.mentions .rs .rs-o{color:var(--ink)}.mentions .rs .rs-o:focus-visible{outline-color:var(--ink)}}
@media (forced-colors:active){.mentions .rs .rs-o[aria-current]{outline:2px solid CanvasText;outline-offset:-2px}.mentions .rs .rs-o:focus-visible{outline:2px solid Highlight;outline-offset:2px}}
@media print{.replies-head{display:none}}

/* mentions between commenters: "@Name" marked in a comment, Reply under each, and the names offered while typing "@" */
.at-mention{font-weight:600;color:var(--accent)}
.reply-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 12px}
.reply-to{display:inline-flex;align-items:center;gap:5px;min-height:32px;padding:0 10px;border:0;border-radius:999px;background:transparent;color:var(--ink-2);font:inherit;font-size:.8rem;font-weight:600;cursor:pointer}
.reply-to:hover{color:var(--accent);background:color-mix(in srgb,var(--accent) 8%,transparent)}
.reply-to:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.cf-people{list-style:none;margin:-6px 0 0;padding:4px;border:1px solid var(--rule);border-radius:10px;background:var(--surface);box-shadow:0 8px 24px rgba(0,0,0,.08);max-width:20rem}
.cf-people li{padding:8px 10px;border-radius:7px;font-size:.92rem;cursor:pointer}
.cf-people li[aria-selected="true"],.cf-people li:hover{background:color-mix(in srgb,var(--ink) 8%,transparent)} /* as every menu lights its line: a shade of the ink, not the accent's */
.comment-form .cf-email small{font-weight:400;font-size:.78rem;color:var(--ink-2)}

/* where a comment came from: the author, a guest (name not checked), the Fediverse, another website */
.reply-who{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px}
.reply-from{font-size:.72rem;font-weight:600;letter-spacing:.02em;padding:1px 8px;border-radius:999px;background:color-mix(in srgb,var(--ink) 7%,transparent);color:var(--ink-2)}
.from-author .reply-from{background:color-mix(in srgb,var(--accent) 16%,transparent);color:var(--accent)}
.reply-site{font-size:.8rem;color:var(--ink-2)}
span.reply-author{cursor:default}

/* a logo with a dark version: the one for the page's look */
/* a logo with a dark version, wherever it is drawn (header, footer) */
/* the author's picture, when dark mode has one of its own: the one for the mode shows (the other is only hidden, so each keeps its own layout) */
html[data-theme="light"] img.avatar-dark{display:none}
@media not all and (prefers-color-scheme:dark){html:not([data-theme="dark"]) img.avatar-dark{display:none}}
@media (prefers-color-scheme:dark){html:not([data-theme="light"]) img.avatar-light{display:none}}
html[data-theme="dark"] img.avatar-light{display:none}
html img.logo-dark{display:none}
@media (prefers-color-scheme:dark){html:not([data-theme="light"]) img.logo-light{display:none}html:not([data-theme="light"]) img.logo-dark{display:block}}
html[data-theme="dark"] img.logo-light{display:none}
html[data-theme="dark"] img.logo-dark{display:block}
/* the blog's name beside its logo: left out (for screen readers only) in a mode whose logo is drawn lettering */
html :is(.brand-text,.brand-name).hide-light{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media (prefers-color-scheme:dark){html:not([data-theme="light"]) :is(.brand-text,.brand-name).hide-light{position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal}html:not([data-theme="light"]) :is(.brand-text,.brand-name).hide-dark{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}}
html[data-theme="dark"] :is(.brand-text,.brand-name).hide-light{position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal}
html[data-theme="dark"] :is(.brand-text,.brand-name).hide-dark{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- A bar that scrolls sideways fades at the end that has more (site.js sets data-fade) ---------- */
[data-fade=right]{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 32px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 32px),transparent)}
[data-fade=left]{-webkit-mask-image:linear-gradient(270deg,#000 calc(100% - 32px),transparent);mask-image:linear-gradient(270deg,#000 calc(100% - 32px),transparent)}
[data-fade=both]{-webkit-mask-image:linear-gradient(90deg,transparent,#000 32px,#000 calc(100% - 32px),transparent);mask-image:linear-gradient(90deg,transparent,#000 32px,#000 calc(100% - 32px),transparent)}
.social-icons.is-loop[data-fade]{-webkit-mask-image:none;mask-image:none}
/* ---------- The logo in the header ----------
   As tall as the header row (--head-h), less the space kept above and below it (--logo-inset), times its size
   (--logo-size, 1 is all of it): Settings → Appearance → Site logo. The space is the logo's own inset, not a margin:
   the row keeps its height and the menu its place, whatever is chosen. A wide logo is as wide as it needs. */
.head-row{--head-h:64px}
.brand-logo{--lh:calc((var(--head-h,64px) - 2*var(--logo-inset,8px))*var(--logo-size,1));--lt:calc(var(--logo-inset,8px) + max(0px,(var(--head-h,64px) - 2*var(--logo-inset,8px) - var(--lh))/2));
  height:var(--lh);width:auto;max-width:min(36rem,62vw);flex:none;object-fit:contain;object-position:left center;
  align-self:flex-start;margin-top:var(--lt);margin-bottom:calc(var(--head-h,64px) - var(--lt) - var(--lh));position:relative;z-index:1}
/* Up to 100% the logo sits in the middle of its row; larger, it keeps its place at the top and grows downward, past the
   row (the header keeps its height). Space below 0 lifts its top by that much: the logo's own blank margin, trimmed. */
[dir="rtl"] .brand-logo{object-position:right center}
/* A see-through author picture inside the Snug Den ring sits on the page's colour, not on the ring's */
.plus-ring>img{background:var(--paper,#fff)}
