/* Pomcast.com — after the WordPress theme "Pomcast.com" by Giovanni Olivera (Pof),
   based on Vistered Little by Nik Iliadis: starfield, black glass panels, amber links, blue headings, star bullets. */
:root{
  color-scheme:dark;
  --ink:#ccc;--muted:#8c8c8c;--bright:#eee;
  --link:#eaab02;--hover:#fff;--blue:#3ba6e4;
  --line:#777;--panel:rgba(0,0,0,.9);--tile:#151515;
  --font:Verdana,"DejaVu Sans",Geneva,sans-serif;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{scroll-padding-top:7rem}
body{margin:0;font:14px/1.55 var(--font);color:var(--ink);background:#000 url(img/background.webp) center/cover fixed}
a{color:var(--link);text-decoration:none}
a:hover{color:var(--hover)}
:focus-visible{outline:2px solid var(--link);outline-offset:2px}
img{max-width:100%;height:auto}

/* Header: black bar with the theme's silver bottom edge */
#header{position:sticky;top:0;z-index:5;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.4rem 1.2rem;
  padding:.5rem 1rem .6rem;background:#000;border-bottom:3px solid #bfbfbf;box-shadow:0 1px 0 #fefefe,0 4px 14px rgba(0,0,0,.7)}
#blogtitle{grid-row:span 2;line-height:0}
#blogtitle img{height:64px;width:auto}
#salebanner{grid-column:2/4;margin:0;font-size:.85rem;color:var(--bright)}
#salebanner a{font-weight:700}
#pagemenubar{display:flex;flex-wrap:wrap;gap:.2rem 1rem;font-size:.95rem}
#pagemenubar a[aria-current]{color:var(--blue)}
#pagemenubar a:hover{text-decoration:overline}

/* Search, like the theme's small dotted field top right */
#toolbar{justify-self:end;display:flex;align-items:center;gap:.7rem}
.tool{font-size:1.25rem;line-height:1;text-decoration:none;filter:grayscale(1) brightness(1.1);opacity:.75;transition:filter .2s,opacity .2s,transform .2s}
.tool:hover,.tool:focus-visible,.tool[aria-current]{filter:none;opacity:1;transform:scale(1.15)}
#search{display:flex;align-items:center;gap:.5rem}
#search[hidden]{display:none}
#s{width:13rem;padding:.3rem .5rem;font:inherit;font-size:.85rem;color:var(--bright);background:transparent;border:1px dotted var(--line);border-radius:3px}
#s:focus{border-style:solid;border-color:var(--link);outline:none}
#s::placeholder{color:var(--muted)}
#searchstatus{font-size:.8rem;color:var(--muted);white-space:nowrap}

/* Panels: the theme's rounded black glass boxes, drawn from its own corner images */
#page{margin:1.5rem 0;padding:0 1rem}
.panel{border:32px solid transparent;border-image:url(img/frame.png) 32 fill / 32px stretch;margin:0 0 .6rem;padding:0 .3rem}
.panel>:first-child{margin-top:0}
.panel>:last-child{margin-bottom:0}

/* Farewell intro */
#about{display:flow-root}
#about h1{margin:0 0 .6rem;font-size:1.5rem;font-weight:normal;color:var(--blue)}
#about .photo{float:left;width:130px;margin:0 1.2rem .4rem 0;filter:drop-shadow(0 4px 10px rgba(0,0,0,.6))}
#about p{margin:0 0 .7rem;text-align:justify}
#about .sign{text-align:right;font-style:italic;color:var(--bright)}
#about .count{display:block;clear:both;padding-top:.5rem;border-top:1px dotted var(--line);font-size:.85rem;color:var(--muted)}

/* Years and video cards */
h2.year{margin:1.4rem 0 .8rem;padding:0 0 .2rem 20px;border-bottom:1px dotted var(--line);font-size:1.25rem;font-weight:normal;color:var(--blue);
  background:url(img/bigstar.png) 0 50% no-repeat}
section.year:first-of-type h2.year{margin-top:0}
/* While searching (site.js): no year headings, one grid for all results */
.searching{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:1.2rem 1rem}
.searching section.year,.searching .grid{display:contents}
.searching h2.year{display:none}
.searching #noresults{grid-column:1/-1}
/* A card reached from an old post address (.htaccess → page.html#v-<id>) */
.post:target .thumb{outline:3px solid var(--link);outline-offset:3px}
.post:target h3 a{color:var(--link)}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:1.2rem 1rem}
.post{min-width:0;display:flex;flex-direction:column}
.post h3{order:2;margin:.45rem 0 0;font-size:.9rem;font-weight:normal;line-height:1.35}
.post h3 a{color:var(--blue)}
.post h3 a:hover{color:var(--hover)}
.meta{order:3;margin:.15rem 0 0;font-size:.75rem;color:var(--muted)}
mark{background:none;color:var(--link);font-weight:700}

.thumb,.post iframe{display:block;position:relative;width:100%;aspect-ratio:16/9;border:0;border-radius:6px;overflow:hidden;background:#000;box-shadow:0 0 0 1px #333}
.thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s,filter .3s}
.thumb:hover img,.thumb:focus-visible img{transform:scale(1.04);filter:brightness(1.1)}
.play{position:absolute;inset:0;margin:auto;width:54px;height:38px;border-radius:9px;background:rgba(0,0,0,.7)}
.play::after{content:"";position:absolute;left:21px;top:10px;border-left:15px solid #fff;border-top:9px solid transparent;border-bottom:9px solid transparent}
.thumb:hover .play,.thumb:focus-visible .play{background:#e62117}
/* Videos from other people's channels: muted until hovered, with the channel name */
.theirs .thumb{box-shadow:0 0 0 1px #555;outline:1px dashed #555;outline-offset:3px}
.theirs .thumb img{filter:grayscale(1) brightness(.7)}
.theirs .thumb:hover img,.theirs .thumb:focus-visible img{filter:none}
.theirs h3 a{color:var(--ink)}
.via{position:absolute;left:6px;bottom:6px;max-width:calc(100% - 12px);padding:1px 6px;border-radius:3px;background:rgba(0,0,0,.75);color:var(--bright);font-size:.7rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gone{display:grid;place-items:center;padding:1rem;text-align:center;font-size:.8rem;color:var(--muted);background:var(--tile);border:1px dotted var(--line);box-shadow:none}

#noresults{margin:1rem 0;text-align:center;color:var(--muted)}

#footer{margin-top:1.5rem;padding:1rem;background:#000;text-align:center;font-size:.75rem;color:var(--muted)}
#footer p{max-width:760px;margin:.3rem auto}

/* migration.html (article) */
.article,.todo-page #content{max-width:980px;margin-left:auto;margin-right:auto}
.article h1{margin-block:0 .3rem;font-size:1.8rem;font-weight:normal;color:var(--blue)}
.article h2{margin-block:1.8rem .6rem;padding:0 0 .2rem 20px;border-bottom:1px dotted var(--line);font-size:1.2rem;font-weight:normal;color:var(--blue);background:url(img/bigstar.png) 0 50% no-repeat}
.article p{margin-block:0 .9rem}
.byline{color:var(--muted);font-size:.85rem}
.lede{font-size:1.05rem;color:var(--bright)}
.article table{width:100%;margin-block:.4rem 1rem;border-collapse:collapse;font-size:.85rem}
.article th,.article td{padding:.35rem .5rem;border-bottom:1px dotted #444;text-align:left;vertical-align:top}
.article th{color:var(--bright);font-weight:normal;border-bottom-color:var(--line)}
.article .num{text-align:right;font-variant-numeric:tabular-nums}
.article .total td{color:var(--bright);border-bottom:0}
.scroll{overflow-x:auto}
.graveyard td:nth-child(3){white-space:nowrap}
.graveyard td:first-child{white-space:nowrap;padding-left:20px;background:no-repeat 4px .7em/8px 8px}
.graveyard .ok td:first-child{background-image:radial-gradient(#4caf50 60%,transparent 64%)}
.graveyard .partly td:first-child{background-image:radial-gradient(var(--link) 60%,transparent 64%)}
.graveyard .dead td:first-child{background-image:radial-gradient(#e62117 60%,transparent 64%)}
.graveyard .unknown td:first-child{background-image:radial-gradient(#777 60%,transparent 64%)}
.graveyard tr:last-child td:first-child{white-space:normal}
.callout{padding:.8rem 1rem;border:1px dotted var(--link);border-radius:6px}

/* offline.html (to-do) */
.todo-page #header{grid-template-columns:auto 1fr}
.todo-page #pagemenubar{grid-column:2}
.todo-page #content{margin-top:1.5rem}
.todo-page h1{margin:0 0 .5rem;font-size:1.5rem;font-weight:normal;color:var(--blue)}
.todo-page h3{margin:1.2rem 0 .4rem;color:var(--bright);font-size:1rem}
.n{font-size:.8rem;color:var(--muted)}
.list{list-style:none;margin:0;padding:0}
.list>li{display:flex;gap:.6rem;padding:.45rem 0;border-bottom:1px dotted #333}
.list>li>div{min-width:0}
.list>li:has(input:checked){opacity:.45}
.list>li:has(input:checked) a{text-decoration:line-through}
.lang{display:inline-block;min-width:2em;padding:0 .3em;border-radius:3px;background:#333;color:var(--bright);font-size:.7rem;text-align:center;text-transform:uppercase}
time{color:var(--muted);font-size:.8rem}
.refs{margin:.25rem 0 0;padding:0 0 0 14px;list-style:none}
.refs li{padding-left:14px;background:url(img/star.png) 0 .35em no-repeat;font-size:.8rem;overflow-wrap:anywhere}
.refs small,.list small{color:var(--muted)}
code{font-size:.85em;color:var(--bright)}
details summary{cursor:pointer;list-style:none}
details summary h2{display:inline-block}
details summary::-webkit-details-marker{display:none}
details:not([open]) summary h2::after{content:" ▸";color:var(--muted)}

@media (max-width:640px){
  #header{position:static;grid-template-columns:1fr;justify-items:center;text-align:center}
  #blogtitle{grid-row:auto}
  .todo-page #header{grid-template-columns:1fr}
  #salebanner,.todo-page #pagemenubar{grid-column:auto}
  #pagemenubar{justify-content:center}
  #toolbar{justify-self:stretch;flex-wrap:wrap;justify-content:center}
  #search{flex:1 1 100%;flex-wrap:wrap;justify-content:center}
  #s{width:100%}
  .panel{border-width:24px;border-image-width:24px}
  #about .photo{width:96px}
  #about p{text-align:left}
}
@media (prefers-reduced-motion:reduce){.thumb img,.tool{transition:none}}
